public drawInto ( |
||
batcher | ||
text | ||
position | Vector2 | |
color | Color | |
rotation | float | |
origin | Vector2 | |
scale | Vector2 | |
effect | SpriteEffects | |
depth | float | |
return | void |
public static void drawString( this Batcher batcher, NezSpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) { Assert.isFalse( text == null ); if( text.Length == 0 ) return; var source = new FontCharacterSource( text ); spriteFont.drawInto( batcher, ref source, position, color, rotation, origin, scale, effects, layerDepth ); }
public static void drawString(this Batcher batcher, NezSpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth) { Assert.isFalse(text == null); if (text.Length == 0) { return; } var source = new FontCharacterSource(text); spriteFont.drawInto(batcher, ref source, position, color, rotation, origin, scale, effects, layerDepth); }