Re: [AD] alpha blending in new GFX API

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


Elias Pschernig wrote:

Yeah, I'd assume that:

al_create_bitmap(0, display, 100, 100, AL_COLOR_8_8_8_8)

ehm, al_create_bitmap_2

choose some GL_RGBA format. (If we go by the current display idea
instead of explicit display parameters, it will use the current
display/opengl context, and no display parameters is needed.)

Yeah, seems better.


Docs for al_blit() say:
"Note however that color conversion is only available if the flags parameter is set to 0." Now, is color blending a color conversion? Is AL_BLEND allowed?

On the other hand, al_blit_region_3() is preferred method for alpha blending and it allows for src and dst color format not to match as a special case. Should the same be done to al_blit()?


--
Milan Mimica
http://sparklet.sf.net




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