Microsoft DirectX 8.1 (Visual Basic)

D3DIndexBuffer8GetData

Retrieves data from an index buffer.

D3DIndexBuffer8GetData( _ 
    IBuffer As Direct3DIndexBuffer8, _ 
    Offset As Long, _ 
    Size As Long, _ 
    Flags As Long, _ 
    Data As Any) As Long

Parameters

IBuffer
Direct3DIndexBuffer8 object, representing the index buffer from which to retrieve data.
Offset
Offset, in bytes, from the start of the buffer to where data retrieval begins.
Size
Size of the buffer, in bytes.
Flags
A combination of one or more valid locking flags defined by the CONST_D3DLOCKFLAGS enumeration, describing the type of lock to perform.
Data
Buffer to be filled with the retrieved data.

Return Values

If the method fails, D3DERR_INVALIDCALL can be returned.

Error Codes

Err.Number is not set by this function.

See Also

D3DIndexBuffer8SetData