- Timestamp:
- 02/02/07 23:30:36 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmotionblur/osgmotionblur.cpp
r6051 r6088 15 15 #include <iostream> 16 16 17 class MotionBlurOperation: public osg:: GraphicsOperation17 class MotionBlurOperation: public osg::Operation 18 18 { 19 19 public: 20 20 MotionBlurOperation(double persistence): 21 osg:: GraphicsOperation("MotionBlur",true),21 osg::Operation("MotionBlur",true), 22 22 cleared_(false), 23 23 persistence_(persistence) … … 25 25 } 26 26 27 virtual void operator () (osg:: GraphicsContext* gc)27 virtual void operator () (osg::Object* object) 28 28 { 29 osg::GraphicsContext* gc = dynamic_cast<osg::GraphicsContext*>(object); 30 if (!gc) return; 31 29 32 double t = gc->getState()->getFrameStamp()->getSimulationTime(); 30 33
