Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
draw_fader.inc.c
Go to the documentation of this file.
1/* Darkens the whole screen by the fade's level: a POLY_F4 with subtractive
2 blending (tpage 0xE1000245) */
4 Layer *layer = GFX.funcs.getLayer(task->layerId);
5 u_long *ot = layer->getOtEntry(layer, task->depth);
6 POLY_F4 *poly = GFX.funcs.getPrim();
7 DR_TPAGE *mode;
8
9 setlen(poly, 5);
10 poly->code = 0x2A;
11 poly->r0 = poly->g0 = poly->b0 = task->level >> 8;
12 poly->x0 = poly->x2 = 0;
13 poly->x1 = poly->x3 = 320;
14 poly->y0 = poly->y1 = 0;
15 poly->y2 = poly->y3 = 256;
16 addPrim(ot, poly);
17 mode = (DR_TPAGE *)(poly + 1);
18 setlen(mode, 1);
19 mode->code[0] = 0xE1000245;
20 addPrim(ot, mode);
21 GFX.funcs.setPrim(mode + 1);
22}
#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
void drawFader(ScreenFade *task)
Darkens the whole screen by the fade's level: a POLY_F4 with subtractive blending (tpage 0xE1000245)
void *(* getPrim)(void)
Definition gfx.h:19
struct Layer *(* getLayer)(s32 id)
Definition gfx.h:28
void(* setPrim)(void *next)
Definition gfx.h:20
GfxFuncs funcs
Definition gfx.h:77
A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables,...
Definition gfx.h:128
u_long *(* getOtEntry)(struct Layer *, s32 depth)
Definition gfx.h:155
Fades the whole screen to black and back with a subtractive rectangle.
Definition gfx.h:361