IDirect3DMaterial::GetMaterial

HRESULT GetMaterial(LPD3DMATERIAL lpMat);

Retrieves the material data for the Direct3DMaterial object.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpMat

Address of a D3DMATERIAL structure that will be filled with the current material properties.