Project

General

Profile

Statistics
| Revision:

root / proj / include / sprite.h @ 191

History | View | Annotate | Download (674 Bytes)

1 152 up20180642
#ifndef SPRITE_H_INCLUDED
2
#define SPRITE_H_INCLUDED
3
4
struct sprite;
5
typedef struct sprite sprite_t;
6
7 163 up20180642
sprite_t* (sprite_ctor)(const char **xpm, int u0, int v0);
8
void      (sprite_dtor)(sprite_t *p);
9 152 up20180642
10 163 up20180642
void (sprite_set_pos)   (sprite_t *p, int16_t x, int16_t y);
11 190 up20180642
void (sprite_set_center)(sprite_t *p, int16_t u0, int16_t v0);
12 163 up20180642
void (sprite_set_angle) (sprite_t *p, double angle);
13 190 up20180642
void (sprite_set_scale) (sprite_t *p, double scale);
14 152 up20180642
15 178 up20180642
int16_t  (sprite_get_x)(const sprite_t *p);
16
int16_t  (sprite_get_y)(const sprite_t *p);
17
uint16_t (sprite_get_w)(const sprite_t *p);
18
uint16_t (sprite_get_h)(const sprite_t *p);
19 152 up20180642
20 163 up20180642
void (sprite_draw)(const sprite_t *p);
21 152 up20180642
22
#endif //SPRITE_H_INCLUDED