Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
Macros | Functions
nuklear_sdl3_gl3.h File Reference
#include <nuklear.h>
#include <SDL3/SDL.h>
#include <SDL3/SDL_opengl.h>

Go to the source code of this file.

Macros

#define GL_CALL_RET(x)
 
#define GL_CALL(x)
 

Functions

NK_API struct nk_context * nk_sdl_init (SDL_Window *win)
 
NK_API void nk_sdl_font_stash_begin (struct nk_font_atlas **atlas)
 
NK_API void nk_sdl_font_stash_end (void)
 
NK_API int nk_sdl_handle_event (SDL_Event *evt)
 
NK_API void nk_sdl_render (enum nk_anti_aliasing, int max_vertex_buffer, int max_element_buffer)
 
NK_API void nk_sdl_shutdown (void)
 
NK_API void nk_sdl_device_destroy (void)
 
NK_API void nk_sdl_device_create (void)
 
NK_API void nk_sdl_handle_grab (void)
 

Macro Definition Documentation

◆ GL_CALL

#define GL_CALL (   x)
Value:
do { \
x; \
GLenum err = glGetError(); \
if (err != GL_NO_ERROR) { \
fprintf(stderr, "[GL ERROR] %s:%d %s -> 0x%X\n", __FILE__, __LINE__, #x, err); \
} \
} while(0)

◆ GL_CALL_RET

#define GL_CALL_RET (   x)
Value:
({ \
auto __ret = (x); \
GLenum __err = glGetError(); \
if(__err != GL_NO_ERROR) \
fprintf(stderr, "GL error 0x%X at %s:%d in %s\n", __err, __FILE__, __LINE__, __func__); \
__ret; \
})

Function Documentation

◆ nk_sdl_device_create()

NK_API void nk_sdl_device_create ( void  )

◆ nk_sdl_device_destroy()

NK_API void nk_sdl_device_destroy ( void  )

◆ nk_sdl_font_stash_begin()

NK_API void nk_sdl_font_stash_begin ( struct nk_font_atlas **  atlas)

◆ nk_sdl_font_stash_end()

NK_API void nk_sdl_font_stash_end ( void  )

◆ nk_sdl_handle_event()

NK_API int nk_sdl_handle_event ( SDL_Event *  evt)

◆ nk_sdl_handle_grab()

NK_API void nk_sdl_handle_grab ( void  )

◆ nk_sdl_init()

NK_API struct nk_context* nk_sdl_init ( SDL_Window *  win)

◆ nk_sdl_render()

NK_API void nk_sdl_render ( enum  nk_anti_aliasing,
int  max_vertex_buffer,
int  max_element_buffer 
)

◆ nk_sdl_shutdown()

NK_API void nk_sdl_shutdown ( void  )