#ifndef NUKE_H #define NUKE_H #include "render.h" #define NK_INCLUDE_STANDARD_IO #define NK_KEYSTATE_BASED_INPUT #define NK_INCLUDE_FIXED_TYPES #define NK_INCLUDE_STANDARD_VARARGS #define NK_INCLUDE_FONT_BAKING #define NK_INCLUDE_DEFAULT_FONT #define NK_INCLUDE_STANDARD_BOOL #define NK_INCLUDE_DEFAULT_ALLOCATOR #define NK_INCLUDE_STANDARD_IO #define NK_INCLUDE_VERTEX_BUFFER_OUTPUT #include "sokol/sokol_gfx.h" #include "sokol/sokol_app.h" #include "nuklear.h" #include "sokol/sokol_nuklear.h" struct window; void nuke_init(struct window *win); void nuke_start(); void nuke_end(); int nuke_begin(const char *lbl, struct rect rect); int nuke_begin_win(const char *lbl); void nuke_stop(); struct rect nuke_win_get_bounds(); void nuke_property_float(const char *lbl, float min, float *val, float max, float step, float dragstep); #define nuke_prop_float nuke_property_float void nuke_property_float2(const char *label, float min, float *val, float max, float step, float dragstep); void nuke_property_float3(const char *label, float min, float *val, float max, float step, float dragstep); void nuke_property_int(const char *lbl, int min, int *val, int max, int step); void nuke_radio_btn(const char *lbl, int *val, int cmp); void nuke_checkbox(const char *lbl, int *val); void nuke_nel_h(int cols, int h); void nuke_nel(int cols); void nuke_row(int height); void nuke_label(const char *s); void nuke_prop_float(const char *label, float min, float *val, float max, float step, float dragstep); void nuke_edit_str(char *str); void nuke_img(char *path); void nuke_scrolltext(char *str); int nuke_push_tree_id(const char *name, int id); void nuke_tree_pop(); int nuke_btn(const char *lbl); void nuke_labelf(const char *fmt, ...); #endif