RenderWare V2.1

Previous Page Index Next Page

RwRaster *

RwGetCameraZRaster(RwCamera *camera)

Description

Returns an RwRaster object that encapsulates the Z buffer being used.

Arguments

camera the camera for which the Z buffer is required.

Returns

An RwRaster. The raster->info.type field will be rwRASTERZ and the raster->depth will indicate the Z buffer depth.

Comments

RenderWares default usage of the Z buffer is to means that the Z buffer only contains meaningful information within a limited context. If the Z buffer camera functions are used within an immediate mode clump callback then the Z buffer data will be valid. At all other times unless the Camera Zstate is rwON the Z buffer contents will be indeterminate. The format of the Z buffer is described in the immediate mode section of the RenderWare V2.1 API manual.

See Also

RwGetCameraZState()

RwSetCameraZState()