GfxCapabilities class
#include <nCine/Graphics/GfxCapabilities.h>
Stores and retrieves runtime OpenGL device capabilities.
Concrete IGfxCapabilities implementation that queries the active OpenGL context once at startup and caches the version numbers, information strings, integer limits and extension availability flags so that the rest of the renderer can look them up without further driver calls.
Base classes
- class IGfxCapabilities
- Interface to query runtime OpenGL device capabilities.
Constructors, destructors, conversion operators
Public functions
-
auto GetGLVersion(GLVersion version) const -> std::
int32_t override - Returns the specified OpenGL version component.
- auto GetGLInfoStrings() const -> const GLInfoStrings& override
- Returns the OpenGL information strings.
-
auto GetValue(GLIntValues valueName) const -> std::
int32_t override - Returns a runtime OpenGL integer value.
-
auto GetArrayValue(GLArrayIntValues arrayValueName,
std::
uint32_t index) const -> std:: int32_t override - Returns an element of a runtime OpenGL integer array value.
- auto HasExtension(GLExtensions extensionName) const -> bool override
- Returns
trueif the specified OpenGL extension is available.