Untitled Game engine no.5  1.0
Public Member Functions | Public Attributes | List of all members
Engine::Glyph Struct Reference

#include <Font.hpp>

Inheritance diagram for Engine::Glyph:
Inheritance graph
[legend]
Collaboration diagram for Engine::Glyph:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from Engine::TextureLookup
 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
 
- Public Attributes inherited from Engine::TextureLookup
Ref< Texturetex
 texture reference
 
Ref< TextureMapmap
 Mapping reference.
 
uint width
 texture width
 
uint height
 texture height
 

Detailed Description

Represents a character texture.

Stores the graphical and positional data of a character texture in a line of text.


The documentation for this struct was generated from the following file: