Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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:

Ogre::ControllerValue< Real > 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

TextureUnitStatemTextureLayer

Detailed Description

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

Definition at line 67 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 70 of file OgrePredefinedControllers.h.


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

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:41:43 2006