.\" Automatically generated by Pandoc 3.1.12.1 .\" .TH "al_get_opengl_version" "3" "" "Allegro reference manual" "" .SH NAME al_get_opengl_version \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] uint32_t al_get_opengl_version(void) .EE .SH DESCRIPTION Returns the OpenGL or OpenGL ES version number of the client (the computer the program is running on), for the current display. \[lq]1.0\[rq] is returned as 0x01000000, \[lq]1.2.1\[rq] is returned as 0x01020100, and \[lq]1.2.2\[rq] as 0x01020200, etc. .PP A valid OpenGL context must exist for this function to work, which means you may \f[I]not\f[R] call it before al_create_display(3). .SH SEE ALSO al_get_opengl_variant(3)