|
libtonc
|
Text on surface composed of 4bpp tiles, mapped in row-major order. More...
Modules | |
| Bitmap text | |
| Text for 16bpp and 8bpp bitmap surfaces: modes 3, 4 and 5. | |
4bpp tiles | |
| void | tte_init_chr4r (int bgnr, u16 bgcnt, u16 se0, u32 cattrs, u32 clrs, const TFont *font, fnDrawg proc) |
| Initialize text system for 4bpp tiled, column-major surfaces. | |
| void | chr4r_erase (int left, int top, int right, int bottom) |
| Erase part of the 4bpp text canvas. | |
| void | chr4r_drawg_b1cts (uint gid) |
| Render 1bpp fonts to 4bpp tiles. | |
| IWRAM_CODE void | chr4r_drawg_b1cts_fast (uint gid) |
| Initialize text system for 4bpp tiled, column-major surfaces. | |
Text on surface composed of 4bpp tiles, mapped in row-major order.
There are actually two chr4 systems, with row-major and column-major tile indexing. The column-major version is more advanced, so use that when possible.
| IWRAM_CODE void chr4r_drawg_b1cts_fast | ( | uint | gid | ) |
Initialize text system for 4bpp tiled, column-major surfaces.
| bgnr | Background number. |
| bgcnt | Background control flags. |
| se0 | Base offset for screen-entries. |
| cattrs | Color attributes; one byte per attr. |
| clrs | ink(/shadow) colors. |
| font | Font to initialize with. |
| proc | Glyph renderer |
| void tte_init_chr4r | ( | int | bgnr, |
| u16 | bgcnt, | ||
| u16 | se0, | ||
| u32 | cattrs, | ||
| u32 | clrs, | ||
| const TFont * | font, | ||
| fnDrawg | proc | ||
| ) |
Initialize text system for 4bpp tiled, column-major surfaces.
| bgnr | Background number. |
| bgcnt | Background control flags. |
| se0 | Base offset for screen-entries. |
| cattrs | Color attributes; one byte per attr. |
| clrs | ink(/shadow) colors. |
| font | Font to initialize with. |
| proc | Glyph renderer |
References BFN_GET, TTC::cattr, chr4r_erase(), TTC::ctrl, TTC::dst, pal_bg_bank, pal_bg_mem, REG_BGCNT, schr4r_prep_map(), se_mem, SRF_CHR4R, srf_init(), tile_mem, tte_get_context(), tte_init_base(), and vwf_default.