Platform SDK: DirectX

Direct3DDevice7.SetMaterial

The Direct3DDevice7.SetMaterial method sets the material properties for the device.

object.SetMaterial( _
  mat As D3DMATERIAL7)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
mat
A D3DMATERIAL7 type that describes the material properties to be set.

Error Codes

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value is an error. The method returns DDERR_INVALIDPARAMS if the mat parameter is invalid.

See Also

Direct3DDevice7.GetMaterial