1al_get_opengl_version(3) al_get_opengl_version(3)
2
3
4
6 al_get_opengl_version - Allegro 5 API
7
9 #include <allegro5/allegro_opengl.h>
10
11 uint32_t al_get_opengl_version(void)
12
14 Returns the OpenGL or OpenGL ES version number of the client (the com‐
15 puter the program is running on), for the current display. “1.0” is
16 returned as 0x01000000, “1.2.1” is returned as 0x01020100, and “1.2.2”
17 as 0x01020200, etc.
18
19 A valid OpenGL context must exist for this function to work, which
20 means you may not call it before al_create_display(3).
21
23 al_get_opengl_variant(3)
24
25
26
27Allegro reference manual al_get_opengl_version(3)