| RenderTransformDrawString Method (SpriteBatch, SpriteFont, StringBuilder, Vector2F, Color) |
Transforms a string and adds it to a batch of sprites for rendering using the specified
font, text, position, and color.
Namespace: DigitalRune.Game.UI.RenderingAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax public void DrawString(
SpriteBatch spriteBatch,
SpriteFont spriteFont,
StringBuilder text,
Vector2F position,
Color color
)
Public Sub DrawString (
spriteBatch As SpriteBatch,
spriteFont As SpriteFont,
text As StringBuilder,
position As Vector2F,
color As Color
)
public:
void DrawString(
SpriteBatch^ spriteBatch,
SpriteFont^ spriteFont,
StringBuilder^ text,
Vector2F position,
Color color
)
member DrawString :
spriteBatch : SpriteBatch *
spriteFont : SpriteFont *
text : StringBuilder *
position : Vector2F *
color : Color -> unit
Parameters
- spriteBatch
- Type: SpriteBatch
The sprite batch for rendering. - spriteFont
- Type: SpriteFont
A font for displaying text. - text
- Type: System.TextStringBuilder
The text string. - position
- Type: DigitalRune.Mathematics.AlgebraVector2F
The location in screen coordinates to draw the sprite. - color
- Type: Color
The color to tint a sprite. Use white for full color with no tinting.
See Also