al_get_opengl_version
uint32_t al_get_opengl_version(void)
Introduced in 5.0.0
Returns the OpenGL or OpenGL ES version number of the client (the computer the program is running on), for the current display. "1.0" is returned as 0x01000000, "1.2.1" is returned as 0x01020100, and "1.2.2" as 0x01020200, etc.
A valid OpenGL context must exist for this function to work, which means you may not call it before al_create_display.
See also: al_get_opengl_variant
Most helpful discussions:
- ALLEGRO_OPENGL_MAJOR_VERSION and ALLEGRO_OPENGL_MINOR_VERSION
- Setup OpenGL version
- Question about ALLEGRO_FULLSCREEN_WINDOW
- Learn OpenGL
- Drawing onto bitmap crashes when resizing the display
- ALLEGRO 5 - Bitmap Corruption after writing to source image
- [Allegro 5.0.8] glGenBuffers not initialized? (Allegro noob)
- glGetStringi and GL_NUM_EXTENSIONS Errors on Build
- Allegro 5 + OpenGL 3.x + GLSL
- Allegro 5 + OpenGL setup (-1)