#include #include #include #include #include #include "nk.h" int mainstacksize = 32*1024; static void drawstuff(struct nk_context *ctx) { static struct nk_colorf combo_color2 = {0.509f, 0.705f, 0.2f, 0.5f}; if(nk_begin(ctx, "mainmenu", nk_rect(0, 0, Dx(screen->r), Dy(screen->r)), NK_WINDOW_NO_SCROLLBAR|NK_WINDOW_BACKGROUND)){ nk_layout_row_dynamic(ctx, Dy(screen->r), 1); combo_color2 = nk_color_picker(ctx, combo_color2, NK_RGBA); } nk_end(ctx); } void usage(void) { fprint(2, "usage: %s\n", argv0); threadexitsall("usage"); } void threadmain(int argc, char *argv[]) { ARGBEGIN{ default: usage(); }ARGEND nkinit(drawstuff); }