JackUtils 0.5
Provides simplified Jack API for clients :)
|
GUI and window creation extension for JackUtils :) More...
#include <ext/gl.h>
#include <stdarg.h>
#include <ext/nuklear.h>
Go to the source code of this file.
Typedefs | |
typedef struct nk_context | jg_ctx_t |
Functions | |
JG_API jg_ctx_t * | jg_init (const char *title, int w, int h) |
Initializes GUI context. More... | |
JG_API void | jg_uninit (jg_ctx_t *u) |
Destroys GUI context. More... | |
JG_API int | jg_begin (jg_ctx_t *u, int fullscreen) |
Starts GUI objects enumeration. More... | |
JG_API void | jg_end (jg_ctx_t *u, int mul) |
Ends GUI objects enumeration. More... | |
JG_API void | jg_sync_visibility (jg_ctx_t *gui, ju_ctx_t *ctx) |
Synchronize window visibility with Session Manager (if has one, else do nothing). More... | |
JG_API void | jg_set_visibility (jg_ctx_t *u, int s) |
JG_API void | jg_request_redraw (jg_ctx_t *u) |
Sends redraw event to internal event pool. More... | |
JG_API void | jg_show_message (jg_ctx_t *u, ju_cstr_t msg) |
Notifies user with message. More... | |
JG_API void | jg_show_about (jg_ctx_t *u) |
Shows about subwindow with information about your program. More... | |
JG_API struct nk_image | jg_image_load_from_memory (const unsigned char *ptr, int w, int h, int channels) |
Nuklear Image load function. More... | |
JG_API void | jg_image_free (struct nk_image img) |
Frees nuklear image. More... | |
JG_API struct nk_image | jg_jackutils_icon (void) |
float | jg_whell_float (jg_ctx_t *ctx, float value, float min, float max) |
Float whell widget. | |
JG_API void | jg_jackutils_topbar (jg_ctx_t *u, ju_ctx_t *j) |
JackUtils Classic GUI topbar. More... | |
GUI and window creation extension for JackUtils :)
JG_API void jg_image_free | ( | struct nk_image | img | ) |
JG_API struct nk_image jg_image_load_from_memory | ( | const unsigned char * | ptr, |
int | w, | ||
int | h, | ||
int | channels | ||
) |
Nuklear Image load function.
WARNING! Creating image from same texture will generate NEW IMAGE in gpu! Also, there is no way to reference count this images :( So, be careful, and create images before main loop, and free after.
ptr | pointer to the raw image |
w | width |
h | height |
channels | count of channels (1 ... 4) |
JG_API struct nk_image jg_jackutils_icon | ( | void | ) |