Elements.pyECSS.Component.RenderMesh¶
- class Elements.pyECSS.Component.RenderMesh(name=None, type=None, id=None, vertex_attributes=None, vertex_index=None)[source]¶
A concrete RenderMesh class
Accepts a dedicated RenderSystem to initiate rendering of the RenderMesh, using its vertex attributes (property)
- __init__(name=None, type=None, id=None, vertex_attributes=None, vertex_index=None)[source]¶
Initialize the generic RenderMesh component with the vertex attribute arrays this is the generic place to store all vertex attributes (vertices, colors, normals, bone weights etc.) specifically for OpenGL buffers, these will be passed to a VertexArray by a RenderGLShaderSystem then other RenderSystems could use that vertex attribute information for their rendering, e.g. a RenderRayTracingSystem for backwards rayTracing, a RenderPathTracingSystem for pathTracing etc.
Methods
__init__([name, type, id, …])Initialize the generic RenderMesh component with the vertex attribute arrays this is the generic place to store all vertex attributes (vertices, colors, normals, bone weights etc.) specifically for OpenGL buffers, these will be passed to a VertexArray by a RenderGLShaderSystem then other RenderSystems could use that vertex attribute information for their rendering, e.g.
accept(system[, event])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.
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()abstract method to be subclassed for extra initialisation
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
eventManagerGet the ECSSManager of the component.
idGet the ID of the component.
nameGet the name of the component.
parentGet the parent of the component.
typeGet the type of the component.
vertex_attributesvertex_indexworldManagerGet Component’s ECSSManager