summaryrefslogtreecommitdiff
path: root/hk21/game/gpu.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hk21/game/gpu.hpp')
-rw-r--r--hk21/game/gpu.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/hk21/game/gpu.hpp b/hk21/game/gpu.hpp
new file mode 100644
index 0000000..40a0973
--- /dev/null
+++ b/hk21/game/gpu.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <asl/status_or.hpp>
+#include <asl/box.hpp>
+
+struct SDL_Window;
+
+namespace gpu
+{
+
+class Gpu
+{
+public:
+ Gpu() = default;
+ ASL_DELETE_COPY_MOVE(Gpu);
+ virtual ~Gpu() = default;
+
+ virtual void destroy() = 0;
+};
+
+asl::status_or<asl::box<Gpu>> init(SDL_Window* window);
+
+} // namespace gpu