Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ModelMesh()

Microsoft.Xna.Framework.Graphics.ModelMesh.ModelMesh ( string name,
ModelBone parentBone,
BoundingSphere boundingSphere,
ModelMeshPart[] meshParts,
object tag )
inlinepackage

Definition at line 41 of file ModelMesh.cs.

42 {
43 this.name = name;
44 this.parentBone = parentBone;
45 this.boundingSphere = boundingSphere;
46 this.meshParts = new ModelMeshPartCollection(meshParts);
47 this.tag = tag;
48 int num = meshParts.Length;
49 for (int i = 0; i < num; i++)
50 {
51 ModelMeshPart modelMeshPart = meshParts[i];
52 modelMeshPart.parent = this;
53 }
54 }

References Microsoft.Xna.Framework.Graphics.ModelMesh.boundingSphere, Microsoft.Xna.Framework.Graphics.ModelMesh.meshParts, Microsoft.Xna.Framework.Graphics.ModelMesh.name, Microsoft.Xna.Framework.Graphics.ModelMesh.parentBone, and Microsoft.Xna.Framework.Graphics.ModelMesh.tag.