#ifndef SPRITE_H_
#define SPRITE_H_
+#include <stdint.h>
+
struct sprite {
- int width, height;
- int origx, origy;
+ int16_t x, y;
+ uint16_t width, height;
+ int16_t origx, origy;
/* img/mask used for blitter sprites */
void *img, *mask;
/* hardware sprite data */
- int hwslices;
uint16_t *hwspr[8];
+ uint8_t hwslices;
};
-void begin_sprites();
-void end_sprites();
+void begin_sprites(void);
+void end_sprites(void);
void draw_sprite(struct sprite *s, int x, int y);
#endif /* SPRITE_H_ */