2021-09-15 23:24:19 +00:00
|
|
|
#ifndef Z64TRANSITION_H
|
|
|
|
#define Z64TRANSITION_H
|
2020-04-30 18:41:09 +00:00
|
|
|
|
2020-10-03 15:22:44 +00:00
|
|
|
#include "ultra64.h"
|
|
|
|
#include "color.h"
|
2020-04-30 18:41:09 +00:00
|
|
|
|
2020-09-03 18:13:57 +00:00
|
|
|
typedef struct {
|
2022-12-28 21:29:59 +00:00
|
|
|
/* 0x0 */ f32 x;
|
|
|
|
/* 0x4 */ f32 y;
|
|
|
|
} TransitionTileVtxData; // size = 0x8
|
2020-09-03 18:13:57 +00:00
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
typedef struct {
|
2022-12-28 21:29:59 +00:00
|
|
|
/* 0x00 */ s32 cols;
|
|
|
|
/* 0x04 */ s32 rows;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x08 */ s32 frame;
|
2022-12-28 21:29:59 +00:00
|
|
|
/* 0x0C */ TransitionTileVtxData* vtxData;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x10 */ Vtx* vtxFrame1;
|
|
|
|
/* 0x14 */ Vtx* vtxFrame2;
|
|
|
|
/* 0x18 */ Mtx projection;
|
|
|
|
/* 0x58 */ Mtx modelView;
|
2020-05-25 21:18:14 +00:00
|
|
|
/* 0x98 */ Mtx unk_98;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0xD8 */ Gfx* gfx; // "gfxtbl"
|
|
|
|
/* 0xDC */ u16* zBuffer;
|
2022-12-28 21:29:59 +00:00
|
|
|
} TransitionTile; // size = 0xE0
|
2020-04-30 18:41:09 +00:00
|
|
|
|
2022-12-24 02:46:56 +00:00
|
|
|
typedef enum {
|
|
|
|
/* 1 */ TRANS_INSTANCE_TYPE_FILL_OUT = 1,
|
|
|
|
/* 2 */ TRANS_INSTANCE_TYPE_FILL_IN
|
|
|
|
} TransitionInstanceType;
|
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
typedef struct {
|
2020-09-30 00:18:46 +00:00
|
|
|
/* 0x000 */ Color_RGBA8_u32 color;
|
2022-12-24 02:46:56 +00:00
|
|
|
/* 0x004 */ Color_RGBA8_u32 unkColor;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x008 */ u8 direction;
|
|
|
|
/* 0x009 */ u8 frame;
|
|
|
|
/* 0x00A */ u8 isDone;
|
|
|
|
/* 0x00C */ u16 texX;
|
|
|
|
/* 0x00E */ u16 texY;
|
|
|
|
/* 0x010 */ u16 normal;
|
|
|
|
/* 0x018 */ Mtx projection;
|
|
|
|
/* 0x058 */ Mtx lookAt;
|
|
|
|
/* 0x098 */ Mtx modelView[2][3];
|
|
|
|
} TransitionWipe; // size = 0x218
|
|
|
|
|
2022-12-24 02:46:56 +00:00
|
|
|
#define TRANS_INSTANCE_TYPE_FADE_FLASH 3
|
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
typedef struct {
|
2022-12-24 02:46:56 +00:00
|
|
|
/* 0x000 */ u8 type;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x001 */ u8 isDone;
|
2022-12-24 02:46:56 +00:00
|
|
|
/* 0x002 */ u8 direction;
|
|
|
|
/* 0x004 */ Color_RGBA8_u32 color;
|
|
|
|
/* 0x008 */ u16 timer;
|
2020-04-30 18:41:09 +00:00
|
|
|
} TransitionFade; // size = 0xC
|
|
|
|
|
|
|
|
typedef struct {
|
2020-09-30 00:18:46 +00:00
|
|
|
/* 0x000 */ Color_RGBA8_u32 color;
|
2022-05-04 19:25:26 +00:00
|
|
|
/* 0x004 */ Color_RGBA8_u32 unkColor;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x008 */ s32 texX;
|
|
|
|
/* 0x00C */ s32 texY;
|
2022-04-27 20:00:25 +00:00
|
|
|
/* 0x010 */ s32 speed;
|
|
|
|
/* 0x014 */ u8 direction;
|
|
|
|
/* 0x015 */ u8 colorType;
|
|
|
|
/* 0x016 */ u8 speedType;
|
|
|
|
/* 0x017 */ u8 appearanceType;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x018 */ u8 isDone;
|
|
|
|
/* 0x019 */ u8 frame;
|
|
|
|
/* 0x01A */ u16 normal;
|
|
|
|
/* 0x020 */ Mtx projection;
|
|
|
|
/* 0x060 */ Mtx lookAt;
|
2021-11-09 01:51:45 +00:00
|
|
|
/* 0x0A0 */ void* texture;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x0A8 */ Mtx modelView[2][3];
|
|
|
|
} TransitionCircle; // size = 0x228;
|
|
|
|
|
|
|
|
typedef struct {
|
2020-09-30 00:18:46 +00:00
|
|
|
/* 0x000 */ Color_RGBA8_u32 color;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x004 */ f32 transPos;
|
|
|
|
/* 0x008 */ f32 step;
|
|
|
|
/* 0x00C */ s32 state;
|
2022-12-24 02:46:56 +00:00
|
|
|
/* 0x010 */ s32 type;
|
2020-04-30 18:41:09 +00:00
|
|
|
/* 0x018 */ Mtx projection;
|
|
|
|
/* 0x058 */ s32 frame;
|
|
|
|
/* 0x060 */ Mtx modelView[2][3];
|
|
|
|
} TransitionTriforce; // size = 0x1E0;
|
|
|
|
|
|
|
|
#endif
|