C# 클래스 OpenRA.Graphics.SpriteFont

파일 보기 프로젝트 열기: pchote/OpenRA 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
CreateGlyph ( Color>.Pair c ) : GlyphInfo
PrecacheColor ( Color c, string name ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DrawText() 공개 메소드

public DrawText ( string text, float2 location, Color c ) : void
text string
location float2
c Color
리턴 void

DrawTextWithContrast() 공개 메소드

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

DrawTextWithContrast() 공개 메소드

public DrawTextWithContrast ( string text, float2 location, Color fg, Color bg, int offset ) : void
text string
location float2
fg Color
bg Color
offset int
리턴 void

DrawTextWithShadow() 공개 메소드

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

DrawTextWithShadow() 공개 메소드

public DrawTextWithShadow ( string text, float2 location, Color fg, Color bg, int offset ) : void
text string
location float2
fg Color
bg Color
offset int
리턴 void

Measure() 공개 메소드

public Measure ( string text ) : int2
text string
리턴 int2

SpriteFont() 공개 메소드

public SpriteFont ( string name, byte data, int size, SheetBuilder builder ) : System
name string
data byte
size int
builder SheetBuilder
리턴 System