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

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


Maybe there could be an alternate way of creating a display,
like this:

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();

// which would do the same as currently:

al_set_int("gfx/color_depth",  16);
al_set_int("gfx/refresh_rate", 70);

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

There's no advantage, but the first one looks somehow nicer to me -
the second mixes setting config variables with parameters, the first
one just sets config vars. color_depth and refresh_rate both aren't
of much use without the create_display call, because the rbg order
is unknown, and the rate might not be possible at all - so they are
not different from the other parameters.

--
Elias Pschernig



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