Font texture format (holds a pixel buffer containing a glyph). More...
#include <font_system.h>
Public Member Functions | |
CL_Font_TextureGlyph () | |
Public Attributes | |
bool | empty_buffer |
True when the pixel buffer is empty. | |
CL_Rect | geometry |
Geometry of the glyph inside the subtexture (excluding the border). | |
unsigned int | glyph |
Glyph this pixel buffer refers to. | |
CL_Point | increment |
Increment to draw the next glyph. | |
CL_Point | offset |
Offset to draw the font to buffer. | |
CL_Subtexture | subtexture |
The pixel buffer containing the glyph. |
Font texture format (holds a pixel buffer containing a glyph).
CL_Font_TextureGlyph::CL_Font_TextureGlyph | ( | ) | [inline] |
True when the pixel buffer is empty.
Geometry of the glyph inside the subtexture (excluding the border).
unsigned int CL_Font_TextureGlyph::glyph |
Glyph this pixel buffer refers to.
Increment to draw the next glyph.
For example: pos_x += pixelbuffer.increment.x; pos_y += pixelbuffer.increment.y;
Offset to draw the font to buffer.
For example: x = pos_x + pixelbuffer.offset.x y = pos_y + pixelbuffer.offset.y
The pixel buffer containing the glyph.