2010-07-09 21:21:04 +02:00
|
|
|
#ifndef OENGINE_MYGUI_MANAGER_H
|
|
|
|
#define OENGINE_MYGUI_MANAGER_H
|
|
|
|
|
2013-03-03 13:11:02 +01:00
|
|
|
#include <string>
|
|
|
|
|
2010-07-09 21:21:04 +02:00
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Gui;
|
2013-01-04 08:40:33 -08:00
|
|
|
class LogManager;
|
|
|
|
class OgreDataManager;
|
2013-04-19 01:33:04 +02:00
|
|
|
class OgreRenderManager;
|
2013-04-07 00:12:04 +02:00
|
|
|
class ShaderBasedRenderManager;
|
2010-07-09 21:21:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace Ogre
|
|
|
|
{
|
|
|
|
class RenderWindow;
|
|
|
|
class SceneManager;
|
|
|
|
}
|
|
|
|
|
2010-07-10 13:41:43 +02:00
|
|
|
namespace OEngine {
|
2010-07-09 21:21:04 +02:00
|
|
|
namespace GUI
|
|
|
|
{
|
2012-09-11 16:37:54 +02:00
|
|
|
class MyGUIManager
|
|
|
|
{
|
|
|
|
MyGUI::Gui *mGui;
|
2013-01-04 08:40:33 -08:00
|
|
|
MyGUI::LogManager* mLogManager;
|
|
|
|
MyGUI::OgreDataManager* mDataManager;
|
2013-04-19 01:33:04 +02:00
|
|
|
MyGUI::OgreRenderManager* mRenderManager;
|
|
|
|
MyGUI::ShaderBasedRenderManager* mShaderRenderManager;
|
2012-09-11 16:37:54 +02:00
|
|
|
Ogre::SceneManager* mSceneMgr;
|
2010-07-09 21:21:04 +02:00
|
|
|
|
2013-01-04 08:40:33 -08:00
|
|
|
|
2012-09-11 16:37:54 +02:00
|
|
|
public:
|
|
|
|
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 21:21:04 +02:00
|
|
|
|
2013-02-05 20:48:25 +01:00
|
|
|
void updateWindow (Ogre::RenderWindow* wnd);
|
|
|
|
|
2013-07-29 02:32:08 +02:00
|
|
|
void windowResized();
|
|
|
|
|
2012-09-11 16:37:54 +02:00
|
|
|
void setup(Ogre::RenderWindow *wnd, Ogre::SceneManager *mgr, bool logging=false, const std::string& logDir = std::string(""));
|
|
|
|
void shutdown();
|
2010-07-16 21:46:57 +02:00
|
|
|
|
2012-09-11 16:37:54 +02:00
|
|
|
MyGUI::Gui *getGui() { return mGui; }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2010-07-09 21:21:04 +02:00
|
|
|
#endif
|