BaseMesh.SetIndexBufferData(Object,LockFlags) Method (Microsoft.DirectX.Direct3D)

Sets index buffer data.

Definition

Visual Basic Public Sub SetIndexBufferData( _
    ByVal data As Object, _
    ByVal flags As LockFlags _
)
C# public void SetIndexBufferData(
    object data,
    LockFlags flags
);
C++ public:
void SetIndexBufferData(
    ObjectLeave Sitedata,
    LockFlags flags
);
JScript public function SetIndexBufferData(
    data : ObjectLeave Site,
    flags : LockFlags
);

Parameters

data System.Object
An ObjectLeave Site that contains the data to copy into the index buffer. This can be any value type or array of value types. The Int32Leave Site and Int16Leave Site 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 SetIndexBufferData method locks, sets, and then unlocks the index buffer. A call to UnlockIndexBuffer is not required.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

Applies To

Mesh, ProgressiveMesh