mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#ifndef OENGINE_MYGUI_MANAGER_H
|
|
#define OENGINE_MYGUI_MANAGER_H
|
|
|
|
#include <string>
|
|
|
|
namespace MyGUI
|
|
{
|
|
class Gui;
|
|
class LogManager;
|
|
class OgreDataManager;
|
|
class OgreRenderManager;
|
|
}
|
|
|
|
namespace Ogre
|
|
{
|
|
class RenderWindow;
|
|
class SceneManager;
|
|
}
|
|
|
|
namespace OEngine {
|
|
namespace GUI
|
|
{
|
|
class MyGUIManager
|
|
{
|
|
MyGUI::Gui *mGui;
|
|
MyGUI::LogManager* mLogManager;
|
|
MyGUI::OgreDataManager* mDataManager;
|
|
MyGUI::OgreRenderManager* mRenderManager;
|
|
Ogre::SceneManager* mSceneMgr;
|
|
|
|
|
|
public:
|
|
MyGUIManager() : mLogManager(NULL), mDataManager(NULL), mRenderManager(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();
|
|
}
|
|
|
|
void updateWindow (Ogre::RenderWindow* wnd);
|
|
|
|
void setup(Ogre::RenderWindow *wnd, Ogre::SceneManager *mgr, bool logging=false, const std::string& logDir = std::string(""));
|
|
void shutdown();
|
|
|
|
MyGUI::Gui *getGui() { return mGui; }
|
|
};
|
|
}
|
|
}
|
|
#endif
|