Project

General

Profile

Revision 216

many changes. implemented collision detection

View differences:

sprite.h
6 6

  
7 7
basic_sprite_t* (basic_sprite_ctor)(const char **xpm, int16_t u0, int16_t v0);
8 8
void            (basic_sprite_dtor)(basic_sprite_t *p);
9

  
10 9
const uint8_t* (basic_sprite_get_map)(const basic_sprite_t *p);
11 10
uint16_t       (basic_sprite_get_w)  (const basic_sprite_t *p);
12 11
uint16_t       (basic_sprite_get_h)  (const basic_sprite_t *p);
13 12
int16_t        (basic_sprite_get_u0) (const basic_sprite_t *p);
14 13
int16_t        (basic_sprite_get_v0) (const basic_sprite_t *p);
14
/*
15
struct basic_sprite_alpha;
16
typedef struct basic_sprite_alpha basic_sprite_alpha_t;
15 17

  
18
basic_sprite_alpha_t* (basic_sprite_alpha_ctor)(const char **xpm, int16_t u0, int16_t v0);
19
void                  (basic_sprite_alpha_dtor)(basic_sprite_alpha_t *p);
20
const uint8_t*        (basic_sprite_alpha_get_map)(const basic_sprite_alpha_t *p);
21
uint16_t              (basic_sprite_alpha_get_w)  (const basic_sprite_alpha_t *p);
22
uint16_t              (basic_sprite_alpha_get_h)  (const basic_sprite_alpha_t *p);
23
int16_t               (basic_sprite_alpha_get_u0) (const basic_sprite_alpha_t *p);
24
int16_t               (basic_sprite_alpha_get_v0) (const basic_sprite_alpha_t *p);
25
*/
16 26
struct sprite;
17 27
typedef struct sprite sprite_t;
18 28

  

Also available in: Unified diff