NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_fader.hpp
1#pragma once
2
3#include <types.h>
4#include <game/mLib/m_fader.hpp>
5
6class dFader_c : public mFader_c {
7public:
8 enum fader_type_e {
9 FADE
10 };
11
12 static void setFader(fader_type_e type);
13
14 /// @brief Starts a fade in with the @ref mFader_c::mFader "current fader".
15 /// @param duration The duration of the fade in.
16 /// @return Whether the fade in was started.
17 static bool startFadeIn(u16 duration);
18
19 /// @brief Starts a fade out with the @ref mFader_c::mFader "current fader".
20 /// @param duration The duration of the fade out.
21 /// @return Whether the fade out was started.
22 static bool startFadeOut(u16 duration);
23
24 static mFaderBase_c *mFader;
25};
static bool startFadeOut(u16 duration)
Starts a fade out with the current fader.
static bool startFadeIn(u16 duration)
Starts a fade in with the current fader.
Base fader implementation.
Fader management class.
Definition m_fader.hpp:7