Attribute

Vertex attribute storage class. For use in meshes

Attribute will be used like this, when there is more then 1 attribute presented

glVertexAttribPointer(location, elementNum, elementType, normalized, elementNum*elementSize, cast(void*)offset);

or like this, when there is only one attribute in the mesh

glVertexAttribPointer(location, elementNum, elementType, normalized, 0, null);

Members

Variables

elementNum
uint elementNum;

number of

elementSize
uint elementSize;

in bytes

elementType
uint elementType;

GL_FLOAT etc

location
uint location;
Undocumented in source.
normalized
bool normalized;
Undocumented in source.
offset
uint offset;

offset from the begining of buffer

Meta