Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MeshBuilder.SetVertexChannelData Method

Bb198933.note(en-us,XNAGameStudio.41).gifNote
This method is available only when developing for Windows.
Sets the specified vertex data with new data.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

public void SetVertexChannelData (
         int vertexDataIndex,
         Object channelData
)

Parameters

vertexDataIndex
Type: Int32
Index of the vertex data channel being set. This should match the index returned by CreateVertexChannel.
channelData
Type: Object
New data values for the vertex data. The data type being set must match the data type for the vertex channel specified by vertexDataIndex.

The following table lists the exceptions that can be thrown by this method:

ExceptionCause
KeyNotFoundException If vertexDataIndex does not correspond to an actual vertex data channel created using CreateVertexChannel.
InvalidOperationException If the type of channelData does not match the data type for the vertex channel specified by vertexDataIndex.

Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2015 Microsoft