class
#include <nCine/Graphics/GL/GLUniform.h>
GLUniform Stores information about an active OpenGL shader uniform.
Its only purpose is to initialize a GLUniformCache
class.
Public static variables
-
static std::
uint32_t MaxNameLength constexpr
Constructors, destructors, conversion operators
Public functions
- auto index() const -> GLuint
- auto blockIndex() const -> GLint
- auto location() const -> GLint
- auto size() const -> GLint
- auto type() const -> GLenum
- auto offset() const -> GLint
- auto name() const -> const char*
- auto basicType() const -> GLenum
-
auto numComponents() const -> std::
uint32_t -
auto memorySize() const -> std::
uint32_t - auto hasReservedPrefix() const -> bool
- Returns true if the uniform name starts with
gl_