Переместил менеджер моделей в UwURenderEngine, так как у него нет прямой зависимости от ядра и у ядра нет зависимости от него
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "RenderEngineBase.hpp"
|
||||
#include "ModelManager.hpp"
|
||||
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#define GLM_FORCE_RADIANS
|
||||
#include <glm/glm.hpp>
|
||||
@@ -68,6 +70,7 @@ class UwURenderEngine : public RenderEngineBase
|
||||
int current_frame_ = 0;
|
||||
|
||||
CoreInstance& core_;
|
||||
std::unique_ptr<ModelManager> model_manager_;
|
||||
|
||||
VkInstance instance_ = VK_NULL_HANDLE;
|
||||
VkSurfaceKHR surface_ = VK_NULL_HANDLE;
|
||||
@@ -153,6 +156,5 @@ public:
|
||||
void start() override;
|
||||
void stop_render() const override;
|
||||
|
||||
ModelManager* GetModelManager() const { return model_manager_.get(); }
|
||||
};
|
||||
|
||||
RENDER_ENGINE_FACTORY_GENERATE(UwURenderEngine)
|
||||
Reference in New Issue
Block a user