Esempio n. 1
0
 public void Draw(LindaEngine.WorldModel.Content.Texture texture, Framework.Rect? source, Framework.Rect destination, float rotation, float depth)
 {
     _batch.Draw(
         texture.Content as Texture2D,
         destination.ToRectangle(),
         source.HasValue ? source.Value.ToRectangle() : Rectangle.Empty,
         Color.White,
         rotation,
         Vector2.Zero,
         SpriteEffects.None,
         depth);
 }