C# 클래스 Nez.BitmapFontExtensions

provides the full SpriteFont assortment of DrawString methods
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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.

메소드 상세

DrawString() 공개 정적인 메소드

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.
리턴 void

DrawString() 공개 정적인 메소드

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.
리턴 void

DrawString() 공개 정적인 메소드

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.
리턴 void

DrawString() 공개 정적인 메소드

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.
리턴 void

DrawString() 공개 정적인 메소드

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.
리턴 void

DrawString() 공개 정적인 메소드

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.
리턴 void