summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-31 09:23:28 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-31 09:23:28 +0100
commit8023d607f128ef4b4e63b833fc2045f7b41a1e3f (patch)
tree6c44c2628c5f36a1564c9010d25ae37ed1b4e3ce /sprite.h
parent0cc504d3aa972cc8d5d501d9278e8773a810985a (diff)
SFML sprites!
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sprite.h b/sprite.h
index b52026a..b5d9e7d 100644
--- a/sprite.h
+++ b/sprite.h
@@ -1,13 +1,14 @@
#pragma once
-//#include <FL/Fl_PNG_Image.H>
+#include <SFML/Graphics.hpp>
class Sprite{
public:
const unsigned char *image;
unsigned int image_len;
- //Fl_PNG_Image *fl_image;
+ sf::Texture sf_texture;
+ sf::Sprite sf_sprite;
Sprite(const unsigned char *image,unsigned int image_len);
};