starting up on the sprite system
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 29 Jul 2018 14:16:53 +0000 (17:16 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 29 Jul 2018 14:16:53 +0000 (17:16 +0300)
src/sprite.h [new file with mode: 0644]

diff --git a/src/sprite.h b/src/sprite.h
new file mode 100644 (file)
index 0000000..bd85467
--- /dev/null
@@ -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_ */