RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwSetCameraBackColor(RwCamera *camera, RwReal r, RwReal g, RwReal b);

Description

Sets the camera’s background fill color.

Arguments

camera Pointer to the camera.

r Red component of the color in the range CREAL(0.0) to CREAL(1.0).

g Green component of the color in the range CREAL(0.0) to CREAL(1.0).

b Blue component of the color in the range CREAL(0.0) to CREAL(1.0).

Return Value

The argument camera if successful, and NULL otherwise.

Comments

This function is identical to RwSetCameraBackColorStruct() with the exception that it takes individual RwReals for the red, green and blue components of the color rather than an RwRGBColor structure as the color specification.

The background of the camera’s viewport is cleared when RwClearCameraViewport() is called.

If the camera does not have a backdrop raster then the camera’s entire viewport is filled with the background color. It the camera has a backdrop raster then those areas of the viewport outside the backdrop viewport rectangle will be filled with the background color.

See Also

RwClearCameraViewport()

RwGetCameraBackColor()

RwSetCameraBackColorStruct()

RwSetCameraBackdrop()

RwSetCameraBackdropViewportRect()