# Ogre::TextureFrameControllerValue Class Reference

Predefined controller value for getting / setting the frame number of a texture layer. More...

`#include <OgrePredefinedControllers.h>`

Inheritance diagram for Ogre::TextureFrameControllerValue:

List of all members.

## Public Member Functions

| TextureFrameControllerValue (TextureUnitState *t)
Real | getValue (void) const
| Gets the frame number as a parametric value in the range [0,1].
void | setValue (Real value)
| Sets the frame number as a parametric value in the range [0,1]; the actual frame number is value * (numFrames-1).

## Protected Attributes

TextureUnitState * | mTextureLayer

## Detailed Description

Predefined controller value for getting / setting the frame number of a texture layer.

Definition at line 64 of file OgrePredefinedControllers.h.

## Constructor & Destructor Documentation

Ogre::TextureFrameControllerValue::TextureFrameControllerValue | ( | TextureUnitState * | t | ) |

## Member Function Documentation

Real Ogre::TextureFrameControllerValue::getValue | ( | void |  | ) | const`[virtual]`

| Gets the frame number as a parametric value in the range [0,1]. Implements Ogre::ControllerValue< Real >.

void Ogre::TextureFrameControllerValue::setValue | ( | Real | value | ) | `[virtual]`

| Sets the frame number as a parametric value in the range [0,1]; the actual frame number is value * (numFrames-1). Implements Ogre::ControllerValue< Real >.

## Member Data Documentation

TextureUnitState* Ogre::TextureFrameControllerValue::mTextureLayer `[protected]`

| Definition at line 67 of file OgrePredefinedControllers.h.

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

- OgrePredefinedControllers.h

Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 13:02:10 2006