Microsoft DirectX 8.1 (Visual Basic)

D3DX8.BufferGetMaterial

Retrieves material from a buffer.

object.BufferGetMaterial( _ 
    MaterialBuffer As D3DXBuffer, _ 
    Index As Long, _ 
    Mat As D3DMATERIAL8)

Parts

object
Object expression that resolves to a D3DX8 object.
MaterialBuffer
D3DXBuffer object, the buffer containing the material to retrieve.
Index
Index value, specifying the buffer's index.
Mat
D3DMATERIAL8 object; the material retrieved from the queried buffer.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

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