Пример #1
0
 private void DrawTexture(Texture2D texture, SVector2 pos, Rectangle source, float scale = 1.0f)
 {
     Game1.spriteBatch.Draw(texture, pos.ToVector2(), source, Color.White, 0.0f, Vector2.Zero, scale, SpriteEffects.None, 0.0f);
 }
Пример #2
0
 private void DrawText(string text, SVector2 pos, Color textColor)
 {
     Game1.spriteBatch.DrawString(Game1.smallFont, text, pos.ToVector2(), textColor, 0.0f, Vector2.Zero, this.ZoomLevel, SpriteEffects.None, 0.0f);
 }