Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 internal Enumerator(ModelMeshCollection collection)
 {
     _collection = collection;
     _position   = -1;
 }