C# Class jxGameFramework.Data.Font

ファイルを表示 Open project: jxpxxzj/WarshipGirl Class Usage Examples

Public Methods

Method 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

Method 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 method

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

DrawText() public method

public DrawText ( Vector2 pos, string text, Color color ) : void
pos Vector2
text string
color Color
return void

Font() public method

public Font ( string font, uint size ) : System
font string
size uint
return System

MeasureString() public method

public MeasureString ( string s ) : Vector2
s string
return Vector2