Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_scene.inc.c
Go to the documentation of this file.
1/* The mode's root task: sets up the 320x240 display with SCENE_PRIM_BUFFERS
2 bytes of primitives and a black layer (SCENE_OT_SHIFT), then creates the
3 mode's main task (SCENE_CREATE), its only child */
5 RECT rect;
6 Layer *layer;
7
8 switch (task->state) {
9 case TASK_INIT:
10 default:
11 GFX.funcs.reset();
14 rect.x = 0;
15 rect.y = 0;
16 rect.w = SCREEN_WIDTH;
17 rect.h = SCREEN_HEIGHT;
19 layer->setBgColor(layer, 0, 0, 0);
20 *child = SCENE_CREATE();
21 task->nextState(task);
22 break;
23 case TASK_RUN:
24 case TASK_DONE:
25 case TASK_KILL:
26 break;
27 }
28}
#define SCENE_OT_SHIFT
Definition album.c:248
#define SCENE_TASK
Definition album.c:244
#define SCENE_CHILD
Definition album.c:245
#define SCENE_PRIM_BUFFERS
Definition album.c:247
#define SCENE_CREATE
Definition album.c:246
#define OVL_NAME(name)
The name of this overlay's copy of a function of src/shared/.
Definition battle_mode.h:26
GfxState GFX
GFX: the graphics state and its methods.
Definition display.c:209
#define TASK_RUN
Definition task.h:35
#define TASK_KILL
Definition task.h:37
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
Definition task.h:34
#define TASK_DONE
Definition task.h:36
#define SCREEN_WIDTH
The screen the modes draw on (setDisplayMode, their layers' rects)
Definition gfx.h:36
#define SCREEN_HEIGHT
Definition gfx.h:37
#define SCREEN_LAYER
The layer over the whole screen that most modes create first and draw their menus on (FIELDSTG and ST...
Definition gfx.h:45
void(* reset)(void)
Definition gfx.h:17
void(* allocPrimBuffers)(s32 size)
Definition gfx.h:18
struct Layer *(* createLayer)(RECT *rect, s32 otShift, s32 id)
Definition gfx.h:24
void(* setDisplayMode)(s32 w, s32 h, s32 hires, s32 interlace)
Definition gfx.h:26
GfxFuncs funcs
Definition gfx.h:77
A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables,...
Definition gfx.h:128
void(* setBgColor)()
no prototype: callers would truncate u8 args
Definition gfx.h:152
void updateScene(SCENE_TASK *task, SCENE_CHILD **child)
The mode's root task: sets up the 320x240 display with SCENE_PRIM_BUFFERS bytes of primitives and a b...