Partager via


VertexChannelCollection.Add Generic Method (String, Generic IEnumerable)

Adds a new vertex channel to the end of the collection.

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

Syntax

public VertexChannel<ElementType> Add<ElementType> (
         string name,
         IEnumerable<ElementType> channelData
)

Type Parameters

  • ElementType
    Type of the channel.

Parameters

  • name
    Name of the new channel.
  • channelData
    Initial data for the new channel. If null, the channel is filled with the default value for that type.

Return Value

The newly added vertex channel.

See Also

Reference

VertexChannelCollection Class
VertexChannelCollection Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista