From 7fe47a9d5b1727a61dc724523b530762f6d6ba19 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 30 Jun 2022 21:38:53 -0700 Subject: Restructure project --- app/source/Cplt/Entrypoint/Backend.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/source/Cplt/Entrypoint/Backend.hpp (limited to 'app/source/Cplt/Entrypoint/Backend.hpp') diff --git a/app/source/Cplt/Entrypoint/Backend.hpp b/app/source/Cplt/Entrypoint/Backend.hpp new file mode 100644 index 0000000..ca391e6 --- /dev/null +++ b/app/source/Cplt/Entrypoint/Backend.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include + +class RenderingBackend +{ +public: + // Implemented in Backend_OpenGL2.cpp + static std::unique_ptr CreateOpenGL2Backend(); + // Implemented in Backend_OpenGL3.cpp + static std::unique_ptr CreateOpenGL3Backend(); + // Implemented in Backend_Vulkan.cpp + static std::unique_ptr CreateVulkanBackend(); + // Implemented in Backend_DirectX11.cpp + static std::unique_ptr CreateDx11Backend(); + // Implemented in Backend_DirectX12.cpp + static std::unique_ptr CreateDx12Backend(); + // Implemented in Backend_Metal.cpp + static std::unique_ptr CreateMetalBackend(); + + virtual ~RenderingBackend() = default; + virtual void RunUntilWindowClose(void (*windowContent)()) = 0; +}; -- cgit v1.2.3-70-g09d2