C# 클래스 Engine.Objects.FontInstance

상속: Jurassic.Library.ObjectInstance
파일 보기 프로젝트 열기: Radnen/sphere-sfml 1 사용 예제들

공개 메소드들

메소드 설명
DrawText ( SpriteBatch batch, double x, double y, string text ) : void
FontInstance ( ScriptEngine parent ) : System
FontInstance ( ScriptEngine parent, string filename ) : System
GetGlyph ( int num ) : Image

비공개 메소드들

메소드 설명
CheckUpdate ( ) : void

Tries to update the atlas if any graphical changes were made to this font.

Clone ( ) : FontInstance
DrawText ( double x, double y, string text ) : void
DrawTextBox ( double x, double y, double w, double h, int spacing, string text ) : void
DrawZoomedText ( double x, double y, double zoom, string text ) : void
GetCharacterImage ( int ch ) : ImageInstance
GetColorMask ( ) : ColorInstance
GetHeight ( ) : int
GetStringHeight ( string text, int width ) : int
GetStringWidth ( string text ) : int
ReadFromFile ( string filename ) : void
Save ( string filename ) : void
SetCharacterImage ( int ch, ImageInstance image ) : void
SetColorMask ( ColorInstance color ) : void
ToString ( ) : string
Wrap ( string text, int width ) : ArrayInstance

메소드 상세

DrawText() 공개 메소드

public DrawText ( SpriteBatch batch, double x, double y, string text ) : void
batch SpriteBatch
x double
y double
text string
리턴 void

FontInstance() 공개 메소드

public FontInstance ( ScriptEngine parent ) : System
parent ScriptEngine
리턴 System

FontInstance() 공개 메소드

public FontInstance ( ScriptEngine parent, string filename ) : System
parent ScriptEngine
filename string
리턴 System

GetGlyph() 공개 메소드

public GetGlyph ( int num ) : Image
num int
리턴 Image