summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-30 09:38:02 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-30 09:38:02 +0100
commitf62f270de05ebe5a71ef2e66a1a0f54b4ed9dc61 (patch)
tree19957fe8bc0e0bccbce6c73fef6b6092ed705807 /sprite.h
parentc8a110cdeca8c23b88d6908f0b06231847c9e722 (diff)
Working sprites and instance_create
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sprite.h b/sprite.h
index e901c9a..db3e276 100644
--- a/sprite.h
+++ b/sprite.h
@@ -1,6 +1,13 @@
#pragma once
-struct Sprite{
+#include <FL/Fl_PNG_Image.H>
+
+
+class Sprite{
+public:
const unsigned char *image;
unsigned int image_len;
+ Fl_PNG_Image *fl_image;
+
+ Sprite(const unsigned char *image,unsigned int image_len);
};