2.8 branch: This change adds improved support for RTT (child) Camera nodes to the OcclusionQueryNode. Prior to this change, OQN used the top-level camera to index into a map of results, which was unsatisfactory in the RTT case. This change has not been made to svn trunk at this time, and will need to be merged.
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
virtual void drawImplementation( osg::RenderInfo& renderInfo ) const;
|
||||
|
||||
unsigned int getNumPixels( const osg::Camera* cam );
|
||||
unsigned int getNumPixels();
|
||||
|
||||
|
||||
void releaseGLObjects( osg::State* state = 0 );
|
||||
@@ -81,9 +81,8 @@ public:
|
||||
static void discardDeletedQueryObjects( unsigned int contextID );
|
||||
|
||||
protected:
|
||||
typedef std::map< const osg::Camera*, TestResult > ResultMap;
|
||||
typedef osg::buffered_object< TestResult > ResultMap;
|
||||
mutable ResultMap _results;
|
||||
mutable OpenThreads::Mutex _mapMutex;
|
||||
|
||||
// Needed for debug only
|
||||
std::string _oqnName;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user