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

◆ DrawString() [2/6]

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

Definition at line 497 of file SpriteBatch.cs.

498 {
499 if (spriteFont == null)
500 {
501 throw new ArgumentNullException("spriteFont");
502 }
503 if (text == null)
504 {
505 throw new ArgumentNullException("text");
506 }
507 SpriteFont.StringProxy text2 = new SpriteFont.StringProxy(text);
508 Vector2 scale2 = default(Vector2);
509 scale2.X = scale;
510 scale2.Y = scale;
511 spriteFont.InternalDraw(ref text2, this, position, color, rotation, origin, ref scale2, effects, layerDepth);
512 }

References System.text.