blob: 3642a0ad4476f74d9a045341b21dcc19e207dae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef MY_LAYER_H
#define MY_LAYER_H
#include "main.h"
#include "image.h"
typedef struct layer_str {
/* coordinates of the image */
int x;
int y;
/* size of the image */
int w;
int h;
/* coordinates of a part of the surface */
int px;
int py;
/* size of a part of the surface */
int pw;
int ph;
/* in which layer to lay it */
int layer;
/* image of the surface */
image_t *image;
} layer_t;
extern bool_t layer_is_inicialized();
extern void layer_init();
extern void addLayer(image_t *img, int x, int y, int px, int py, int w, int h, int player);
extern void layer_draw_all();
extern void layer_draw_center(int x, int y);
extern void layer_draw_slpit(int local_x, int local_y, int x, int y, int w, int h);
extern void layer_flush();
extern void layer_quit();
#endif /* MY_LAYER_H */
|