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
|
|
|
|
2022-06-19 13:28:33 +02:00
|
|
|
#include <filesystem>
|
2022-07-18 20:44:31 +02:00
|
|
|
#include <memory>
|
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;
|
|
|
|
}
|
2022-07-18 20:49:50 +02:00
|
|
|
namespace VFS
|
|
|
|
{
|
|
|
|
class Manager;
|
|
|
|
}
|
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:
|
2022-07-18 20:44:57 +02:00
|
|
|
Platform(osgViewer::Viewer* viewer, osg::Group* guiRoot, Resource::ImageManager* imageManager,
|
2022-06-19 13:28:33 +02:00
|
|
|
const VFS::Manager* vfs, float uiScalingFactor, const std::filesystem::path& resourcePath,
|
|
|
|
const std::filesystem::path& logName = "MyGUI.log");
|
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 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:
|
2022-07-18 20:44:31 +02:00
|
|
|
std::unique_ptr<LogFacility> mLogFacility;
|
|
|
|
std::unique_ptr<MyGUI::LogManager> mLogManager;
|
|
|
|
std::unique_ptr<DataManager> mDataManager;
|
|
|
|
std::unique_ptr<RenderManager> mRenderManager;
|
2015-04-24 21:55:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|