D3DZBUFFERTYPE

The D3DZBUFFERTYPE enumerated type describes depth-buffer formats for use with the D3DRENDERSTATE_ZENABLE render state.

typedef enum _D3DZBUFFERTYPE {
    D3DZB_FALSE        = 0,  
    D3DZB_TRUE         = 1,  
    D3DZB_USEW         = 2,  
    D3DZB_FORCE_DWORD  = 0x7fffffff, 
} D3DZBUFFERTYPE;
 

Members

D3DZB_FALSE
Disable depth-buffering.
D3DZB_TRUE
Enable z-buffering.
D3DZB_USEW
Enable w-buffering. To use w-buffering, perspective-correct texture mapping must also be enabled. To enable perspective-correct texture mapping, set the D3DRENDERSTATE_TEXTUREPERSPECTIVE render state to TRUE. For DirectX 6.0, this is the default value.
D3DZB_FORCE_DWORD
Forces this enumeration to be compiled to 32-bits in size. This value is not used.

Remarks

The D3DZB_FALSE and D3DZB_TRUE values are interchangeable with the TRUE and FALSE macro values previously used with D3DRENDERSTATE_ZENABLE.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3dtypes.h.

See Also

IDirect3DDevice3::SetRenderState, Depth Buffers