public void Draw(TextureObject textureObject, Vector2 position, Rectangle? sourceRect,
    Color color, float rotation, Vector2 origin, Vector2 scale, int effects, float depth)
        {
            SpriteEffects sfx;
            switch (effects)
            {
                case 1:
                    sfx = SpriteEffects.FlipHorizontally;
                    break;
                case 2:
                    sfx = SpriteEffects.FlipVertically;
                    break;
                case 3:
                    sfx = SpriteEffects.FlipHorizontally | SpriteEffects.FlipVertically;
                    break;
                default:
                    sfx = SpriteEffects.None;
                    break;
            }

            base.Draw(textureObject.Texture, position, sourceRect, color, rotation, origin, scale, sfx, depth);
        }
 public void Draw(TextureObject textureObject, Vector2 position, Rectangle? sourceRect, Color color)
 {
     base.Draw(textureObject.Texture, position, sourceRect, color);
 }
 public void Draw(TextureObject textureObject, Rectangle destRect, Rectangle? sourceRect, Color color)
 {
     base.Draw(textureObject.Texture, destRect, sourceRect, color);
 }
Пример #4
0
 public bool Intersects(Rectangle r)
 {
     return this._rectangle.Intersects(r);
 }