Untitled Game engine no.5
1.0
|
#include <Font.hpp>
Public Member Functions | |
Glyph (const Ref< Texture > &texture, const Ref< TextureMap > &map, uint cwidth, uint cheight, int32_t leftShift, int32_t topShift, uint32_t adv) | |
create a glyph from a texture and character data | |
![]() | |
TextureLookup (const Ref< Texture > &tex, const Ref< Engine::TextureMap > &map, uint width, uint height) | |
Public Attributes | |
int | left |
distance from the texture to the end of the last character | |
int | top |
distance from the texture to the top of the line | |
uint32_t | advance |
total size of the character from the edge of the last character to beginning of the next character | |
![]() | |
Ref< Texture > | tex |
texture reference | |
Ref< TextureMap > | map |
Mapping reference. | |
uint | width |
texture width | |
uint | height |
texture height | |
Represents a character texture.
Stores the graphical and positional data of a character texture in a line of text.