Platform SDK: DirectX

D3DTRANSFORMSTATETYPE

The D3DTRANSFORMSTATETYPE enumerated type describes the transformation state values used with the IDirect3DDevice7::GetTransform and IDirect3DDevice7::SetTransform methods.

typedef enum _D3DTRANSFORMSTATETYPE { 
    D3DTRANSFORMSTATE_WORLD        = 1,  
    D3DTRANSFORMSTATE_VIEW         = 2,  
    D3DTRANSFORMSTATE_PROJECTION   = 3,  
    D3DTRANSFORMSTATE_WORLD1       = 4, 
    D3DTRANSFORMSTATE_WORLD2       = 5, 
    D3DTRANSFORMSTATE_WORLD3       = 6, 
    D3DTRANSFORMSTATE_TEXTURE0     = 16, 
    D3DTRANSFORMSTATE_TEXTURE1     = 17, 
    D3DTRANSFORMSTATE_TEXTURE2     = 18, 
    D3DTRANSFORMSTATE_TEXTURE3     = 19, 
    D3DTRANSFORMSTATE_TEXTURE4     = 20, 
    D3DTRANSFORMSTATE_TEXTURE5     = 21, 
    D3DTRANSFORMSTATE_TEXTURE6     = 22, 
    D3DTRANSFORMSTATE_TEXTURE7     = 23, 
    D3DTRANSFORMSTATE_FORCE_DWORD  = 0x7fffffff, 
} D3DTRANSFORMSTATETYPE; 
D3DTRANSFORMSTATE_WORLD
Identifies the transformation matrix being set as the world transformation matrix. The default value is NULL (the identity matrix).
D3DTRANSFORMSTATE_WORLD1, D3DTRANSFORMSTATE_WORLD2, D3DTRANSFORMSTATE_WORLD3
Identifies subsequent transformation matrices that can be used to blend vertices by using the corresponding matrix and a blending (beta) weight value specified in the vertex format.
D3DTRANSFORMSTATE_VIEW
Identifies the transformation matrix being set as the view transformation matrix. The default value is NULL (the identity matrix).
D3DTRANSFORMSTATE_PROJECTION
Identifies the transformation matrix being set as the projection transformation matrix. The default value is NULL (the identity matrix).
D3DTRANSFORMSTATE_TEXTURE0 through D3DTRANSFORMSTATE_TEXTURE7
Identifies the transformation matrix being set for the specified texture stage.
D3DTRANSFORMSTATE_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.
  Version: Requires DirectX 2.0 or later.
  Header: Declared in d3dtypes.h.

See Also

IDirect3DDevice7::GetTransform, IDirect3DDevice7::SetTransform