mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 13:26:44 +00:00 
			
		
		
		
	Created a override of MyGUI::DataManager::isDataExist to fix a performance issue with MyGUI startup. This required moving the functionality of MyGUI::OgrePlatform into OEngine::GUI::MyGUIManager so that a new version of the MyGUI::DataManager could be created.
		
			
				
	
	
		
			48 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OENGINE_MYGUI_MANAGER_H
 | 
						|
#define OENGINE_MYGUI_MANAGER_H
 | 
						|
 | 
						|
namespace MyGUI
 | 
						|
{
 | 
						|
  class Gui;
 | 
						|
  class LogManager;
 | 
						|
  class OgreDataManager;
 | 
						|
  class OgreRenderManager;
 | 
						|
}
 | 
						|
 | 
						|
namespace Ogre
 | 
						|
{
 | 
						|
  class RenderWindow;
 | 
						|
  class SceneManager;
 | 
						|
}
 | 
						|
 | 
						|
namespace OEngine {
 | 
						|
namespace GUI
 | 
						|
{
 | 
						|
    class MyGUIManager
 | 
						|
    {
 | 
						|
        MyGUI::Gui *mGui;
 | 
						|
        MyGUI::LogManager* mLogManager;
 | 
						|
        MyGUI::OgreDataManager* mDataManager;
 | 
						|
        MyGUI::OgreRenderManager* mRenderManager;
 | 
						|
        Ogre::SceneManager* mSceneMgr;
 | 
						|
 | 
						|
 | 
						|
    public:
 | 
						|
        MyGUIManager() : mLogManager(NULL), mDataManager(NULL), mRenderManager(NULL),  mGui(NULL) {}
 | 
						|
        MyGUIManager(Ogre::RenderWindow *wnd, Ogre::SceneManager *mgr, bool logging=false, const std::string& logDir = std::string(""))
 | 
						|
        {
 | 
						|
            setup(wnd,mgr,logging, logDir);
 | 
						|
        }
 | 
						|
        ~MyGUIManager()
 | 
						|
        {
 | 
						|
            shutdown();
 | 
						|
        }
 | 
						|
 | 
						|
        void setup(Ogre::RenderWindow *wnd, Ogre::SceneManager *mgr, bool logging=false, const std::string& logDir = std::string(""));
 | 
						|
        void shutdown();
 | 
						|
 | 
						|
        MyGUI::Gui *getGui() { return mGui; }
 | 
						|
    };
 | 
						|
}
 | 
						|
}
 | 
						|
#endif
 |