Вынес движок рендера в отдельный модуль ввиде статической библиотеки

This commit is contained in:
Jiga228
2025-10-25 20:33:21 +07:00
parent e52df7ef12
commit 29f700d3a5
17 changed files with 217 additions and 118 deletions
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
class CoreInstance;
class RenderEngineBase
{
GLFWwindow* window_ = nullptr;
public:
explicit RenderEngineBase();
virtual ~RenderEngineBase();
virtual void start() = 0;
virtual void stop_render() const = 0;
GLFWwindow* get_window() const { return window_; }
};
#define RENDER_ENGINE_FACTORY_GENERATE(Class) \
RenderEngineBase* RenderEngineFactory(CoreInstance& core) {\
return new Class(core); \
}