Example #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);
 }
Example #2
0
 public void DrawString(LindaEngine.WorldModel.Content.Font font, string text, Framework.V2 position, Framework.V4 color, float rotation, float scale, float depth)
 {
     _batch.DrawString(
         font.Content as SpriteFont,
         text,
         position.ToVector2(),
         new Color(color.ToVector4()),
         rotation,
         Vector2.Zero,
         scale,
         SpriteEffects.None,
         depth);
 }