nCine::GfxCapabilities class

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

GfxCapabilities()

Public functions

auto GetApiVersion(ApiVersion version) const -> std::int32_t override
Returns the specified OpenGL version component.
auto GetInfoStrings() const -> const InfoStrings& override
Returns the OpenGL information strings.
auto GetValue(IntValues valueName) const -> std::int32_t override
Returns a runtime OpenGL integer value.
auto GetArrayValue(ArrayIntValues arrayValueName, std::uint32_t index) const -> std::int32_t override
Returns an element of a runtime OpenGL integer array value.
auto HasExtension(Extensions extensionName) const -> bool override
Returns true if the specified OpenGL extension is available.