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