Start imgui integration

This commit is contained in:
2021-07-31 01:02:03 +02:00
parent f34f7a659d
commit 7813920951
10 changed files with 200 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "RenderPass.hpp"
#include <vulkan/vulkan.hpp>
namespace openVulkanoCpp::Vulkan
{
class Context;
class UiRenderer
{
vk::Device device;
RenderPass uiRenderPass;
vk::DescriptorPool descriptorPool;
public:
UiRenderer() = default;
UiRenderer(Context* context) { Init(context); }
~UiRenderer() { if (descriptorPool) Close(); }
void Init(Context* context);
void BeginUiFrame() const;
void DrawUiFrame(vk::CommandBuffer& cmdBuffer);
void Close();
};
}