2022-08-05 14:23:39 -05:00
|
|
|
#ifndef NUKE_H
|
|
|
|
#define NUKE_H
|
|
|
|
|
|
|
|
#include "nuklear.h"
|
2022-08-07 01:43:45 -05:00
|
|
|
|
2022-08-05 14:23:39 -05:00
|
|
|
|
|
|
|
extern struct nk_context *ctx;
|
|
|
|
|
|
|
|
struct mSDLWindow;
|
|
|
|
|
|
|
|
void nuke_init(struct mSDLWindow *win);
|
|
|
|
void nuke_start();
|
|
|
|
void nuke_end();
|
|
|
|
|
2022-08-12 14:03:56 -05:00
|
|
|
void nk_property_float3(struct nk_context *ctx, const char *label, float min, float *val, float max, float step, float dragstep);
|
|
|
|
void nk_property_float2(struct nk_context *ctx, 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);
|
2022-08-12 14:03:56 -05:00
|
|
|
void nk_radio_button_label(struct nk_context *ctx, const char *label, int *val, int cmp);
|
2022-08-19 11:25:08 -05:00
|
|
|
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);
|
|
|
|
|
|
|
|
int nuke_btn(const char *lbl);
|
|
|
|
|
|
|
|
#define nuke_labelf(STR, ...) nk_labelf(ctx, NK_TEXT_LEFT, STR, __VA_ARGS__)
|
|
|
|
#define nuke_prop_float(LABEL, MIN, VAL, MAX, STEP, DRAG) nk_property_float(ctx, LABEL, MIN, VAL, MAX, STEP, DRAG)
|
2022-08-12 14:03:56 -05:00
|
|
|
|
2022-08-05 14:23:39 -05:00
|
|
|
#endif
|