Function Camera.setOrthogonal
Sets the camera projection to orthogonal mode (see constant PROJECTION_ORTHOGONAL
), by specifying a size
, and the z_near
and z_far
clip planes in world-space units. (As a hint, 2D games often use this projection, with values specified in pixels.)
void setOrthogonal
(
const(double) size,
const(double) z_near,
const(double) z_far
) nothrow @nogc;