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

Syntax

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

List of Overloaded Member Functions

SetCameraAspectRatio(nw::gfx::Camera *, const nw::gfx::IRenderTarget *) Configures the camera's aspect ratio.
SetCameraAspectRatio(nw::gfx::Camera *, f32) Configures the camera's aspect ratio.

Description of SetCameraAspectRatio(nw::gfx::Camera *, const nw::gfx::IRenderTarget *)

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.

Description of SetCameraAspectRatio(nw::gfx::Camera *, f32)

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


CONFIDENTIAL