Sdílet prostřednictvím


VertexContent.Add Method

Appends a new vertex index to the end of the PositionIndices collection.

Other vertex channels will automatically be extended and the new indices populated with default values.

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

Syntax

public int Add (
         int positionIndex
)

Parameters

  • positionIndex
    Index of the new entry. This can be added to the Indices member of the parent.

Return Value

Index into the MeshContent.Positions member of the parent.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista