2010-07-09 19:21:04 +00:00
|
|
|
#ifndef OENGINE_MYGUI_MANAGER_H
|
|
|
|
#define OENGINE_MYGUI_MANAGER_H
|
|
|
|
|
2013-03-03 12:11:02 +00:00
|
|
|
#include <string>
|
|
|
|
|
2010-07-09 19:21:04 +00:00
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Gui;
|
2013-01-04 16:40:33 +00:00
|
|
|
class LogManager;
|
|
|
|
class OgreDataManager;
|
2013-04-18 23:33:04 +00:00
|
|
|
class OgreRenderManager;
|
2013-04-06 22:12:04 +00:00
|
|
|
class ShaderBasedRenderManager;
|
2014-05-20 06:37:04 +00:00
|
|
|
class LogFacility;
|
2010-07-09 19:21:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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::Gui *mGui;
|
2013-01-04 16:40:33 +00:00
|
|
|
MyGUI::LogManager* mLogManager;
|
2014-05-20 06:37:04 +00:00
|
|
|
MyGUI::LogFacility* mLogFacility;
|
2013-01-04 16:40:33 +00:00
|
|
|
MyGUI::OgreDataManager* mDataManager;
|
2013-04-18 23:33:04 +00:00
|
|
|
MyGUI::OgreRenderManager* mRenderManager;
|
|
|
|
MyGUI::ShaderBasedRenderManager* mShaderRenderManager;
|
2012-09-11 14:37:54 +00:00
|
|
|
Ogre::SceneManager* mSceneMgr;
|
2010-07-09 19:21:04 +00:00
|
|
|
|
2013-01-04 16:40:33 +00:00
|
|
|
|
2012-09-11 14:37:54 +00: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 19:21:04 +00:00
|
|
|
|
2013-07-29 00:32:08 +00:00
|
|
|
void windowResized();
|
|
|
|
|
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-09 19:21:04 +00:00
|
|
|
#endif
|