RenderWare V2.1

Previous Page Index Next Page

RwState

RwGetCameraZState(RwCamera *camera)

Description

Returns the current global Z buffer state.

Arguments

camera the camera for which the Z buffer state is required.

Returns

rwON if the global Z buffer is being used. rwOFF if RenderWare’s default rendering mode is in use.

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

RwSetCameraZState()