Class GLUniformBuffer¶
Defined in File glutil.h
Page Contents
Class Documentation¶
-
class
GLUniformBuffer
¶ Helper class for creating OpenGL Uniform Buffer objects.
Public Functions
-
void
init
()¶ Create a new uniform buffer.
-
void
free
()¶ Release underlying OpenGL object.
-
void
bind
(int index)¶ Bind the uniform buffer to a specific binding point.
-
void
release
()¶ Release/unbind the uniform buffer.
-
void
update
(const std::vector<uint8_t> &data)¶ Update content on the GPU using data.
-
int
getBindingPoint
() const¶ Return the binding point of this uniform buffer.
-
void