Skip to content

Commit

Permalink
Update XML documentation for ModelMeshPartContent
Browse files Browse the repository at this point in the history
  • Loading branch information
AristurtleDev committed Jun 3, 2024
1 parent f6d94a1 commit 1c2403e
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace Microsoft.Xna.Framework.Content.Pipeline.Processors
{
/// <summary>
/// Stores design-time data for a <see cref="ModelMeshPart"/> asset.
/// </summary>
public sealed class ModelMeshPartContent
{
private IndexCollection _indexBuffer;
Expand All @@ -30,39 +33,64 @@ internal ModelMeshPartContent(VertexBufferContent vertexBuffer, IndexCollection
_primitiveCount = primitiveCount;
}


/// <summary>
/// Gets the collection of indices for this mesh part.
/// </summary>
public IndexCollection IndexBuffer
{
get { return _indexBuffer; }
}

/// <summary>
/// Gets the material of this mesh part.
/// </summary>
public MaterialContent Material
{
get { return _material; }
set { _material = value; }
}

/// <summary>
/// Gets the number of vertices used in this mesh part.
/// </summary>
public int NumVertices
{
get { return _numVertices; }
}

/// <summary>
/// Gets the number of primitives to render for this mesh part.
/// </summary>
public int PrimitiveCount
{
get { return _primitiveCount; }
}

/// <summary>
/// Gets the location in the index buffer at which to start reading vertices.
/// </summary>
public int StartIndex
{
get { return _startIndex; }
}

/// <summary>
/// Gets a user-defined tag object.
/// </summary>
public object Tag { get; set; }

/// <summary>
/// Gets the collection of vertices for this mesh part.
/// </summary>
public VertexBufferContent VertexBuffer
{
get { return _vertexBuffer; }
}

/// <summary>
/// Gets the offset from the start of the index buffer to the first vertex index.
/// </summary>
public int VertexOffset
{
get { return _vertexOffset; }
Expand Down

0 comments on commit 1c2403e

Please sign in to comment.