From 21a0a44853451f3d791bafc80c01deab0ff4c79e Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 2 Jul 2018 23:11:26 +0300 Subject: Introduce draw manager, refactor main Move timers to struct game. Partially move field painting to draw manager. --- include/draw.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/draw.h (limited to 'include/draw.h') 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(); -- cgit v1.2.3