dao::camera::Projection
struct
The projection the scene is drawn with.
Declared in dao/Camera.h.
Fields
| Field | Type | |
|---|---|---|
aspect |
float = 0.0F |
width over height, as the projection uses it |
farPlane |
float = 0.0F |
metres |
fieldOfView |
float = 0.0F |
the vertical angle, top to bottom, in degrees |
height |
std::int32_t = 0 |
|
matrix |
std::array<float, 16>{} |
The matrix as the engine keeps it, row major: right-handed, depth 0 to 1, for column vectors (v’ = M v). [0] is [5] over the aspect, [5] is 1 / tan(fov / 2), [10] is far / (near - far), [11] near * far / (near - far), [14] -1. It is the matrix the last frame was drawn with; a change made this frame is in it from the next. |
nearPlane |
float = 0.0F |
metres |
width |
std::int32_t = 0 |
the view, in pixels |