al_get_opengl_variant(3)
๐ NAME ๐
al_get_opengl_variant โ Allegro 5 API โจ โ coming at you straight from the Library Functions Manual, bestie ๐ซถ
โจ SYNOPSIS โจ
#include <allegro5/allegro_opengl.h>
int al_get_opengl_variant(void)
๐ DESCRIPTION ๐
Okay so bestie, this function returns the variant or type of OpenGL used on the running platform. No cap. ๐ฅ๏ธโจ
And the iconic part? It can be called before creating a display or setting properties for new displays. So yes, you can vibe-check your OpenGL situation early. ๐
Possible values are:
ALLEGRO_DESKTOP_OPENGLโ regular OpenGL as seen on desktop/laptop computers. ๐ฅ๏ธ๐ธALLEGRO_OPENGL_ESโ trimmed down version of OpenGL used on many small consumer electronic devices such as handheld (and sometimes full size) consoles. ๐ฎ๐
๐ฆ SEE ALSO ๐ฆ
al_get_opengl_version(3)๐โจ
that's the whole page, bestie ๐ from the Allegro reference manual, footer-tagged al_get_opengl_variant(3) โ and there's no date line filled in here, so I'm not inventing one ๐๐ซถ
๐ฆ where this page comes from
- arch rolling: allegro 5.2.11.3-2 ยท Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms