|
Bitmap Camera Example Scene | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Water
Implements the water surface, and the bitmap camera for generating the reflection image
| Constructor Summary | |
Water(WTStage s,
WTCamera c,
WTGroup t)
Constructor |
|
| Method Summary | |
void |
destroy()
Class destructor |
void |
onLoadComplete(WTObject o)
Once the mesh file has loaded, onLoadComplete constructs the water model from the mesh file, and builds out the vector of vertex adjacency vectors, used to track ripple paths. |
void |
splash(int vertIndex)
Generates the original wave in the pond. |
void |
update(float deltaTime)
Called from 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 Water(WTStage s,
WTCamera c,
WTGroup t)
s - The main stagec - The main rendering camerat - The level, 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 splash(int vertIndex)
public void update(float deltaTime)
deltaTime - 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 | ||||||