diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-31 00:31:01 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-31 00:31:01 +0100 |
commit | 1f314a6087b276ad8b2680ecb18f43dfe77df595 (patch) | |
tree | 2d76d48b097cd303e9acf91af938bd40b475f170 /hk21/game/gpu.hpp | |
parent | d3e00990b86277e490e0f68a1cd6f092b28d54aa (diff) |
Make gpu module
Diffstat (limited to 'hk21/game/gpu.hpp')
-rw-r--r-- | hk21/game/gpu.hpp | 23 |
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
|