Magnum::Extensions namespace

Compile-time information about OpenGL extensions.

Each extension is a struct named hierarchically by prefix, vendor and extension name taken from list at Support state, for example Extensions::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, vendor OpenGL ES extensions are available only on OpenGL ES builds and WebGL extensions are available only on WebGL builds.

Each struct has the same public methods as the 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.