BsPlatformInfo.cpp 929 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "Build/BsPlatformInfo.h"
  4. #include "Private/RTTI/BsPlatformInfoRTTI.h"
  5. namespace bs
  6. {
  7. PlatformInfo::PlatformInfo()
  8. :type(PlatformType::Windows), fullscreen(true), windowedWidth(1280), windowedHeight(720)
  9. { }
  10. PlatformInfo::~PlatformInfo()
  11. { }
  12. RTTITypeBase* PlatformInfo::getRTTIStatic()
  13. {
  14. return PlatformInfoRTTI::instance();
  15. }
  16. RTTITypeBase* PlatformInfo::getRTTI() const
  17. {
  18. return PlatformInfo::getRTTIStatic();
  19. }
  20. WinPlatformInfo::WinPlatformInfo()
  21. { }
  22. RTTITypeBase* WinPlatformInfo::getRTTIStatic()
  23. {
  24. return WinPlatformInfoRTTI::instance();
  25. }
  26. RTTITypeBase* WinPlatformInfo::getRTTI() const
  27. {
  28. return WinPlatformInfo::getRTTIStatic();
  29. }
  30. }