OGRE-Next: Ogre::ScaleControllerFunction Class Reference

| OGRE-Next 3.0.0 Object-Oriented Graphics Rendering Engine

Loading...
Searching...
No Matches
Ogre::ScaleControllerFunction Class Reference
Core » General

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

`#include <OgrePredefinedControllers.h>`

Inheritance diagram for Ogre::ScaleControllerFunction:
[legend]

## Public Member Functions
| ScaleControllerFunction (Real scalefactor, bool deltaInput)
| Constructor, requires a scale factor.
Real | calculate (Real source) override
| Overridden method.
Public Member Functions inherited from Ogre::ControllerFunction< Real >
| ControllerFunction (bool deltaInput)
| Constructor.
virtual | ~ControllerFunction ()

## 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 )

Constructor, requires a scale factor.

Parameters

  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.

## Member Function Documentation

## ◆ calculate()

Real Ogre::ScaleControllerFunction::calculate | ( | Real | source | ) |
| overridevirtual

Overridden method.

Implements Ogre::ControllerFunction< Real >.

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

- OgrePredefinedControllers.h