nw::gfx::Camera::GetOrtho Member Function

Syntax

void GetOrtho(
     f32 * left,
     f32 * right,
     f32 * bottom,
     f32 * top,
     f32 * nearClip,
     f32 * farClip
) const;

Arguments

Name Description
in left The pointer to the X coordinate for the left side of the view frustum in the near clipping plane.
in right The pointer to the X coordinate for the right side of the view frustum in the near clipping plane.
in bottom The pointer for storing the Y coordinate for the bottom of the view frustum in the near clipping plane.
in top The pointer for storing the Y coordinate for the top of the view frustum in the near clipping plane.
in nearClip The pointer for storing the distance to the near clipping plane.
in farClip The pointer for storing the distance to the far clipping plane.

Return Values

None.

Description

Obtains the parameters for the projection app data configured for Ortho.

This is a utility function designed to make it easy to obtain the parameters. Note that the program will halt if the configured projection app data was not for Ortho. If NULL is set for an argument that parameter will not be obtained.


CONFIDENTIAL