RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwSetCameraZState(RwCamera *camera)

Description

Sets the current global Z buffer state.

Arguments

camera the camera for which the Z buffer state is to be set.

Returns

If successful returns camera, otherwise NULL.

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

RwGetCameraZRaster()

RwGetCameraZState()