コード例 #1
0
ファイル: Model.cs プロジェクト: TechnologicalPizza/MonoGame
 /// <summary>
 /// Constructs a model.
 /// </summary>
 /// <param name="graphicsDevice">A valid reference to <see cref="GraphicsDevice"/>.</param>
 /// <param name="bones">The collection of bones.</param>
 /// <param name="meshes">The collection of meshes.</param>
 /// <exception cref="ArgumentNullException"><paramref name="graphicsDevice"/> is null. </exception>
 /// <exception cref="ArgumentNullException"><paramref name="bones"/> is null.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="meshes"/> is null.</exception>
 public Model(
     GraphicsDevice graphicsDevice, IList <ModelBone> bones, IList <ModelMesh> meshes)
     : base(graphicsDevice)
 {
     // TODO: Complete member initialization
     Bones  = new ModelBoneCollection(bones);
     Meshes = new ModelMeshCollection(meshes);
 }
コード例 #2
0
 internal Enumerator(ModelBoneCollection collection)
 {
     _collection = collection;
     _position   = -1;
 }
コード例 #3
0
 public ModelBone()
 {
     _children = new List <ModelBone>();
     Meshes    = new List <ModelMesh>();
     Children  = new ModelBoneCollection(_children);
 }