BsPlatformInfo.cpp 918 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifdef DEBUG
  10. debug(true)
  11. #else
  12. debug(false)
  13. #endif
  14. { }
  15. RTTITypeBase* PlatformInfo::getRTTIStatic()
  16. {
  17. return PlatformInfoRTTI::instance();
  18. }
  19. RTTITypeBase* PlatformInfo::getRTTI() const
  20. {
  21. return PlatformInfo::getRTTIStatic();
  22. }
  23. RTTITypeBase* WinPlatformInfo::getRTTIStatic()
  24. {
  25. return WinPlatformInfoRTTI::instance();
  26. }
  27. RTTITypeBase* WinPlatformInfo::getRTTI() const
  28. {
  29. return WinPlatformInfo::getRTTIStatic();
  30. }
  31. }