Project

General

Profile

Revision 167

some changes

View differences:

sprite.c
45 45
void (sprite_set_angle) (sprite_t *p, double angle){ p->theta = angle; }
46 46
void (sprite_set_center)(sprite_t *p, int16_t u0, int16_t v0){ p->u0 = u0; p->v0 = v0; }
47 47

  
48
uint16_t (sprite_get_w)(const sprite_t *p){ return p->w; }
49
uint16_t (sprite_get_h)(const sprite_t *p){ return p->h; }
48
int sprite_get_x(const sprite_t *p){ return p->x; }
49
int sprite_get_y(const sprite_t *p){ return p->y; }
50
int sprite_get_w(const sprite_t *p){ return p->w; }
51
int sprite_get_h(const sprite_t *p){ return p->h; }
50 52

  
51 53
void (sprite_src2pic)(const sprite_t *p, int16_t x, int16_t y, int16_t *u, int16_t *v){
52 54
    int16_t dx = x - p->x;

Also available in: Unified diff