diff options
Diffstat (limited to 'gfx/gl/transform.cpp')
-rw-r--r-- | gfx/gl/transform.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gfx/gl/transform.cpp b/gfx/gl/transform.cpp deleted file mode 100644 index c7004ba..0000000 --- a/gfx/gl/transform.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "transform.h" -#include <glm/gtx/transform.hpp> -#include <maths.h> - -Transform::Transform(glm::vec3 pos, glm::vec3 rot) : pos {pos}, rot {rot} { } - -glm::mat4 -Transform::GetModel() const -{ - const auto posMat = glm::translate(pos); - const auto rotX = glm::rotate(rot.x, west); - const auto rotY = glm::rotate(rot.y, up); - const auto rotZ = glm::rotate(rot.z, north); - - return posMat * rotY * rotX * rotZ; -} |