com.jmex.model.ogrexml.anim
Class Pose
java.lang.Object
com.jmex.model.ogrexml.anim.Pose
- All Implemented Interfaces:
- java.io.Serializable
public final class Pose
- extends java.lang.Object
- implements java.io.Serializable
A pose is a list of offsets that say where a mesh verticles should be for this pose.
- See Also:
- Serialized Form
Constructor Summary |
Pose(java.lang.String name,
int targetMeshIndex,
Vector3f[] offsets,
int[] indices)
|
Method Summary |
void |
apply(float blend,
java.nio.FloatBuffer vertbuf)
Applies the offsets of this pose to the vertex buffer given by the blend factor. |
int |
getTargetMeshIndex()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pose
public Pose(java.lang.String name,
int targetMeshIndex,
Vector3f[] offsets,
int[] indices)
getTargetMeshIndex
public int getTargetMeshIndex()
apply
public void apply(float blend,
java.nio.FloatBuffer vertbuf)
- Applies the offsets of this pose to the vertex buffer given by the blend factor.
- Parameters:
blend
- Blend factor, 0 = no change to vert buf, 1 = apply full offsetsvertbuf
- Vertex buffer to apply this pose to