C# 클래스 Nez.TextRun

provides a cached run of text for super fast text drawing. Note that this is only appropriate for text that doesnt change often and doesnt move.
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
position Vector2
rotation float

공개 메소드들

메소드 설명
TextRun ( BitmapFont font ) : System
compile ( ) : void

compiles the text into raw verts/texture coordinates. This method must be called anytime text or any other properties are changed.

render ( Graphics graphics ) : void
setFont ( BitmapFont font ) : TextRun
setHorizontalAlign ( HorizontalAlign hAlign ) : TextRun
setText ( string text ) : TextRun
setVerticalAlign ( VerticalAlign vAlign ) : TextRun

비공개 메소드들

메소드 설명
updateCentering ( ) : void
updateSize ( ) : void

메소드 상세

TextRun() 공개 메소드

public TextRun ( BitmapFont font ) : System
font BitmapFont
리턴 System

compile() 공개 메소드

compiles the text into raw verts/texture coordinates. This method must be called anytime text or any other properties are changed.
public compile ( ) : void
리턴 void

render() 공개 메소드

public render ( Graphics graphics ) : void
graphics Graphics
리턴 void

setFont() 공개 메소드

public setFont ( BitmapFont font ) : TextRun
font BitmapFont
리턴 TextRun

setHorizontalAlign() 공개 메소드

public setHorizontalAlign ( HorizontalAlign hAlign ) : TextRun
hAlign HorizontalAlign
리턴 TextRun

setText() 공개 메소드

public setText ( string text ) : TextRun
text string
리턴 TextRun

setVerticalAlign() 공개 메소드

public setVerticalAlign ( VerticalAlign vAlign ) : TextRun
vAlign VerticalAlign
리턴 TextRun

프로퍼티 상세

position 공개적으로 프로퍼티

public Vector2 position
리턴 Vector2

rotation 공개적으로 프로퍼티

public float rotation
리턴 float