Package gaiasky.scenegraph
Class SceneGraph
java.lang.Object
gaiasky.scenegraph.AbstractSceneGraph
gaiasky.scenegraph.SceneGraph
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,ISceneGraph
Implementation of a 3D scene graph.
-
Field Summary
Fields inherited from class gaiasky.scenegraph.AbstractSceneGraph
hasOctree, hasStarGroup, hipMap, objectsPerThread, root, stringToNode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
update(ITimeFrameProvider time, ICamera camera)
Updates the nodes of this scene graphMethods inherited from class gaiasky.scenegraph.AbstractSceneGraph
addNodeAuxiliaryInfo, addToIndex, containsNode, findFocus, getFocusableObjects, getNObjects, getNode, getNodes, getObjectPosition, getRoot, getSize, getStarMap, initialize, insert, matchingFocusableNodes, matchingFocusableNodes, remove, removeNodeAuxiliaryInfo
-
Constructor Details
-
SceneGraph
public SceneGraph()
-
-
Method Details
-
update
Description copied from interface:ISceneGraph
Updates the nodes of this scene graph- Parameters:
time
- The current time providercamera
- The current camera
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classAbstractSceneGraph
-