D3DMATRIX

The D3DMATRIX structure describes a matrix for such methods as IDirect3DDevice::GetMatrix and IDirect3DDevice::SetMatrix.

C++ programmers can use an extended version of this structure that includes a parentheses ("()") operator. For more information, see D3DMATRIX (D3D_OVERLOADS)

typedef struct _D3DMATRIX { 
    D3DVALUE _11, _12, _13, _14; 
    D3DVALUE _21, _22, _23, _24; 
    D3DVALUE _31, _32, _33, _34; 
    D3DVALUE _41, _42, _43, _44; 
} D3DMATRIX, *LPD3DMATRIX; 
 

Remarks

In Direct3D, the _34 element of a projection matrix cannot be a negative number. If your application needs to use a negative value in this location, it should scale the entire projection matrix by -1, instead.

QuickInfo

  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.
  Header: Declared in d3dtypes.h.

See Also

IDirect3DDevice::GetMatrix, IDirect3DDevice::SetMatrix