AttributeFormat

Data needed to represent a particular attribute for a Vertex.

Members

Variables

index
GLuint index;

OpenGL identifies each attribute by an @index

normalized
GLboolean normalized;

Does it need to be _normalized_(Clipped to a range of 0.0 - 1.0)?

pointer
GLvoid* pointer;

Offset to first appearance of this attribute in an array of Vertices, equivalently, the offset of this member in the Vertex structure

size
GLint size;

No. of components of this attribute

stride
GLsizei stride;

Space between each appearance of this attribute in an array of Vertices, equivalently, the size of each Vertex

type
GLenum type;

Data type of the components of this attribute

Meta