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

attributes

eventManager

Get the ECSSManager of the component.

glid

id

Get the ID of the component.

index

name

Get the name of the component.

parent

Get the parent of the component.

primitive

type

Get the type of the component.

usage

worldManager

Get Component’s ECSSManager