libtonc: Character text, column-major

Tonclib

Character text, column-major
[Tonc Text Engine]

Text on surface composed of 4bpp tiles, mapped in column-major order. More...

4bpp tiles

void tte_init_chr4c (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 chr4c_erase (int left, int top, int right, int bottom)
 Erase part of the 4bpp text canvas.
void chr4c_drawg_b1cts (uint gid)
 Render 1bpp fonts to 4bpp tiles.
IWRAM_CODE void chr4c_drawg_b1cts_fast (uint gid)
 Initialize text system for 4bpp tiled, column-major surfaces.
void chr4c_drawg_b4cts (uint gid)
 Initialize text system for 4bpp tiled, column-major surfaces.
IWRAM_CODE void chr4c_drawg_b4cts_fast (uint gid)
 Initialize text system for 4bpp tiled, column-major surfaces.

Detailed Description

Text on surface composed of 4bpp tiles, mapped in column-major order.

There are actually two chr4 systems. The difference between the two is the ordering of the tiles: column-major versus row-major. Since column-major is 'better', this is considered the primary sub-system for tiled text.

See also:
4bpp tiled surfaces, column major

Function Documentation

IWRAM_CODE void chr4c_drawg_b1cts_fast ( uint  gid  ) 

Initialize text system for 4bpp tiled, column-major surfaces.

Parameters:
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 chr4c_drawg_b4cts ( uint  gid  ) 

Initialize text system for 4bpp tiled, column-major surfaces.

Parameters:
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

IWRAM_CODE void chr4c_drawg_b4cts_fast ( uint  gid  ) 

Initialize text system for 4bpp tiled, column-major surfaces.

Parameters:
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_chr4c ( int  bgnr,
u16  bgcnt,
u16  se0,
u32  cattrs,
u32  clrs,
const TFont font,
fnDrawg  proc 
)

Initialize text system for 4bpp tiled, column-major surfaces.

Parameters:
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


Generated on Mon Aug 25 17:03:57 2008 for libtonc by  doxygen 1.5.3