Show
Ignore:
Timestamp:
02/02/07 23:30:36 (7 years ago)
Author:
robert
Message:

Convert GraphicsThread/GraphicsOperation? to more generic OperationsThread/Operation?.
This paves the way to running cull traversals in seperate threads.

Updated wrappers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmotionblur/osgmotionblur.cpp

    r6051 r6088  
    1515#include <iostream> 
    1616 
    17 class MotionBlurOperation: public osg::GraphicsOperation 
     17class MotionBlurOperation: public osg::Operation 
    1818{ 
    1919public: 
    2020    MotionBlurOperation(double persistence): 
    21         osg::GraphicsOperation("MotionBlur",true), 
     21        osg::Operation("MotionBlur",true), 
    2222        cleared_(false), 
    2323        persistence_(persistence) 
     
    2525    } 
    2626 
    27     virtual void operator () (osg::GraphicsContext* gc) 
     27    virtual void operator () (osg::Object* object) 
    2828    { 
     29        osg::GraphicsContext* gc = dynamic_cast<osg::GraphicsContext*>(object); 
     30        if (!gc) return; 
     31     
    2932        double t = gc->getState()->getFrameStamp()->getSimulationTime(); 
    3033