D3DSTATE

The D3DSTATE structure describes the render state for the D3DOP_STATETRANSFORM, D3DOP_STATELIGHT, and D3DOP_STATERENDER opcodes in the D3DOPCODE enumerated type. The first member of this structure is the relevant enumerated type and the second is the value for that type.

typedef struct _D3DSTATE { 
    union { 
        D3DTRANSFORMSTATETYPE dtstTransformStateType; 
        D3DLIGHTSTATETYPE     dlstLightStateType; 
        D3DRENDERSTATETYPE    drstRenderStateType; 
    }; 
    union { 
        DWORD                 dwArg[1]; 
        D3DVALUE              dvArg[1]; 
    }; 
} D3DSTATE, *LPD3DSTATE; 
 

Members

dtstTransformStateType, dlstLightStateType, and drstRenderStateType
One of the members of the D3DTRANSFORMSTATETYPE, D3DLIGHTSTATETYPE, or D3DRENDERSTATETYPE enumerated type specifying the render state.
dvArg
Value of the type specified in the first member of this structure.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in d3dtypes.h.

See Also

D3DLIGHTSTATETYPE, D3DOPCODE, D3DRENDERSTATETYPE, and D3DTRANSFORMSTATETYPE, D3DVALUE