X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=retrocrawl;a=blobdiff_plain;f=src%2Fsprite.h;h=0428ed005f228a23a4c3cddd606d503ebf01ac63;hp=bd854678704dcf90894152c61af15df3690c7f1e;hb=290fe3c6727ce61652276d0e01357d25ea050366;hpb=235d7bf1e33fbd2977cc3b513edcec7c11cadf48 diff --git a/src/sprite.h b/src/sprite.h index bd85467..0428ed0 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -1,20 +1,23 @@ #ifndef SPRITE_H_ #define SPRITE_H_ +#include + 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_ */