]> git.localhorst.tv Git - blank.git/blobdiff - src/model.cpp
begun extracting model class
[blank.git] / src / model.cpp
diff --git a/src/model.cpp b/src/model.cpp
new file mode 100644 (file)
index 0000000..4ee621a
--- /dev/null
@@ -0,0 +1,26 @@
+#include "model.hpp"
+
+#include <glm/gtc/matrix_transform.hpp>
+#include <glm/gtx/euler_angles.hpp>
+#include <glm/gtx/transform.hpp>
+
+
+namespace blank {
+
+Model::Model()
+: position(0, 0, 0)
+, pitch(0)
+, yaw(0) {
+
+}
+
+Model::~Model() {
+
+}
+
+
+glm::mat4 Model::Transform() const {
+       return glm::translate(position) * glm::eulerAngleYX(yaw, pitch);
+}
+
+}