summaryrefslogtreecommitdiff
path: root/sprite.cpp
blob: 260c54f069c9a6910481f7bdb264dcc94fc3e311 (plain)
1
2
3
4
5
6
7
8
#include "sprite.h"


Sprite::Sprite(const unsigned char *image,unsigned int image_len)
		:image(image),image_len(image_len){
	sf_texture.loadFromMemory(image,image_len);
	sf_sprite.setTexture(sf_texture);
}