class
RBufferA buffer class that handles generating and binding OpenGL buffers.
Contents
Constructors, destructors, conversion operators
Public functions
- void bindBuffer() const
- Binds this buffer.
- void unbindBuffer() const
- Unbinds buffer.
- auto getElementCount() -> GLuint
- Gets number of elements in this buffer.
Function documentation
Rubeus:: GraphicComponents:: RBuffer:: RBuffer(GLfloat* data,
GLsizei count,
GLuint elementCount)
Constructor. Generates a buffer object and applies its layout.
Parameters | |
---|---|
data in/out | If non-null, the data. |
count | Number of total units of data values. |
elementCount | Number of elements. |
GLuint Rubeus:: GraphicComponents:: RBuffer:: getElementCount()
Gets number of elements in this buffer.
Returns | The element count. |
---|