md3.md3view
Class MD3GLModelCachingDrawModelVisitor
java.lang.Object
|
+--md3.md3model.MD3ModelVisitor
|
+--md3.md3view.MD3GLModelVisitor
|
+--md3.md3view.MD3GLModelDrawModelVisitor
|
+--md3.md3view.MD3GLModelCachingDrawModelVisitor
- public class MD3GLModelCachingDrawModelVisitor
- extends MD3GLModelDrawModelVisitor
Render class which caches interpolated data.
- Author:
- Erwin Vervaet (erwin@cs.kuleuven.ac.be)
Method Summary |
protected Vec3[] |
interpolateMeshFrame(Vec3[] currMeshFrame,
Vec3[] nextMeshFrame,
float frac)
Interpolate a mesh animation frame between 2 given mesh animation frames. |
protected float[] |
interpolateTransformation(MD3Tag currFrameTag,
MD3Tag nextFrameTag,
float frac)
Interpolate an OpenGL transformation array between the transformations of 2 given tags. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MD3GLModelCachingDrawModelVisitor
public MD3GLModelCachingDrawModelVisitor(MD3GLCanvas md3canvas)
interpolateMeshFrame
protected Vec3[] interpolateMeshFrame(Vec3[] currMeshFrame,
Vec3[] nextMeshFrame,
float frac)
- Description copied from class: MD3GLModelDrawModelVisitor
Interpolate a mesh animation frame between 2 given mesh animation frames.
- Overrides:
- interpolateMeshFrame in class MD3GLModelDrawModelVisitor
- Tags copied from class: MD3GLModelDrawModelVisitor
- Parameters:
currMeshFrame
- Start mesh animation frame.nextMeshFrame
- End mesh animation frame.frac
- Interpolation fraction, in [0,1].
interpolateTransformation
protected float[] interpolateTransformation(MD3Tag currFrameTag,
MD3Tag nextFrameTag,
float frac)
- Description copied from class: MD3GLModelDrawModelVisitor
Interpolate an OpenGL transformation array between the transformations of 2 given tags.
- Overrides:
- interpolateTransformation in class MD3GLModelDrawModelVisitor
- Tags copied from class: MD3GLModelDrawModelVisitor
- Parameters:
currFrameTag
- Tag with start transformation.nextFrameTag
- Tag with end transformation.frac
- Interpolation fraction, in [0,1].- Returns:
- An OpenGL compatible transformation array of length 16.