summaryrefslogtreecommitdiff
path: root/include/m_fbdemo_fade.h
blob: 0368e73273f7ab4de7aa6bc1708f89c4c66eb99d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef M_FBDEMO_FADE_H
#define M_FBDEMO_FADE_H

#include "ultra64.h"
#include "color.h"

typedef struct fbDemoFade {
    /* 0x000 */ u8 type;
    /* 0x001 */ u8 isDone;
    /* 0x002 */ u8 direction;
    /* 0x004 */ Color_RGBA8_u32 color;
    /* 0x008 */ s16 frame;
    /* 0x00A */ u16 unkA;
    /* 0x00C */ u16 timer;
} fbDemoFade; // size = 0x10

fbDemoFade* fbdemo_fade_init(fbDemoFade* this);
void fbdemo_fade_move(fbDemoFade* this, s32 rate);
void fbdemo_fade_draw(fbDemoFade* this, Gfx** gfxP);
void fbdemo_fade_startup(fbDemoFade* this);
void fbdemo_fade_settype(fbDemoFade* this, int type);
void fbdemo_fade_setcolor_rgba8888(fbDemoFade* this, u32 color);
u8 fbdemo_fade_is_finish(fbDemoFade* this);


#endif