summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gfx/gl/bufferedLocation.cpp6
-rw-r--r--gfx/gl/bufferedLocation.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/gfx/gl/bufferedLocation.cpp b/gfx/gl/bufferedLocation.cpp
index 62cadef..6ba8812 100644
--- a/gfx/gl/bufferedLocation.cpp
+++ b/gfx/gl/bufferedLocation.cpp
@@ -63,3 +63,9 @@ BufferedLocation::getTransform() const
{
return loc.getTransform();
}
+
+glm::mat4
+BufferedLocation::getRotationTransform() const
+{
+ return loc.getRotationTransform();
+}
diff --git a/gfx/gl/bufferedLocation.h b/gfx/gl/bufferedLocation.h
index 39d3139..8302b3c 100644
--- a/gfx/gl/bufferedLocation.h
+++ b/gfx/gl/bufferedLocation.h
@@ -23,6 +23,7 @@ public:
void setLocation(Position3D, Rotation3D);
[[nodiscard]] glm::mat4 getTransform() const;
+ [[nodiscard]] glm::mat4 getRotationTransform() const;
private:
virtual void updateBuffer() = 0;