Example #1
0
 /// <summary>
 /// Create an YnMeshModel with an YnModel and a material.
 /// </summary>
 /// <param name="model">An YnModel instance</param>
 /// <param name="material">A material</param>
 public YnMeshModel(string modelName, BaseMaterial material)
     : this()
 {
     _model = null;
     _modelName = modelName;
     _material = material;
 }
Example #2
0
 /// <summary>
 /// Create an YnMeshModel with a model loaded from content manager and a material.
 /// </summary>
 /// <param name="model">A Model instance</param>
 /// <param name="material">A material</param>
 public YnMeshModel(Model model, BaseMaterial material)
     : this()
 {
     _model = model;
     _material = material;
     _modelName = _model.ToString();
 }
Example #3
0
 /// <summary>
 /// Create an YnMeshGeometry with a geometry and a material.
 /// </summary>
 /// <param name="geometry">Geometry to use.</param>
 /// <param name="material">Material to use with geometry.</param>
 public YnMeshGeometry(BaseGeometry<VertexPositionNormalTexture> geometry, BaseMaterial material)
     : base()
 {
     _geometry = geometry;
     _material = material;
     _worldMatrixIsMaster = false;
 }