MObject Class
Module: aexolGL
MObject class
Constructor
Methods
addChilds
(
-
mobject
Sets parent on MObject and unbinds current parent in RenderTree
Parameters:
-
mobjectMObjectmobject object to add as a child to RenderTree
remove
()
Removes MObject from RenderTree
setParent
(
-
parent
Sets parent on MObject and unbinds current parent in RenderTree. Usually this is done inside GameObject, but you have also possibility to construct RenderTree by yourself.
Parameters:
-
parentMObjectparent object
Example:
world = new Scene() gshader = new basicShader() someMaterial = new Material({}) gshader.setParent(world) someMaterial.setParent(world)
Docs for Version: 1.0a