RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwSetCameraBackColorStruct(RwCamera *camera, RwRGBColor *color);

Description

Sets the camera’s background fill color.

Arguments

camera Pointer to the camera.

color Pointer to the color.

Return Value

The argument camera if successful, and NULL otherwise.

Comments

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

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()

RwSetCameraBackColor()

RwSetCameraBackdrop()

RwSetCameraBackdropViewportRect()