From 35094294df2e1b5fdb6fd63abd9f7c195b25c6da Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 1 Jul 2010 00:40:33 +0200 Subject: Added PointSprite-class. --- pointsprite.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pointsprite.h (limited to 'pointsprite.h') diff --git a/pointsprite.h b/pointsprite.h new file mode 100644 index 0000000..65a95d2 --- /dev/null +++ b/pointsprite.h @@ -0,0 +1,17 @@ +#ifndef POINTSPRITE_H +#define POINTSPRITE_H + +#include "texture.h" +#include "vector.h" + +class PointSprite { + public: + PointSprite(float _size, const Texture& _texture); + void draw(const Vector2& pos) const; + void draw_array(void* ptr, unsigned int coords, unsigned int stride, unsigned int first, unsigned int num); + private: + float size; + const Texture& texture; +}; + +#endif -- cgit v1.2.3