projects
/
retrocrawl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196421f
)
starting up on the sprite system
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 29 Jul 2018 14:16:53 +0000
(17:16 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 29 Jul 2018 14:16:53 +0000
(17:16 +0300)
src/sprite.h
[new file with mode: 0644]
patch
|
blob
diff --git a/src/sprite.h
b/src/sprite.h
new file mode 100644
(file)
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_ */