BsPlatformInfo.cpp 671 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include "BsPlatformInfo.h"
  2. #include "BsPlatformInfoRTTI.h"
  3. namespace BansheeEngine
  4. {
  5. PlatformInfo::PlatformInfo()
  6. :type(PlatformType::Windows), fullscreen(true), windowedWidth(1280), windowedHeight(720)
  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. { }
  20. RTTITypeBase* WinPlatformInfo::getRTTIStatic()
  21. {
  22. return WinPlatformInfoRTTI::instance();
  23. }
  24. RTTITypeBase* WinPlatformInfo::getRTTI() const
  25. {
  26. return WinPlatformInfo::getRTTIStatic();
  27. }
  28. }