Microsoft DirectX 8.1 (Visual Basic)

Direct3DIndexBuffer8.Unlock

Unlocks index data.

object.Unlock()

Parts

object
Object expression that resolves to a Direct3DIndexBuffer8 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 index data with a single function call, use D3DIndexBuffer8GetData.

To lock fill, and unlock index data with a single function call, use D3DIndexBuffer8SetData.

See Also

Direct3DIndexBuffer8.Lock, D3DIndexBuffer8GetData, D3DIndexBuffer8SetData