#include <gltext.h>
Inheritance diagram for gltext::Glyph:
Public Methods | |
virtual int GLTEXT_CALL | getWidth ()=0 |
Returns width in pixels. | |
virtual int GLTEXT_CALL | getHeight ()=0 |
Returns height in pixels. | |
virtual int GLTEXT_CALL | getXOffset ()=0 |
Returns the X offset of this glyph when it is drawn. | |
virtual int GLTEXT_CALL | getYOffset ()=0 |
Returns the Y offset of this glyph when it is drawn. | |
virtual int GLTEXT_CALL | getAdvance ()=0 |
virtual void GLTEXT_CALL | render (u8 *pixels)=0 |
virtual void GLTEXT_CALL | renderBitmap (u8 *pixels)=0 |
|
Returns the number of pixels the pen should move to the right to draw the next character |
|
Renders the glyph into a buffer of width * height bytes. A value of 0 means the pixel is transparent; likewise, 255 means opaque. |
|
renderBitmap() is the same as render, except that it only uses values 0 and 255. These bitmaps may look better on two-color displays. |