RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwClearCameraViewport(RwCamera *camera);

Description

Clears the camera’s image buffer. If the camera does not have a backdrop raster the viewport will be cleared to the camera’s background color. If the camera has a backdrop raster the camera’s backdrop viewport rectangle will be filled with the backdrop raster. The remainder of the viewport will be cleared to the camera’s background color.

Arguments

camera Pointer to the camera.

Return Value

The argument camera if successful, and NULL otherwise.

Comment

This function can only be called within the context of an RwBeginCameraUpdate()RwEndCameraUpdate() block.

See Also

RwBeginCameraUpdate()

RwDamageCameraViewport()

RwEndCameraUpdate()

RwInvalidateCameraViewport()

RwSetCameraBackColor()

RwSetCameraBackdrop()

RwSetCameraBackdropViewportRect()

RwUndamageCameraViewport()