mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
decompile and document math_util.c (#595)
This commit is contained in:
+3
-3
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user