class
#include <Magnum/GL/Context.h>
Extension 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::Extension(const E&) constexpr
enable_if<Implementation::IsExtension<E>::value>::type> - 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.