aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_renderable.h
blob: ca785c3ad7dfa7083f8f9173f5dcc1b3e72c9e30 (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