BsPlatformInfo.cpp 628 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "BsPlatformInfo.h"
  2. #include "BsPlatformInfoRTTI.h"
  3. namespace BansheeEngine
  4. {
  5. PlatformInfo::PlatformInfo()
  6. :type(PlatformType::Windows)
  7. { }
  8. PlatformInfo::~PlatformInfo()
  9. { }
  10. RTTITypeBase* PlatformInfo::getRTTIStatic()
  11. {
  12. return PlatformInfoRTTI::instance();
  13. }
  14. RTTITypeBase* PlatformInfo::getRTTI() const
  15. {
  16. return PlatformInfo::getRTTIStatic();
  17. }
  18. WinPlatformInfo::WinPlatformInfo()
  19. :is32bit(true)
  20. { }
  21. RTTITypeBase* WinPlatformInfo::getRTTIStatic()
  22. {
  23. return WinPlatformInfoRTTI::instance();
  24. }
  25. RTTITypeBase* WinPlatformInfo::getRTTI() const
  26. {
  27. return WinPlatformInfo::getRTTIStatic();
  28. }
  29. }