33#ifndef SNES_VWF_INCLUDE
34#define SNES_VWF_INCLUDE
50void consoleInitvwText(u8* fnttileadr, u8 *fntwidthadr);
57void consoleSetvwTextLineAddr(u8 lineidx, u16 tilevram);
63void consoleSetvwTextClearLine(u8 lineidx);
75void consoleDrawvwText(u8 lineidx, u16 xcol, u8 ycol,
char *text);
void consoleInitDefaultText(u8 palnum);
Custom types used by libsnes.
void consoleDrawTextMapCenter(u16 y, u16 *map, u8 attributes, char *fmt,...)
Output formatted string on a screen, centered it (2 colors tiles mode)
void consoleInitText(u8 palnum, u8 palsize, u8 *tilfont, u8 *palfont)
Initialize the Text System.
void consoleInitDefaultText(u8 palnum)
Initialize the Text System with the font shipped in PVSNesLib.
u8 scr_txt_dirty
flag to redraw text during vblank
void consoleDrawText(u16 x, u16 y, char *fmt,...)
Output formatted string on a screen (tiles mode)
void consoleSetTextPal(u8 palnum, u8 *palfont, u8 palsize)
Change text font palette.
void consoleSetvwTextBlkTile(u16 tileEntry)
Sets the blank tile entry to reset a line.
void consoleUpdate(void)
Update current text buffer on screen.
void consoleSetvwTextMapAttr(u8 mapAttr)
Sets the high byte attr into tilemap entry.
void consoleSetTextOffset(u16 offsetfont)
Change text Background map address for display (must be BG address)
void consoleSetTextGfxPtr(u16 vramfont)
Change text graphics address (4K aligned)
void consoleDrawTextMap(u16 x, u16 y, u8 *map, u8 attributes, char *fmt,...)
Output formatted string on a screen (2 colors tiles mode)
void consolevwTextUpdate(void)
DMA all dirty line buffers to VRAM.
u8 scr_txt_font_map[0x800]
tilemap used for text display
void consoleSetTextMapPtr(u16 offsetfont)
Change text Background map address for display (must be BG address)