Ignore:
Timestamp:
05/04/05 17:58:13 (19 years ago)
Author:
mattausch
Message:

corrected bug so chc is much faster than stop and wait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCulling/TestCullingApplication.h

    r84 r85  
    66#include "ExampleApplication.h" 
    77#include "VisibilityEnvironment.h" 
    8  
     8#include "SceneContentGenerator.h" 
    99 
    1010Real timeDelay = 0; 
     
    3030 
    3131    MouseQueryListener(RenderWindow* win, Camera* cam, SceneManager *sceneManager,  
    32                         CEGUI::Renderer *renderer); 
     32                        CEGUI::Renderer *renderer, SceneContentGenerator *sceneContentGenerator); 
    3333 
    3434 
     
    6060        void keyClicked(KeyEvent* e); 
    6161 
    62         void changeAlgorithm(); 
     62        void nextAlgorithm(); 
     63        void setAlgorithm(int algorithm); 
    6364        void changeThreshold(int incr); 
    6465        void changeStats(); 
     
    7273        bool mShutdownRequested; 
    7374        int mCurrentAlgorithm; 
    74         int mThreshold; 
     75        int mVisibilityThreshold; 
    7576 
    7677        OverlayElement *mAlgorithmInfo; 
     
    8283        OverlayElement *mRenderedNodesInfo; 
    8384        OverlayElement *mNumObjectsInfo; 
     85 
     86        SceneContentGenerator *mSceneContentGenerator; 
    8487}; 
    8588 
     
    8790class TestCullingApplication : public ExampleApplication 
    8891{ 
     92public: 
     93        ~TestCullingApplication(); 
     94 
    8995protected: 
    90         void createScene(void); 
    91         void createFrameListener(void); 
    92         void setupGui(void); 
    93         /** generates a the scene hierarchy with random values  
    94         @param number of objects to generate 
    95         */ 
    96         void GenerateScene(int numObjects); 
    97  
    98         /** generates a new scene object  
    99         @param tranlationRatio ratio between minimal and maximal possible translation 
    100         @param rotationRatio ratio between minimal and maximal possible rotation 
    101         @idx the index of the new object 
    102         @entName the name of the object entity 
    103         */ 
    104         void generateSceneObject(const Vector3 &translationRatio, const Vector3 &rotationRatio,  
    105                                                          const int idx, const String &entName); 
    106  
     96        void createScene(); 
     97        void createFrameListener(); 
     98        void setupGui(); 
     99         
    107100        //virtual void createCamera(void); 
    108101 
     
    116109        Vector3 mMaxAngle; 
    117110 
     111        SceneContentGenerator *mSceneContentGenerator; 
     112 
    118113private: 
    119114        void chooseSceneManager(void); 
Note: See TracChangeset for help on using the changeset viewer.