summaryrefslogtreecommitdiff
path: root/gfx/gl/transform.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 15:00:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 15:00:50 +0000
commitc8813a31a2a8cd7cc8b4b15fec67e33363d08b52 (patch)
tree77184e7da652f19f942aafe013cbf62922d927b9 /gfx/gl/transform.h
parentClear input stack on exit (diff)
downloadilt-c8813a31a2a8cd7cc8b4b15fec67e33363d08b52.tar.bz2
ilt-c8813a31a2a8cd7cc8b4b15fec67e33363d08b52.tar.xz
ilt-c8813a31a2a8cd7cc8b4b15fec67e33363d08b52.zip
Remove unused scale component from Transform
Diffstat (limited to 'gfx/gl/transform.h')
-rw-r--r--gfx/gl/transform.h15
1 files changed, 1 insertions, 14 deletions
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