Re: [AD] Allegro 5.0 graphic routines, alpha 3

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


> display = al_create_display(AL_GFX_AUTO, 640, 480,
16, 
> AL_GFX_UPDATE_AUTO, 70);" then?

How about using vaargs so you can do any of these:

display = al_create_display(640, 480);
display = al_create_display(640, 480, 16);
display = al_create_display(640, 480, 16,
AL_GFX_AUTO);
display = al_create_display(640, 480, 16, AL_GFX_AUTO,
AL_GFX_UPDATE_AUTO);
display = al_create_display(640, 480, 16, AL_GFX_AUTO,
AL_GFX_UPDATE_AUTO, 70);

args should always be in same order and defaults used
if param not passed. I've been told in #allegro that
va doesn't give num of args and a terminating param
would need to be passed, if so this makes it slightly
more cumbersome (adding 0/NULL to end, or
AL_DEPTH|AL_WIDTH|AL_HEIGHT flags), any ideas?


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com



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