OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
Predefined controller function which simply scales an input to an output value. More...
#include <OgrePredefinedControllers.h>
Public Member Functions | |
ScaleControllerFunction (Real scalefactor, bool deltaInput) | |
Real | calculate (Real source) |
Public Member Functions inherited from Ogre::ControllerFunction< Real > | |
ControllerFunction (bool deltaInput) | |
Constructor. More... | |
virtual | ~ControllerFunction () |
Static Public Member Functions | |
static ControllerFunctionRealPtr | create (Real scalefactor, bool deltaInput=false) |
Constructor, requires a scale factor. More... | |
Predefined controller function which simply scales an input to an output value.
Ogre::ScaleControllerFunction::ScaleControllerFunction | ( | Real | scalefactor, |
bool | deltaInput | ||
) |
|
inlinestatic |
Constructor, requires a scale factor.
scalefactor | The multiplier applied to the input to produce the output. |
deltaInput | If true, signifies that the input will be a delta value such that the function should add it to an internal counter before calculating the output. |
Implements Ogre::ControllerFunction< Real >.