Platform SDK: DirectX |
The Direct3DDevice7.SetMaterial method sets the material properties for the device.
object.SetMaterial( _ mat As D3DMATERIAL7)
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.