Microsoft DirectX 8.1 (Visual Basic) |
Retrieves the current material properties for the device.
object.GetMaterial( _ Material As D3DMATERIAL8)
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.