IrrSetCameraAspectRatio

section index

## NAME

IrrSetCameraAspectRatio - Sets the aspect ratio

## SYNOPSIS

IrrSetCameraAspectRatio(*camera.l, ratio.f)

## INPUTS

*camera.l | - | pointer to a camera
ratio.f | - | new aspect ratio

## FUNCTION

Sets the aspect ratio (default: 4.0f / 3.0f).

## EXAMPLE

       IrrSetCameraAspectRatio(*cam, 1.0*(ScreenWidth/ScreenHeight))

## RESULT

nothing

## NOTES

If you want to change this, maybe for a Widescreen, you should notice, that there is also IrrSetVieport(), that helps.