|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.model.animation.Animation
public class Animation
This class represents an animation of a md2 model
| Constructor Summary | |
|---|---|
Animation()
Creates a new Animation object |
|
| Method Summary | |
|---|---|
void |
addAnimFrame(AbstractMesh frame,
long duration)
Adds a frame to the animation |
AnimationFrame |
getAnimFrame(int index)
Returns the animation frame with the specified index in the animation |
java.util.ArrayList<AnimationFrame> |
getAnimFrames()
Returns the ArrayList of animation frames that form the animation |
AnimationFrame |
getCurrentFrame()
Returns the current frame of the animation |
void |
play(javax.media.opengl.GL gl)
Runs the current animation |
void |
update(long elapsedTime)
Updates the animation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Animation()
| Method Detail |
|---|
public void addAnimFrame(AbstractMesh frame,
long duration)
frame - frame to add to the animationduration - time in miliseconds this frame shall show uppublic AnimationFrame getAnimFrame(int index)
index - index of the animation's frame
public AnimationFrame getCurrentFrame()
public java.util.ArrayList<AnimationFrame> getAnimFrames()
public void play(javax.media.opengl.GL gl)
gl - public void update(long elapsedTime)
elapsedTime - time between two frames
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||