Project

General

Profile

Revision 160

implemented sprite rotation

View differences:

sprite.h
7 7
sprite_t* sprite_ctor(const xpm_map_t xpm);
8 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);
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);
13 15

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

Also available in: Unified diff