C# Class Nez.BitmapFontExtensions

provides the full SpriteFont assortment of DrawString methods
Show file Open project: prime31/Nez

Public Methods

Method Description
DrawString ( this spriteBatch, BitmapFont bitmapFont, StringBuilder text, Vector2 position, Color color ) : void

Submit a text string of sprites for drawing in the current batch.

DrawString ( this spriteBatch, BitmapFont bitmapFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void

Submit a text string of sprites for drawing in the current batch.

DrawString ( this spriteBatch, BitmapFont bitmapFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void

Submit a text string of sprites for drawing in the current batch.

DrawString ( this spriteBatch, BitmapFont bitmapFont, string text, Vector2 position, Color color ) : void

Submit a text string of sprites for drawing in the current batch.

DrawString ( this spriteBatch, BitmapFont bitmapFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void

Submit a text string of sprites for drawing in the current batch.

DrawString ( this spriteBatch, BitmapFont bitmapFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void

Submit a text string of sprites for drawing in the current batch.

Method Details

DrawString() public static method

Submit a text string of sprites for drawing in the current batch.
public static DrawString ( this spriteBatch, BitmapFont bitmapFont, StringBuilder text, Vector2 position, Color color ) : void
spriteBatch this
bitmapFont BitmapFont
text StringBuilder The text which will be drawn.
position Vector2 The drawing location on screen.
color Color A color mask.
return void

DrawString() public static method

Submit a text string of sprites for drawing in the current batch.
public static DrawString ( this spriteBatch, BitmapFont bitmapFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
spriteBatch this
bitmapFont BitmapFont
text StringBuilder The text which will be drawn.
position Vector2 The drawing location on screen.
color Color A color mask.
rotation float A rotation of this string.
origin Vector2 Center of the rotation. 0,0 by default.
scale Vector2 A scaling of this string.
effects SpriteEffects Modificators for drawing. Can be combined.
layerDepth float A depth of the layer of this string.
return void

DrawString() public static method

Submit a text string of sprites for drawing in the current batch.
public static DrawString ( this spriteBatch, BitmapFont bitmapFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void
spriteBatch this
bitmapFont BitmapFont
text StringBuilder The text which will be drawn.
position Vector2 The drawing location on screen.
color Color A color mask.
rotation float A rotation of this string.
origin Vector2 Center of the rotation. 0,0 by default.
scale float A scaling of this string.
effects SpriteEffects Modificators for drawing. Can be combined.
layerDepth float A depth of the layer of this string.
return void

DrawString() public static method

Submit a text string of sprites for drawing in the current batch.
public static DrawString ( this spriteBatch, BitmapFont bitmapFont, string text, Vector2 position, Color color ) : void
spriteBatch this
bitmapFont BitmapFont
text string The text which will be drawn.
position Vector2 The drawing location on screen.
color Color A color mask.
return void

DrawString() public static method

Submit a text string of sprites for drawing in the current batch.
public static DrawString ( this spriteBatch, BitmapFont bitmapFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
spriteBatch this
bitmapFont BitmapFont
text string The text which will be drawn.
position Vector2 The drawing location on screen.
color Color A color mask.
rotation float A rotation of this string.
origin Vector2 Center of the rotation. 0,0 by default.
scale Vector2 A scaling of this string.
effects SpriteEffects Modificators for drawing. Can be combined.
layerDepth float A depth of the layer of this string.
return void

DrawString() public static method

Submit a text string of sprites for drawing in the current batch.
public static DrawString ( this spriteBatch, BitmapFont bitmapFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void
spriteBatch this
bitmapFont BitmapFont
text string The text which will be drawn.
position Vector2 The drawing location on screen.
color Color A color mask.
rotation float A rotation of this string.
origin Vector2 Center of the rotation. 0,0 by default.
scale float A scaling of this string.
effects SpriteEffects Modificators for drawing. Can be combined.
layerDepth float A depth of the layer of this string.
return void