VGearsUtility.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #pragma once
  16. #include "common/VGearsApplication.h"
  17. #include "common/OgreBase.h"
  18. namespace VGears{
  19. /**
  20. * Provides utilities for the application.
  21. */
  22. class Utility : public Application{
  23. public:
  24. /**
  25. * Constructor.
  26. *
  27. * @param[in] argc Number of arguments passed to the application.
  28. * @param[in] argv List of arguments passed to the application.
  29. */
  30. Utility(int argc, char *argv[]);
  31. /**
  32. * Destructor.
  33. */
  34. virtual ~Utility();
  35. virtual Ogre::Camera* GetCamera( void );
  36. protected:
  37. /**
  38. * Initializes components used by the utilities.
  39. */
  40. virtual void InitComponents();
  41. /**
  42. * Initializes components used by the utilities.
  43. */
  44. virtual void DestroyComponents();
  45. private:
  46. /**
  47. * Constructor.
  48. */
  49. Utility();
  50. /**
  51. * The frame listener.
  52. */
  53. DisplayFrameListener *frame_listener_;
  54. /**
  55. * The application scene manager.
  56. */
  57. Ogre::SceneManager *scene_manager_;
  58. /**
  59. * The engine camera.
  60. */
  61. Ogre::Camera *camera_;
  62. /**
  63. * The engine viewport.
  64. */
  65. Ogre::Viewport *viewport_;
  66. };
  67. }