OGRE 14.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::ScaleControllerFunction Class Reference

Predefined controller function which simply scales an input to an output value. More...

#include <OgrePredefinedControllers.h>

+ Inheritance diagram for Ogre::ScaleControllerFunction:

Public Member Functions

 ScaleControllerFunction (Real scalefactor, bool deltaInput)
 
float calculate (float source) override
 
- Public Member Functions inherited from Ogre::ControllerFunction< float >
 ControllerFunction (bool deltaInput)
 Constructor.
 
virtual ~ControllerFunction ()
 

Static Public Member Functions

static ControllerFunctionRealPtr create (Real scalefactor, bool deltaInput=false)
 Constructor, requires a scale factor.
 

Detailed Description

Predefined controller function which simply scales an input to an output value.

Constructor & Destructor Documentation

◆ ScaleControllerFunction()

Ogre::ScaleControllerFunction::ScaleControllerFunction ( Real  scalefactor,
bool  deltaInput 
)

Member Function Documentation

◆ create()

static ControllerFunctionRealPtr Ogre::ScaleControllerFunction::create ( Real  scalefactor,
bool  deltaInput = false 
)
inlinestatic

Constructor, requires a scale factor.

Parameters
scalefactorThe multiplier applied to the input to produce the output.
deltaInputIf 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.

◆ calculate()

float Ogre::ScaleControllerFunction::calculate ( float  source)
overridevirtual

The documentation for this class was generated from the following file: