SimpleGL
1.1.0
A framework for platform independent rendering
|
This class contains static methods to calculate projection matrices. More...
#include <transform.hpp>
Static Public Member Functions | |
static glm::mat4 | identity () |
Returns an identity matrix. More... | |
static glm::mat4 | ortho (float left, float right, float bottom, float top, float zNear, float zFar) |
Calculates a transformation that produces a parallel projection. More... | |
static glm::mat4 | frustum (float left, float right, float bottom, float top, float zNear, float zFar) |
Calculates a perspective matrix that produces a perspective projection. More... | |
static glm::mat4 | perspective (float fovy, float aspect, float zNear, float zFar) |
Calculates a viewing frustum into the world coordinate system. More... | |
This class contains static methods to calculate projection matrices.
Definition at line 271 of file transform.hpp.
|
static |
Calculates a perspective matrix that produces a perspective projection.
left | Specify the coordinates for the left vertical clipping planes. |
right | Specify the coordinates for the right vertical clipping planes. |
bottom | Specify the coordinates for the bottom horizontal clipping planes. |
top | Specify the coordinates for the top horizontal clipping planes. |
zNear | Specify the distances to the near depth clipping planes. Must be positive. |
zFar | Specify the distances to the far depth clipping planes. Must be positive. |
Definition at line 105 of file transform.cpp.
|
static |
Returns an identity matrix.
Definition at line 97 of file transform.cpp.
|
static |
Calculates a transformation that produces a parallel projection.
left | Specify the coordinates for the left vertical clipping planes. |
right | Specify the coordinates for the right vertical clipping planes. |
bottom | Specify the coordinates for the bottom horizontal clipping planes. |
top | Specify the coordinates for the top horizontal clipping planes. |
zNear | Specify the distances to the nearer depth clipping planes. This value is negative if the plane is to be behind the viewer. |
zFar | Specify the distances to the farther depth clipping planes. This value is negative if the plane is to be behind the viewer. |
Definition at line 101 of file transform.cpp.
|
static |
Calculates a viewing frustum into the world coordinate system.
fovy | Specifies the field of view angle, in degrees, in the y direction. |
aspect | Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height). |
zNear | Specifies the distance from the viewer to the near clipping plane (always positive). |
zFar | Specifies the distance from the viewer to the far clipping plane (always positive). |
Definition at line 109 of file transform.cpp.