Changeset 33 for trunk/VUT/OcclusionCullingSceneManager/include
- Timestamp:
- 03/30/05 11:36:07 (20 years ago)
- Location:
- trunk/VUT/OcclusionCullingSceneManager/include
- Files:
-
- 2 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingSceneManager.h
r32 r33 20 20 public: 21 21 OcclusionCullingSceneManager(); 22 //~OcclusionCullingSceneManager();22 ~OcclusionCullingSceneManager(); 23 23 24 24 /** Overriden from SceneManager. Renders the scene with the specified algorithm … … 49 49 50 50 protected: 51 OcclusionCullingSceneTraverser mSceneTraverser;51 OcclusionCullingSceneTraverser *mOcclusionCullingSceneTraverser; 52 52 53 53 }; -
trunk/VUT/OcclusionCullingSceneManager/include/OgreOcclusionCullingSceneTraverser.h
r32 r33 39 39 { 40 40 public: 41 OcclusionCullingSceneTraverser(); 41 /** Construction taking the current scene manager and the current rendersystem as argument 42 @param sm current scene manager 43 @param rsys current render system 44 */ 45 OcclusionCullingSceneTraverser(SceneManager *sm, RenderSystem *rsys); 42 46 ~OcclusionCullingSceneTraverser(); 43 47 44 48 enum {RENDER_CULL_FRUSTUM, RENDER_STOP_AND_WAIT, RENDER_COHERENT, NUM_RENDERMODES}; 45 49 46 /** Overriden from SceneManager. Renders the scene with the specified algorithm 47 /** 48 The algorithm is one of 50 /** Renders the scene with the specified algorithm 51 @comment 52 The algorithm type can be set with the parameter "Algorithm" and setOption. 53 54 The algorithm is one of: 49 55 RENDER_CULL_FRUSTUM: renders the scene with view frustum culling only 50 56 RENDER_STOP_AND_WAIT: renders the scene with the hierarchical stop and wait algorithm 51 57 RENDER_COHERENT: renders the scene with the coherent hierarchical algorithm 58 59 @param cam current camera 60 @param root root of hierarchy 52 61 */ 62 void renderScene( Camera *cam, SceneNode *root ); 63 53 64 54 /** Sets the given option for the SceneTraverser65 /** Sets the given option for the scene traverser. 55 66 @remarks 56 67 Options are: … … 58 69 */ 59 70 bool setOption( const String &, const void * ); 60 /** Gets the given option for the SceneTraverser.71 /** Gets the given option for the scene traverser. 61 72 @remarks 62 73 See setOption 63 74 */ 64 75 bool getOption( const String &, void * ); 65 66 /** Renders current scene 67 @param cam current camera 68 @param root root of hierarchy */ 69 void renderScene( Camera *cam, SceneNode *root ); 70 71 /** Sets the scene manager */ 76 bool getOptionKeys( StringVector &refKeys ); 77 78 /** Sets pointer to the current scene manager. 79 @param the scene manager */ 72 80 void setSceneManager( SceneManager *sm ); 73 /** Sets the render system */ 81 82 /** Sets pointer to the current render system 83 @param the rendersystem */ 74 84 void setRenderSystem( RenderSystem *rsys ); 75 85 86 /** Doing some necessary preprocessing. 87 @comment e.g., initialises occlusion queries */ 76 88 void preprocess( void ); 77 89 90 /** Sets the current number of scene nodes in the scene. 91 @param num number of scene nodes 92 */ 93 void setNumSceneNodes(int num ); 94 78 95 protected: 96 /** query mode (= without color) or RENDER_MODE */ 79 97 enum {MODE_QUERY, MODE_RENDER}; 80 98 /** returns true if node is leaf of the hierarchy */
Note: See TracChangeset
for help on using the changeset viewer.