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
|
#ifndef __JE_RENDERABLE_H__
#define __JE_RENDERABLE_H__
namespace JinEngine
{
namespace Graphics
{
namespace Shaders { class Shader; };
enum class Origin
{
TOPLEFT,
TOPCENTER,
TOPRIGHT,
MIDDLELEFT,
MIDDLECENTER,
MIDDLERIGHT,
BOTTOMLEFT,
BOTTOMCENTER,
BOTTOMRIGHT
};
class Renderable
{
public:
//void setShader(const Shaders::Shader* shader);
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 {};
protected:
//const Shaders::Shader* mShader;
};
}
}
#endif
|