|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.g3d.Animator
com.badlogic.gdx.graphics.g3d.keyframed.KeyframeAnimator
public class KeyframeAnimator
An animation controller for keyframed animations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.Animator |
---|
Animator.WrapMode |
Field Summary | |
---|---|
static int |
sStride
|
Fields inherited from class com.badlogic.gdx.graphics.g3d.Animator |
---|
mAnimLen, mAnimPos, mCurrentAnim, mCurrentFrameIdx, mFrameDelta, mNextFrameIdx, mWrapMode |
Constructor Summary | |
---|---|
KeyframeAnimator(int numMeshes,
float sampleRate)
Constructs a new KeyframeAnimator. |
Method Summary | |
---|---|
Keyframe |
getInterpolatedKeyframe()
Get the current Keyframe . |
boolean |
hasAnimation()
Whether the controller is currently playing an animation. |
protected void |
interpolate()
Implementations should interpolate between the 'current' and 'next' frames of animation. |
protected void |
setInterpolationFrames()
Implementations should set the 'current' and 'next' frames of animation that will be interpolated. |
void |
setKeyframeDimensions(int idx,
int numVertices,
int numIndices)
Set the result (interpolated) keyframe internal array dimensions. |
void |
setNumTaggedJoints(int num)
Set the number of tagged joints for allocation |
Methods inherited from class com.badlogic.gdx.graphics.g3d.Animator |
---|
getCurrentAnimation, getCurrentWrapMode, setAnimation, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int sStride
Constructor Detail |
---|
public KeyframeAnimator(int numMeshes, float sampleRate)
numMeshes
- The number of meshes in the KeyframedModel
.sampleRate
- The sample rate used to make the KeyframeAnimation
s.Method Detail |
---|
public Keyframe getInterpolatedKeyframe()
Keyframe
.
public void setKeyframeDimensions(int idx, int numVertices, int numIndices)
idx
- The index of the mesh the keyframe represents.numVertices
- The number of vertices the mesh has.numIndices
- The number of indices the mesh has.public void setNumTaggedJoints(int num)
num
- protected void setInterpolationFrames()
Animator
setInterpolationFrames
in class Animator
protected void interpolate()
Animator
interpolate
in class Animator
public boolean hasAnimation()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |