Mail Archives: djgpp/1999/03/09/07:45:43
Matt Murrian writes:
> What I want is this ... I have 3 images ... 2 are normal images and
> 1 is a mask. The mask contains 255,0,255 (transparent color) on one
> side, and white on the other. I want to draw image 1 over the
> transparent color and image 2 over the white
There's no built in Allegro support for this kind of masking. You
could bodge the translucent drawing mode to do it by using some custom
mapping tables and a couple of drawing passes, but that would be
terribly slow. I think your best bet is to write your own drawing
code for doing this: see the "direct video memory access" section
in the docs for details of how to do that.
Shawn Hargreaves.
- Raw text -