delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/04/18:16:43

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro truecolour
Date: Wed, 4 Feb 1998 23:13:17 +0000
Organization: None
Distribution: world
Message-ID: <IKYhmBANYP20Ewpj@talula.demon.co.uk>
References: <01bd31b2$835b9980$6b83a6c3 AT p166-mmx>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Edd writes:
>I'm having problems using truecolour through Djgpp and Allegro version 
>3.0. The screen doesn't look right 

In what way? I know it can be hard to describe things like this, but you
will have to try to give me some idea what the problem might be...

>and I can find no way of making Allegro draw transparent sprites. 

Use a bright pink color (maximum red and blue, zero green) for the
masked pixels. The documentation describes this in several places: see
the description of draw_sprite() or the truecolor pixel formats section.

>It also crashes a lot, sometimes it works sometimes it doesn't.

Is this just your program, or do the Allegro tests and examples also
sometimes crash?


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019