Include and link physfs properly.
[tuxanci.git] / src / client / layer.h
blob3642a0ad4476f74d9a045341b21dcc19e207dae4
1 #ifndef MY_LAYER_H
2 #define MY_LAYER_H
4 #include "main.h"
5 #include "image.h"
7 typedef struct layer_str {
8 /* coordinates of the image */
9 int x;
10 int y;
12 /* size of the image */
13 int w;
14 int h;
16 /* coordinates of a part of the surface */
17 int px;
18 int py;
20 /* size of a part of the surface */
21 int pw;
22 int ph;
24 /* in which layer to lay it */
25 int layer;
27 /* image of the surface */
28 image_t *image;
29 } layer_t;
31 extern bool_t layer_is_inicialized();
32 extern void layer_init();
34 extern void addLayer(image_t *img, int x, int y, int px, int py, int w, int h, int player);
36 extern void layer_draw_all();
37 extern void layer_draw_center(int x, int y);
38 extern void layer_draw_slpit(int local_x, int local_y, int x, int y, int w, int h);
39 extern void layer_flush();
40 extern void layer_quit();
42 #endif /* MY_LAYER_H */