com.jmex.model.ogrexml.anim
Class Pose

java.lang.Object
  extended by 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
 

Constructor Detail

Pose

public Pose(java.lang.String name,
            int targetMeshIndex,
            Vector3f[] offsets,
            int[] indices)
Method Detail

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 offsets
vertbuf - Vertex buffer to apply this pose to