Changeset 41 for trunk/VUT/OcclusionCullingSceneManager/include
- Timestamp:
- 04/07/05 18:51:36 (20 years ago)
- Location:
- trunk/VUT/OcclusionCullingSceneManager/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingSceneTraverser.h
r39 r41 93 93 void setNumSceneNodes(int num ); 94 94 95 /** Sets the required number of occlusion queries. 96 @param num number occlusion queries 97 */ 98 void setNumQueries( int num ); 99 95 100 protected: 96 101 /** query mode (= without color) or RENDER_MODE */ … … 114 119 /** Renders the scene with the coherent hierarchical algorithm and the query queye. */ 115 120 void renderCoherentWithQueue( Camera *cam ); 116 /** Issue a occlusion query for this node. */ 117 HardwareOcclusionQuery *issueOcclusionQuery( SceneNode *node, bool wasVisible ); 121 /** Issue a occlusion query for this node. 122 @param box the axis aligned bounding box of the node 123 @wasVisible if the node was visible in previous frame 124 */ 125 HardwareOcclusionQuery *issueOcclusionQuery( AxisAlignedBox *box, bool wasVisible ); 118 126 /** Pulls up the visibility from the child nodes. */ 119 127 void pullUpVisibility( SceneNode *node ); … … 121 129 void deleteQueries(); 122 130 /** Renders bounding box of specified node. 123 @param the scene node contained in the bounding box to be rendered 124 */ 125 void renderBoundingBox( SceneNode *node ); 131 @param box the bounding box of the scene node to be rendered */ 132 void renderBoundingBox( AxisAlignedBox *box ); 126 133 /** Returns one half of the bounding box. 127 @param the half of the bouding box134 @param half the half index of the bouding box (0 or 1) 128 135 */ 129 136 SolidHalfBoundingBox *getSolidHalfBoundingBox( int half ); … … 147 154 int mQueryMode; 148 155 156 unsigned int mNumQueries; 157 149 158 //--- statistics 150 159 unsigned int mNumSceneNodes; -
trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingTerrainSceneManager.h
r40 r41 55 55 56 56 protected: 57 //OcclusionCullingTerrainSceneTraverser *mOcclusionCullingTerrainSceneTraverser; 58 OcclusionCullingSceneTraverser *mOcclusionCullingTerrainSceneTraverser; 57 /** Recursively counts octree size (i.e., number of octree instances) 58 @param root current octree 59 */ 60 unsigned int countOctreeSize(Octree *root); 61 62 OcclusionCullingTerrainSceneTraverser *mOcclusionCullingTerrainSceneTraverser; 63 //OcclusionCullingSceneTraverser *mOcclusionCullingTerrainSceneTraverser; 59 64 }; 60 65 -
trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingTerrainSceneTraverser.h
r40 r41 59 59 60 60 void pullUpVisibility( Octree *octree ); 61 void traverseOct ree( Camera *cam, Octree *octree);62 void renderOct ree( Camera *cam, Octree *octree);61 void traverseOctant(Camera *cam, Octree *octant ); 62 void renderOctant( Camera *cam, Octree *octant ); 63 63 64 64 OctreePriorityQueue *mDistanceQueue;
Note: See TracChangeset
for help on using the changeset viewer.