QGearsUtility.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. -----------------------------------------------------------------------------
  3. Copyright (c) 26.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 __QGearsUtility_H__
  15. #define __QGearsUtility_H__
  16. #include "common/QGearsApplication.h"
  17. #include "common/OgreBase.h"
  18. namespace QGears
  19. {
  20. class Utility : public Application
  21. {
  22. public:
  23. Utility( int argc, char *argv[] );
  24. virtual ~Utility();
  25. virtual Ogre::Camera* getCamera( void );
  26. protected:
  27. virtual void initComponents( void );
  28. virtual void destroyComponents( void );
  29. private:
  30. Utility();
  31. DisplayFrameListener *m_frame_listener;
  32. Ogre::SceneManager *m_scene_manager;
  33. Ogre::Camera *m_camera;
  34. Ogre::Viewport *m_viewport;
  35. };
  36. }
  37. #endif // __QGearsUtility_H__