summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-25 00:55:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-25 00:55:43 +0000
commitd51f188c130667c44c44371c2e258cb0e29f3505 (patch)
tree3b1b3a691f53964e7530e30a3bdd23879235d27f /gfx
parentBasic key controls to move the camera around (diff)
downloadilt-d51f188c130667c44c44371c2e258cb0e29f3505.tar.bz2
ilt-d51f188c130667c44c44371c2e258cb0e29f3505.tar.xz
ilt-d51f188c130667c44c44371c2e258cb0e29f3505.zip
Split physical objects from renderable ones
Diffstat (limited to 'gfx')
-rw-r--r--gfx/renderable.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/renderable.h b/gfx/renderable.h
new file mode 100644
index 0000000..e3a34dd
--- /dev/null
+++ b/gfx/renderable.h
@@ -0,0 +1,11 @@
+#ifndef RENDERABLE_H
+#define RENDERABLE_H
+
+class Shader;
+
+class Renderable {
+public:
+ virtual void render(const Shader & shader) const = 0;
+};
+
+#endif