![]() |
CUGL 3.0
Cornell University Game Library
|
#include <CUVertexBuffer.h>
Public Attributes | |
GLint | size |
GLenum | type |
GLboolean | norm |
GLsizeiptr | offset |
A data type for keeping track of attribute data.
This class is necessary since we are allowing the vertex buffer to specify attributes before hooking it up to the shader. This type is used to initialize the attribute hooks as soon as the shader is attached.
GLboolean cugl::graphics::VertexBuffer::AttribData::norm |
Whether the attribute is normalized (floating points only)
GLsizeiptr cugl::graphics::VertexBuffer::AttribData::offset |
The offset of the attribute in the vertex buffer
GLint cugl::graphics::VertexBuffer::AttribData::size |
The attribute size
GLenum cugl::graphics::VertexBuffer::AttribData::type |
The attribute type (as specified in OpenGL)