pyGLV.GL.VertexArray

VertexArray class

The VertexArray Compoment class is the dedicated to a specific type of data container Component that of assembling, using and destroying OpenGL API vertex array and buffer objects

Based on the Composite and Iterator design patterns:

class pyGLV.GL.VertexArray.VertexArray(name=None, type=None, id=None, attributes=None, index=None, primitive=GL_TRIANGLES, usage=GL_STATIC_DRAW)[source]

A concrete VertexArray class

update()[source]

method to be subclassed for debuging purposes only, in case we need some behavioral or logic computation within te Component. This violates the ECS architecture and should be avoided.

accept(system: pyECSS.System)[source]

Accepts a class object to operate on the Component, based on the Visitor pattern.

Parameters

system ([System]) – [a System object]

init()[source]

Extra method for extra initialisation pf VertexArray Vertex array from attributes and optional index array. Vertex Attributes should be list of arrays with one row per vertex.