]> git.localhorst.tv Git - orbi.git/blob - src/graphics/Sprite.h
initial collision tests
[orbi.git] / src / graphics / Sprite.h
1 #ifndef ORBI_SPRITE_H_
2 #define ORBI_SPRITE_H_
3
4 #include "Texture.h"
5 #include "Vector.h"
6
7
8 namespace orbi {
9
10 class Canvas;
11
12 class Sprite {
13
14 public:
15         Sprite(Texture &&, Vector<int> size);
16
17 public:
18         Vector<int> Size() const { return size; }
19
20         void Draw(Vector<int> index, Canvas &to, Vector<int> at);
21
22 private:
23         Texture tex;
24         Vector<int> size;
25
26 };
27
28 }
29
30 #endif