Vulkan2D
2D renderer written in C using Vulkan and SDL2
Loading...
Searching...
No Matches
Gui.h File Reference

GUI code for Vulkan2D. More...

#include "VK2D/nuklear_defs.h"
#include "VK2D/Structs.h"
Include dependency graph for Gui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct nk_contextvk2dGuiContext ()
 Returns the internal nuklear context for nuklear calls.
 
void vk2dGuiStartInput ()
 Call this at the beginning of your SDL event loop.
 
void vk2dGuiProcessEvent (SDL_Event *e)
 Call this on each SDL event.
 
void vk2dGuiEndInput ()
 Call this at the end of your SDL event loop.
 

Detailed Description

GUI code for Vulkan2D.

Author
cmburn

Function Documentation

◆ vk2dGuiContext()

struct nk_context * vk2dGuiContext ( )

Returns the internal nuklear context for nuklear calls.

Returns
Returns the internal nuklear context for nuklear calls

◆ vk2dGuiProcessEvent()

void vk2dGuiProcessEvent ( SDL_Event *  e)

Call this on each SDL event.

Parameters
eThe current SDL event