SpriteChar Class Reference
List of all members.
Public Member Functions |
float | GetKerning (int prevChar) |
| Gets the kerning amount given the previous character.
|
Public Attributes |
int | id |
| The "id" of the character (usually the ASCII value).
|
Rect | UVs |
| The UV coords of the character.
|
float | xOffset |
| The offset, in pixels, of the char's mesh from its "zero-point".
|
float | xAdvance |
| How far to move, in pixels, from this char to position the next one.
|
Dictionary< int, float > | kernings |
| The map of kernings to use for preceding characters. The key is the previous character, and the value is the kerning amount, in pixels.
|
Detailed Description
A class that holds important information about a sprite-based character.
Member Function Documentation
float SpriteChar.GetKerning |
( |
int |
prevChar |
) |
|
Gets the kerning amount given the previous character.
- Parameters:
-
| prevChar | The character that precedes this one. |
- Returns:
- The kerning amount, in pixels.
Member Data Documentation
The "id" of the character (usually the ASCII value).
The map of kernings to use for preceding characters. The key is the previous character, and the value is the kerning amount, in pixels.
The UV coords of the character.
How far to move, in pixels, from this char to position the next one.
The offset, in pixels, of the char's mesh from its "zero-point".
The documentation for this class was generated from the following file: