Nez.Portable/Utils/Fonts/BatcherBitmapFontExt.cs
/// <summary>
/// Submit a text string of sprites for drawing in the current batch.
/// </summary>
/// <param name="spriteFont">A font.</param>
/// <param name="text">The text which will be drawn.</param>
/// <param name="position">The drawing location on screen.</param>
/// <param name="color">A color mask.</param>
Submit a text string of sprites for drawing in the current batch.
Submit a text string of sprites for drawing in the current batch .
public static void drawString(
            this Batcher batcher,
            BitmapFont bitmapFont,
            string text,
            Vector2 position,
            Color color)
        {
            var source = new FontCharacterSource(text);
            bitmapFont.drawInto(
                batcher,
                ref source,
                position,
                color,
                0,
                Vector2.Zero,
                Vector2.One,
                SpriteEffects.None,
                0f);
        }
public static void drawString ( this Batcher batcher , BitmapFont bitmapFont , string text , Vector2 position , Color color ) { var source = new FontCharacterSource ( text ) ; bitmapFont . drawInto ( batcher , ref source , position , color , 0 , Vector2 . Zero , Vector2 . One , SpriteEffects . None , 0f ) ; }
Submit a text string of sprites for drawing in the current batch.
Submit a text string of sprites for drawing in the current batch .
Batcher
this
bitmapFont
BitmapFont
text
string
The text which will be drawn.
The text which will be drawn .
position
Vector2
The drawing location on screen.
The drawing location on screen .
color
Color
A color mask.
A color mask .
spriteFont
None