Re: [AD] al_get_opengl_version design flaw?

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


On 2010-11-29, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> 
> On 2010-11-29, at 7:25 PM, Peter Wang wrote:
> > Yes, reducing #ifdefs is my concern.
> > 
> > If I understand right, if you have a piece of code that could be running
> > under both desktop GL and ES, you'll want to know what kind of version
> > number al_get_opengl_version() is giving you.  Otherwise you don't know
> > what you are comparing (without resorting to #ifdefs).
> 
> Yes, that was what I was thinking when I wrote that. I think
> al_get_display_option(d, ALLEGRO_OPENGL_API) will work.

Sure, but AFAICT just adding an extra parameter to al_get_opengl_version
would be more convenient for the user.

> Or does it make
> sense to be able to query that before creating a display? Maybe you want
> to set different display options or flags based on the OpenGL API?

Hmm, you'd have a better idea about this than me.

Peter




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