Line | |
---|
1 | #ifndef __OgreControl__ |
---|
2 | #define __OgreControl__ |
---|
3 | |
---|
4 | #include "Ogre.h" |
---|
5 | #include "OgreConfigFile.h" |
---|
6 | |
---|
7 | |
---|
8 | #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE |
---|
9 | #include <CoreFoundation/CoreFoundation.h> |
---|
10 | #endif |
---|
11 | |
---|
12 | using namespace Ogre; |
---|
13 | |
---|
14 | class OgreControl |
---|
15 | { |
---|
16 | public: |
---|
17 | OgreControl(); |
---|
18 | |
---|
19 | virtual ~OgreControl(); |
---|
20 | |
---|
21 | /** Sets up the application - returns false if the user chooses to abandon configuration. */ |
---|
22 | virtual bool initialise(void); |
---|
23 | |
---|
24 | virtual Root* getRoot(void); |
---|
25 | |
---|
26 | virtual RenderWindow* getRenderWindow(void); |
---|
27 | |
---|
28 | virtual Ogre::String getResourcePath(void); |
---|
29 | |
---|
30 | protected: |
---|
31 | Root *mRoot; |
---|
32 | RenderWindow *mWindow; |
---|
33 | Ogre::String mResourcePath; |
---|
34 | |
---|
35 | /** Configures the application - returns false if the user chooses to abandon configuration. */ |
---|
36 | virtual bool configure(void); |
---|
37 | |
---|
38 | /// Method which will define the source of resources (other than current folder) |
---|
39 | virtual void setupResources(void); |
---|
40 | |
---|
41 | }; |
---|
42 | |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.