Start imgui integration
This commit is contained in:
37
openVulkanoCpp/Vulkan/UiRenderer.hpp
Normal file
37
openVulkanoCpp/Vulkan/UiRenderer.hpp
Normal 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();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user