summaryrefslogtreecommitdiff
path: root/game/scenary/plant.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 14:33:54 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 14:33:54 +0100
commite428f2145ac3b05345d42e3518a22d429ad0970e (patch)
treee5b7cf88e9978413ff701467242a43ac4d83bdd3 /game/scenary/plant.cpp
parentoperator* collection helper reserves target space when possible (diff)
downloadilt-e428f2145ac3b05345d42e3518a22d429ad0970e.tar.bz2
ilt-e428f2145ac3b05345d42e3518a22d429ad0970e.tar.xz
ilt-e428f2145ac3b05345d42e3518a22d429ad0970e.zip
Add the plant/foliage game item concepts
Diffstat (limited to 'game/scenary/plant.cpp')
-rw-r--r--game/scenary/plant.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/game/scenary/plant.cpp b/game/scenary/plant.cpp
new file mode 100644
index 0000000..2b01bee
--- /dev/null
+++ b/game/scenary/plant.cpp
@@ -0,0 +1,13 @@
+#include "plant.h"
+
+void
+Plant::render(const SceneShader & shader) const
+{
+ type->render(shader, position);
+}
+
+void
+Plant::shadows(const ShadowMapper & mapper) const
+{
+ type->shadows(mapper, position);
+}