Changeset 6088 for OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp
- Timestamp:
- 02/02/07 23:30:36 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp
r6067 r6088 1355 1355 } 1356 1356 1357 class CompileStateCallback : public osg:: GraphicsOperation1357 class CompileStateCallback : public osg::Operation 1358 1358 { 1359 1359 public: 1360 1360 CompileStateCallback(GameEventHandler* eh): 1361 osg:: GraphicsOperation("CompileStateCallback", false),1361 osg::Operation("CompileStateCallback", false), 1362 1362 _gameEventHandler(eh) {} 1363 1363 1364 virtual void operator()(osg::GraphicsContext* gc) 1365 { 1366 // OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); 1364 virtual void operator () (osg::Object* object) 1365 { 1366 osg::GraphicsContext* context = dynamic_cast<osg::GraphicsContext*>(object); 1367 if (!context) return; 1367 1368 1368 1369 if (_gameEventHandler) 1369 1370 { 1370 _gameEventHandler->compileGLObjects(* gc->getState());1371 _gameEventHandler->compileGLObjects(*(context->getState())); 1371 1372 } 1372 1373 }
