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:
> 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.
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).
> 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?
Peter