19 SetVideoMode(MODE_NTSC);
21 SetVideoMode(MODE_PAL);
24 SetVideoMode(MODE_NTSC);
36 ClearImage(&rect, 0, 0, 0);
55 param[0] = CdlModeSpeed;
56 while (CdControl(CdlSetmode, param, 0) == 0) {
59 CdControlB(CdlPause, 0, 0);
GfxState GFX
GFX: the graphics state and its methods.
GameState GAME
The save data, the game mode and the methods.
s32 NTSC_MODE
The European version runs at 50 Hz (PAL) unless NTSC_MODE is set; its clocks then advance 0x133,...
FileCache FILE_CACHE
The file cache.
Font FONT
decode is declared without a prototype, as callers would truncate the u8 mode, so decodeChar is cast ...
#define SCREEN_WIDTH
The screen the modes draw on (setDisplayMode, their layers' rects)
Heap HEAP
The functions that return what a call left in v0 (allocMemHigh, findTask) and the ones that take othe...
#define MEM_MODE
the current mode's: freed by main whenever the mode task ends
void *const SUB_OVERLAY_ADDRESS
static void * ROOT_TASK
the task that runs the game mode
static RECT BOOT_IMAGE_RECT
Where the boot image, the 320x480 TIM loaded after the executable, goes in VRAM.
int main(void)
Starts the hardware, the libraries and the engine, then runs a frame per iteration.
void *const OVERLAY_ADDRESS
Where the modes' overlays (the .PRO files of AAA/PRO) load, after the executable, and the stages and ...
MemCardFuncs MEMCARD_FUNCS
void * createModeTask(void)
Creates the task that runs the current mode (updateModeTask)
u8 OVERLAY_VRAM[]
the memory map of mk/version/<version>.mk, which the Makefile gives the linker: where the overlays an...
PadState PAD
Controller input: cleared by initPad, then the methods.
TaskRegistry TASK_REGISTRY
SoundState SOUND
rsin and rcos (libgte) read rsin_tbl[a - 0x800] and the like: their addresses before the table fall i...
void(* freePrimBuffers)(void)
void(* setDisplayMode)(s32 w, s32 h, s32 hires, s32 interlace)
void(* update)()
PAD_UPDATE.
s32(* next)(void)
0 to RANDOM_COUNT - 1
void(* updateLoading)(void)
struct Task *(* run)(struct Task *task)