This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

Magnum::Extensions namespace

Compile-time information about OpenGL extensions.

Each extension is struct named hierarchically by prefix, vendor and extension name taken from list at OpenGL support state, for example GL::ARB::texture_storage. Note that desktop extensions are available only on desktop build, OpenGL ES 2.0 extensions which are part of ES 3.0 are available only on OpenGL ES 2.0 build and vendor OpenGL ES extensions are available only on OpenGL ES builds.

Each struct has the same public methods as Extension class (requiredVersion(), coreVersion() and string()), but these structs are better suited for compile-time decisions rather than Extension instances. See Context::isExtensionSupported() for example usage.

This library is built by default. To use this library with CMake, you need to find the Magnum package and link to the Magnum::Magnum target:

find_package(Magnum REQUIRED)

# ...
target_link_libraries(your-app Magnum::Magnum)

See Downloading and building and Usage with CMake for more information.