Magnum::GL::Extension class

Run-time information about OpenGL extension.

Encapsulates runtime information about OpenGL extension, such as name string, minimal required OpenGL version and version in which the extension was adopted to core.

See also Extensions namespace, which contain compile-time information about OpenGL extensions.

Public static functions

static auto extensions(Version version) -> Containers::ArrayView<const Extension>
All extensions for given OpenGL version.

Constructors, destructors, conversion operators

template<class E, class = typename std::enable_if<Implementation::IsExtension<E>::value>::type>
Extension(const E&) constexpr
Construct from a compile-time extension.

Public functions

auto index() const -> std::size_t constexpr
Internal unique extension index.
auto requiredVersion() const -> Version constexpr
Minimal version required by this extension.
auto coreVersion() const -> Version constexpr
Version in which this extension was adopted to core.
auto string() const -> const char* constexpr
Extension string.