RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwResetCamera(RwCamera *camera);

Description

Resets the camera to its initial position and orientation, at the origin, looking down the negative Z axis.

Arguments

camera Pointer to the camera.

Return Value

The argument camera if successful, and NULL otherwise.

Comments

RwResetCamera() performs the following (and only the following) actions:

• Moves the camera’s position to the origin of world space.

• Points the camera down the negative Z axis of world space.

• Points the camera’s "Look Up" vector up the positive Y axis of world space.

• Sets the camera’s view window size to CREAL(1.0) by CREAL(1.0).

• Sets the camera‘s view offset to (CREAL(0.0), CREAL(0.0)).

• Damages the camera’s entire viewport.

See Also

RwCreateCamera()

RwInvalidateCameraViewport()

RwPointCamera()

RwSetCameraLookAt()

RwSetCameraLookUp()

RwSetCameraViewOffset()

RwSetCameraViewwindow()

RwTransformCamera()

RwTransformCameraOrientation()