mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-14 20:30:01 -04:00
Attempt to decompile tex0f1756c0
This commit is contained in:
@@ -10,7 +10,7 @@ u32 func0f13b7bc(void);
|
||||
u32 func0f13b8a0(void);
|
||||
u32 func0f13bb5c(void);
|
||||
void func0f13bc48(s32 roomnum, struct gfxvtx *vertices);
|
||||
void func0f13c07c(s32 arg0);
|
||||
void func0f13c07c(struct gfxvtx *vertex);
|
||||
void func0f13c2e8(s16 arg0);
|
||||
void func0f13c370(s16 roomnum);
|
||||
void func0f13c3f4(void);
|
||||
|
||||
@@ -33,17 +33,17 @@ void tex0f173e50(struct texloadthing *arg0, s32 *arg1, s32 *arg2);
|
||||
s32 tex0f173f18(s32 arg0);
|
||||
s32 tex0f173f48(s32 arg0);
|
||||
u32 tex0f173f78(void);
|
||||
u32 tex0f1742e4(void);
|
||||
Gfx *tex0f1742e4(Gfx *arg0, Gfx *arg1, struct texloadthing *arg2, bool arg3);
|
||||
Gfx *tex0f1743a0(Gfx *gdl, struct texloadthing *arg1, s32 arg2);
|
||||
Gfx *tex0f1747a4(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, u32 arg7);
|
||||
u32 tex0f174b54(void);
|
||||
u32 tex0f174f30(void);
|
||||
Gfx *tex0f1751e4(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5);
|
||||
u32 tex0f175308(void);
|
||||
u32 tex0f175490(void);
|
||||
u32 tex0f1755dc(void);
|
||||
u32 tex0f17563c(void);
|
||||
s32 tex0f1756c0(s32 arg0, s32 arg1, s32 arg2, struct texturething *arg3, struct gfxvtx *arg4);
|
||||
Gfx *tex0f1751e4(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4, bool arg5);
|
||||
Gfx *tex0f175308(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4, struct texloadthing *arg5, s32 arg6, s32 arg7, s32 arg8, bool arg9);
|
||||
Gfx *tex0f175490(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, bool arg8);
|
||||
Gfx *tex0f1755dc(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4);
|
||||
Gfx *tex0f17563c(Gfx *gdl, struct texloadthing *arg1, s32 arg2, s32 arg3, s32 arg4);
|
||||
s32 tex0f1756c0(Gfx *arg0, s32 arg1, Gfx *arg2, struct texturething *arg3, u32 arg4);
|
||||
void tex0f175ef4(Gfx *arg0, Gfx *arg1, s32 arg2);
|
||||
|
||||
#endif
|
||||
|
||||
+20
-17
@@ -4,6 +4,9 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
#define G_SETCOLOR 0x07
|
||||
#define G_TRI4 0xb1
|
||||
|
||||
/**
|
||||
* 04 rsp_uc05_vertex
|
||||
*
|
||||
@@ -18,7 +21,7 @@
|
||||
#define gDPSetVerticeArray(pkt, ptr, numvertices) \
|
||||
{ \
|
||||
Gfx *_g = (Gfx *)(pkt); \
|
||||
_g->words.w0 = (_SHIFTL(0x04, 24, 8) \
|
||||
_g->words.w0 = (_SHIFTL(G_VTX, 24, 8) \
|
||||
| _SHIFTL(numvertices - 1, 20, 4) \
|
||||
| _SHIFTL(numvertices * sizeof(struct gfxvtx), 0, 20)); \
|
||||
_g->words.w1 = (unsigned int)(ptr); \
|
||||
@@ -39,7 +42,7 @@
|
||||
#define gDPSetColorArray(pkt, ptr, numcolors) \
|
||||
{ \
|
||||
Gfx *_g = (Gfx *)(pkt); \
|
||||
_g->words.w0 = (_SHIFTL(0x07, 24, 8) \
|
||||
_g->words.w0 = (_SHIFTL(G_SETCOLOR, 24, 8) \
|
||||
| _SHIFTL((numcolors - 1) * 4, 16, 8) \
|
||||
| _SHIFTL(numcolors * 4, 0, 16)); \
|
||||
_g->words.w1 = (unsigned int)(ptr); \
|
||||
@@ -68,21 +71,21 @@
|
||||
* 0000000f x1
|
||||
*/
|
||||
#define gDPTri4(pkt, x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4) \
|
||||
{ \
|
||||
Gfx *_g = (Gfx *)(pkt); \
|
||||
_g->words.w0 = (_SHIFTL(0xb1, 24, 8) \
|
||||
| _SHIFTL(z4, 12, 4) \
|
||||
| _SHIFTL(z3, 8, 4) \
|
||||
| _SHIFTL(z2, 4, 4) \
|
||||
| _SHIFTL(z1, 0, 4)); \
|
||||
_g->words.w1 = (_SHIFTL(y4, 28, 4) \
|
||||
| _SHIFTL(x4, 24, 4) \
|
||||
| _SHIFTL(y3, 20, 4) \
|
||||
| _SHIFTL(x3, 16, 4) \
|
||||
| _SHIFTL(y2, 12, 4) \
|
||||
| _SHIFTL(x2, 8, 4) \
|
||||
| _SHIFTL(y1, 4, 4) \
|
||||
| _SHIFTL(x1, 0, 4)); \
|
||||
{ \
|
||||
Gfx *_g = (Gfx *)(pkt); \
|
||||
_g->words.w0 = (_SHIFTL(G_TRI4, 24, 8) \
|
||||
| _SHIFTL(z4, 12, 4) \
|
||||
| _SHIFTL(z3, 8, 4) \
|
||||
| _SHIFTL(z2, 4, 4) \
|
||||
| _SHIFTL(z1, 0, 4)); \
|
||||
_g->words.w1 = (_SHIFTL(y4, 28, 4) \
|
||||
| _SHIFTL(x4, 24, 4) \
|
||||
| _SHIFTL(y3, 20, 4) \
|
||||
| _SHIFTL(x3, 16, 4) \
|
||||
| _SHIFTL(y2, 12, 4) \
|
||||
| _SHIFTL(x2, 8, 4) \
|
||||
| _SHIFTL(y1, 4, 4) \
|
||||
| _SHIFTL(x1, 0, 4)); \
|
||||
}
|
||||
|
||||
#define gDPTri3(pkt, x1, y1, z1, x2, y2, z2, x3, y3, z3) \
|
||||
|
||||
Reference in New Issue
Block a user