OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
Specialised KeyFrame which stores absolute vertex positions for a complete buffer, designed to be interpolated with other keys in the same track. More...
#include <OgreKeyFrame.h>
Public Member Functions | |
VertexMorphKeyFrame (const AnimationTrack *parent, Real time) | |
Default constructor, you should not call this but use AnimationTrack::createKeyFrame instead. More... | |
~VertexMorphKeyFrame () override | |
KeyFrame * | _clone (AnimationTrack *newParent) const override |
Clone a keyframe (internal use only) More... | |
const HardwareVertexBufferSharedPtr & | getVertexBuffer () const |
Gets the vertex buffer containing positions for this keyframe. More... | |
void | setVertexBuffer (const HardwareVertexBufferSharedPtr &buf) |
Sets the vertex buffer containing the source positions for this keyframe. More... | |
Public Member Functions inherited from Ogre::v1::KeyFrame | |
KeyFrame (const AnimationTrack *parent, Real time) | |
Default constructor, you should not call this but use AnimationTrack::createKeyFrame instead. More... | |
virtual | ~KeyFrame () |
Real | getTime () const |
Gets the time of this keyframe in the animation sequence. More... | |
Specialised KeyFrame which stores absolute vertex positions for a complete buffer, designed to be interpolated with other keys in the same track.
Ogre::v1::VertexMorphKeyFrame::VertexMorphKeyFrame | ( | const AnimationTrack * | parent, |
Real | time | ||
) |
Default constructor, you should not call this but use AnimationTrack::createKeyFrame instead.
|
inlineoverride |
|
overridevirtual |
Clone a keyframe (internal use only)
Reimplemented from Ogre::v1::KeyFrame.
const HardwareVertexBufferSharedPtr& Ogre::v1::VertexMorphKeyFrame::getVertexBuffer | ( | ) | const |
Gets the vertex buffer containing positions for this keyframe.
Referenced by Ogre::VerticesRemapInfo::performAnimationTrackRemap().
void Ogre::v1::VertexMorphKeyFrame::setVertexBuffer | ( | const HardwareVertexBufferSharedPtr & | buf | ) |
Sets the vertex buffer containing the source positions for this keyframe.
buf | Vertex buffer link; will not be modified so can be shared read-only data |
Referenced by Ogre::VerticesRemapInfo::performAnimationTrackRemap().