aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/ImGuiBackend/Backend.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-30 23:47:26 -0700
committerrtk0c <[email protected]>2022-06-30 23:47:26 -0700
commitb01ed99a1cd0c863c8709930658513c04dd70f61 (patch)
tree37865c7683c3c39e69de3dd9798c5bcacb250d99 /app/source/Cplt/ImGuiBackend/Backend.hpp
parent68b2695ee31504908122b48a5d36b77a9c983799 (diff)
Rename Entrypoint/ to ImGuiBackend/ for accuracy
Diffstat (limited to 'app/source/Cplt/ImGuiBackend/Backend.hpp')
-rw-r--r--app/source/Cplt/ImGuiBackend/Backend.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/source/Cplt/ImGuiBackend/Backend.hpp b/app/source/Cplt/ImGuiBackend/Backend.hpp
new file mode 100644
index 0000000..ca391e6
--- /dev/null
+++ b/app/source/Cplt/ImGuiBackend/Backend.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <memory>
+
+class RenderingBackend
+{
+public:
+ // Implemented in Backend_OpenGL2.cpp
+ static std::unique_ptr<RenderingBackend> CreateOpenGL2Backend();
+ // Implemented in Backend_OpenGL3.cpp
+ static std::unique_ptr<RenderingBackend> CreateOpenGL3Backend();
+ // Implemented in Backend_Vulkan.cpp
+ static std::unique_ptr<RenderingBackend> CreateVulkanBackend();
+ // Implemented in Backend_DirectX11.cpp
+ static std::unique_ptr<RenderingBackend> CreateDx11Backend();
+ // Implemented in Backend_DirectX12.cpp
+ static std::unique_ptr<RenderingBackend> CreateDx12Backend();
+ // Implemented in Backend_Metal.cpp
+ static std::unique_ptr<RenderingBackend> CreateMetalBackend();
+
+ virtual ~RenderingBackend() = default;
+ virtual void RunUntilWindowClose(void (*windowContent)()) = 0;
+};