match and link m_fbdemo.c

This commit is contained in:
Prakxo
2023-05-04 11:01:21 +00:00
parent 879041ed4b
commit 26bbc625ca
6 changed files with 256 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#ifndef SLEEP_H
#define SLEEP_H
#include "types.h"
#include "dolphin/os/OSTime.h"
void csleep(OSTime c);
void msleep(int);
#endif
+2 -1
View File
@@ -4,6 +4,7 @@
#include "types.h"
#include "libultra/ultratypes.h"
void guMtxIdentF(float mf[4][4]);
inline void guTranslateF(float m[4][4], float x, float y, float z){
guMtxIdentF(m);
@@ -21,7 +22,7 @@ inline void guScaleF(float mf[4][4], float x, float y, float z) {
}
void guMtxF2L(float mf[4][4], Mtx *m);
void guMtxIdentF(float mf[4][4]);
void guTranslate(Mtx *m, float x, float y, float z);
void guScale(Mtx *m, float x, float y, float z);
+36
View File
@@ -0,0 +1,36 @@
#ifndef FBDEMO_H
#define FBDEMO_H
#include "types.h"
#include "PR/mbi.h"
typedef struct {
/* 0x0 */ f32 x;
/* 0x4 */ f32 y;
} TransitionTileVtxData; // size = 0x8
typedef struct {
/* 0x00 */ int cols;
/* 0x04 */ int rows;
/* 0x08 */ int frame;
/* 0x0C */ TransitionTileVtxData* vtxData;
/* 0x10 */ Vtx* vtxFrame1;
/* 0x14 */ Vtx* vtxFrame2;
/* 0x18 */ Mtx projection;
/* 0x58 */ Mtx modelView;
/* 0x98 */ Mtx unk_98;
/* 0xD8 */ Gfx* gfx; // "gfxtbl"
/* 0xDC */ u16* zBuffer;
} TransitionTile; // size = 0xE0
extern void fbdemo_init_gfx(TransitionTile*);
extern void fbdemo_init_data(TransitionTile*);
extern void fbdemo_cleanup(TransitionTile*);
extern TransitionTile* fbdemo_init(TransitionTile*, int, int);
extern void fbdemo_update(TransitionTile*);
extern void fbdemo_draw(TransitionTile*, Gfx**);
extern void fbdemo_move(void);
#endif