#include "../pvsneslibfont.inc"
int main(void)
{
consoleInitvwText(&vwfpvsneslibfontWidth, &pvsneslibfont_til);
consoleSetvwTextLineAddr(0, 0x2100);
consoleSetvwTextLineAddr(1, 0x2200);
consoleSetvwTextClearLine(0);consoleSetvwTextClearLine(1);
consoleDrawvwText(0, 12, 1, "Hello World!");
consoleDrawvwText(1, 28, 2, "Welcome to PVSnesLib:)");
while (1)
{
}
return 0;
}
void bgSetGfxPtr(u8 bgNumber, u16 address)
Definition of each background address.
void bgSetDisable(u8 bgNumber)
Disable a BG in the actual SNES mode.
void bgSetMapPtr(u8 bgNumber, u16 address, u8 mapSize)
Change Background Map address.
void bgSetEnable(u8 bgNumber)
Enable a BG in the actual SNES mode.
void WaitForVBlank(void)
Waits for a VBlank interrupt.
the master include file for snes applications.
void consolevwTextUpdate(void)
DMA all dirty line buffers to VRAM.
void consoleSetTextMapPtr(u16 offsetfont)
Change text Background map address for display (must be BG address)
void setScreenOn(void)
Put screen On.
#define setPalette(palette, paletteEntry, paletteSize)
Change a palette in CGRAM.
Definition video.h:393
void setMode(u8 mode, u8 size)
Set the SNES hardware to operate in new display mode.