Revision 163
changed stuff in sprite
sprite.h | ||
---|---|---|
4 | 4 |
struct sprite; |
5 | 5 |
typedef struct sprite sprite_t; |
6 | 6 |
|
7 |
sprite_t* sprite_ctor(const char **xpm, int u0, int v0);
|
|
8 |
void sprite_dtor(sprite_t *p);
|
|
7 |
sprite_t* (sprite_ctor)(const char **xpm, int u0, int v0);
|
|
8 |
void (sprite_dtor)(sprite_t *p);
|
|
9 | 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 |
void sprite_set_angle (sprite_t *p, double angle);
|
|
14 |
void sprite_set_center(sprite_t *p, int u0, int v0);
|
|
10 |
void (sprite_set_x) (sprite_t *p, int16_t x);
|
|
11 |
void (sprite_set_y) (sprite_t *p, int16_t y);
|
|
12 |
void (sprite_set_pos) (sprite_t *p, int16_t x, int16_t y);
|
|
13 |
void (sprite_set_angle) (sprite_t *p, double angle);
|
|
14 |
void (sprite_set_center)(sprite_t *p, int16_t u0, int16_t v0);
|
|
15 | 15 |
|
16 |
int sprite_get_w(const sprite_t *p);
|
|
17 |
int sprite_get_h(const sprite_t *p);
|
|
16 |
uint16_t (sprite_get_w)(const sprite_t *p);
|
|
17 |
uint16_t (sprite_get_h)(const sprite_t *p);
|
|
18 | 18 |
|
19 |
void sprite_draw(const sprite_t *p);
|
|
19 |
void (sprite_draw)(const sprite_t *p);
|
|
20 | 20 |
|
21 | 21 |
#endif //SPRITE_H_INCLUDED |
Also available in: Unified diff