summaryrefslogtreecommitdiff
path: root/include/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/draw.h')
-rw-r--r--include/draw.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/draw.h b/include/draw.h
new file mode 100644
index 0000000..3408142
--- /dev/null
+++ b/include/draw.h
@@ -0,0 +1,23 @@
+struct window {
+ sfVideoMode mode;
+ sfRenderWindow *window;
+ sfEvent event;
+};
+
+//struct field_conf {
+// sfVector2i pos;
+// int cOutThick;
+// sfVector2f cSize;
+// sfVector2i size;
+//} field_conf;
+
+void painter_init_window();
+
+unsigned long painter_register_field();
+void painter_update_field(unsigned long id, struct field *fld);
+
+unsigned long painter_register_shape();
+void painter_update_shape(unsigned long id, struct shape *shape);
+
+void painter_draw();
+void painter_destroy_window();