.\" Automatically generated by Pandoc 2.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[] .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("GL_EXT_packed_pixels"); \f[] .fi .PP If \f[I]packedpixels\f[] 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.