summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 19:47:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 19:47:44 +0000
commit0852be322a9e584bf085174aabb8374ffbbfa694 (patch)
tree0b1e12bbdc3375733ced5be0f795c3cdb4b04d4f
parentMerge remote-tracking branch 'origin/terrain' (diff)
downloadilt-0852be322a9e584bf085174aabb8374ffbbfa694.tar.bz2
ilt-0852be322a9e584bf085174aabb8374ffbbfa694.tar.xz
ilt-0852be322a9e584bf085174aabb8374ffbbfa694.zip
nodiscard in Asset factory mutation
-rw-r--r--assetFactory/mutation.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/assetFactory/mutation.h b/assetFactory/mutation.h
index b571dea..20fe440 100644
--- a/assetFactory/mutation.h
+++ b/assetFactory/mutation.h
@@ -8,11 +8,10 @@
struct Mutation {
using Matrix = glm::mat4;
- Matrix getMatrix() const;
- Matrix getDeformationMatrix() const;
- Matrix getLocationMatrix() const;
-
- float relativeLevelOfDetail() const;
+ [[nodiscard]] Matrix getMatrix() const;
+ [[nodiscard]] Matrix getDeformationMatrix() const;
+ [[nodiscard]] Matrix getLocationMatrix() const;
+ [[nodiscard]] float relativeLevelOfDetail() const;
Position3D position {};
Rotation3D rotation {};