Docs for Version: 1.0a
Show:
Module: aexolGL

MObject class

Constructor

MObject

(
  • parent
)

Parameters:

Item Index

Methods

addChilds

(
  • mobject
)

Sets parent on MObject and unbinds current parent in RenderTree

Parameters:

  • mobject MObject

    mobject 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:

Example:

world = new Scene() gshader = new basicShader() someMaterial = new Material({}) gshader.setParent(world) someMaterial.setParent(world)