camera_projection_orthographic
Orthographic projection parameters (box seen by the camera, no perspective).
Fields and methods
Members of the struct camera_projection_orthographic. Most of what you do with a CGP type goes through the free functions listed below.
Fields
float left = -1.0f | Left bound of the view volume before scaling by aspect_ratio, -1 by default. |
float right = 1.0f | Right bound of the view volume before scaling by aspect_ratio, 1 by default. |
float bottom = -1.0f | Bottom bound of the view volume, -1 by default. |
float top = 1.0f | Top bound of the view volume, 1 by default. |
float z_min = -10.0f | Near bound of the view volume along the viewing direction, -10 by default. |
float z_max = 10.0f | Far bound of the view volume along the viewing direction, 10 by default. |
float aspect_ratio = 1.0f | Width/height ratio of the viewport, 1 by default, that multiplies left and right (bottom and top are not scaled). |
Functions taking a camera_projection_orthographic
None.
Functions returning a camera_projection_orthographic
None.
Operators
None.