C# 클래스 SparrowSharp.Fonts.BitmapChar

A BitmapChar contains the information about one char of a bitmap font. _You don't have to use this class directly in most cases._
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CharId int
Texture Sparrow.Textures.Texture
XAdvance float
XOffset float
YOffset float

공개 메소드들

메소드 설명
AddKerning ( float amount, int charId ) : void

Adds kerning information relative to a specific other character ID.

BitmapChar ( Texture texture ) : System.Collections.Generic

Initializes a char with a texture.

BitmapChar ( int charId, Texture texture, float xOffset, float yOffset, float xAdvance ) : System.Collections.Generic

Initializes a char with a texture and its properties.

KerningToChar ( int charId ) : float

Retrieve kerning information relative to the given character ID.

메소드 상세

AddKerning() 공개 메소드

Adds kerning information relative to a specific other character ID.
public AddKerning ( float amount, int charId ) : void
amount float
charId int
리턴 void

BitmapChar() 공개 메소드

Initializes a char with a texture.
public BitmapChar ( Texture texture ) : System.Collections.Generic
texture Sparrow.Textures.Texture
리턴 System.Collections.Generic

BitmapChar() 공개 메소드

Initializes a char with a texture and its properties.
public BitmapChar ( int charId, Texture texture, float xOffset, float yOffset, float xAdvance ) : System.Collections.Generic
charId int
texture Sparrow.Textures.Texture
xOffset float
yOffset float
xAdvance float
리턴 System.Collections.Generic

KerningToChar() 공개 메소드

Retrieve kerning information relative to the given character ID.
public KerningToChar ( int charId ) : float
charId int
리턴 float

프로퍼티 상세

CharId 공개적으로 프로퍼티

The unicode ID of the char.
public int CharId
리턴 int

Texture 공개적으로 프로퍼티

The texture of the character.
public Texture,Sparrow.Textures Texture
리턴 Sparrow.Textures.Texture

XAdvance 공개적으로 프로퍼티

The number of pixels the cursor has to be moved to the right for the next char.
public float XAdvance
리턴 float

XOffset 공개적으로 프로퍼티

The number of pixels to move the char in x direction on character arrangement.
public float XOffset
리턴 float

YOffset 공개적으로 프로퍼티

The number of pixels to move the char in y direction on character arrangement.
public float YOffset
리턴 float