QGearsMapFileManager.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. -----------------------------------------------------------------------------
  3. Copyright (c) 27.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
  4. This file is part of Q-Gears
  5. Q-Gears is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, version 2.0 (GPLv2) of the License.
  8. Q-Gears is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. -----------------------------------------------------------------------------
  13. */
  14. #ifndef __QGearsMapFileManager_H__
  15. #define __QGearsMapFileManager_H__
  16. #include <OgreResourceManager.h>
  17. #include "QGearsPrerequisites.h"
  18. #include "QGearsMapFile.h"
  19. namespace QGears
  20. {
  21. class _QGearsExport MapFileManager : public Ogre::ResourceManager, public Ogre::Singleton<MapFileManager>
  22. {
  23. public:
  24. MapFileManager();
  25. virtual ~MapFileManager();
  26. static MapFileManager &getSingleton();
  27. static MapFileManager *getSingletonPtr();
  28. protected:
  29. Ogre::Resource *createImpl( const Ogre::String &name, Ogre::ResourceHandle handle
  30. , const Ogre::String &group, bool isManual, Ogre::ManualResourceLoader *loader
  31. , const Ogre::NameValuePairList *createParams );
  32. private:
  33. };
  34. }
  35. #endif // __QGearsMapFileManager_H__