Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawString() [4/6]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.DrawString ( SpriteFont spriteFont,
StringBuilder text,
Vector2 position,
Color color )
inline

Definition at line 482 of file SpriteBatch.cs.

483 {
484 if (spriteFont == null)
485 {
486 throw new ArgumentNullException("spriteFont");
487 }
488 if (text == null)
489 {
490 throw new ArgumentNullException("text");
491 }
492 SpriteFont.StringProxy text2 = new SpriteFont.StringProxy(text);
493 Vector2 scale = Vector2.One;
494 spriteFont.InternalDraw(ref text2, this, position, color, 0f, Vector2.Zero, ref scale, SpriteEffects.None, 0f);
495 }

References Microsoft.Xna.Framework.Vector2.One, System.text, and Microsoft.Xna.Framework.Vector2.Zero.