.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "al_have_opengl_extension" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_have_opengl_extension - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include bool al_have_opengl_extension(const char *extension) \f[R] .fi .SH DESCRIPTION .PP This function is a helper to determine whether an OpenGL extension is available on the given display or not. .PP Example: .IP .nf \f[C] bool packedpixels = al_have_opengl_extension(\[dq]GL_EXT_packed_pixels\[dq]); \f[R] .fi .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.