DirectX SDK |
The Direct3DDevice7.GetMaterial method retrieves the current material properties for the device.
object.GetMaterial( _ Material As D3DMATERIAL7)
If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS to indicate the Material parameter is invalid.