summaryrefslogtreecommitdiff
path: root/gfx/gl/transform.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-24 16:36:02 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-24 16:36:02 +0000
commit1c3e7e81049efefe8b54e4d4a719feeda995b474 (patch)
tree3a5474dfbc515c16589ae6863fba1116d7b83ec3 /gfx/gl/transform.h
parentBig tidy up of shader wrapper (diff)
downloadilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.tar.bz2
ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.tar.xz
ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.zip
Remove the weird view/model/camera connectedness
Diffstat (limited to 'gfx/gl/transform.h')
-rw-r--r--gfx/gl/transform.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gfx/gl/transform.h b/gfx/gl/transform.h
index 70fe38f..f8d8d0d 100644
--- a/gfx/gl/transform.h
+++ b/gfx/gl/transform.h
@@ -3,16 +3,12 @@
#include <glm/glm.hpp>
-class Camera;
-
class Transform {
public:
explicit Transform(glm::vec3 pos = {}, glm::vec3 rot = {}, glm::vec3 scale = {1.0F, 1.0F, 1.0F});
[[nodiscard]] glm::mat4 GetModel() const;
- [[nodiscard]] glm::mat4 GetMVP(const Camera & camera) const;
-
[[nodiscard]] inline glm::vec3 &
GetPos()
{
@@ -31,6 +27,12 @@ public:
return rot;
}
+ [[nodiscard]] inline const glm::vec3 &
+ GetRot() const
+ {
+ return rot;
+ }
+
[[nodiscard]] inline glm::vec3 &
GetScale()
{