1 #include "SceneObject.hpp"
36 glm::mat4 transformMatrix = glm::gtx::transform::translate(glm::vec3(x,y,z));
37 glm::mat4 inverseTransformMatrix = glm::gtx::transform::translate(glm::vec3(-x,-y,-z));
38 Transform(transformMatrix, inverseTransformMatrix);
47 glm::mat4 transformMatrix = glm::gtx::transform::rotate(angle,glm::vec3(1,0,0));
48 glm::mat4 inverseTransformMatrix = glm::gtx::transform::rotate(-angle,glm::vec3(1,0,0));
57 glm::mat4 transformMatrix = glm::gtx::transform::rotate(angle,glm::vec3(0,1,0));
58 glm::mat4 inverseTransformMatrix = glm::gtx::transform::rotate(-angle,glm::vec3(0,1,0));
71 glm::mat4 transformMatrix = glm::gtx::transform::rotate(angle,glm::vec3(1,0,0));
72 glm::mat4 inverseTransformMatrix = glm::gtx::transform::rotate(-angle,glm::vec3(1,0,0));
73 Transform(transformMatrix, inverseTransformMatrix);
80 glm::mat4 transformMatrix = glm::gtx::transform::rotate(angle,glm::vec3(0,1,0));
81 glm::mat4 inverseTransformMatrix = glm::gtx::transform::rotate(-angle,glm::vec3(0,1,0));
82 Transform(transformMatrix, inverseTransformMatrix);