|
Bitmap Camera Example Scene | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--CrystalBall
This class implements the crystal ball actor, the floating eye (aka Wizard Eye), the refraction texture on the crystal ball, the image-based lighting on the eye, and the crystal ball lens (the plane object inside the crystal ball showing what the eye sees).
| Constructor Summary | |
CrystalBall(WTStage s,
WTCamera c,
WTGroup t)
Constructor |
|
| Method Summary | |
void |
destroy()
Class destructor |
void |
onLoadComplete(WTObject o)
Fired after the wizardeye object loads, so that its bone can be obtained |
void |
setBallOpacity()
Sets ball opacity based on current setting of ballOpacity. |
void |
toggleCrystalBall()
Called from the Main keyboard loop. |
void |
update(float dt)
Called in the Main render loop. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CrystalBall(WTStage s,
WTCamera c,
WTGroup t)
s - The main stagec - The main rendering camerat - The level object, which can be a WTStudio level, or an actor cast to a group. This object must be fully loaded before the constructor is called.| Method Detail |
public void destroy()
public void onLoadComplete(WTObject o)
public void setBallOpacity()
public void toggleCrystalBall()
public void update(float dt)
dt - The time in seconds since the last render
|
Bitmap Camera Example Scene | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||