aboutsummaryrefslogtreecommitdiff
path: root/src/cdraw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdraw.h')
-rw-r--r--src/cdraw.h35
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 *);