BsGameSettings.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisites.h"
  5. #include "BsIReflectable.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Utility-Engine-Internal
  9. * @{
  10. */
  11. /**
  12. * Contains settings used for controlling game start-up, as well as persisting various other properties through game
  13. * sessions.
  14. */
  15. class BS_EXPORT GameSettings : public IReflectable
  16. {
  17. public:
  18. GameSettings() { }
  19. String mainSceneUUID; /**< Resource UUID of the default scene that is loaded when the application is started. */
  20. bool fullscreen = true; /**< If true the application will be started in fullscreen using user's desktop resolution. */
  21. bool useDesktopResolution = true; /**< If running in fullscreen should the user's desktop resolution be used instead of the specified resolution. */
  22. UINT32 resolutionWidth = 1280; /**< Width of the window. */
  23. UINT32 resolutionHeight = 720; /**< Height of the window. */
  24. WString titleBarText; /**< Text displayed in window's titlebar. */
  25. /************************************************************************/
  26. /* RTTI */
  27. /************************************************************************/
  28. public:
  29. friend class GameSettingsRTTI;
  30. static RTTITypeBase* getRTTIStatic();
  31. virtual RTTITypeBase* getRTTI() const override;
  32. };
  33. /** @} */
  34. }