|
Digimon World 3 decomp
The European version, SLES_039.36
|
CARDGAME's screen fader. More...
#include "cardgame/card_battle.h"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. | |
CARDGAME's screen fader.
Definition in file fader.c.
| 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().
| 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().
Sets the colour at once.
Definition at line 55 of file fader.c.
Referenced by CARDGAME_createFader().
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().
1 once the fade has reached its colour
Definition at line 79 of file fader.c.
Referenced by CARDGAME_createFader().
| void CARDGAME_killFader | ( | CardFader * | fader | ) |
Ends the task.
Definition at line 84 of file fader.c.
Referenced by CARDGAME_createFader().
| 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().
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().