blob: 76bd0226a712a174cd924c0ca5eb80912eccd1c7 (
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
|