Class with Imgui for vulkan backend definition, inheriting from ImGUIWrapper. More...
#include <VulkanImGUIWrapper.hpp>
Public Member Functions | |
| VulkanImGUIWrapper (SDL_Window *window, VulkanContext &vulkanContext) | |
| Constructor for VulkanImGUIWrapper. | |
| virtual | ~VulkanImGUIWrapper () |
| Destructor for VulkanImGUIWrapper. | |
| VkDescriptorSet | addTexture (VkSampler sampler, VkImageView imageView, VkImageLayout layout) |
| Adds a texture to the ImGUI wrapper. | |
| void | removeTexture (VkDescriptorSet descriptorSet) |
| Removes a texture from the ImGUI wrapper. | |
| void | init () override |
| Initialization called inside Engine class. | |
| void | beginFrame () override |
| Begining of UI rendering called in vex::Renderer::renderFrame. | |
| void | endFrame () override |
| Ends UI rendering for frame. | |
| void | processEvent (const SDL_Event *event) override |
| Its used to process input needed by interaction with ImGui. | |
| void | draw (VkCommandBuffer commandBuffer) |
| Public Member Functions inherited from vex::ImGUIWrapper | |
| void | addUIFunction (const std::function< void()> &func) |
| Adds a function to be executed during UI rendering. | |
| void | executeUIFunctions () |
| Called between beginFrame and endFrame, executes all imgui functions added by addUIFunction. | |
Private Attributes | |
| SDL_Window * | m_p_window |
| VulkanContext & | m_r_context |
Additional Inherited Members | |
| Protected Attributes inherited from vex::ImGUIWrapper | |
| std::vector< std::function< void()> > | m_uiFunctions |
Class with Imgui for vulkan backend definition, inheriting from ImGUIWrapper.
Definition at line 24 of file VulkanImGUIWrapper.hpp.
| vex::VulkanImGUIWrapper::VulkanImGUIWrapper | ( | SDL_Window * | window, |
| VulkanContext & | vulkanContext ) |
Constructor for VulkanImGUIWrapper.
| SDL_Window* | window - The SDL window to use for ImGUI. |
| VulkanContext& | vulkanContext - The Vulkan context containing vulkan resources.. |
Definition at line 12 of file VulkanImGUIWrapper.cpp.
|
virtual |
Destructor for VulkanImGUIWrapper.
Definition at line 15 of file VulkanImGUIWrapper.cpp.
| VkDescriptorSet vex::VulkanImGUIWrapper::addTexture | ( | VkSampler | sampler, |
| VkImageView | imageView, | ||
| VkImageLayout | layout ) |
Adds a texture to the ImGUI wrapper.
| VkSampler | sampler - The sampler for the texture. |
| VkImageView | imageView - The image view for the texture. |
| VkImageLayout | layout - The layout for the texture. |
Definition at line 33 of file VulkanImGUIWrapper.cpp.
|
inlineoverridevirtual |
Begining of UI rendering called in vex::Renderer::renderFrame.
Implements vex::ImGUIWrapper.
Definition at line 60 of file VulkanImGUIWrapper.hpp.
|
inline |
Definition at line 63 of file VulkanImGUIWrapper.hpp.
|
inlineoverridevirtual |
Ends UI rendering for frame.
Implements vex::ImGUIWrapper.
Definition at line 61 of file VulkanImGUIWrapper.hpp.
|
inlineoverridevirtual |
Initialization called inside Engine class.
Implements vex::ImGUIWrapper.
Definition at line 59 of file VulkanImGUIWrapper.hpp.
|
inlineoverridevirtual |
Its used to process input needed by interaction with ImGui.
Implements vex::ImGUIWrapper.
Definition at line 62 of file VulkanImGUIWrapper.hpp.
| void vex::VulkanImGUIWrapper::removeTexture | ( | VkDescriptorSet | descriptorSet | ) |
Removes a texture from the ImGUI wrapper.
| VkDescriptorSet | descriptorSet - The descriptor set for the texture. |
Definition at line 41 of file VulkanImGUIWrapper.cpp.
|
private |
Definition at line 77 of file VulkanImGUIWrapper.hpp.
|
private |
Definition at line 78 of file VulkanImGUIWrapper.hpp.