Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.scenegraph.GLNode
Extends/Implements : un.engine.scenegraph.DefaultSceneNode
Subclasses : -

author  Johann Sorel


Variables : -
Functions : GLNode, GLNode, getBBox, getBBox, getId, setId, getName, setName, setVisible, isVisible, getUpdaters, getRenderers, calculateNodeToView, calculateMVP, dispose, thisToChars



public void GLNode ()

public void GLNode (CoordinateSystem cs)


Get this node and children data bounding box in this node coordinate system.
BBox is relative to this node transform.
return  BBox , can be null if no data.
public BBox getBBox ()


Get this node and children data bounding box in given coordinate system.
BBox is relative to this node transform.
param  cs not null
return  BBox , can be null if no data.
public BBox getBBox (CoordinateSystem cs)


Get node id
return  int
public int getId ()


Set node id.
param  id int
public void setId (int id)


Get node name.
return  Chars, can be null.
public Chars getName ()


Set node name.
param  name , can be null.
public void setName (Chars name)


Indicate if the mesh is visible.
Default is true.
param  visible
public void setVisible (boolean visible)

public boolean isVisible ()


Get updaters of this node.
see  un.engine.opengl.animation.Updater
return  Sequence of Updater, never null.
public Sequence getUpdaters ()


Get renderers of this node.
see  un.engine.opengl.renderer.Renderer
return  Sequence of Renderer, never null.
public Sequence getRenderers ()


Calculate the Node to Camera coordinate system matrix.
param  camera
return  Matrix4 never null
public Matrix calculateNodeToView (Camera camera)


Calculate transformation matrice relative to the camera,
including view and projection transforms.
param  camera
return  Matrix44
public Matrix calculateMVP (CameraMono camera)

public void dispose (GLProcessContext context)

public Chars thisToChars ()