C# Class jxGameFramework.Data.Font

Afficher le fichier Open project: jxpxxzj/WarshipGirl Class Usage Examples

Méthodes publiques

Méthode Description
DrawText ( Vector2 pos, Rectangle rect, string text, Color color ) : void
DrawText ( Vector2 pos, string text, Color color ) : void
Font ( string font, uint size ) : System
MeasureString ( string s ) : Vector2

Private Methods

Méthode Description
CreateChar ( char c ) : Character
CreateStringTexture ( string s ) : jxGameFramework.Data.Character[]
DrawText ( SpriteBatch sb, Vector2 pos, Character text, Color color ) : void
DrawText ( SpriteBatch sb, Vector2 pos, Rectangle rect, Character text, Color color ) : void
GetCharBitmap ( uint c ) : Tao.FreeType.FT_GlyphSlotRec
PreMultiplyAlphas ( Microsoft.Xna.Framework.Graphics.Texture2D ret ) : void

Method Details

DrawText() public méthode

public DrawText ( Vector2 pos, Rectangle rect, string text, Color color ) : void
pos Vector2
rect Microsoft.Xna.Framework.Rectangle
text string
color Color
Résultat void

DrawText() public méthode

public DrawText ( Vector2 pos, string text, Color color ) : void
pos Vector2
text string
color Color
Résultat void

Font() public méthode

public Font ( string font, uint size ) : System
font string
size uint
Résultat System

MeasureString() public méthode

public MeasureString ( string s ) : Vector2
s string
Résultat Vector2