Exemple #1
0
 /// <summary>
 /// Init with Default ImagePara
 /// </summary>
 /// <param name="gd"></param>
 /// <param name="service"></param>
 /// <param name="path"></param>
 /// <param name="imagename"></param>
 public Image(GraphicsDevice gd, IServiceProvider service, string path, string imagename)
     : base(gd)
 {
     Para = new ImagePara(imagename);
     LoadContent(service, path, imagename);
     Init(gd);
 }
Exemple #2
0
 /// <summary>
 /// Init with Custom ImagePara and StiLib Configuration
 /// </summary>
 /// <param name="gd"></param>
 /// <param name="slconfig"></param>
 /// <param name="service"></param>
 /// <param name="path"></param>
 /// <param name="imagepara"></param>
 public Image(GraphicsDevice gd, AssemblySettings slconfig, IServiceProvider service, string path, ImagePara imagepara)
     : base(gd, slconfig)
 {
     Para = imagepara;
     LoadContent(service, path, Para.BasePara.contentname);
     Init(gd);
 }
Exemple #3
0
 /// <summary>
 /// Init with Custom ImagePara and Configuration
 /// </summary>
 /// <param name="distance2display"></param>
 /// <param name="displayratio"></param>
 /// <param name="displaysize"></param>
 /// <param name="camera"></param>
 /// <param name="unit"></param>
 /// <param name="gd"></param>
 /// <param name="service"></param>
 /// <param name="path"></param>
 /// <param name="imagepara"></param>
 public Image(float distance2display, float displayratio, float displaysize, SLCamera camera, Unit unit, GraphicsDevice gd, IServiceProvider service, string path, ImagePara imagepara)
     : base(distance2display, displayratio, displaysize, gd, camera, unit)
 {
     Para = imagepara;
     LoadContent(service, path, Para.BasePara.contentname);
     Init(gd);
 }
Exemple #4
0
 /// <summary>
 /// Sets Default ImagePara, need LoadContent() and Init()
 /// </summary>
 public Image()
 {
     Para = new ImagePara("");
 }
Exemple #5
0
 /// <summary>
 /// Init According to Custom ImagePara
 /// </summary>
 /// <param name="gd"></param>
 /// <param name="imagepara"></param>
 public void Init(GraphicsDevice gd, ImagePara imagepara)
 {
     imagepara.BasePara.contentname = Para.BasePara.contentname;
     Para = imagepara;
     Init(gd);
 }