.\" Automatically generated by Pandoc 3.1.12.1 .\" .TH "al_have_opengl_extension" "3" "" "Allegro reference manual" "" .SH NAME al_have_opengl_extension \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] bool al_have_opengl_extension(const char *extension) .EE .SH DESCRIPTION This function is a helper to determine whether an OpenGL extension is available on the given display or not. .PP Example: .IP .EX bool packedpixels = al_have_opengl_extension(\[dq]GL_EXT_packed_pixels\[dq]); .EE .PP If \f[I]packedpixels\f[R] is true then you can safely use the constants related to the packed pixels extension. .PP Returns true if the extension is available; false otherwise.