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

◆ DrawString() [3/6]

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

Definition at line 531 of file SpriteBatch.cs.

532 {
533 if (spriteFont == null)
534 {
535 throw new ArgumentNullException("spriteFont");
536 }
537 if (text == null)
538 {
539 throw new ArgumentNullException("text");
540 }
541 SpriteFont.StringProxy text2 = new SpriteFont.StringProxy(text);
542 spriteFont.InternalDraw(ref text2, this, position, color, rotation, origin, ref scale, effects, layerDepth);
543 }

References System.text.