C4 Engine
C4 Engine API Documentation

FrustumCameraObject::SetAspectRatio

Defined in:  C4CameraObjects.h
Sets the aspect ratio.
Prototype

void SetAspectRatio(float aspect);

Parameters
aspect The new aspect ratio.
Description
The SetAspectRatio function sets the aspect ratio for the camera to the value given by the aspect parameter. The aspect ratio is given by the width of the viewport divided by its height.
See Also

FrustumCameraObject::GetAspectRatio