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

◆ DrawString() [6/6]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.DrawString ( SpriteFont spriteFont,
StringBuilder text,
Vector2 position,
Color color,
float rotation,
Vector2 origin,
Vector2 scale,
SpriteEffects effects,
float layerDepth )
inline

Definition at line 545 of file SpriteBatch.cs.

546 {
547 if (spriteFont == null)
548 {
549 throw new ArgumentNullException("spriteFont");
550 }
551 if (text == null)
552 {
553 throw new ArgumentNullException("text");
554 }
555 SpriteFont.StringProxy text2 = new SpriteFont.StringProxy(text);
556 spriteFont.InternalDraw(ref text2, this, position, color, rotation, origin, ref scale, effects, layerDepth);
557 }

References System.text.