Project

General

Profile

Revision 162

each sprite should be loaded with the adequate function that sets its center correctly

View differences:

sprite.h
4 4
struct sprite;
5 5
typedef struct sprite sprite_t;
6 6

  
7
sprite_t* sprite_ctor(const xpm_map_t xpm);
7
sprite_t* sprite_ctor(const char **xpm, int u0, int v0);
8 8
void      sprite_dtor(sprite_t *p);
9 9

  
10 10
void sprite_set_x     (sprite_t *p, int x);
......
13 13
void sprite_set_angle (sprite_t *p, double angle);
14 14
void sprite_set_center(sprite_t *p, int u0, int v0);
15 15

  
16
int sprite_get_w(const sprite_t *p);
16 17
int sprite_get_h(const sprite_t *p);
17
int sprite_get_w(const sprite_t *p);
18 18

  
19 19
void sprite_draw(const sprite_t *p);
20 20

  

Also available in: Unified diff