root / lab5 / sprite.h @ 135
History | View | Annotate | Download (449 Bytes)
1 |
#ifndef SPRITE_H_INCLUDED
|
---|---|
2 |
#define SPRITE_H_INCLUDED
|
3 |
|
4 |
struct sprite;
|
5 |
typedef struct sprite sprite_t; |
6 |
|
7 |
sprite_t* sprite_ctor(const xpm_map_t xpm);
|
8 |
void sprite_dtor(sprite_t *p);
|
9 |
|
10 |
void sprite_set_x(sprite_t *p, int x); |
11 |
void sprite_set_y(sprite_t *p, int y); |
12 |
void sprite_set_pos(sprite_t *p, int x, int y); |
13 |
|
14 |
int sprite_get_h(const sprite_t *p); |
15 |
int sprite_get_w(const sprite_t *p); |
16 |
|
17 |
void sprite_draw(const sprite_t *p); |
18 |
|
19 |
#endif //SPRITE_H_INCLUDED |