|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.DemoRotator
public class DemoRotator
Simple Visible that just rotates another Visible for the purpose of seeing
every angle. It rotates the encapsulated Visible by the rotation vector for
every second that passes; each frame interpolates based on the amount of time
that has passed since the draw method was first called.
API Stability: Stable.
Constructor Summary | |
---|---|
DemoRotator(Visible drawable)
Constructs a DemoRotator for the given Visible. |
Method Summary | |
---|---|
void |
deinit(Context opt)
Deinitializes this DemoRotator's children. |
void |
draw(Context opt)
Renders this Visible to glDrawable. |
void |
drawPass(Context opt,
Pass pass)
|
float[] |
getRotation()
Provides the rotation constant. |
Visible |
getVisible()
Provides the Visible that will be used in rendering. |
void |
init(Context opt)
Initializes this DemoRotator's children. |
void |
setRotation(float[] rotation)
Sets the rotation constant that is added after each frame is rendered. |
void |
setVisible(Visible drawable)
Sets the Visible used in rendering. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DemoRotator(Visible drawable)
drawable
- the Visible.Method Detail |
---|
public void setRotation(float[] rotation)
rotation
- the rotation vector.public float[] getRotation()
public void setVisible(Visible drawable)
drawable
- the Visible.public Visible getVisible()
public void init(Context opt)
init
in interface Visible
opt
- describes the rendering options that are being used.public void deinit(Context opt)
deinit
in interface Visible
opt
- describes the rendering options that are being used.public void draw(Context opt)
Visible
draw
in interface Visible
opt
- 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 |