Re: [AD] Allegro5 and colors

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


Vincent Penquerc'h wrote:

AL_COLOR can be a union of all possible "formats" a color can have,

[snip]


Then we still have:
void al_putpixel(BITMAP*,int,int,int);

But we add (yeah, more API "bloat" ;)):
void al_putpixel_color(BITMAP*,int,int,AL_CONST AL_COLOR*);

This means that we'll need two versions of each of the primitive functions - not very nice. It also means that al_put_pixel_color will contain some call to al_map_rgba or al_map_yuv, which I am trying to avoid for efficiency reasons.




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