Fix issues with UI renderer

This commit is contained in:
2023-09-06 00:03:06 +02:00
parent f9688792c4
commit 9709861bda
5 changed files with 29 additions and 9 deletions

View File

@@ -20,6 +20,7 @@ namespace openVulkanoCpp::Vulkan
RenderPass uiRenderPass;
vk::DescriptorPool descriptorPool;
Scene::UI::Ui* ui;
bool uiInitialized = false;
public:
UiRenderer() = default;
@@ -36,7 +37,7 @@ namespace openVulkanoCpp::Vulkan
void Close();
void SetActiveUi(Scene::UI::Ui* ui) { this->ui = ui; }
void SetActiveUi(Scene::UI::Ui* ui);
Scene::UI::Ui* GetActiveUi() { return ui; }
};