VGearsUtility.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 argc[in] Number of arguments passed to the application.
  28. * @param argv[in] 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. }