Ignore:
Timestamp:
04/12/05 10:50:19 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingTerrainSceneTraverser.h

    r41 r42  
    4141        typedef pair<Octree *, HardwareOcclusionQuery *> OctreeQueryPair; 
    4242        typedef priority_queue<Octree *, vector<Octree *>, octreeless<vector<Octree *>::value_type> > OctreePriorityQueue; 
    43         //typedef queue<QueryPair> QueryQueue; 
     43        typedef queue<OctreeQueryPair> OctreeQueryQueue; 
    4444 
    4545        class OcclusionCullingTerrainSceneTraverser: public OcclusionCullingSceneTraverser 
     
    4747        public: 
    4848                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 ); 
    5065                 
    5166        protected: 
     
    5873                /** Issue a occlusion query for this node. */ 
    5974                 
    60                 void pullUpVisibility( Octree *octree ); 
     75                void initDistanceQueue(Camera *cam); 
     76                void pullUpVisibility( Camera *cam, Octree *octree ); 
    6177                void traverseOctant(Camera *cam, Octree *octant ); 
    6278                void renderOctant( Camera *cam, Octree *octant ); 
     79                bool isLeaf(Octree *octant); 
    6380 
    64                 OctreePriorityQueue *mDistanceQueue; 
     81        private: 
     82                OctreePriorityQueue *mOctreeDistanceQueue; 
     83                // the octree root 
     84                Octree *mOctreeSceneRoot; 
     85 
     86                unsigned int mNumOctreeNodes; 
    6587        }; 
    6688 
Note: See TracChangeset for help on using the changeset viewer.