OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Predefined controller value for setting a single floating- point value in a constant parameter of a vertex or fragment program. More...
#include <OgrePredefinedControllers.h>
Public Member Functions | |
FloatGpuParameterControllerValue (const GpuProgramParametersSharedPtr ¶ms, size_t index) | |
float | getValue (void) const override |
void | setValue (float value) override |
Public Member Functions inherited from Ogre::ControllerValue< float > | |
virtual | ~ControllerValue () |
Static Public Member Functions | |
static ControllerValueRealPtr | create (const GpuProgramParametersSharedPtr ¶ms, size_t index) |
Constructor. | |
Predefined controller value for setting a single floating- point value in a constant parameter of a vertex or fragment program.
Any value is accepted, it is propagated into the 'x' component of the constant register identified by the index. If you need to use named parameters, retrieve the index from the param object before setting this controller up.
Ogre::FloatGpuParameterControllerValue::FloatGpuParameterControllerValue | ( | const GpuProgramParametersSharedPtr & | params, |
size_t | index | ||
) |
|
inlinestatic |
Constructor.
params | The parameters object to access |
index | The index of the parameter to be set |
Implements Ogre::ControllerValue< float >.
Implements Ogre::ControllerValue< float >.