2010-07-09 19:21:04 +00:00
|
|
|
#ifndef OENGINE_MYGUI_MANAGER_H
|
|
|
|
#define OENGINE_MYGUI_MANAGER_H
|
|
|
|
|
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class OgrePlatform;
|
|
|
|
class Gui;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Ogre
|
|
|
|
{
|
|
|
|
class RenderWindow;
|
|
|
|
class SceneManager;
|
|
|
|
}
|
|
|
|
|
2010-07-10 11:41:43 +00:00
|
|
|
namespace OEngine {
|
2010-07-09 19:21:04 +00:00
|
|
|
namespace GUI
|
|
|
|
{
|
2012-09-11 14:37:54 +00:00
|
|
|
class MyGUIManager
|
|
|
|
{
|
|
|
|
MyGUI::OgrePlatform *mPlatform;
|
|
|
|
MyGUI::Gui *mGui;
|
|
|
|
Ogre::SceneManager* mSceneMgr;
|
2010-07-09 19:21:04 +00:00
|
|
|
|
2012-09-11 14:37:54 +00:00
|
|
|
public:
|
|
|
|
MyGUIManager() : mPlatform(NULL), mGui(NULL) {}
|
|
|
|
MyGUIManager(Ogre::RenderWindow *wnd, Ogre::SceneManager *mgr, bool logging=false, const std::string& logDir = std::string(""))
|
|
|
|
{
|
|
|
|
setup(wnd,mgr,logging, logDir);
|
|
|
|
}
|
|
|
|
~MyGUIManager()
|
|
|
|
{
|
|
|
|
shutdown();
|
|
|
|
}
|
2010-07-09 19:21:04 +00:00
|
|
|
|
2012-09-11 14:37:54 +00:00
|
|
|
void setup(Ogre::RenderWindow *wnd, Ogre::SceneManager *mgr, bool logging=false, const std::string& logDir = std::string(""));
|
|
|
|
void shutdown();
|
2010-07-16 19:46:57 +00:00
|
|
|
|
2012-09-11 14:37:54 +00:00
|
|
|
MyGUI::Gui *getGui() { return mGui; }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2010-07-09 19:21:04 +00:00
|
|
|
#endif
|