Re: [AD] al_get_opengl_version design flaw? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
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. 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?
--
Trent Gamblin