nw::demo::Utility::SetCameraAspectRatio Member Function
static void SetCameraAspectRatio(
nw::gfx::Camera * camera,
const nw::gfx::IRenderTarget * renderTarget
);
| Name | Description | |
|---|---|---|
| in | camera | Camera to set. |
| in | renderTarget |
Render target for the aspect ratio. |
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