OGRE
14.3
Object-Oriented Graphics Rendering Engine
|
ControllerValue wrapper class for AnimationState. More...
#include <OgreAnimationState.h>
Public Member Functions | |
AnimationStateControllerValue (AnimationState *targetAnimationState, bool addTime=false) | |
float | getValue (void) const override |
ControllerValue implementation. More... | |
void | setValue (float value) override |
ControllerValue implementation. More... | |
Public Member Functions inherited from Ogre::ControllerValue< float > | |
virtual | ~ControllerValue () |
Static Public Member Functions | |
static ControllerValueRealPtr | create (AnimationState *targetAnimationState, bool addTime=false) |
create an instance of this class More... | |
ControllerValue wrapper class for AnimationState.
In Azathoth and earlier, AnimationState was a ControllerValue but this actually causes memory problems since Controllers delete their values automatically when there are no further references to them, but AnimationState is deleted explicitly elsewhere so this causes double-free problems. This wrapper acts as a bridge and it is this which is destroyed automatically.
|
inline |
|
static |
create an instance of this class
targetAnimationState | |
addTime | if true, increment time instead of setting to an absolute position |
|
inlineoverridevirtual |
ControllerValue implementation.
Implements Ogre::ControllerValue< float >.
References Ogre::AnimationState::getLength(), and Ogre::AnimationState::getTimePosition().
|
inlineoverridevirtual |
ControllerValue implementation.
Implements Ogre::ControllerValue< float >.
References Ogre::AnimationState::addTime(), Ogre::AnimationState::getLength(), and Ogre::AnimationState::setTimePosition().