Microsoft DirectX 8.1 (Visual Basic)

D3DVertexBuffer8GetData

Retrieves data from a vertex buffer.

D3DVertexBuffer8GetData( _ 
    VBuffer As Direct3DVertexBuffer8, _ 
    Offset As Long, _ 
    Size As Long, _ 
    Flags As Long, _ 
    Data As Any) As Long

Parameters

VBuffer
Direct3DVertexBuffer8 object, representing the vertex 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

D3DVertexBuffer8SetData