// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics
{
///
/// Provides properties that define various aspects of a geometry batch.
///
public class GeometryContent : ContentItem
{
IndexCollection indices;
MaterialContent material;
MeshContent parent;
VertexContent vertices;
///
/// Gets the list of triangle indices for this geometry batch. Geometry is stored as an indexed triangle list, where each group of three indices defines a single triangle.
///
public IndexCollection Indices
{
get
{
return indices;
}
}
///
/// Gets or sets the material of the parent mesh.
///
public MaterialContent Material
{
get
{
return material;
}
set
{
material = value;
}
}
///
/// Gets or sets the parent MeshContent for this object.
///
public MeshContent Parent
{
get
{
return parent;
}
set
{
parent = value;
}
}
///
/// Gets the set of vertex batches for the geometry batch.
///
public VertexContent Vertices
{
get
{
return vertices;
}
}
///
/// Creates an instance of GeometryContent.
///
public GeometryContent()
{
indices = new IndexCollection();
vertices = new VertexContent(this);
}
}
}