nw::gfx::Camera::SetPerspective Member Function

Syntax

void SetPerspective(
     f32 fovy,
     f32 aspectRatio,
     f32 nearClip,
     f32 farClip
);

Arguments

Name Description
in fovy The view angle (in radians) in the vertical direction.
in aspectRatio Aspect ratio (width/height) of the field of view.
in nearClip Distance to the near clipping plane.
in farClip Distance to the far clipping plane.

Return Values

None.

Description

Sets the parameters for the projection updater configured for Perspective.

This is a utility function designed to make it easy to set the parameters. Note that the program will halt if the configured projection app data was not for Perspective.


CONFIDENTIAL