class VBOAttributeDef

[source]


fields


VBOAttributeDef.id


VBOAttributeDef.id : integer

The location in the vertex shader layout e.g.: layout (location = 0) in vec2 aPos. optional attrib, specifies location in the vertex shader. If not specified the implementation will increment the counter starting from 0. There can be maximum 16 attributes (so id of 15 is max).

VBOAttributeDef.name


VBOAttributeDef.name : string

The name for this VBO, only used for debugging.

VBOAttributeDef.normalized


VBOAttributeDef.normalized : boolean?

(Defaults: false)

It’s possible to submit say normal without normalizing them first, normalized will make sure data is normalized.

VBOAttributeDef.size


VBOAttributeDef.size : integer?

Defaults to to 4 for VBO. The number of floats that constitute 1 element in this buffer. e.g. for the previous layout (location = 0) in vec2 aPos, it would be size = 2.

VBOAttributeDef.type


VBOAttributeDef.type : VBODataType

(Default: GL.FLOAT)

The datatype of this element.