Changeset 42 for trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingTerrainSceneTraverser.h
- Timestamp:
- 04/12/05 10:50:19 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingTerrainSceneTraverser.h
r41 r42 41 41 typedef pair<Octree *, HardwareOcclusionQuery *> OctreeQueryPair; 42 42 typedef priority_queue<Octree *, vector<Octree *>, octreeless<vector<Octree *>::value_type> > OctreePriorityQueue; 43 //typedef queue<QueryPair>QueryQueue;43 typedef queue<OctreeQueryPair> OctreeQueryQueue; 44 44 45 45 class OcclusionCullingTerrainSceneTraverser: public OcclusionCullingSceneTraverser … … 47 47 public: 48 48 OcclusionCullingTerrainSceneTraverser(SceneManager *sm, RenderSystem *rsys); 49 void renderScene( Camera *cam, Octree *root ); 49 ~OcclusionCullingTerrainSceneTraverser(); 50 //void renderScene( Camera *cam ); 51 void setSceneRoot(Octree *root); 52 /** Sets the number of nodes in this octree 53 @remark do not confuse this with the OctreeNode class 54 which is derived from SceneNode 55 @param num number of nodes in the octree 56 */ 57 void setNumOctreeNodes( unsigned int num ); 58 59 /** Gets the given option for the scene traverser. 60 @remarks 61 See setOption 62 */ 63 bool getOption( const String &, void * ); 64 bool getOptionKeys( StringVector &refKeys ); 50 65 51 66 protected: … … 58 73 /** Issue a occlusion query for this node. */ 59 74 60 void pullUpVisibility( Octree *octree ); 75 void initDistanceQueue(Camera *cam); 76 void pullUpVisibility( Camera *cam, Octree *octree ); 61 77 void traverseOctant(Camera *cam, Octree *octant ); 62 78 void renderOctant( Camera *cam, Octree *octant ); 79 bool isLeaf(Octree *octant); 63 80 64 OctreePriorityQueue *mDistanceQueue; 81 private: 82 OctreePriorityQueue *mOctreeDistanceQueue; 83 // the octree root 84 Octree *mOctreeSceneRoot; 85 86 unsigned int mNumOctreeNodes; 65 87 }; 66 88
Note: See TracChangeset
for help on using the changeset viewer.