From 1c3e7e81049efefe8b54e4d4a719feeda995b474 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Jan 2021 16:36:02 +0000 Subject: Remove the weird view/model/camera connectedness --- gfx/gl/transform.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gfx/gl/transform.h') 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 -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() { -- cgit v1.2.3