al_get_opengl_variant(3)

๐Ÿ“ฆ
version 5.2.11.3 ยท 3 versions
, in arch rolling

๐Ÿ’… 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 ๐Ÿฆ‹


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