Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ committed Apr 16, 2024
1 parent f5a6fcb commit a9cbd2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 71 deletions.
31 changes: 2 additions & 29 deletions MonoGame.Framework/Graphics/ModelBone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Matrix Transform
}

/// <summary>
/// Creates a new instance of <see cref="ModelBone"/>.
/// Creates a new collection of <see cref="ModelBone"/> to denote the child bones in this model.
/// </summary>
public ModelBone ()
{
Expand All @@ -81,7 +81,7 @@ public void AddMesh(ModelMesh mesh)
}

/// <summary>
/// Adds a child bone to this bone.
/// Adds a new child bone to this bone.
/// </summary>
/// <param name="modelBone"><see cref="ModelBone"/> to be added.</param>
public void AddChild(ModelBone modelBone)
Expand All @@ -90,31 +90,4 @@ public void AddChild(ModelBone modelBone)
Children = new ModelBoneCollection(children);
}
}

//// Summary:
//// Represents bone data for a model. Reference page contains links to related
//// conceptual articles.
//public sealed class ModelBone
//{
// // Summary:
// // Gets a collection of bones that are children of this bone.
// public ModelBoneCollection Children { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets the index of this bone in the Bones collection.
// public int Index { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets the name of this bone.
// public string Name { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets the parent of this bone.
// public ModelBone Parent { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets or sets the matrix used to transform this bone relative to its parent
// // bone.
// public Matrix Transform { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } }
//}
}
44 changes: 3 additions & 41 deletions MonoGame.Framework/Graphics/ModelMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ModelMesh(GraphicsDevice graphicsDevice, System.Collections.Generic.List<
}*/

/// <summary>
/// Gets the <see cref="BoundingSphere"/> that contains this mesh.
/// Gets the <see cref="BoundingSphere"/> that encompasses this mesh.
/// </summary>
public BoundingSphere BoundingSphere { get; set; }

Expand All @@ -55,7 +55,7 @@ public ModelMesh(GraphicsDevice graphicsDevice, System.Collections.Generic.List<
public ModelEffectCollection Effects { get; internal set; }

/// <summary>
/// Gets the <see cref="ModelMeshPart"/> objects that make up this mesh.
/// Gets the collection of <see cref="ModelMeshPart"/> objects that make up this mesh.
/// Each part of a mesh is composed of a set of primitives that share the same material.
/// </summary>
public ModelMeshPartCollection MeshParts { get; set; }
Expand Down Expand Up @@ -102,42 +102,4 @@ public void Draw()
}
}
}


//// Summary:
//// Represents a mesh that is part of a Model.
//public sealed class ModelMesh
//{
// // Summary:
// // Gets the BoundingSphere that contains this mesh.
// public BoundingSphere BoundingSphere { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets a collection of effects associated with this mesh.
// public ModelEffectCollection Effects { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets the ModelMeshPart objects that make up this mesh. Each part of a mesh
// // is composed of a set of primitives that share the same material.
// public ModelMeshPartCollection MeshParts { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets the name of this mesh.
// public string Name { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets the parent bone for this mesh. The parent bone of a mesh contains a
// // transformation matrix that describes how the mesh is located relative to
// // any parent meshes in a model.
// public ModelBone ParentBone { get { throw new NotImplementedException(); } }
// //
// // Summary:
// // Gets or sets an object identifying this mesh.
// public object Tag { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } }

// // Summary:
// // Draws all of the ModelMeshPart objects in this mesh, using their current
// // Effect settings.
// public void Draw() { throw new NotImplementedException(); }
//}
}
}
2 changes: 1 addition & 1 deletion MonoGame.Framework/Graphics/ModelMeshPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ public Effect Effect
[Obsolete("This constructor is deprecated and will be made internal in a future release.")]
public ModelMeshPart() { }
}
}
}

0 comments on commit a9cbd2e

Please sign in to comment.