BsPlatformInfo.cpp 997 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. PlatformInfo::~PlatformInfo()
  16. { }
  17. RTTITypeBase* PlatformInfo::getRTTIStatic()
  18. {
  19. return PlatformInfoRTTI::instance();
  20. }
  21. RTTITypeBase* PlatformInfo::getRTTI() const
  22. {
  23. return PlatformInfo::getRTTIStatic();
  24. }
  25. WinPlatformInfo::WinPlatformInfo()
  26. { }
  27. RTTITypeBase* WinPlatformInfo::getRTTIStatic()
  28. {
  29. return WinPlatformInfoRTTI::instance();
  30. }
  31. RTTITypeBase* WinPlatformInfo::getRTTI() const
  32. {
  33. return WinPlatformInfo::getRTTIStatic();
  34. }
  35. }