Beispiel #1
0
 public virtual void Draw(SpriteBatch spriteBatch, Vector2 pos, Color color, Vector2 scale, float depth = -1f)
 {
     if (visible)
     {
         if (depth == -1)
         {
             depth = this.depth;
         }
         spriteBatch.Draw(texture, (pos + (imageOrigin - objectOrigin) * Calculate.AbsVector(scale)), new Rectangle(GetSourceX(), GetSourceY(), sizex, sizey), color, rotation, imageOrigin, scale, mirror, depth);
     }
 }