blob: 29f3a0e16d6d7808484d8160b77123a80a8d7cb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef __JE_SPRITE_SHEET_H
#define __JE_SPRITE_SHEET_H
#include <vector>
#include "../math/je_quad.h"
#include "je_sprite.h"
namespace JinEngine
{
namespace Graphics
{
class SpriteSheet
{
public:
///
/// Create a new sprite in sheet.
///
Sprite* createSprite(const Math::Quad& quad);
private:
class SpriteInSheet : public Sprite
{
public:
private:
///
/// Quad in sprite sheet.
///
Math::Quad quad;
};
std::vector<SpriteInSheet> mSprites;
Graphic* mGraphic;
};
} // namespace Graphics
} // namespace JinEngine
#endif
|