BaseMesh.SetVertexBufferData(Object,LockFlags) Method (Microsoft.DirectX.Direct3D)
Sets vertex buffer data.
Definition
Visual Basic Public Sub SetVertexBufferData( _
ByVal data As Object, _
ByVal flags As LockFlags _
)C# public void SetVertexBufferData(
object data,
LockFlags flags
);C++ public:
void SetVertexBufferData(
Object^ data,
LockFlags flags
);JScript public function SetVertexBufferData(
data : Object,
flags : LockFlags
);
Parameters
data System.Object
An Object that contains the data to copy into the vertex buffer. This can be any value type or array of value types. The Int32 and Int16 values are commonly used.flags Microsoft.DirectX.Direct3D.LockFlags
Combination of zero or more LockFlags that describe the type of lock to perform when setting the data. For this method, the valid flags are Discard, NoDirtyUpdate, NoSystemLock, and ReadOnly. For a description of the flags, see LockFlags.
Remarks
The SetVertexBufferData method locks, sets, and then unlocks the vertex buffer. A call to UnlockVertexBuffer is not required.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
Applies To