Microsoft DirectX 8.1 (Visual Basic)

D3DXMesh.LockAttributeBuffer

Locks an attribute buffer.

object.LockAttributeBuffer( _ 
    Flags As Long) As Long

Parts

object
Object expression that resolves to a D3DXMesh object.
Flags
Combination of one or more locking flags defined by the CONST_D3DLOCKFLAGS enumeration, indicating how the attribute buffer memory should be locked.

Return Values

First element of an array of Long values, filled with the returned attribute buffer data.

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.

See Also

D3DXMesh.UnlockAttributeBuffer, D3DXATTRIBUTERANGE