diff options
author | Krow Savcik <krow@savcik.xyz> | 2023-09-26 22:32:35 +0300 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2023-09-26 22:32:35 +0300 |
commit | 9e660e594f6d3a43ea1427fb872801a2fcedad93 (patch) | |
tree | 459cd0c6fc5fef0366f7ef249ae19dd67c363772 /src/cdraw.h |
initial commit
Diffstat (limited to 'src/cdraw.h')
-rw-r--r-- | src/cdraw.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/cdraw.h b/src/cdraw.h new file mode 100644 index 0000000..0f57a7f --- /dev/null +++ b/src/cdraw.h @@ -0,0 +1,35 @@ +typedef union { + int i; + unsigned int u; + float f; + const void *v; + const char *s; +} Arg; + +extern SDL_Window *win; +extern void *ren; +extern void *def_palette; +extern const char *def_palette_path; +extern int mouseX, mouseY; +extern const unsigned int back_c; + +unsigned int main_event_handle(); +unsigned int main_window_init(); +unsigned int main_quit(); + +/* Functions for user bind to something else */ +void user_canvas_zoom_change(const Arg *); +void user_canvas_move_x(const Arg *); +void user_canvas_move_y(const Arg *); +void user_canvas_save(const Arg *); +void user_canvas_open(const Arg *); +void user_canvas_export_png(const Arg *); +void user_canvas_import_png(const Arg *); +void user_canvas_refresh(const Arg *); +void user_canvas_create_new(const Arg *); +void user_canvas_pal_col_chng(const Arg *); +void user_tool_change(const Arg *); +void user_layer_chng(const Arg *); +void user_testing_layer_add(const Arg *); +void user_testing_reload_tex(const Arg *); +void user_debug_mem_show(const Arg *); |