OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
NifOsg::FlipController Class Reference

#include <controller.hpp>

Inheritance diagram for NifOsg::FlipController:
Collaboration diagram for NifOsg::FlipController:

Public Member Functions

 FlipController (const Nif::NiFlipController *ctrl, std::vector< osg::ref_ptr< osg::Texture2D > > textures)
 
 FlipController (int texSlot, float delta, std::vector< osg::ref_ptr< osg::Texture2D > > textures)
 
 FlipController ()
 
 FlipController (const FlipController &copy, const osg::CopyOp &copyop)
 
 META_Object (NifOsg, FlipController) std
 
virtual void apply (osg::StateSet *stateset, osg::NodeVisitor *nv)
 
- Public Member Functions inherited from SceneUtil::StateSetUpdater
 StateSetUpdater ()
 
 StateSetUpdater (const StateSetUpdater &copy, const osg::CopyOp &copyop)
 
virtual void setDefaults (osg::StateSet *stateset)
 
- Public Member Functions inherited from SceneUtil::Controller
 Controller ()
 
virtual ~Controller ()
 
bool hasInput () const
 
float getInputValue (osg::NodeVisitor *nv)
 
void setSource (boost::shared_ptr< ControllerSource > source)
 
void setFunction (boost::shared_ptr< ControllerFunction > function)
 
boost::shared_ptr
< ControllerSource
getSource () const
 
boost::shared_ptr
< ControllerFunction
getFunction () const
 

Private Attributes

int mTexSlot
 
float mDelta
 
std::vector< osg::ref_ptr
< osg::Texture2D > > 
mTextures
 

Additional Inherited Members

- Protected Member Functions inherited from SceneUtil::StateSetUpdater
void reset ()
 Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More...
 

Constructor & Destructor Documentation

NifOsg::FlipController::FlipController ( const Nif::NiFlipController ctrl,
std::vector< osg::ref_ptr< osg::Texture2D > >  textures 
)
NifOsg::FlipController::FlipController ( int  texSlot,
float  delta,
std::vector< osg::ref_ptr< osg::Texture2D > >  textures 
)
NifOsg::FlipController::FlipController ( )
NifOsg::FlipController::FlipController ( const FlipController copy,
const osg::CopyOp &  copyop 
)

Member Function Documentation

void NifOsg::FlipController::apply ( osg::StateSet *  stateset,
osg::NodeVisitor *  nv 
)
virtual

Apply state - to override in derived classes

Note
Due to the double buffering approach you have to apply all state even if it has not changed since the last frame.

Reimplemented from SceneUtil::StateSetUpdater.

Here is the call graph for this function:

NifOsg::FlipController::META_Object ( NifOsg  ,
FlipController   
)
inline

Member Data Documentation

float NifOsg::FlipController::mDelta
private
int NifOsg::FlipController::mTexSlot
private
std::vector<osg::ref_ptr<osg::Texture2D> > NifOsg::FlipController::mTextures
private

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