VertexContent Class (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Provides methods and properties for maintaining the vertex data of a GeometryContent.
System.Object
   Microsoft.Xna.Framework.Content.Pipeline.Graphics.VertexContent

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public sealed class VertexContent

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The VertexContent type exposes the following members.

  Platforms Name Description
Channels Gets the list of named vertex data channels in the VertexContent. 
PositionIndices Gets the list of position indices. 
Positions Gets position data from the parent mesh object. 
VertexCount Number of vertices for the content. 
Top
  Platforms Name Description
Add 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. 
AddRange Appends multiple vertex indices to the end of the PositionIndices collection. Other vertex channels will automatically be extended and the new indices populated with default values. 
CreateVertexBuffer Converts design-time vertex position and channel data into a vertex buffer format that a graphics device can recognize. 
Insert Inserts a new vertex index to the PositionIndices collection. Other vertex channels will automatically be extended and the new indices populated with default values. 
InsertRange Inserts multiple vertex indices to the PositionIndices collection. Other vertex channels will automatically be extended and the new indices populated with default values. 
RemoveAt Removes a vertex index from the specified location in both PositionIndices and VertexChannel<T>. 
RemoveRange Removes a range of vertex indices from the specified location in both PositionIndices and VertexChannel<T>. 
Top
This class combines a collection of arbitrarily named data channels with a list of position indices that reference the Positions collection of the parent MeshContent.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop