D3DVertexBuffer8SetData
Sets data in a vertex buffer.
D3DVertexBuffer8SetData( _
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 into which to set data.
- Offset
- Offset, in bytes, from the start of the buffer to where data is set.
- 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 containing data to set.
Return Values
If the method fails, D3DERR_INVALIDCALL can be returned.
Error Codes
Err.Number is not set by this function.
See Also
D3DVertexBuffer8GetData