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

◆ DrawString() [5/6]

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

Definition at line 514 of file SpriteBatch.cs.

515 {
516 if (spriteFont == null)
517 {
518 throw new ArgumentNullException("spriteFont");
519 }
520 if (text == null)
521 {
522 throw new ArgumentNullException("text");
523 }
524 SpriteFont.StringProxy text2 = new SpriteFont.StringProxy(text);
525 Vector2 scale2 = default(Vector2);
526 scale2.X = scale;
527 scale2.Y = scale;
528 spriteFont.InternalDraw(ref text2, this, position, color, rotation, origin, ref scale2, effects, layerDepth);
529 }

References System.text.