diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-01 19:47:44 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-01 19:47:44 +0000 |
commit | 0852be322a9e584bf085174aabb8374ffbbfa694 (patch) | |
tree | 0b1e12bbdc3375733ced5be0f795c3cdb4b04d4f /assetFactory/mutation.h | |
parent | Merge remote-tracking branch 'origin/terrain' (diff) | |
download | ilt-0852be322a9e584bf085174aabb8374ffbbfa694.tar.bz2 ilt-0852be322a9e584bf085174aabb8374ffbbfa694.tar.xz ilt-0852be322a9e584bf085174aabb8374ffbbfa694.zip |
nodiscard in Asset factory mutation
Diffstat (limited to 'assetFactory/mutation.h')
-rw-r--r-- | assetFactory/mutation.h | 9 |
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 {}; |