1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 07:53:53 +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-04-30 23:15:25 +00:00
#ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIPLATFORM_H
#define OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIPLATFORM_H
2015-04-24 19:55:30 +00:00
#include <filesystem>
#include <memory>
#include <string>
2015-04-24 19:55:30 +00:00
namespace osgViewer
{
class Viewer;
}
namespace osg
{
class Group;
}
namespace Resource
{
2016-02-05 22:03:53 +00:00
class ImageManager;
}
namespace MyGUI
{
class LogManager;
}
namespace VFS
{
class Manager;
}
2015-04-24 19:55:30 +00:00
2015-04-30 23:15:25 +00:00
namespace osgMyGUI
2015-04-24 19:55:30 +00:00
{
class RenderManager;
class DataManager;
class LogFacility;
2015-04-24 19:55:30 +00: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 19:55:30 +00:00
~Platform();
2015-04-24 19:55:30 +00:00
void shutdown();
2015-04-24 19:55:30 +00:00
RenderManager* getRenderManagerPtr();
2015-04-24 19:55:30 +00:00
DataManager* getDataManagerPtr();
2015-04-24 19:55:30 +00: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 19:55:30 +00:00
};
}
#endif