u8 palette[]
Full 256-color palette for BG and sprite layers (512 bytes)
Text rendering configuration.
Definition text.h:19
void textLoadFont(u16 vram_addr)
Load font tiles to VRAM.
void textLoadFont4bpp(u16 vram_addr)
Load font as 4bpp tiles for Mode 1 BGs.
void textModeInit(void)
Initialize text display mode — one-call setup for text-based examples.
void textClear(void)
Clear entire tilemap with spaces.
TextConfig text_config
Default text configuration.
void textPrintAt(u8 x, u8 y, const char *str)
Print a string at specific position.
void textClearRect(u8 x, u8 y, u8 w, u8 h)
Clear a rectangular region (fills with spaces)
void textInit(u16 tilemap_addr, u16 font_tile, u8 palette)
Initialize the text rendering system.
void textFlush(void)
Request tilemap DMA transfer to VRAM (rarely needed).
void textPrintU16(u16 value)
Print an unsigned integer.
void textSetPos(u8 x, u8 y)
Set cursor position.
void textPutChar(char c)
Print a single character at cursor position.
void textPrintHex(u16 value, u8 digits)
Print an unsigned integer in hexadecimal.
void textPrint(const char *str)
Print a string at cursor position.
u8 textGetX(void)
Get current cursor X position.
u8 textGetY(void)
Get current cursor Y position.