|
libtonc
|
Text for 16bpp and 8bpp bitmap surfaces: modes 3, 4 and 5. More...
Modules | |
| Object text | |
| Text using objects. | |
Functions | |
| void | tte_init_bmp (int vmode, const TFont *font, fnDrawg proc) |
| Initialize text system for bitmap fonts. | |
Variables | |
| const void * | TFont::data |
| Character data. | |
| const u8 * | TFont::widths |
| Width table for variable width font. | |
| const u8 * | TFont::heights |
| Height table for variable height font. | |
| u16 | TFont::charOffset |
| Character offset. | |
| u16 | TFont::charCount |
| Number of characters in font. | |
| u8 | TFont::charW |
| Character width (fwf). | |
| u8 | TFont::charH |
| Character height. | |
| u8 | TFont::cellW |
| Glyph cell width. | |
| u8 | TFont::cellH |
| Glyph cell height. | |
| u16 | TFont::cellSize |
| Cell-size (bytes). | |
| u8 | TFont::bpp |
| Font bitdepth;. | |
| u8 | TFont::extra |
| Padding. Free to use. | |
| TSurface | TTC::dst |
| Destination surface. | |
| s16 | TTC::cursorX |
| Cursor X-coord. | |
| s16 | TTC::cursorY |
| Cursor Y-coord. | |
| TFont * | TTC::font |
| Current font. | |
| u8 * | TTC::charLut |
| Character mapping lut. (if any). | |
| u16 | TTC::cattr [4] |
| ink, shadow, paper and special color attributes. | |
| u16 | TTC::flags0 |
| u16 | TTC::ctrl |
| BG control flags. (PONDER: remove?) | |
| u16 | TTC::marginLeft |
| u16 | TTC::marginTop |
| u16 | TTC::marginRight |
| u16 | TTC::marginBottom |
| s16 | TTC::savedX |
| s16 | TTC::savedY |
| s16 | TTC::lineSpacing |
| Extra line spacing. | |
| fnDrawg | TTC::drawgProc |
| Glyph render procedure. | |
| fnErase | TTC::eraseProc |
| Text eraser procedure. | |
| const TFont ** | TTC::fontTable |
| Pointer to font table forf}. | |
| const char ** | TTC::stringTable |
| Pointer to string table fors}. | |
8bpp bitmaps | |
| void | bmp8_erase (int left, int top, int right, int bottom) |
| Erase part of the 8bpp text canvas. | |
| void | bmp8_drawg (uint gid) |
| Linear 8 bpp bitmap glyph renderer, opaque. | |
| void | bmp8_drawg_t (uint gid) |
| Linear 8 bpp bitmap glyph renderer, transparent. | |
| void | bmp8_drawg_b1cts (uint gid) |
| Erase part of the 8bpp text canvas. | |
| IWRAM_CODE void | bmp8_drawg_b1cts_fast (uint gid) |
| Erase part of the 8bpp text canvas. | |
| void | bmp8_drawg_b1cos (uint gid) |
| Erase part of the 8bpp text canvas. | |
Text for 16bpp and 8bpp bitmap surfaces: modes 3, 4 and 5.
Note that TTE does not update the pointer of the surface for page-flipping. You'll have to do that yourself.
Initialize text system for bitmap fonts.
| vmode | Video mode (3,4 or 5). |
| font | Font to initialize with. |
| proc | Glyph renderer. |
References bmp16_erase(), bmp8_erase(), TTC::cattr, CLR_ORANGE, TTC::drawgProc, TTC::dst, TTC::eraseProc, m3_surface, m4_surface, m5_surface, pal_bg_mem, tte_get_context(), tte_init_base(), and vwf_default.