KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::KarmaGuiRenderer Class Reference

Static Public Member Functions

static void SetUpKarmaGuiRenderer (GLFWwindow *window)
 Sets the renderer for KarmaGui based on programmer's choice.
 
static void OnKarmaGuiLayerDetach ()
 
static void OnKarmaGuiLayerBegin ()
 
static void OnKarmaGuiLayerEnd ()
 
static KarmaGuiBackendRendererUserDataGetBackendRendererUserData ()
 Acessor function for KarmaGui's renderer backend (BackendRendererUserData).
 
static void AddImageTexture (char const *fileName, const std::string &label)
 
static void KarmaGui_ImplVulkan_Init (KarmaGui_ImplVulkan_InitInfo *initInfo)
 Initialize Vulkan backend renderer.
 
static void CreateDescriptorPool ()
 
static void GracefulVulkanShutDown ()
 
static void CleanUpVulkanAndWindowData ()
 Cleaning up vulkan allocated resources.
 
static void GiveLoopBeginControlToVulkan ()
 
static void GiveLoopEndControlToVulkan ()
 
static void FrameRender (KarmaGui_ImplVulkanH_Window *windowData, KGDrawData *drawData)
 
static void FramePresent (KarmaGui_ImplVulkanH_Window *windowData)
 

Member Function Documentation

◆ CleanUpVulkanAndWindowData()

void Karma::KarmaGuiRenderer::CleanUpVulkanAndWindowData ( )
static

Cleaning up vulkan allocated resources.

Since
Karma 1.0.0

◆ GetBackendRendererUserData()

KarmaGuiBackendRendererUserData * Karma::KarmaGuiRenderer::GetBackendRendererUserData ( )
static

Acessor function for KarmaGui's renderer backend (BackendRendererUserData).

Note
We define our own KarmaGuiBackendRendererUserData for supporting OpenGL and Vulkan.
Since
Karma 1.0.0

◆ KarmaGui_ImplVulkan_Init()

void Karma::KarmaGuiRenderer::KarmaGui_ImplVulkan_Init ( KarmaGui_ImplVulkan_InitInfo * initInfo)
static

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: