nw::demo::Utility::SetCameraAspectRatio Member Function
static void SetCameraAspectRatio(
nw::gfx::Camera * camera,
f32 aspectRatio
);
| Name | Description | |
|---|---|---|
| in | camera | Camera to set. |
| in | aspectRatio | Aspect ratio. |
Configures the camera's aspect ratio.
This function must be executed after updating the scene the camera is attached to.
CONFIDENTIAL