Re: [AD] al_get_opengl_version design flaw?

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


I really don't see it as necessary. There is no way to get a true
desktop-gl version out of an opengl ES version, it's just an approximation,
and so it's pretty much worthless. I think returning the ES version would be
enough. Maybe though it would be helpful to have a function to tell if the
user is using a regular opengl or opengl es? I mean it would prevent the need
for a lot of #ifdefs. Is there something in display options we could use
instead maybe? al_get_display_option(ALLEGRO_GL_TYPE) or ALLEGRO_IS_OPENGL_ES
or something?

--
Trent Gamblin

On 2010-11-29, at 6:42 PM, Peter Wang wrote:

> On 2010-11-29, Trent Gamblin <trent@xxxxxxxxxx> wrote:
>> I'm planning on changing what the iPhone driver returns as an OpenGL version.
>> I've got it changed here, but it's part of the programmable pipeline change
>> that I was going to commit when it's finished. Should I commit it now?
>> 
>> The current behaviour is to approximate a desktop-gl-like version number
>> based on features. It's a hack, and I plan on returning it as an OpenGL
>> _ES_ version number instead.
>> 
> 
> Ouch.  Now I understand what all those #ifdef IPHONE hacks were about.
> 
> Maybe we should add an extra parameter:
> 
>    uint32_t al_get_opengl_version(int *es_profile);
> 
> or maybe as a string.





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