aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_renderable.h
blob: e1d0ae89f4b28578ef61ff7efb25f091e847a2b0 (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
#ifndef __JE_RENDERABLE_H__
#define __JE_RENDERABLE_H__

namespace JinEngine
{
    namespace Graphics
    {

        enum class Origin
        {
            TopLeft,
            TopCenter,
            TopRight,
            MiddleLeft,
            MiddleCenter,
            MiddleRight,
            BottomLeft,
            BottomCenter,
            BottomRight
        };

        class IRenderable
        {
        public:
            virtual void render(float x, float y, float sx, float sy, float r) const {};
            virtual void render(float x, float y, float sx, float sy, float r, float ox, float oy) const {};
            virtual void render(float x, float y, float sx, float sy, float r, Origin origin) const {};

        };

    }
}

#endif