Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetMaterial

Retrieves the current material properties for the device.

object.GetMaterial( _ 
    Material As D3DMATERIAL8)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Material
A D3DMATERIAL8 type to fill with the currently set material properties.

Error Codes

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

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.SetMaterial