diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-10-16 23:57:23 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-10-16 23:57:23 +0800 |
commit | 2a9118d137b411b3871073bb6ab18ba98c225d34 (patch) | |
tree | b5fbcf4d6ca1023efd1f3a9383ae8b242b9aadf6 /include/cru/platform/gui/sdl/Base.h | |
parent | 0b0a8a4087bd3843d4aa9140a9f302423ad5fde8 (diff) | |
download | cru-2a9118d137b411b3871073bb6ab18ba98c225d34.tar.gz cru-2a9118d137b411b3871073bb6ab18ba98c225d34.tar.bz2 cru-2a9118d137b411b3871073bb6ab18ba98c225d34.zip |
Bootstrap sdl.
Diffstat (limited to 'include/cru/platform/gui/sdl/Base.h')
-rw-r--r-- | include/cru/platform/gui/sdl/Base.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/cru/platform/gui/sdl/Base.h b/include/cru/platform/gui/sdl/Base.h new file mode 100644 index 00000000..9dd2eff6 --- /dev/null +++ b/include/cru/platform/gui/sdl/Base.h @@ -0,0 +1,24 @@ + +#pragma once + +#include <cru/base/Exception.h> + +#include "../../Resource.h" + +namespace cru::platform::gui::sdl { +class SdlResource : public Object, public virtual IPlatformResource { + public: + static constexpr const char16_t* kPlatformId = u"SDL"; + + protected: + SdlResource() = default; + + public: + String GetPlatformId() const final { return String(kPlatformId); } +}; + +class SdlException : public PlatformException { + public: + using PlatformException::PlatformException; +}; +} // namespace cru::platform::gui::xcb |