|
void | Init (int pFontSize, int pTextureWidth, int pTextureHeight, char pChr) |
| Preprocess some character data for rendering.
|
|
|
int | OriginalFontSize |
| Original Font Size.
|
|
Vector2 | TextureSize |
| Size of the texture atlas that holds all characters, in Pixels.
|
|
char | Char |
| Character to be printed.
|
|
Vector2 | PositionUV |
| UV Texture coords of the char within the texture atlas.
|
|
Vector2 | RelativeSize |
| Size of the char, relative to the FontSize (in percent, 0..1)
|
|
Vector2 | RelativeOffset |
| How much the current position should be offset when copying the image from the texture to the screen, in relative coords to fontsize (0..1)
|
|
Vector2 | SizeUV |
| Size of the char in TextureCoords.
|
|
float | RelativeAdvanceInX |
| Advance in the X direction, in Coords relative to the font size.
|
|
|
Int32 | ID [get, set] |
| Character ID according to ASCII convention.
|
|
Int32 | X [get, set] |
| The left position of the character image in the texture.
|
|
Int32 | Y [get, set] |
| The top position of the character image in the texture.
|
|
Int32 | Width [get, set] |
| The width of the character image in the texture.
|
|
Int32 | Height [get, set] |
| The height of the character image in the texture.
|
|
Int32 | XOffset [get, set] |
| How much the current position should be offset when copying the image from the texture to the screen.
|
|
Int32 | YOffset [get, set] |
| How much the current position should be offset when copying the image from the texture to the screen.
|
|
Int32 | XAdvance [get, set] |
| How much the current position should be advanced after drawing the character.
|
|
Int32 | Page [get, set] |
| The texture page where the character image is found.
|
|
Int32 | Channel [get, set] |
| The texture channel where the character image is found (1 = blue, 2 = green, 4 = red, 8 = alpha, 15 = all channels).
|
|
◆ Init()
void GraphicDNA.FontChar.Init |
( |
int |
pFontSize, |
|
|
int |
pTextureWidth, |
|
|
int |
pTextureHeight, |
|
|
char |
pChr |
|
) |
| |
|
inline |
Preprocess some character data for rendering.
- Parameters
-
pFontSize | Size of the font |
pTextureWidth | Width of the texture atlas |
pTextureHeight | Height of the texture atlas |
pChr | Character of this char |
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/GraphicDNA_2DShaperLibrary/Scripts/BitmapFont.cs