// d3dhal.h
typedef struct _D3DHAL_DP2SETTRANSFORM {
D3DTRANSFORMSTATETYPE xfrmType;
D3DMATRIX matrix;
} D3DHAL_DP2SETTRANSFORM;
View the official Windows Driver Kit DDI referenceNo description available.
D3DHAL_DP2SETTRANSFORM structure is used to specify the transform state and matrix for D3dDrawPrimitives2.
xfrmTypeSpecifies the type of transform being done.
| Value | Meaning |
|---|---|
| D3DTRANSFORMSTATE_PROJECTION | Specifies a projection transformation. |
| D3DTRANSFORMSTATE_VIEW | Specifies a view transformation. |
| D3DTRANSFORMSTATE_WORLD | Specifies a world transformation. |
matrixSpecifies the matrix used to perform the transform.
This structure is used with hardware transform and lighting and is used by the Direct3D runtime to inform the driver about the various transformation matrices.