mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-27 14:49:59 -04:00
Decompile shardsRenderWood
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
#define VOLUME(volume) (volume > 0x5000 ? 0x5000 : volume)
|
||||
#define EYESPYINACTIVE() (!g_Vars.currentplayer->eyespy || (g_Vars.currentplayer->eyespy && !g_Vars.currentplayer->eyespy->active))
|
||||
|
||||
#define ERASERSQDIST(p) ( \
|
||||
(p[0] - g_Vars.currentplayer->eraserpos.f[0]) * (p[0] - g_Vars.currentplayer->eraserpos.f[0]) + \
|
||||
(p[1] - g_Vars.currentplayer->eraserpos.f[1]) * (p[1] - g_Vars.currentplayer->eraserpos.f[1]) + \
|
||||
(p[2] - g_Vars.currentplayer->eraserpos.f[2]) * (p[2] - g_Vars.currentplayer->eraserpos.f[2]))
|
||||
|
||||
// Macro to convert an ASCII character to N64 font code.
|
||||
// N64 font code uses 0x0f for space, 0x10-0x19 for 0-9 and 0x1a-0x33 for A-Z.
|
||||
#define N64CHAR(c) (c == ' ' ? 0x0f : (c >= 'A' && c <= 'Z' ? c - 0x27 : c - 0x20))
|
||||
@@ -2955,6 +2960,8 @@
|
||||
#define SCREENSPLIT_HORIZONTAL 0
|
||||
#define SCREENSPLIT_VERTICAL 1
|
||||
|
||||
#define SHARDTYPE_WOOD 2
|
||||
|
||||
#define SHOTREGION_TOTAL 0
|
||||
#define SHOTREGION_HEAD 1
|
||||
#define SHOTREGION_BODY 2
|
||||
|
||||
@@ -9,7 +9,7 @@ Gfx *gfxGetMasterDisplayList(void);
|
||||
struct gfxvtx *gfxAllocateVertices(s32 count);
|
||||
void *gfxAllocateMatrix(void);
|
||||
void *gfxAllocate4Words(s32 count);
|
||||
u32 *gfxAllocateColours(s32 count);
|
||||
void *gfxAllocateColours(s32 count);
|
||||
void *gfxAllocate(u32 size);
|
||||
void gfxSwapBuffers(void);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ void func00016374(f32 angle, Mtxf *matrix);
|
||||
void func00016400(f32 angle, Mtxf *matrix);
|
||||
void func0001648c(struct coord *coord, Mtxf *dest);
|
||||
u32 func000165d8(void);
|
||||
u32 func000166a4(void);
|
||||
void func000166a4(struct coord *pos, struct coord *rot, Mtxf *matrix);
|
||||
void func000166dc(struct coord *pos, Mtxf *matrix);
|
||||
u32 func00016710(void);
|
||||
void func00016748(f32 arg0);
|
||||
|
||||
+4
-14
@@ -6666,25 +6666,15 @@ struct gfxvtx {
|
||||
};
|
||||
|
||||
struct shard {
|
||||
/*0x00*/ u32 unk00;
|
||||
/*0x00*/ s16 room;
|
||||
/*0x04*/ s32 age60;
|
||||
/*0x08*/ struct coord pos;
|
||||
/*0x14*/ struct coord rot;
|
||||
/*0x20*/ struct coord vel;
|
||||
/*0x2c*/ struct coord rotspeed;
|
||||
/*0x38*/ u32 unk38;
|
||||
/*0x3c*/ u32 unk3c;
|
||||
/*0x40*/ u32 unk40;
|
||||
/*0x44*/ u32 unk44;
|
||||
/*0x48*/ u32 unk48;
|
||||
/*0x4c*/ u32 unk4c;
|
||||
/*0x50*/ u32 unk50;
|
||||
/*0x54*/ u32 unk54;
|
||||
/*0x58*/ u32 unk58;
|
||||
/*0x5c*/ u32 unk5c;
|
||||
/*0x60*/ u32 unk60;
|
||||
/*0x64*/ u32 unk64;
|
||||
/*0x68*/ u32 unk68;
|
||||
/*0x38*/ struct gfxvtx vertices[3];
|
||||
/*0x5c*/ u8 colours[3][4];
|
||||
/*0x68*/ u8 type;
|
||||
};
|
||||
|
||||
struct audiochannel {
|
||||
|
||||
Reference in New Issue
Block a user