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

◆ DrawString() [1/6]

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

Definition at line 467 of file SpriteBatch.cs.

468 {
469 if (spriteFont == null)
470 {
471 throw new ArgumentNullException("spriteFont");
472 }
473 if (text == null)
474 {
475 throw new ArgumentNullException("text");
476 }
477 SpriteFont.StringProxy text2 = new SpriteFont.StringProxy(text);
478 Vector2 scale = Vector2.One;
479 spriteFont.InternalDraw(ref text2, this, position, color, 0f, Vector2.Zero, ref scale, SpriteEffects.None, 0f);
480 }

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