1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/components/myguiplatform/myguiplatform.hpp

55 lines
984 B
C++
Raw Normal View History

2015-05-01 01:15:25 +02:00
#ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIPLATFORM_H
#define OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIPLATFORM_H
2015-04-24 21:55:30 +02:00
#include <string>
2015-04-24 21:55:30 +02:00
namespace osgViewer
{
class Viewer;
}
namespace osg
{
class Group;
}
namespace Resource
{
class TextureManager;
}
namespace MyGUI
{
class LogManager;
}
2015-04-24 21:55:30 +02:00
2015-05-01 01:15:25 +02:00
namespace osgMyGUI
2015-04-24 21:55:30 +02:00
{
class RenderManager;
class DataManager;
class LogFacility;
2015-04-24 21:55:30 +02:00
class Platform
{
public:
Platform(osgViewer::Viewer* viewer, osg::Group* guiRoot, Resource::TextureManager* textureManager, float uiScalingFactor);
2015-04-24 21:55:30 +02:00
~Platform();
2015-04-24 21:55:30 +02:00
void initialise(const std::string& resourcePath, const std::string& _logName = "MyGUI.log");
2015-04-24 21:55:30 +02:00
void shutdown();
2015-04-24 21:55:30 +02:00
RenderManager* getRenderManagerPtr();
2015-04-24 21:55:30 +02:00
DataManager* getDataManagerPtr();
2015-04-24 21:55:30 +02:00
private:
RenderManager* mRenderManager;
DataManager* mDataManager;
MyGUI::LogManager* mLogManager;
LogFacility* mLogFacility;
2015-04-24 21:55:30 +02:00
};
}
#endif