Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
fader.c File Reference

CARDGAME's screen fader. More...

Include dependency graph for fader.c:

Go to the source code of this file.

Functions

void CARDGAME_drawFader (CardFader *fader, RECT rect)
 Draws the fader over RECT, in layer 0x100.
 
void CARDGAME_stepFader (CardFader *fader)
 Moves the colour towards the target as the time runs out.
 
void CARDGAME_setFaderColor (CardFader *fader, u8 r, u8 g, u8 b)
 Sets the colour at once.
 
void CARDGAME_startFade (CardFader *fader, u8 r, u8 g, u8 b, s32 frames, s32 killWhenDone)
 Fades from the current colour to r, g, b in FRAMES vsyncs; the task ends at the end when KILLWHENDONE is set.
 
s32 CARDGAME_isFadeDone (CardFader *fader)
 1 once the fade has reached its colour
 
void CARDGAME_killFader (CardFader *fader)
 Ends the task.
 
void CARDGAME_tickFader (CardFader *fader)
 A fader's task: steps its fade while fading, draws it over CARDGAME_fadeRect every frame and ends once killed.
 
CardFader * CARDGAME_createFader (u8 blend)
 Creates a fader, with the semi-transparency rate BLEND.
 

Detailed Description

CARDGAME's screen fader.

Definition in file fader.c.

Function Documentation

◆ CARDGAME_drawFader()

void CARDGAME_drawFader ( CardFader *  fader,
RECT  rect 
)

Draws the fader over RECT, in layer 0x100.

Definition at line 6 of file fader.c.

Referenced by CARDGAME_tickFader().

Here is the caller graph for this function:

◆ CARDGAME_stepFader()

void CARDGAME_stepFader ( CardFader *  fader)

Moves the colour towards the target as the time runs out.

Definition at line 34 of file fader.c.

Referenced by CARDGAME_tickFader().

Here is the caller graph for this function:

◆ CARDGAME_setFaderColor()

void CARDGAME_setFaderColor ( CardFader *  fader,
u8  r,
u8  g,
u8  b 
)

Sets the colour at once.

Definition at line 55 of file fader.c.

Referenced by CARDGAME_createFader().

Here is the caller graph for this function:

◆ CARDGAME_startFade()

void CARDGAME_startFade ( CardFader *  fader,
u8  r,
u8  g,
u8  b,
s32  frames,
s32  killWhenDone 
)

Fades from the current colour to r, g, b in FRAMES vsyncs; the task ends at the end when KILLWHENDONE is set.

Definition at line 63 of file fader.c.

Referenced by CARDGAME_createFader().

Here is the caller graph for this function:

◆ CARDGAME_isFadeDone()

s32 CARDGAME_isFadeDone ( CardFader *  fader)

1 once the fade has reached its colour

Definition at line 79 of file fader.c.

Referenced by CARDGAME_createFader().

Here is the caller graph for this function:

◆ CARDGAME_killFader()

void CARDGAME_killFader ( CardFader *  fader)

Ends the task.

Definition at line 84 of file fader.c.

Referenced by CARDGAME_createFader().

Here is the caller graph for this function:

◆ CARDGAME_tickFader()

void CARDGAME_tickFader ( CardFader *  fader)

A fader's task: steps its fade while fading, draws it over CARDGAME_fadeRect every frame and ends once killed.

Definition at line 90 of file fader.c.

Referenced by CARDGAME_createFader().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_createFader()

CardFader * CARDGAME_createFader ( u8  blend)

Creates a fader, with the semi-transparency rate BLEND.

Definition at line 112 of file fader.c.

Referenced by CARDGAME_startStepFade(), CARDGAME_updateBattle(), and countRoundWin().

Here is the call graph for this function:
Here is the caller graph for this function: