]> git.localhorst.tv Git - blank.git/blob - src/model.cpp
4ee621afbb614605acd7dd3a02674721e6d3bc3c
[blank.git] / src / model.cpp
1 #include "model.hpp"
2
3 #include <glm/gtc/matrix_transform.hpp>
4 #include <glm/gtx/euler_angles.hpp>
5 #include <glm/gtx/transform.hpp>
6
7
8 namespace blank {
9
10 Model::Model()
11 : position(0, 0, 0)
12 , pitch(0)
13 , yaw(0) {
14
15 }
16
17 Model::~Model() {
18
19 }
20
21
22 glm::mat4 Model::Transform() const {
23         return glm::translate(position) * glm::eulerAngleYX(yaw, pitch);
24 }
25
26 }