aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_renderable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/je_renderable.h')
-rw-r--r--src/libjin/graphics/je_renderable.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/libjin/graphics/je_renderable.h b/src/libjin/graphics/je_renderable.h
new file mode 100644
index 0000000..e1d0ae8
--- /dev/null
+++ b/src/libjin/graphics/je_renderable.h
@@ -0,0 +1,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 \ No newline at end of file