aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/ImGuiBackend/Backend.hpp
blob: ca391e6f86934d79b2079a115a9aee8e4973e5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
};