aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/gui/sdl/Base.h
blob: 9dd2eff6955137c3bc371d70bef019b36c6c349b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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