C4 Engine
C4 Engine API Documentation

Renderable::SetVertexAttributeArray

Defined in:  C4Renderable.h
Sets the offset and size of a vertex attribute array.
Prototype

void SetVertexAttributeArray(int32 index, uint32 offset, int32 count);

Parameters
index The index of the vertex attribute array.
offset The offset of the first element of the attribute array, in bytes.
count The number of 32-bit components composing the attribute.
Description
The SetVertexAttributeArray function sets the offset within the vertex buffer to the first element of the vertex attribute array specified by the index parameter. The offset parameter should typically be set to the cumulative size of the vertex attributes preceding the attribute having the index given by the index parameter for a single vertex. The count parameter specifies the number of 32-bit floating-point components used by the attribute, or the number of 32-bit words in the case that the attribute is composed of integer data.
See Also

Renderable::SetVertexBuffer

Renderable::SetVertexBufferArrayFlags

Renderable::SetVertexCount