RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwDamageCameraViewport(RwCamera *camera, RwInt32 x, RwInt32 y,
RwInt32 width, RwInt32 height);

Description

Damages a rectangular area of the camera’s viewport. The rectangle is added to the area to be updated by RwShowCameraImage() and cleared by RwClearCameraViewport().

Arguments

camera Pointer to the camera.

x X coordinate of the rectangle’s top left corner (in viewport space coordinates).

y Y coordinate of the rectangle’s top left corner (in viewport space coordinates).

width Width of the rectangle (in viewport space units).

height Height of the rectangle (in viewport space units).

Return Value

The argument camera if successful, and NULL otherwise.

See Also

RwBeginCameraUpdate()

RwClearCameraViewport()

RwEndCameraUpdate()

RwInvalidateCameraViewport()

RwShowCameraImage()

RwUndamageCameraViewport()