Ignore:
Timestamp:
03/30/05 11:36:07 (19 years ago)
Author:
Mattausch
Message:
 
File:
1 edited

Legend:

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

    r32 r33  
    3939        { 
    4040        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); 
    4246                ~OcclusionCullingSceneTraverser(); 
    4347         
    4448                enum {RENDER_CULL_FRUSTUM, RENDER_STOP_AND_WAIT, RENDER_COHERENT, NUM_RENDERMODES}; 
    4549                 
    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: 
    4955                        RENDER_CULL_FRUSTUM: renders the scene with view frustum culling only 
    5056                        RENDER_STOP_AND_WAIT: renders the scene with the hierarchical stop and wait algorithm 
    5157                        RENDER_COHERENT: renders the scene with the coherent hierarchical algorithm 
     58                         
     59                        @param cam current camera 
     60                        @param root root of hierarchy  
    5261                */ 
     62                void renderScene( Camera *cam, SceneNode *root ); 
     63         
    5364                 
    54                 /** Sets the given option for the SceneTraverser 
     65                /** Sets the given option for the scene traverser. 
    5566                               @remarks 
    5667                        Options are: 
     
    5869                */ 
    5970                bool setOption( const String &, const void * ); 
    60                 /** Gets the given option for the SceneTraverser. 
     71                /** Gets the given option for the scene traverser. 
    6172                @remarks 
    6273                    See setOption 
    6374                */ 
    6475                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 */ 
    7280                void setSceneManager( SceneManager *sm ); 
    73                 /** Sets the render system */ 
     81                 
     82                /** Sets pointer to the current render system  
     83                @param the rendersystem */ 
    7484                void setRenderSystem( RenderSystem *rsys ); 
    75  
     85                 
     86                /** Doing some necessary preprocessing. 
     87                @comment e.g., initialises occlusion queries */ 
    7688                void preprocess( void ); 
    7789 
     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 
    7895        protected: 
     96                /** query mode (= without color) or RENDER_MODE */ 
    7997                enum {MODE_QUERY, MODE_RENDER}; 
    8098                /** returns true if node is leaf of the hierarchy */ 
Note: See TracChangeset for help on using the changeset viewer.