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:
https://github.com/faif/python-patterns/blob/master/patterns/structural/composite.py
https://github.com/faif/python-patterns/blob/master/patterns/behavioral/iterator.py
- 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.