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._
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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