Encapsulates uniform block operations. More...
#include </home/chochlik/devel/oglplus/include/oglplus/uniform_block.hpp>
Public Member Functions | |
UniformBlock (const Program &program, String identifier) | |
Construction from a program and an identifier. More... | |
bool | ReferencedBy (ShaderType shader_type) |
Returns true if this uniform block is referenced by shader_type . More... | |
GLuint | DataSize (void) |
Returns the size of the uniform block. More... | |
Static Public Member Functions | |
static GLuint | MaxIn (ShaderType shader_type) |
Return the maximum number of uniform blocks for a shader_type . | |
Encapsulates uniform block operations.
The difference between UniformBlock and LazyUniformBlock is, that UniformBlock tries to get the location of the GLSL uniform block variable in a Program during construction and LazyUniformBlock postpones this initialization until the value is actually needed at the cost of having to internally store the identifer in a String.
Requires OpenGL 3.1 or the GL_ARB_uniform_buffer_object extension.
Construction from a program and an identifier.
|
inherited |
Returns the size of the uniform block.
References OGLPLUS_VERIFY.
|
inherited |
Returns true if this uniform block is referenced by shader_type
.
References OGLPLUS_VERIFY.