Elements.pyGLV.GL.VertexArray.VertexArray¶
- class Elements.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
- __init__(name=None, type=None, id=None, attributes=None, index=None, primitive=GL_TRIANGLES, usage=GL_STATIC_DRAW)[source]¶
Initializes a VertexArray class
Methods
__init__([name, type, id, attributes, …])Initializes a VertexArray class
accept(system)Accepts a class object to operate on the Component, based on the Visitor pattern.
add(object)Add a Component object to the children of this Component.
draw()getChild(index)Get the child Component object at the given index.
getClassName()Get the name of this Component class.
getNumberOfChildren()Get the number of child Component objects for this Component.
init()Extra method for extra initialisation pf VertexArray Vertex array from attributes and optional index array.
print()prints out name, type, id, parent of this Component
remove(object)Removes a Component object to the children of this Component.
update()method to be subclassed for debuging purposes only, in case we need some behavioral or logic computation within the Component.
Attributes
attributeseventManagerGet the ECSSManager of the component.
glididGet the ID of the component.
indexnameGet the name of the component.
parentGet the parent of the component.
primitivetypeGet the type of the component.
usageworldManagerGet Component’s ECSSManager