summaryrefslogtreecommitdiff
path: root/game/scenary/foliage.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/scenary/foliage.h')
-rw-r--r--game/scenary/foliage.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/game/scenary/foliage.h b/game/scenary/foliage.h
new file mode 100644
index 0000000..229bccb
--- /dev/null
+++ b/game/scenary/foliage.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "assetFactory/asset.h"
+
+class SceneShader;
+class ShadowMapper;
+class Location;
+
+class Foliage : public Asset, public StdTypeDefs<Foliage> {
+ Mesh::Ptr bodyMesh;
+ std::shared_ptr<Texture> texture;
+
+public:
+ void render(const SceneShader &, const Location &) const;
+ void shadows(const ShadowMapper &, const Location &) const;
+
+protected:
+ friend Persistence::SelectionPtrBase<std::shared_ptr<Foliage>>;
+ bool persist(Persistence::PersistenceStore & store) override;
+ void postLoad() override;
+};