-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBaseApplication.h
52 lines (42 loc) · 1.15 KB
/
BaseApplication.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef __BaseApplication_h_
#define __BaseApplication_h_
#include <OgreCamera.h>
#include <OgreEntity.h>
#include <OgreRoot.h>
#include <OgreViewport.h>
#include <OgreSceneManager.h>
#include <OgreRenderWindow.h>
#include <OgreConfigFile.h>
#include "OgreResourceGroupManager.h"
#include "OgreLogManager.h"
#include "EditScene.h"
#include "InputManager.h"
class BaseApplication :public Ogre::FrameListener
{
public:
BaseApplication(void);
~BaseApplication(void);
void go(void);
static BaseApplication* PmInstance;
static BaseApplication *getInstance();
Ogre::SceneNode *rootNode; //³¡¾°¸ù½Úµã
EditScene *mscene;
InputManager *input;
Ogre::Root *mRoot;
Ogre::Camera* mCamera;
Ogre::SceneManager* mSceneMgr;
Ogre::RenderWindow* mWindow;
Ogre::String mPluginsCfg;
bool mShutDown;
void createWindow(HWND m_hWnd, int width, int height);
private:
bool setup();
void chooseSceneManager(void);
void createCamera(void);
void createViewports(void);
void setupResources(void);
void createResourceListener(void);
void loadResources(void);
virtual bool frameStarted(const Ogre::FrameEvent &evt); //Ö¡¼àÌýº¯Êý
};
#endif // #ifndef __BaseApplication_h_