NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m_wipe_fader.hpp
1#pragma once
2#include <game/mLib/m_fader_base.hpp>
3
6class mWipeFader_c : public mFaderBase_c {
7public:
8
10
11 virtual ~mWipeFader_c();
12 virtual void setStatus(EStatus status);
13 virtual int calc();
14 virtual void draw();
15 virtual void setTexture(void *data, int width, int height);
16
17private:
20 virtual void calcMtx();
21
28};
Base fader implementation.
EStatus
The fader's status.
A fader that wipes a texture in and out to/from the center of the screen.
int mTexWidth
The width of the texture.
virtual void draw()
Draws the fader.
Mtx mTexMtx
The texture matrix.
int mTexHeight
The height of the texture.
virtual void setStatus(EStatus status)
Sets the fader's status.
virtual int calc()
Calculates the fader at the current frame.
float mAspectRatioFactor
How much to stretch the texture horizontally to compensate for the screen's aspect ratio.
void * mpTextureData
The texture data.
virtual void calcMtx()
Calculates the texture matrix needed for drawing the texture to the screen.
virtual void setTexture(void *data, int width, int height)
Sets the texture to use for the fader.
u8 mProgress
A value from 0 to 255 that represents the current progress of the fader.
float Mtx[3][4]
A 3x4 matrix.
Definition mtx.h:12
A 32-bit RGBA color.
Definition m_color.hpp:6