summaryrefslogtreecommitdiff
path: root/include/draw.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2018-07-02 23:11:26 +0300
committerOxore <oxore@protonmail.com>2018-07-02 23:11:26 +0300
commit21a0a44853451f3d791bafc80c01deab0ff4c79e (patch)
tree7636e99380c570d903db114ad2834f8bbd93fd7b /include/draw.h
parentbb9d1873ad414b09efdd7c8bf6798b431adb3cb2 (diff)
Introduce draw manager, refactor main
Move timers to struct game. Partially move field painting to draw manager.
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();