Renderer for the KarmaGui.
More...
#include <KarmaGuiRenderer.h>
Renderer for the KarmaGui.
- Since
- Karma 1.0.0
◆ Add3DSceneFor2DRendering()
| KGTextureID Karma::KarmaGuiRenderer::Add3DSceneFor2DRendering |
( |
std::shared_ptr< Scene > | scene, |
|
|
KGVec2 | dimensions ) |
|
static |
Creates the vulkan resources for 2D texture (render target) from 3D meshes or scene.
- Parameters
-
| scene | The 3D scene to be rendered to 2D texture |
| dimensions | The dimensions of KarmaGui window in which 2D texture is displayed |
- See also
- texture id being used in KarmaGuiMesa::Draw3DModelExhibitorMesa
- Since
- Karma 1.0.0
◆ CleanUpVulkanAndWindowData()
| void Karma::KarmaGuiRenderer::CleanUpVulkanAndWindowData |
( |
| ) |
|
|
static |
Cleaning up vulkan allocated resources.
- Since
- Karma 1.0.0
◆ FramePresent()
Issues vkQueuePresentKHR to present graphics on screen.
- Parameters
-
| windowData | The data required for the frames_in_flight tracking, swapchain presenting, and semaphore signalling |
- Since
- Karma 1.0.0
◆ FrameRender()
◆ GetBackendRendererUserData()
◆ GracefulVulkanShutDown()
| void Karma::KarmaGuiRenderer::GracefulVulkanShutDown |
( |
| ) |
|
|
static |
◆ KarmaGui_ImplVulkan_Init()
Initialize Vulkan backend renderer.
- Todo
- Think about using moving the function to KarmaGuiVulkanHandler::KarmaGui_ImplVulkan_Init instead (for better keeping IDK?)
- Since
- Karma 1.0.0
◆ SetUpKarmaGuiRenderer()
| void Karma::KarmaGuiRenderer::SetUpKarmaGuiRenderer |
( |
GLFWwindow * | window | ) |
|
|
static |
Sets the renderer for KarmaGui based on programmer's choice.
- Todo
- Move the Vulkan part to KarmaGuiVulkanHandler for instance KarmaGui_ImplVulkan_Init. Or maybe just ponder first since I seem to have attempted that.
The documentation for this class was generated from the following files: