From: John Tsiombikas Date: Sun, 29 Jul 2018 14:16:53 +0000 (+0300) Subject: starting up on the sprite system X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=retrocrawl;a=commitdiff_plain;h=235d7bf1e33fbd2977cc3b513edcec7c11cadf48 starting up on the sprite system --- diff --git a/src/sprite.h b/src/sprite.h new file mode 100644 index 0000000..bd85467 --- /dev/null +++ b/src/sprite.h @@ -0,0 +1,20 @@ +#ifndef SPRITE_H_ +#define SPRITE_H_ + +struct sprite { + int width, height; + int origx, origy; + + /* img/mask used for blitter sprites */ + void *img, *mask; + + /* hardware sprite data */ + int hwslices; + uint16_t *hwspr[8]; +}; + +void begin_sprites(); +void end_sprites(); +void draw_sprite(struct sprite *s, int x, int y); + +#endif /* SPRITE_H_ */