Functions, related to initialization.
More...
|
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.
|
|
Functions, related to initialization.
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 | ) |
|
NK_API void* nkc_rdie |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Fatal error. Application exit. Die with message. Printf-like.
- Parameters
-