SDEngine
Game Engine
Loading...
Searching...
No Matches
SDImGuiViewport.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <imgui.h>
4#include <string>
5
6#include "SD/arena.hpp"
9#include "SDImGuiContext.hpp"
10
11namespace sd {
12
15 const std::string& name,
16 Arena* arena,
17 uint32_t width = 1280,
18 uint32_t height = 720);
20
21 void begin();
22 void end();
23
25 const std::string& get_name() const { return m_name; }
26
27 ImTextureID get_im_gui_texture_id() const { return reinterpret_cast<ImTextureID>(m_texture_id); }
28
29
30 std::string m_name;
32 vk::UniqueSampler m_sampler;
36};
37
38} // namespace sd
Definition Application.hpp:22
Definition arena.hpp:85
Definition EngineServices.hpp:10
Definition SDImGuiContext.hpp:27
Definition SDImGuiViewport.hpp:13
const std::string & get_name() const
Definition SDImGuiViewport.hpp:25
VulkanFramebuffer & get_framebuffer()
Definition SDImGuiViewport.hpp:24
ImTextureID get_im_gui_texture_id() const
Definition SDImGuiViewport.hpp:27
std::string m_name
Definition SDImGuiViewport.hpp:30
VkDescriptorSet m_texture_id
Definition SDImGuiViewport.hpp:33
SDImGuiContext & m_imgui_ctx
Definition SDImGuiViewport.hpp:35
VulkanFramebuffer * m_framebuffer
Definition SDImGuiViewport.hpp:31
~SDImGuiViewport()
Definition SDImGuiViewport.cpp:49
VulkanContext & m_vulkan_ctx
Definition SDImGuiViewport.hpp:34
void begin()
Definition SDImGuiViewport.cpp:59
vk::UniqueSampler m_sampler
Definition SDImGuiViewport.hpp:32
void end()
Definition SDImGuiViewport.cpp:87
Definition VulkanContext.hpp:22
Definition VulkanFramebuffer.hpp:8
consteval U64 type_id_of()
Definition type_id.hpp:6