Ignore:
Timestamp:
03/29/05 08:21:37 (20 years ago)
Author:
gametools
Message:
 
File:
1 edited

Legend:

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

    r30 r32  
    66#include "ExampleApplication.h" 
    77#include "OgreOcclusionCullingSceneManager.h" 
     8#include "OgreOcclusionCullingSceneTraverser.h" 
    89 
    910Real timeDelay = 0; 
     
    1718} 
    1819 
    19 String mCurrentAlgorithmCaptions[OcclusionCullingSceneManager::NUM_RENDERMODES] =  
     20String mCurrentAlgorithmCaptions[OcclusionCullingSceneTraverser::NUM_RENDERMODES] =  
    2021{ 
    2122    "Cull Frustum",  
     
    5354    // This is when the mouse is clicked, held and dragged. 
    5455    virtual void mouseDragged (MouseEvent *e); 
    55 /* 
    56     void keyPressed(KeyEvent* e) 
    57     { 
    58         if(e->getKey() == KC_ESCAPE) 
    59         { 
    60             mShutdownRequested = true; 
    61             e->consume(); 
    62             return; 
    63         } 
    6456 
    65         CEGUI::System::getSingleton().injectKeyDown(e->getKey()); 
    66                 CEGUI::System::getSingleton().injectChar(e->getKeyChar()); 
    67         e->consume(); 
    68     } 
     57    void keyPressed(KeyEvent* e); 
    6958 
    70         void keyReleased(KeyEvent* e) 
    71         { 
    72                 CEGUI::System::getSingleton().injectKeyUp(e->getKey()); 
    73                 e->consume(); 
    74         } 
    75         void keyClicked(KeyEvent* e)  
    76         { 
    77                 // Do nothing 
    78                 e->consume(); 
    79         } 
     59        void keyReleased(KeyEvent* e); 
     60        void keyClicked(KeyEvent* e); 
    8061 
    81     bool frameEnded(const FrameEvent& evt) 
    82     { 
    83         if (mShutdownRequested) 
    84             return false; 
    85         else 
    86             return ExampleFrameListener::frameEnded(evt); 
    87     } 
    88 */ 
    8962        void changeAlgorithm(); 
     63        void changeThreshold(int incr); 
    9064        void changeStats(); 
    9165 
     
    9670    CEGUI::Renderer *mGUIRenderer;     // cegui renderer 
    9771        SceneNode* mShipNode; 
    98 //      bool mShutdownRequested; 
     72        bool mShutdownRequested; 
    9973        int mCurrentAlgorithm; 
    100          
     74        int mThreshold; 
     75 
    10176        OverlayElement *mAlgorithmInfo; 
    10277        OverlayElement *mThresholdInfo; 
     
    11388    /*TestCullingApplication() 
    11489    { 
    115  
    11690    }*/ 
    11791 
     
    148122 
    149123    }*/ 
    150      
    151  
    152          
    153124}; 
    154125 
Note: See TracChangeset for help on using the changeset viewer.