IDirect3DDevice::GetMatrix

HRESULT GetMatrix(D3DMATRIXHANDLE lpD3DMatHandle,

LPD3DMATRIX lpD3DMatrix);

Retrieves a matrix from a matrix handle. This matrix handle must have been created by using the IDirect3DDevice::CreateMatrix method.

·Returns D3D_OK if successful, or an error otherwise, such as DDERR_INVALIDPARAMS.

lpD3DMatHandle

Address of a variable that contains the matrix to be retrieved.

lpD3DMatrix

Address of a D3DMATRIX structure that contains the matrix when the method returns.