aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_sprite_sheet.h
blob: 8c56c5131a2c74286ad62ec50724ee4d7dd3c8c1 (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
#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);

            SpriteSheet(const Graphic* graphic);

        private: 
            const Graphic* const mGraphic;

        };

    } // namespace Graphics 
} // namespace JinEngine 

#endif