Nuklear+
 All Classes Files Functions Enumerations Enumerator Macros Groups Pages
Functions
Initialization/finalizing, event loop

Functions, related to initialization. More...

Functions

NK_API void * nkc_rdie (const char *fmt,...)
 Fatal error. Application exit. Die with message. Printf-like. More...
 
NK_API struct nk_context * nkc_init (struct nkc *nkcHandle, const char *title, int width, int height, enum nkc_window_mode windowMode)
 Initialize the library, create the operation system window. More...
 
NK_API union nkc_event nkc_poll_events (struct nkc *nkcHandle)
 Poll window's events in a loop. More...
 
NK_API struct nk_context * nkc_get_ctx (struct nkc *nkcHandle)
 
NK_API void nkc_shutdown (struct nkc *nkcHandle)
 Finalizing.
 

Detailed Description

Functions, related to initialization.

Function Documentation

NK_API struct nk_context* nkc_get_ctx ( struct nkc *  nkcHandle)
Returns
Returns nkcHandle->ctx
NK_API struct nk_context* nkc_init ( struct nkc *  nkcHandle,
const char *  title,
int  width,
int  height,
enum nkc_window_mode  windowMode 
)

Initialize the library, create the operation system window.

Parameters
nkcHandle- pointer to struct nkc
title- window title
width- window width in pixels
height- window height in pixels
windowMode- one value from enum nkc_window_mode
See Also
enum nkc_window_mode
Returns
if error, than returns NULL
NK_API union nkc_event nkc_poll_events ( struct nkc *  nkcHandle)

Poll window's events in a loop.

Returns
union nkc_event
See Also
union nkc_event
NK_API void* nkc_rdie ( const char *  fmt,
  ... 
)

Fatal error. Application exit. Die with message. Printf-like.

Parameters
fmt- format string