|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jinx.video.SceneGraph.SceneGraphElement
public static class SceneGraph.SceneGraphElement
SceneGraphElement allows for the fixed translation, rotation and scaling
of other Visible objects.
API Stability: Stable.
| Constructor Summary | |
|---|---|
SceneGraph.SceneGraphElement(Visible drawable)
Constructs a SceneGraphElement for drawable. |
|
| Method Summary | |
|---|---|
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)
|
float[] |
getPosition()
Provides the translation vector. |
float[] |
getRotation()
Provides the rotation vector. |
float[] |
getScale()
Provides the scaling vector. |
Visible |
getVisible()
Provides the Visible that this SceneGraphElement is attached to. |
void |
init(Context opt)
Initializes this Visible, preparing it for rendering. |
void |
setPosition(float[] position)
Sets the translation vector. |
void |
setRotation(float[] rotation)
Sets the rotation vector. |
void |
setScale(float[] scale)
Sets the scaling vector. |
void |
setVisible(Visible drawable)
Sets the Visible that this SceneGraphElement will function for. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SceneGraph.SceneGraphElement(Visible drawable)
drawable - the Visible to encapsulate.| 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 void setVisible(Visible drawable)
drawable - the Visible to encapsulate.public Visible getVisible()
public void setPosition(float[] position)
position - the vector.public float[] getPosition()
public void setRotation(float[] rotation)
rotation - the vector.public float[] getRotation()
public void setScale(float[] scale)
scale - the vector.public float[] getScale()
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 MultipassVisible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||