nw::demo::Utility::SetCameraAspectRatio Member Function
static void SetCameraAspectRatio(
nw::gfx::Camera * camera,
const nw::gfx::IRenderTarget * renderTarget
);
static void SetCameraAspectRatio(
nw::gfx::Camera * camera,
f32 aspectRatio
);
| 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. |
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.
SetCameraAspectRatio(nw::gfx::Camera *, f32)This function must be executed after updating the scene the camera is attached to.
CONFIDENTIAL