Re: [AD] DRAW_MODE_OR

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Von: Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx>

>On Mon, 27 Mar 2000, Christian Schüler wrote:
>> Hello, I think this is my first post in the conductors link. I have
added
>> an OR drawing mode because I needed one. I was really surprised that
there
>> is none in the Allegro lib. I gave it the number 6.
>
>¿Any patch?

I see that you use the fancy ".diff" format to post patches. I would like
to do that too. I have patched these files of Allegro 3.9.32:

   allegro.h
   asmdefs.inc
   i386.s

> After that, you won't see anything in the example for the first part,
> because all the rectangles draw with color 0, black. Change the rectfills
> to use say color makecol(128,128,128) and you will see that OR drawing
> rectangle. It looks like a color brighter... is that what you need?

I use it actually to cast shadows in an 8 bit color mode. Colors 128-255
contain half bright copies of colors 0-127, and whenever an object is
casting a shadow I draw OR 128 and am done with it. Efficiency is much an
issue so a colorblender is out of question for me.

chris





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/