KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
KarmaGuiPlatformIO Struct Reference
Collaboration diagram for KarmaGuiPlatformIO:

Public Attributes

void(* Platform_CreateWindow )(KarmaGuiViewport *vp)
 
void(* Platform_DestroyWindow )(KarmaGuiViewport *vp)
 
void(* Platform_ShowWindow )(KarmaGuiViewport *vp)
 
void(* Platform_SetWindowPos )(KarmaGuiViewport *vp, KGVec2 pos)
 
KGVec2(* Platform_GetWindowPos )(KarmaGuiViewport *vp)
 
void(* Platform_SetWindowSize )(KarmaGuiViewport *vp, KGVec2 size)
 
KGVec2(* Platform_GetWindowSize )(KarmaGuiViewport *vp)
 
void(* Platform_SetWindowFocus )(KarmaGuiViewport *vp)
 
bool(* Platform_GetWindowFocus )(KarmaGuiViewport *vp)
 
bool(* Platform_GetWindowMinimized )(KarmaGuiViewport *vp)
 
void(* Platform_SetWindowTitle )(KarmaGuiViewport *vp, const char *str)
 
void(* Platform_SetWindowAlpha )(KarmaGuiViewport *vp, float alpha)
 
void(* Platform_UpdateWindow )(KarmaGuiViewport *vp)
 
void(* Platform_RenderWindow )(KarmaGuiViewport *vp, void *render_arg)
 
void(* Platform_SwapBuffers )(KarmaGuiViewport *vp, void *render_arg)
 
float(* Platform_GetWindowDpiScale )(KarmaGuiViewport *vp)
 
void(* Platform_OnChangedViewport )(KarmaGuiViewport *vp)
 
int(* Platform_CreateVkSurface )(KarmaGuiViewport *vp, KGU64 vk_inst, const void *vk_allocators, KGU64 *out_vk_surface)
 
void(* Renderer_CreateWindow )(KarmaGuiViewport *vp)
 
void(* Renderer_DestroyWindow )(KarmaGuiViewport *vp)
 
void(* Renderer_SetWindowSize )(KarmaGuiViewport *vp, KGVec2 size)
 Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)
 
void(* Renderer_RenderWindow )(KarmaGuiViewport *vp, void *render_arg)
 (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to Karma::KarmaGui::RenderPlatformWindowsDefault
 
void(* Renderer_SwapBuffers )(KarmaGuiViewport *vp, void *render_arg)
 (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to Karma::KarmaGui::RenderPlatformWindowsDefault.
 
KGVector< KarmaGuiPlatformMonitorMonitors
 
KGVector< KarmaGuiViewport * > Viewports
 

Member Data Documentation

◆ Renderer_RenderWindow

void(* KarmaGuiPlatformIO::Renderer_RenderWindow) (KarmaGuiViewport *vp, void *render_arg)

(Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to Karma::KarmaGui::RenderPlatformWindowsDefault

Parameters
vpThe viewport to be rendered
render_argThe 'render_arg' is the value passed to Karma::KarmaGui::RenderPlatformWindowsDefault, usually void pointer is accepted in this case.
Since
Karma 1.0.0

◆ Renderer_SetWindowSize

void(* KarmaGuiPlatformIO::Renderer_SetWindowSize) (KarmaGuiViewport *vp, KGVec2 size)

Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)

Since
Karma 1.0.0

◆ Renderer_SwapBuffers

void(* KarmaGuiPlatformIO::Renderer_SwapBuffers) (KarmaGuiViewport *vp, void *render_arg)

(Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to Karma::KarmaGui::RenderPlatformWindowsDefault.

Parameters
vpThe viewport to be rendered
render_argThe 'render_arg' is the value passed to Karma::KarmaGui::RenderPlatformWindowsDefault, usually void pointer is accepted in this case.
Since
Karma 1.0.0

The documentation for this struct was generated from the following file: