summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-25 14:32:56 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-25 14:32:56 +0000
commit3200eb41d60595813dca751fe15193ba0b44dddf (patch)
tree064232efc8c72cfc8e7c723eec0d8438e561748a /lib
parentSend position and rotation matrix to GPU separately in shadowmapper dynamic (diff)
downloadilt-3200eb41d60595813dca751fe15193ba0b44dddf.tar.bz2
ilt-3200eb41d60595813dca751fe15193ba0b44dddf.tar.xz
ilt-3200eb41d60595813dca751fe15193ba0b44dddf.zip
Remove getTransform
Diffstat (limited to 'lib')
-rw-r--r--lib/location.cpp6
-rw-r--r--lib/location.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/location.cpp b/lib/location.cpp
index 9a31402..ff7cfa6 100644
--- a/lib/location.cpp
+++ b/lib/location.cpp
@@ -3,12 +3,6 @@
#include <glm/gtx/transform.hpp>
glm::mat4
-Location::getTransform() const
-{
- return glm::translate(pos) * rotate_ypr(rot);
-}
-
-glm::mat4
Location::getRotationTransform() const
{
return rotate_ypr(rot);
diff --git a/lib/location.h b/lib/location.h
index 55737ae..85834a0 100644
--- a/lib/location.h
+++ b/lib/location.h
@@ -9,7 +9,6 @@ public:
explicit Location(Position3D pos = {}, Rotation3D rot = {}) : pos {pos}, rot {rot} { }
#endif
- [[nodiscard]] glm::mat4 getTransform() const;
[[nodiscard]] glm::mat4 getRotationTransform() const;
Position3D pos;