decompile and document math_util.c (#595)

This commit is contained in:
Unnunu
2025-05-30 16:50:19 +03:00
committed by GitHub
parent 33a685be8e
commit 1633abc11a
46 changed files with 1253 additions and 1156 deletions
+3 -3
View File
@@ -589,7 +589,7 @@ typedef struct TexCoords {
#define BACKFACE_CULL 0x00
#define BACKFACE_DRAW 0x40
#define DKR_TRIANGLE(flags, ind0, ind1, ind2) ((flags << 24) | (ind0 << 16) | (ind1 << 8) | (ind2 << 0))
#define DKR_TRIANGLE(flags, ind0, ind1, ind2) (((flags) << 24) | ((ind0) << 16) | ((ind1) << 8) | ((ind2) << 0))
/* Size: 0x10 bytes */
typedef struct Triangle {
@@ -916,8 +916,8 @@ typedef struct ShadeProperties {
typedef f32 FakeHalfMatrix[2][4];
typedef struct Object_5C {
union {
/* 0x0000 */ Matrix matrices[4];
/* 0x0000 */ FakeHalfMatrix _matrices[8]; // This is a hack. The Matrix[4] is the real one.
/* 0x0000 */ MtxF matrices[4];
/* 0x0000 */ FakeHalfMatrix _matrices[8]; // This is a hack. The MtxF[4] is the real one.
};
/* 0x0100 */ void *unk100;
/* 0x0104 */ u8 unk104;
+2 -2
View File
@@ -3,8 +3,8 @@
#include <PR/ultratypes.h>
typedef float Matrix[4][4];
typedef s32 MatrixS[4][4];
typedef float MtxF[4][4];
typedef s32 MtxS[4][4];
typedef s16 VertexList;
typedef u8 TriangleList;
typedef u32 uintptr_t;