FerretEngine/src/Graphics/Fonts/Text.cs
/// <summary>
/// Render this text with the given SpriteBatch
/// </summary>
/// <param name="spriteBatch">SpriteBatch to render to</param>
/// <param name="position">Position at which to render the text</param>
/// <param name="color">Color to render the text with</param>
Render this text with the given SpriteBatch
Render this text with the given SpriteBatch
public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color)
        {
            foreach (var glyph in _glyphs)
                spriteBatch.Draw(glyph.Texture, glyph.Position + position, glyph.Bounds, color);
        }
public void Draw ( SpriteBatch spriteBatch , Vector2 position , Color color ) { foreach ( var glyph in _glyphs ) spriteBatch . Draw ( glyph . Texture , glyph . Position + position , glyph . Bounds , color ) ; }
Render this text with the given SpriteBatch
Render this text with the given SpriteBatch
spriteBatch
SpriteBatch
SpriteBatch to render to
SpriteBatch to render to
position
Vector2
Position at which to render the text
Position at which to render the text
color
Color
Color to render the text with
Color to render the text with