www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/10/09:32:23

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Allegro]Translucent blits
Date: Fri, 10 Apr 1998 10:48:10 +0100
Organization: None
Message-ID: <uTP8uXAareL1EwwG@talula.demon.co.uk>
References: <352d6ca9 DOT 4966112 AT news DOT compusmart DOT ab DOT ca>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Demandred writes:
>Is it worthwhile to create various color tables for various alpha values in
>Allegro, or is there an easier way?

In a truecolor mode you can vary the alpha on the fly, but in 256 color
resolutions you need a table for each blending mode. It is possible to
get several different alpha levels by combining only two tables and
drawing the image multiple times (see the AATEXT addon for an example),
but this still only gives a limited number of levels and it is slower
than using a dedicated table for every alpha value.


--
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