Font pixel buffer format (holds a pixel buffer containing a glyph). More...
#include <font.h>
Public Member Functions | |
CL_FontPixelBuffer () | |
Public Attributes | |
CL_PixelBuffer | buffer |
The pixel buffer containing the glyph. | |
CL_Rect | buffer_rect |
The rect containing the image inside "buffer". | |
bool | empty_buffer |
True when the pixel buffer is empty. | |
unsigned int | glyph |
Glyph this pixel buffer refers to. 0 = Glyph if not valid. | |
CL_Point | increment |
Increment to draw the next glyph. | |
CL_Point | offset |
Offset to draw the font to buffer. |
Font pixel buffer format (holds a pixel buffer containing a glyph).
CL_FontPixelBuffer::CL_FontPixelBuffer | ( | ) | [inline] |
The pixel buffer containing the glyph.
The rect containing the image inside "buffer".
True when the pixel buffer is empty.
unsigned int CL_FontPixelBuffer::glyph |
Glyph this pixel buffer refers to. 0 = Glyph if not valid.
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