create_attribute Function

Defined in pyglet.graphics.vertexattribute

create_attribute(format)

Create a vertex attribute description from a format string.

The initial stride and offset of the attribute will be 0.

Parameters:format (str) – Attribute format string. See the module summary for details.
Return type:AbstractAttribute

Previous topic

VertexAttribute Class

Next topic

interleave_attributes Function