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

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


> > al_set_int("gfx/color_depth",  16); al_set_int("gfx/refresh_rate", 
> > 70); al_set_int("gfx/width", 640);
> > al_set_int("gfx/height", 480);
> > al_set_int("gfx/mode", AL_GFX_AUTO);
> > al_set_int("gfx/update", AL_GFX_UPDATE_AUTO);
> > 
> > display = al_create_display_bitmap();
> 
> too long IMHO. lots of programmers are lazy :)
> 
> what about
> "
> display = al_create_display(AL_GFX_AUTO, 640, 480, 16, 
> AL_GFX_UPDATE_AUTO, 70);" then?
> 
> u can put 0 to autodetect a parameter as refresh of color 
> depth for example...

I'm all for this too!
It makes no sense to me to use config vars *that* extensively; I'd much
prefer a single line to set a video mode (including the color depth &
retrace freq). The "gfx/color_depth" variable could then be changed
during the program to fit the needs of a programmer (color convertions),
while the "gfx/retrace_freq" variable could be read-only.

--
Angelo Mottola
a.mottola@xxxxxxxxxx
http://www.ecplusplus.com



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