Exemple #1
0
 public void drawImage(JSImageInstance image, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)
 {
     if (!this.framePrepared)
     {
         return;
     }
     this.batch.Draw(image.texture, new Rectangle(dx, dy, dw, dh), new Rectangle(sx, sy, sw, sh), Color.White);
 }
Exemple #2
0
 public void drawImage(JSImageInstance image, double dx, double dy)
 {
     if (!this.framePrepared)
     {
         return;
     }
     this.batch.Draw(image.texture, new Vector2((float)dx, (float)dy), Color.White);
 }
Exemple #3
0
 public void drawImage(JSImageInstance image, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)
 {
     if (!this.framePrepared) return;
     this.batch.Draw(image.texture, new Rectangle(dx, dy, dw, dh), new Rectangle(sx, sy, sw, sh), Color.White);
 }
Exemple #4
0
 public void drawImage(JSImageInstance image, double dx, double dy)
 {
     if (!this.framePrepared) return;
     this.batch.Draw(image.texture, new Vector2((float)dx, (float)dy), Color.White);
 }