BsPlatformInfo.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsIReflectable.h"
  4. namespace BansheeEngine
  5. {
  6. enum class PlatformType
  7. {
  8. Windows,
  9. Count // Keep at end
  10. };
  11. struct BS_ED_EXPORT PlatformInfo : public IReflectable
  12. {
  13. PlatformInfo();
  14. virtual ~PlatformInfo();
  15. PlatformType type;
  16. WString defines;
  17. /************************************************************************/
  18. /* RTTI */
  19. /************************************************************************/
  20. public:
  21. friend class PlatformInfoRTTI;
  22. static RTTITypeBase* getRTTIStatic();
  23. virtual RTTITypeBase* getRTTI() const;
  24. };
  25. struct BS_ED_EXPORT WinPlatformInfo : public PlatformInfo
  26. {
  27. WinPlatformInfo();
  28. bool is32bit;
  29. /************************************************************************/
  30. /* RTTI */
  31. /************************************************************************/
  32. public:
  33. friend class WinPlatformInfoRTTI;
  34. static RTTITypeBase* getRTTIStatic();
  35. virtual RTTITypeBase* getRTTI() const;
  36. };
  37. }