Re: [AD] alpha blending in new GFX API

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


On Thu, 2007-01-25 at 21:00 +0100, Milan Mimica wrote:
> Elias Pschernig wrote:
> > 
> > What about this:
> > 
> > AL_BITMAP *al_create_bitmap_2(int flags, AL_DISPLAY *inherit_from,
> >                                  int width, int height, al_id_t format)
> > 
> > I was assuming, the format paramter would allow specifying any format
> > you want.
> 
> OK, as long as "On some platform, video and system bitmaps may need to 
> have their color space and depth match the display bitmap they are 
> associated to." doesn't apply to OpenGL driver. I think we can implement 
> it that way. I missed that somehow.

Yeah, I'd assume that:

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

Would create a texture in the GL context of the specified display and
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.)

-- 
Elias Pschernig





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