-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimguirenderer.h
26 lines (21 loc) · 913 Bytes
/
imguirenderer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include <Vortex2D/Vortex2D.h>
#include <imgui.h>
class ImGuiRenderer : public Vortex2D::Renderer::Drawable
{
public:
ImGuiRenderer(const Vortex2D::Renderer::Device& device);
void Update();
void Initialize(const Vortex2D::Renderer::RenderState& renderState) override;
void Update(const glm::mat4& projection, const glm::mat4& view) override;
void Draw(vk::CommandBuffer commandBuffer,
const Vortex2D::Renderer::RenderState& renderState) override;
const Vortex2D::Renderer::Device& mDevice;
Vortex2D::Renderer::DescriptorSet mDescriptorSet;
Vortex2D::Renderer::GraphicsPipeline mPipeline;
Vortex2D::Renderer::Texture mFontTexture;
vk::UniqueSampler mSampler;
Vortex2D::Renderer::VertexBuffer<ImDrawVert> mVertexBuffer, mLocalVertexBuffer;
Vortex2D::Renderer::IndexBuffer<uint16_t> mIndexBuffer, mLocalIndexBuffer;
Vortex2D::Renderer::CommandBuffer mCopy;
};