class
#include <nCine/Graphics/IGfxCapabilities.h>
IGfxCapabilities Interface to query runtime OpenGL device capabilities.
Derived classes
- class GfxCapabilities
- Stores and retrieves runtime OpenGL device capabilities.
Public types
- struct GlInfoStrings
- OpenGL information strings.
- enum class GLVersion { Major, Minor, Release }
- OpenGL version components.
- enum class GLIntValues { MAX_TEXTURE_SIZE = 0, MAX_TEXTURE_IMAGE_UNITS, MAX_UNIFORM_BLOCK_SIZE, MAX_UNIFORM_BLOCK_SIZE_NORMALIZED, MAX_UNIFORM_BUFFER_BINDINGS, MAX_VERTEX_UNIFORM_BLOCKS, MAX_FRAGMENT_UNIFORM_BLOCKS, UNIFORM_BUFFER_OFFSET_ALIGNMENT, MAX_VERTEX_ATTRIB_STRIDE, MAX_COLOR_ATTACHMENTS, NUM_PROGRAM_BINARY_FORMATS, Count }
- OpenGL queryable runtime integer values.
- enum class GLArrayIntValues { PROGRAM_BINARY_FORMATS = 0, Count }
- OpenGL queryable runtime integer array values.
- enum class GLExtensions { KHR_DEBUG = 0, ARB_TEXTURE_STORAGE, ARB_GET_PROGRAM_BINARY, EXT_TEXTURE_COMPRESSION_S3TC, AMD_COMPRESSED_ATC_TEXTURE, IMG_TEXTURE_COMPRESSION_PVRTC, KHR_TEXTURE_COMPRESSION_ASTC_LDR, Count }
- OpenGL queryable extensions.
Constructors, destructors, conversion operators
- ~IGfxCapabilities() pure virtual
Public functions
- auto glVersion(GLVersion version) const -> int pure virtual
- Returns the OpenGL version numbers.
- auto glInfoStrings() const -> const GlInfoStrings& pure virtual
- Returns the OpenGL information strings structure.
- auto value(GLIntValues valueName) const -> int pure virtual
- Returns the value of a runtime OpenGL integer value.
- auto arrayValue(GLArrayIntValues arrayValueName, unsigned int index) const -> int pure virtual
- Returns the value of a runtime OpenGL integer value from an array.
- auto hasExtension(GLExtensions extensionName) const -> bool pure virtual
- Returns true if the specified OpenGL extension is available.