| 
                Last change
                  on this file since 10400 was
                  7163,
                  checked in by dafrick, 15 years ago
           | 
        
        
          | 
               
Merged presentation3 branch into trunk. 
 
           | 
        
        
          
            
              - 
                  Property svn:eol-style set to
                  
native
               
             
           | 
        
        | 
            File size:
            1.2 KB
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [6819] | 1 | //||||||||||||||||||||||||||||||||||||||||||||||| | 
|---|
 | 2 |  | 
|---|
 | 3 | #ifndef OGRE_DEMO_HPP | 
|---|
 | 4 | #define OGRE_DEMO_HPP | 
|---|
 | 5 |  | 
|---|
 | 6 | //||||||||||||||||||||||||||||||||||||||||||||||| | 
|---|
 | 7 |  | 
|---|
 | 8 | #include "OgreFramework.hpp" | 
|---|
 | 9 |  | 
|---|
 | 10 | // for loading/saving the stereo config file | 
|---|
 | 11 | #include <io.h> | 
|---|
 | 12 | #include <fcntl.h>      /* Needed only for _O_RDWR definition */ | 
|---|
 | 13 | #include <sys/stat.h> | 
|---|
 | 14 |  | 
|---|
 | 15 | //||||||||||||||||||||||||||||||||||||||||||||||| | 
|---|
 | 16 |  | 
|---|
 | 17 | class DemoApp : public OIS::KeyListener | 
|---|
 | 18 | { | 
|---|
 | 19 | public: | 
|---|
 | 20 |         DemoApp(); | 
|---|
 | 21 |         ~DemoApp(); | 
|---|
 | 22 |  | 
|---|
 | 23 |         void startDemo(); | 
|---|
 | 24 |          | 
|---|
 | 25 |         bool keyPressed(const OIS::KeyEvent &keyEventRef); | 
|---|
 | 26 |         bool keyReleased(const OIS::KeyEvent &keyEventRef); | 
|---|
 | 27 |  | 
|---|
 | 28 | private: | 
|---|
 | 29 |         int setupDemoScene(); | 
|---|
 | 30 |         int runDemo_Default(); // no gpu buffer flushing code | 
|---|
 | 31 |         int runDemo_MethodA(); // my HOQ gpu buffer flushing code | 
|---|
 | 32 |         int runDemo_MethodB(); // ogre HOQ gpu buffer flushing code | 
|---|
 | 33 |         int runDemo_MethodC(); // my blit gpu buffer flushing code | 
|---|
 | 34 |  | 
|---|
 | 35 |         UINT m_uLastTime ; | 
|---|
 | 36 |         void ResetSectionTimer() ; | 
|---|
 | 37 |         UINT GetSectionTimer() ; | 
|---|
 | 38 |  | 
|---|
 | 39 |  | 
|---|
 | 40 |         void StereoConfig_Write( void ) ; | 
|---|
 | 41 |         bool StereoConfig_Read(void) ; | 
|---|
 | 42 |  | 
|---|
 | 43 |         void BZNConfig_Write(void) ; | 
|---|
 | 44 |         bool BZNConfig_Read(void) ; | 
|---|
 | 45 |  | 
|---|
 | 46 |          | 
|---|
 | 47 |  | 
|---|
 | 48 |         Ogre::GpuCommandBufferFlush mBufferFlush; | 
|---|
 | 49 |  | 
|---|
 | 50 |         bool                                            m_bShutdown; | 
|---|
 | 51 | }; | 
|---|
 | 52 |  | 
|---|
 | 53 | //||||||||||||||||||||||||||||||||||||||||||||||| | 
|---|
 | 54 |  | 
|---|
 | 55 | #endif  | 
|---|
 | 56 |  | 
|---|
| [6820] | 57 | //||||||||||||||||||||||||||||||||||||||||||||||| | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.