Changeset 13041 for OpenSceneGraph/trunk/include/osg/OcclusionQueryNode
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/OcclusionQueryNode
r12810 r13041 2 2 // Copyright (C) 2007 Skew Matrix Software LLC (http://www.skew-matrix.com) 3 3 // 4 // This library is open source and may be redistributed and/or modified under 5 // the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 4 // This library is open source and may be redistributed and/or modified under 5 // the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 6 6 // (at your option) any later version. The full license is in LICENSE file 7 7 // included with this distribution, and on the openscenegraph.org website. 8 // 8 // 9 9 // This library is distributed in the hope that it will be useful, 10 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 12 // OpenSceneGraph Public License for more details. 13 13 // … … 76 76 77 77 virtual void releaseGLObjects( osg::State* state = 0 ) const; 78 78 79 79 static void deleteQueryObject( unsigned int contextID, GLuint handle ); 80 80 static void flushDeletedQueryObjects( unsigned int contextID, double currentTime, double& availableTime ); 81 81 static void discardDeletedQueryObjects( unsigned int contextID ); 82 82 83 83 protected: 84 84 typedef std::map< const osg::Camera*, TestResult > ResultMap; … … 108 108 109 109 virtual void releaseGLObjects( osg::State* state = 0 ) const; 110 111 110 111 112 112 // When disabled, OQN doesn't perform occlusion queries, and simply 113 113 // renders its children. … … 154 154 // For statistics gathering, e.g., by a NodeVisitor. 155 155 bool getPassed() const; 156 157 156 157 158 158 // These methods are public so that osgUtil::CullVisitor can access them. 159 159 // Not intended for application use.
