summaryrefslogtreecommitdiff
path: root/include/draw.h
blob: 3408142fd2dc3f11ef5f399bbcda9527b0d92f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();