1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 00:32:49 +00:00
OpenMW/components/myguiplatform/myguiplatform.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
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 <filesystem>
#include <memory>
#include <string>
2015-04-24 21:55:30 +02:00
namespace osgViewer
{
class Viewer;
}
namespace osg
{
class Group;
}
namespace Resource
{
2016-02-05 23:03:53 +01:00
class ImageManager;
}
namespace MyGUI
{
class LogManager;
}
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
{
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::ImageManager* imageManager,
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
~Platform();
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:
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