summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-29 11:18:04 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-29 11:18:04 +0100
commitc8a110cdeca8c23b88d6908f0b06231847c9e722 (patch)
tree525313eb4007aab6a318c038f5fae0984ccb532a /sprite.h
parent1f00b2bb92cd4bcfcc4c24806df71a453f481f34 (diff)
Enable retrieving of sprite image length
Without having to know the name of the symbol at compile time...
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sprite.h b/sprite.h
new file mode 100644
index 0000000..e901c9a
--- /dev/null
+++ b/sprite.h
@@ -0,0 +1,6 @@
+#pragma once
+
+struct Sprite{
+ const unsigned char *image;
+ unsigned int image_len;
+};