11 #include "SimpleGL_Export.h" 13 #define GLM_FORCE_RADIANS 14 #include <glm/glm.hpp> 78 static glm::mat4 identity();
89 static glm::mat4 scale(
float x,
float y,
float z);
98 static glm::mat4 scale(glm::vec3 vector);
110 static glm::mat4 scale(glm::mat4 matrix,
float x,
float y,
float z);
120 static glm::mat4 scale(glm::mat4 matrix, glm::vec3 vector);
131 static glm::mat4 translate(
float x,
float y,
float z);
140 static glm::mat4 translate(glm::vec3 vector);
152 static glm::mat4 translate(glm::mat4 matrix,
float x,
float y,
float z);
162 static glm::mat4 translate(glm::mat4 matrix, glm::vec3 vector);
174 static glm::mat4 rotate(
float angle,
float x,
float y,
float z);
184 static glm::mat4 rotate(
float angle, glm::vec3 vector);
197 static glm::mat4 rotate(glm::mat4 matrix,
float angle,
float x,
float y,
float z);
208 static glm::mat4 rotate(glm::mat4 matrix,
float angle, glm::vec3 vector);
228 static glm::mat4 identity();
239 static glm::mat4 lookAt(glm::vec3 eye, glm::vec3 center, glm::vec3 up);
256 static glm::mat4 lookAt(
float eyeX,
float eyeY,
float eyeZ,
float centerX,
float centerY,
float centerZ,
float upX,
float upY,
float upZ);
263 static glm::mat4 lookAt(
Camera camera);
283 static glm::mat4 identity();
297 static glm::mat4 ortho(
float left,
float right,
float bottom,
float top,
float zNear,
float zFar);
311 static glm::mat4 frustum(
float left,
float right,
float bottom,
float top,
float zNear,
float zFar);
323 static glm::mat4 perspective(
float fovy,
float aspect,
float zNear,
float zFar);
glm::vec3 front
The front side direction of the camera.
This class contains static methods to calculate view matrices.
Generic namespace for the SimpleGL framework.
This class contains static methods to calculate projection matrices.
This struct defines a camera.
glm::vec3 position
The position of the camera.
This class contains static methods to calculate model matrices.
glm::vec3 up
The up vector if the camera.