QGearsWalkmeshFileManager.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. -----------------------------------------------------------------------------
  3. Copyright (c) 2013-09-05 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 __QGearsWalkmeshFileManager_H__
  15. #define __QGearsWalkmeshFileManager_H__
  16. #include <OgreResourceManager.h>
  17. #include "QGearsPrerequisites.h"
  18. #include "QGearsWalkmeshFile.h"
  19. namespace QGears
  20. {
  21. class _QGearsExport WalkmeshFileManager : public Ogre::ResourceManager, public Ogre::Singleton<WalkmeshFileManager>
  22. {
  23. public:
  24. WalkmeshFileManager();
  25. virtual ~WalkmeshFileManager();
  26. static WalkmeshFileManager& getSingleton();
  27. static WalkmeshFileManager* 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 // __QGearsWalkmeshFileManager_H__