Microsoft DirectX 8.1 (Visual Basic)

Direct3DVertexBuffer8.Unlock

Unlocks vertex data.

object.Unlock()

Parts

object
Object expression that resolves to a Direct3DVertexBuffer8 object.

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.

Remarks

To lock, read, and unlock vertex data with a single function call, use D3DVertexBuffer8GetData.

To lock fill, and unlock vertex data with a single function call, use D3DVertexBuffer8SetData.

See Also

Direct3DVertexBuffer8.Lock, D3DVertexBuffer8GetData, D3DVertexBuffer8SetData