mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:56:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIPLATFORM_H
 | 
						|
#define OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIPLATFORM_H
 | 
						|
 | 
						|
#include <string>
 | 
						|
#include <memory>
 | 
						|
 | 
						|
namespace osgViewer
 | 
						|
{
 | 
						|
    class Viewer;
 | 
						|
}
 | 
						|
namespace osg
 | 
						|
{
 | 
						|
    class Group;
 | 
						|
}
 | 
						|
namespace Resource
 | 
						|
{
 | 
						|
    class ImageManager;
 | 
						|
}
 | 
						|
namespace MyGUI
 | 
						|
{
 | 
						|
    class LogManager;
 | 
						|
}
 | 
						|
namespace VFS
 | 
						|
{
 | 
						|
    class Manager;
 | 
						|
}
 | 
						|
 | 
						|
namespace osgMyGUI
 | 
						|
{
 | 
						|
 | 
						|
    class RenderManager;
 | 
						|
    class DataManager;
 | 
						|
    class LogFacility;
 | 
						|
 | 
						|
    class Platform
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        Platform(osgViewer::Viewer* viewer, osg::Group* guiRoot, Resource::ImageManager* imageManager,
 | 
						|
            const VFS::Manager* vfs, float uiScalingFactor, const std::string& resourcePath,
 | 
						|
            const std::string& logName = "MyGUI.log");
 | 
						|
 | 
						|
        ~Platform();
 | 
						|
 | 
						|
        void shutdown();
 | 
						|
 | 
						|
        RenderManager* getRenderManagerPtr();
 | 
						|
 | 
						|
        DataManager* getDataManagerPtr();
 | 
						|
 | 
						|
    private:
 | 
						|
        std::unique_ptr<LogFacility> mLogFacility;
 | 
						|
        std::unique_ptr<MyGUI::LogManager> mLogManager;
 | 
						|
        std::unique_ptr<DataManager> mDataManager;
 | 
						|
        std::unique_ptr<RenderManager> mRenderManager;
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |