IDirect3DDevice9::SetMaterial

Sets the material properties for the device.

HRESULT SetMaterial(
  CONST D3DMATERIAL9 * pMaterial
);

Parameters

pMaterial
[in] Pointer to a D3DMATERIAL9 structure, describing the material properties to set.

Return Values

If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL if the pMaterial parameter is invalid.

Requirements

Header: Declared in D3d9.h.

See Also

IDirect3DDevice9::GetMaterial