Trace Engine
A Raycaster Engine in C
Loading...
Searching...
No Matches
pop_up_windows.h File Reference
#include "SDL_events.h"

Go to the source code of this file.

Macros

#define THEME_COUNT   10
 

Enumerations

enum  nk_theme_t {
  THEME_BLACK , THEME_WHITE , THEME_RED , THEME_BLUE ,
  THEME_DARK , THEME_DRACULA , THEME_CATPPUCCIN_LATTE , THEME_CATPPUCCIN_FRAPPE ,
  THEME_CATPPUCCIN_MACCHIATO , THEME_CATPPUCCIN_MOCHA
}
 

Functions

void start_nk_input_hanlder (void)
 
void run_nk_input_hanlder (SDL_Event *event)
 
void stop_nk_input_hanlder (void)
 
void update_fps_history (void)
 
void init_nk_windows (SDL_Window *current_window)
 
void close_nk (void)
 
void show_debug_console (void)
 
void set_style (const nk_theme_t theme)
 

Macro Definition Documentation

◆ THEME_COUNT

#define THEME_COUNT   10

Enumeration Type Documentation

◆ nk_theme_t

enum nk_theme_t
Enumerator
THEME_BLACK 
THEME_WHITE 
THEME_RED 
THEME_BLUE 
THEME_DARK 
THEME_DRACULA 
THEME_CATPPUCCIN_LATTE 
THEME_CATPPUCCIN_FRAPPE 
THEME_CATPPUCCIN_MACCHIATO 
THEME_CATPPUCCIN_MOCHA 

Function Documentation

◆ close_nk()

void close_nk ( void  )

Close all Nuklear functionality

◆ init_nk_windows()

void init_nk_windows ( SDL_Window *  current_window)

Initialize everything for the Nuklear windows (like themes)

◆ run_nk_input_hanlder()

void run_nk_input_hanlder ( SDL_Event *  event)

Nuklear hanlder for an SDL_Event, call it every frame

◆ set_style()

void set_style ( const nk_theme_t  theme)

Sets the given theme to the floating windows, sliders, buttons and stuff

◆ show_debug_console()

void show_debug_console ( void  )

It creates the debug console, from which you can access all the data and info of the engine

◆ start_nk_input_hanlder()

void start_nk_input_hanlder ( void  )

Nuklear needs to start seeing mouse and keyboard input, call it every frame

◆ stop_nk_input_hanlder()

void stop_nk_input_hanlder ( void  )

Nuklear needs to stop seeing mouse and keyboard input, call it every frame

◆ update_fps_history()

void update_fps_history ( void  )

Update the current FPS history, you can see the chart in the debug window