|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jinx.video.SceneGraph
public class SceneGraph
SceneGraph allows the use of multiple Visibles within the same Renderer.
API Stability: Stable.
| Nested Class Summary | |
|---|---|
static class |
SceneGraph.SceneGraphElement
SceneGraphElement allows for the fixed translation, rotation and scaling of other Visible objects. |
| Constructor Summary | |
|---|---|
SceneGraph()
Constructs a new SceneGraph. |
|
| Method Summary | |
|---|---|
boolean |
add(Visible d)
Adds a Visible to the scene. |
void |
clear()
Wipes all Visibles from the scene. |
boolean |
contains(Visible d)
Provides the means to check if the given Visible is already in the scene. |
void |
deinit(Context opt)
Deinitializes this Visible, disposing of any resources that it may be using. |
void |
draw(Context opt)
Renders this Visible to glDrawable. |
void |
drawPass(Context opt,
Pass pass)
|
void |
init(Context opt)
Initializes this Visible, preparing it for rendering. |
boolean |
isEmpty()
Provides the means to check if the scene is empty or not. |
java.util.Iterator |
iterator()
|
protected void |
predraw(Visible v)
Does nothing, but can be overriden to perform operations on Visible objects before they're drawn. |
boolean |
remove(Visible d)
Removes a Visible from the scene. |
int |
size()
Provides the number of Visibles in the scene. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SceneGraph()
| Method Detail |
|---|
public void init(Context opt)
Visible
init in interface Visibleopt - describes the rendering options that are being used.public void deinit(Context opt)
Visible
deinit in interface Visibleopt - describes the rendering options that are being used.public boolean add(Visible d)
d - the Visible.
public boolean remove(Visible d)
d - the Visible.
public boolean contains(Visible d)
d - the Visible.
public void clear()
public boolean isEmpty()
public int size()
protected void predraw(Visible v)
v - the Visible to manipulate.public void draw(Context opt)
Visible
draw in interface Visibleopt - describes the rendering options that are being used.
public void drawPass(Context opt,
Pass pass)
drawPass in interface MultipassVisiblepublic java.util.Iterator iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||