RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwDuplicateCamera(RwCamera *camera, RwRaster *raster);

Description

Creates a new camera with the same attributes as camera.

Arguments

camera Pointer to the camera.

raster Optional user raster defining an area of memory to be used for the cameras image buffer.

Return Value

A pointer to the new camera if successful, and NULL otherwise.

Comments

An image buffer can be shared between cameras by passing the existing RwRaster retrieved by RwGetCameraRaster() into this function. if raster is NULL then a new image bugger will be created for the camera.

If camera has a backdrop raster the raster will not be duplicated. The new camera will share the raster with camera.

See Also

RwCreateCamera()

RwDestroyCamera()