C# Class OpenRA.Graphics.SpriteFont

Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
DrawText ( string text, float2 location, Color c ) : void
DrawTextWithContrast ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
DrawTextWithContrast ( string text, float2 location, Color fg, Color bg, int offset ) : void
DrawTextWithShadow ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
DrawTextWithShadow ( string text, float2 location, Color fg, Color bg, int offset ) : void
Measure ( string text ) : int2
SpriteFont ( string name, byte data, int size, SheetBuilder builder ) : System

Private Methods

Méthode Description
CreateGlyph ( Color>.Pair c ) : GlyphInfo
PrecacheColor ( Color c, string name ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DrawText() public méthode

public DrawText ( string text, float2 location, Color c ) : void
text string
location float2
c Color
Résultat void

DrawTextWithContrast() public méthode

public DrawTextWithContrast ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
text string
location float2
fg Color
bgDark Color
bgLight Color
offset int
Résultat void

DrawTextWithContrast() public méthode

public DrawTextWithContrast ( string text, float2 location, Color fg, Color bg, int offset ) : void
text string
location float2
fg Color
bg Color
offset int
Résultat void

DrawTextWithShadow() public méthode

public DrawTextWithShadow ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
text string
location float2
fg Color
bgDark Color
bgLight Color
offset int
Résultat void

DrawTextWithShadow() public méthode

public DrawTextWithShadow ( string text, float2 location, Color fg, Color bg, int offset ) : void
text string
location float2
fg Color
bg Color
offset int
Résultat void

Measure() public méthode

public Measure ( string text ) : int2
text string
Résultat int2

SpriteFont() public méthode

public SpriteFont ( string name, byte data, int size, SheetBuilder builder ) : System
name string
data byte
size int
builder SheetBuilder
Résultat System