Re: [AD] depth buffer API

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


The ALLEGRO_ALPHA_TEST flag is supposed to do basic alpha test instead of alpha blending. It was only used in the GP2X Wiz port to speed things up. So alpha was treated like a color key instead of full on blending for speed. I don't think the flag is important, I just wanted to point it out.

Trent

On 2012-05-13, at 8:26 AM, Elias Pschernig wrote:
> On Sun, 13 May 2012 08:07:51 -0600
> Trent Gamblin <trent@xxxxxxxxxx> wrote:
> 
>> On 2012-05-13, at 8:04 AM, Elias Pschernig wrote:
>>> I updated it to this now:
>>> 
>>> http://wiki.allegro.cc/index.php?title=RenderState
>>> 
>>> So basically, still only one function called
>>> 
>>> al_set_render_state
>>> 
>>> but with no negative flags and more proper (OpenGL-like) naming. It
>>> also supports separate color channels again and also alpha testing.
>> 
>> Just a notice in case you forgot, there's an ALLEGRO_ALPHA_TEST
>> bitmap flag. Not sure how you want to handle that.
>> 
> 
> Oh, interesting. Do you know what that flag does? The documentation
> seems to suggest it's for memory bitmaps only.
> 
> Anyway, maybe we should call the new ones ALLEGRO_DEPTH_CHECK and
> ALLEGRO_ALPHA_CHECK after all then? Or maybe another prefix, like
> 
> ALLEGRO_RENDER_DEPTH_TEST
> ALLEGRO_RENDER_ALPHA_TEST





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