nw::demo::Utility::SetCameraAspectRatio Member Function

Syntax

static void SetCameraAspectRatio(
     nw::gfx::Camera * camera,
     f32 aspectRatio
);

Arguments

Name Description
in camera Camera to set.
in aspectRatio Aspect ratio.

Return Values

None.

Description

Configures the camera's aspect ratio.

This function must be executed after updating the scene the camera is attached to.


CONFIDENTIAL