25 #ifndef WGESHADERANIMATIONCALLBACK_H
26 #define WGESHADERANIMATIONCALLBACK_H
31 #include "boost/date_time/posix_time/posix_time.hpp"
34 #include <osg/Uniform>
60 virtual void operator() ( osg::Uniform* uniform, osg::NodeVisitor* nv );
81 #endif // WGESHADERANIMATIONCALLBACK_H
double m_tickMillisecRatio
Ratio between milliseconds and m_ticksPerSec.
virtual void operator()(osg::Uniform *uniform, osg::NodeVisitor *nv)
Operator called on uniform update.
virtual ~WGEShaderAnimationCallback()
Destructor.
boost::posix_time::ptime m_start
Timer that stops the time hopefully OS independent.
WGEShaderAnimationCallback(int ticksPerSecond=100)
Default constructor.
This is a uniform callback setting the uniform to the current time in milliseconds, hundredth of a second or tenth of a second.
int m_ticksPerSec
Number of ticks to count per second.