diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-07 20:48:14 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-07 20:48:14 +0100 |
commit | c2aecdc0d6089a3c41b3d15c45cdb49fee6a45cc (patch) | |
tree | 0bc8c296e89e53c6f0d9d9e9010adf2db2dc3100 /game/scenary/foliage.h | |
parent | More uniform/flexible window constructors (diff) | |
download | ilt-c2aecdc0d6089a3c41b3d15c45cdb49fee6a45cc.tar.bz2 ilt-c2aecdc0d6089a3c41b3d15c45cdb49fee6a45cc.tar.xz ilt-c2aecdc0d6089a3c41b3d15c45cdb49fee6a45cc.zip |
Add Asset interface to create an arbitrarily placed instance
InstanceProxy is returned out via a std::any containing a
std::shared_ptr because any can only contain copyable things.
Diffstat (limited to 'game/scenary/foliage.h')
-rw-r--r-- | game/scenary/foliage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/game/scenary/foliage.h b/game/scenary/foliage.h index 71bc734..d15a8b0 100644 --- a/game/scenary/foliage.h +++ b/game/scenary/foliage.h @@ -17,6 +17,8 @@ class Foliage : public Asset, public Renderable, public StdTypeDefs<Foliage> { glVertexArray instancePointVAO; public: + [[nodiscard]] std::any createAt(const Location &) const override; + struct LocationVertex { glm::mat3 rotation; float yaw; |