hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/render_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering/render_api.h')
-rw-r--r--src/rendering/render_api.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rendering/render_api.h b/src/rendering/render_api.h
new file mode 100644
index 0000000..94ab755
--- /dev/null
+++ b/src/rendering/render_api.h
@@ -0,0 +1,21 @@
+#pragma once
+
+namespace Donut
+{
+ class RendererAPI
+ {
+ public:
+ enum class API
+ {
+ None = 0,
+ OpenGL = 1,
+ Vulkan = 2,
+ };
+
+ static auto get_api() -> API { return s_api; }
+ static auto set_api(API api) -> void { s_api = api; }
+
+ private:
+ inline static API s_api = API::None;
+ };
+}