Changeset 161 for code/branches/main_reto_vs05/include/ogre_control.h
- Timestamp:
- Nov 4, 2007, 5:00:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto_vs05/include/ogre_control.h
r159 r161 30 30 #define OGRE_CONTROL_H 31 31 32 #include "Ogre.h" 33 #include "OgreConfigFile.h" 32 #include "OgrePrerequisites.h" 33 34 #include "Orxonox_prerequisites.h" 34 35 35 36 36 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE 37 #include <CoreFoundation/CoreFoundation.h> 38 #endif 37 namespace Orxonox { 39 38 40 using namespace Ogre; 39 class OgreControl 40 { 41 public: 42 OgreControl(); 41 43 42 class OgreControl 43 { 44 public: 45 OgreControl(); 44 virtual ~OgreControl(); 46 45 47 virtual ~OgreControl(); 46 /** Sets up the application - returns false if the user chooses to abandon configuration. */ 47 virtual bool initialise(); 48 48 49 /** Sets up the application - returns false if the user chooses to abandon configuration. */ 50 virtual bool initialise(); 49 virtual Ogre::Root* getRoot(); 51 50 52 virtual Root* getRoot();51 virtual Ogre::RenderWindow* getRenderWindow(); 53 52 54 virtual RenderWindow* getRenderWindow();53 virtual Ogre::String getResourcePath(); 55 54 56 virtual Ogre::String getResourcePath(); 55 protected: 56 /** Configures the application - returns false if the user chooses to abandon configuration. */ 57 virtual bool configure(void); 57 58 58 protected: 59 /** Configures the application - returns false if the user chooses to abandon configuration. */ 60 virtual bool configure(void); 59 /// Method which will define the source of resources (other than current folder) 60 virtual void setupResources(void); 61 61 62 /// Method which will define the source of resources (other than current folder) 63 virtual void setupResources(void); 62 protected: 63 Ogre::Root *root_; 64 Ogre::RenderWindow *window_; 65 Ogre::String resourcePath_; 64 66 65 protected: 66 Root *root_; 67 RenderWindow *window_; 68 Ogre::String resourcePath_; 67 }; 69 68 70 } ;69 } 71 70 72 71 #endif /* OGRE_CONTROL_H */
Note: See TracChangeset
for help on using the changeset viewer.