7 layer->
setOffset(layer, rect->w / 2, rect->h / 2);
17 switch (task->
state) {
GfxState GFX
GFX: the graphics state and its methods.
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
#define SCREEN_WIDTH
The screen the modes draw on (setDisplayMode, their layers' rects)
#define SCREEN_LAYER
The layer over the whole screen that most modes create first and draw their menus on (FIELDSTG and ST...
STPLNMET.PRO: the player's name entry (MODE_PLAYER_NAME).
void(* allocPrimBuffers)(s32 size)
struct Layer *(* createLayer)(RECT *rect, s32 otShift, s32 id)
void(* setDisplayMode)(s32 w, s32 h, s32 hires, s32 interlace)
A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables,...
void(* setBgColor)()
no prototype: callers would truncate u8 args
void(* setOffset)()
no prototype: callers would truncate s16 args
The main task of the screen (STPLNMET_createScreen)
Any task, seen through its header.
void(* nextState)(struct Task *task)
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find