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
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
#include <string>
|
2015-04-24 21:55:30 +02:00
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
namespace osgViewer
|
|
|
|
{
|
|
|
|
class Viewer;
|
|
|
|
}
|
|
|
|
namespace osg
|
|
|
|
{
|
|
|
|
class Group;
|
|
|
|
}
|
|
|
|
namespace Resource
|
|
|
|
{
|
2016-02-05 23:03:53 +01:00
|
|
|
class ImageManager;
|
2015-11-07 17:39:31 +01:00
|
|
|
}
|
|
|
|
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
|
|
|
{
|
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
class RenderManager;
|
|
|
|
class DataManager;
|
|
|
|
class LogFacility;
|
|
|
|
|
2015-04-24 21:55:30 +02:00
|
|
|
class Platform
|
|
|
|
{
|
|
|
|
public:
|
2016-02-05 23:10:27 +01:00
|
|
|
Platform(osgViewer::Viewer* viewer, osg::Group* guiRoot, Resource::ImageManager* imageManager, float uiScalingFactor);
|
2015-04-24 21:55:30 +02:00
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
~Platform();
|
2015-04-24 21:55:30 +02:00
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
void initialise(const std::string& resourcePath, const std::string& _logName = "MyGUI.log");
|
2015-04-24 21:55:30 +02:00
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
void shutdown();
|
2015-04-24 21:55:30 +02:00
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
RenderManager* getRenderManagerPtr();
|
2015-04-24 21:55:30 +02:00
|
|
|
|
2015-11-07 17:39:31 +01:00
|
|
|
DataManager* getDataManagerPtr();
|
2015-04-24 21:55:30 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
RenderManager* mRenderManager;
|
|
|
|
DataManager* mDataManager;
|
|
|
|
MyGUI::LogManager* mLogManager;
|
2015-05-01 02:04:24 +02:00
|
|
|
LogFacility* mLogFacility;
|
2016-01-03 18:20:34 +01:00
|
|
|
|
|
|
|
void operator=(const Platform&);
|
|
|
|
Platform(const Platform&);
|
2015-04-24 21:55:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|