prosperon/source/engine/nuke.h

37 lines
1.1 KiB
C
Raw Normal View History

2022-08-05 14:23:39 -05:00
#ifndef NUKE_H
#define NUKE_H
2022-12-23 13:48:29 -06:00
#include "nuklear.h"
2022-08-05 14:23:39 -05:00
struct window;
2022-08-05 14:23:39 -05:00
void nuke_init(struct window *win);
2022-08-05 14:23:39 -05:00
void nuke_start();
void nuke_end();
2022-12-23 13:48:29 -06:00
int nuke_begin(const char *lbl, struct nk_rect rect, int flags);
void nuke_stop();
struct nk_rect nuke_win_get_bounds();
void nuke_property_float(const char *lbl, float min, float *val, float max, float step, float dragstep);
2022-12-23 13:48:29 -06:00
#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);
2022-08-19 11:25:08 -05:00
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);
2022-08-17 00:01:51 -05:00
void nuke_nel(int cols);
void nuke_label(const char *s);
2022-08-19 11:25:08 -05:00
void nuke_prop_float(const char *label, float min, float *val, float max, float step, float dragstep);
void nuke_edit_str(char *str);
2022-08-19 11:25:08 -05:00
2022-12-23 13:48:29 -06:00
int nuke_push_tree_id(const char *name, int id);
void nuke_tree_pop();
2022-08-19 11:25:08 -05:00
int nuke_btn(const char *lbl);
2022-12-23 13:48:29 -06:00
void nuke_labelf(const char *fmt, ...);
2022-08-12 14:03:56 -05:00
#endif