serialize_attributes Function

Defined in pyglet.graphics.vertexattribute

serialize_attributes(count, attributes)

Serialize attribute offsets.

Adjust the offsets of the given attributes so that they are packed serially against each other for count vertices.

Parameters:
  • count (int) – Number of vertices.
  • attributes (sequence of AbstractAttribute) – Attributes to serialize in-place.

Previous topic

interleave_attributes Function

Next topic

pyglet.graphics.vertexbuffer