Changeset 13041 for OpenSceneGraph/trunk/include/osgViewer/Renderer
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgViewer/Renderer (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgViewer/Renderer
r12292 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 30 30 virtual void checkQuery(osg::Stats* stats, osg::State* state, 31 31 osg::Timer_t startTick) = 0; 32 32 33 33 virtual void beginQuery(unsigned int frameNumber, osg::State* state) = 0; 34 34 virtual void endQuery(osg::State* state) = 0; … … 60 60 61 61 virtual void compile(); 62 62 63 63 void setCompileOnNextDraw(bool flag) { _compileOnNextDraw = flag; } 64 64 bool getCompileOnNextDraw() const { return _compileOnNextDraw; } 65 65 66 66 virtual void operator () (osg::Object* object); 67 67 68 68 virtual void operator () (osg::GraphicsContext* context); 69 69 70 70 virtual void release(); 71 71 72 72 /** Force update of state associated with cameras. */ 73 73 void setCameraRequiresSetUp(bool flag); … … 78 78 virtual ~Renderer(); 79 79 80 virtual void updateSceneView(osgUtil::SceneView* sceneView); 80 virtual void updateSceneView(osgUtil::SceneView* sceneView); 81 81 82 82 osg::observer_ptr<osg::Camera> _camera; 83 83 84 84 bool _done; 85 85 bool _graphicsThreadDoesCull; 86 86 bool _compileOnNextDraw; 87 87 88 88 osg::ref_ptr<osgUtil::SceneView> _sceneView[2]; 89 89 … … 95 95 SceneViewList _queue; 96 96 bool _isReleased; 97 97 98 98 ThreadSafeQueue(); 99 99 ~ThreadSafeQueue();
