DirectX SDK

Direct3DDevice7.GetMaterial

The Direct3DDevice7.GetMaterial method retrieves the current material properties for the device.

object.GetMaterial(  _ 
    Material As D3DMATERIAL7)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
Material
A D3DMATERIAL7 type that will be filled with the currently set material properties.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS to indicate the Material parameter is invalid.

See Also

Direct3DDevice7.SetMaterial, Lighting and Materials