From c8813a31a2a8cd7cc8b4b15fec67e33363d08b52 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Feb 2021 15:00:50 +0000 Subject: Remove unused scale component from Transform --- gfx/gl/transform.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'gfx/gl/transform.h') diff --git a/gfx/gl/transform.h b/gfx/gl/transform.h index f8d8d0d..61b571d 100644 --- a/gfx/gl/transform.h +++ b/gfx/gl/transform.h @@ -5,7 +5,7 @@ class Transform { public: - explicit Transform(glm::vec3 pos = {}, glm::vec3 rot = {}, glm::vec3 scale = {1.0F, 1.0F, 1.0F}); + explicit Transform(glm::vec3 pos = {}, glm::vec3 rot = {}); [[nodiscard]] glm::mat4 GetModel() const; @@ -33,12 +33,6 @@ public: return rot; } - [[nodiscard]] inline glm::vec3 & - GetScale() - { - return scale; - } - inline void SetPos(glm::vec3 && pos) { @@ -51,16 +45,9 @@ public: this->rot = rot; } - inline void - SetScale(glm::vec3 && scale) - { - this->scale = scale; - } - private: glm::vec3 pos; glm::vec3 rot; - glm::vec3 scale; }; #endif -- cgit v1.2.3