diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-17 19:36:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-17 22:16:48 +0000 |
commit | 0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c (patch) | |
tree | 68a80976a247836bbb1eecc835af437e3489fbb7 /transform.h | |
parent | First cut modernizing and sanitizing (diff) | |
download | ilt-0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c.tar.bz2 ilt-0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c.tar.xz ilt-0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c.zip |
Big reshuffle
Fixes code quality warnings now picked up.
Diffstat (limited to 'transform.h')
-rw-r--r-- | transform.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/transform.h b/transform.h deleted file mode 100644 index 783ef31..0000000 --- a/transform.h +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef TRANSFORM_INCLUDED_H
-#define TRANSFORM_INCLUDED_H
-
-#include <glm/glm.hpp>
-#include <utility>
-
-class Camera;
-
-class Transform {
-public:
- Transform(glm::vec3 pos = {}, glm::vec3 rot = {}, glm::vec3 scale = {1.0f, 1.0f, 1.0f});
-
- glm::mat4 GetModel() const;
-
- glm::mat4 GetMVP(const Camera & camera) const;
-
- inline glm::vec3 &
- GetPos()
- {
- return pos;
- }
-
- inline glm::vec3 &
- GetRot()
- {
- return rot;
- }
-
- inline glm::vec3 &
- GetScale()
- {
- return scale;
- }
-
- inline void
- SetPos(glm::vec3 && pos)
- {
- this->pos = std::move(pos);
- }
-
- inline void
- SetRot(glm::vec3 && rot)
- {
- this->rot = std::move(rot);
- }
-
- inline void
- SetScale(glm::vec3 && scale)
- {
- this->scale = std::move(scale);
- }
-
-private:
- glm::vec3 pos;
- glm::vec3 rot;
- glm::vec3 scale;
-};
-
-#endif
|