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

Syntax

static void SetCameraAspectRatio(
     nw::gfx::Camera * camera,
     const nw::gfx::IRenderTarget * renderTarget
);

Arguments

Name Description
in camera Camera to set.
in renderTarget Render target for the aspect ratio.

Return Values

None.

Description

Configures the camera's aspect ratio.

The aspect ratio is configured to match the specified render target. This function must be executed after updating the scene the camera is attached to.


CONFIDENTIAL