SimpleGL
1.1.0
A framework for platform independent rendering
|
This class contains static methods to calculate view matrices. More...
#include <transform.hpp>
Static Public Member Functions | |
static glm::mat4 | identity () |
Returns an identity matrix. More... | |
static glm::mat4 | lookAt (glm::vec3 eye, glm::vec3 center, glm::vec3 up) |
Calculates a viewing matrix derived from an eye point, a reference point indicating the center of the scene, and an UP vector. More... | |
static glm::mat4 | lookAt (float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) |
Calculates a viewing matrix derived from an eye point, a reference point indicating the center of the scene, and an UP vector. More... | |
static glm::mat4 | lookAt (Camera camera) |
Calculates a viewing matrix from a camera. More... | |
This class contains static methods to calculate view matrices.
Definition at line 216 of file transform.hpp.
|
static |
Returns an identity matrix.
Definition at line 77 of file transform.cpp.
|
static |
Calculates a viewing matrix derived from an eye point, a reference point indicating the center of the scene, and an UP vector.
eye | Specifies the position of the eye point. |
center | Specifies the position of the reference point. |
up | Specifies the direction of the up vector. |
Definition at line 81 of file transform.cpp.
|
static |
Calculates a viewing matrix derived from an eye point, a reference point indicating the center of the scene, and an UP vector.
eyeX | Specifies the X-position of the eye point. |
eyeY | Specifies the Y-position of the eye point. |
eyeZ | Specifies the Z-position of the eye point. |
centerX | Specifies the X-position of the reference point. |
centerY | Specifies the Y-position of the reference point. |
centerZ | Specifies the Z-position of the reference point. |
upX | Specifies the X-direction of the up vector. |
upY | Specifies the Y-direction of the up vector. |
upZ | Specifies the Z-direction of the up vector. |
Definition at line 85 of file transform.cpp.
|
static |
Calculates a viewing matrix from a camera.
camera | The camera to use. |
Definition at line 89 of file transform.cpp.