Re: [AD] [patch] is_trans_font()

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


On Wed, 2006-10-04 at 22:22 +0200, Daniel Schlyder wrote:
> I'd like to propose a new font function: is_trans_font().
> 
> Use case:
> 
> if (is_trans_font(my_font))
> {
>      ... allegro_gl_convert_allegro_font_ex(..., GL_RGBA);
> }
> else
> {
>      ... allegro_gl_convert_allegro_font_ex(..., GL_ALPHA8);
> }
> 
> What do you think?

Can't see any problem with it.

Hm, and it reminds me of all the mess we still have in AllegroGL font
conversion (map from any FONT-type of Allegro to any OpenGL texture
type) - feel free to also submit patches/bug reports if you notice
anything there :) But I guess I'll do the AllegroGl 0.4.0 on the same
day Allegro 4.2.0 appears anyway.

-- 
Elias Pschernig





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