DirectX SDK

D3DCULL

The D3DCULL enumerated type defines the supported culling modes used with the D3DRENDERSTATE_CULLMODE render state. These define how back faces are culled when rendering a geometry.

typedef enum _D3DCULL { 
    D3DCULL_NONE = 1, 
    D3DCULL_CW   = 2, 
    D3DCULL_CCW  = 3, 
    D3DCULL_FORCE_DWORD   = 0x7fffffff, 
} D3DCULL; 
D3DCULL_NONE
Do not cull back faces.
D3DCULL_CW
Cull back faces with clockwise vertices.
D3DCULL_CCW
Cull back faces with counterclockwise vertices.
D3DCULL_FORCE_DWORD
Forces this enumeration to compile to 32 bits in size. This value is not used.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 2.0 or later.
  Header: Declared in d3dtypes.h.

See Also

D3DPRIMCAPS, D3DRENDERSTATETYPE