.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .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.