aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/gui/sdl/Base.h
blob: 74e4d8ce9522a6160cb3c08c9b6aa05b314b0bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <cru/platform/gui/Base.h>

namespace cru::platform::gui::sdl {
class SdlResource : public Object, public virtual IPlatformResource {
 public:
  static constexpr const char* kPlatformId = "SDL";

 protected:
  SdlResource() = default;

 public:
  std::string GetPlatformId() const final { return kPlatformId; }
};

class SdlException : public PlatformException {
 public:
  using PlatformException::PlatformException;
};

void CheckSdlReturn(bool success);
}  // namespace cru::platform::gui::sdl