From aab277c6b91020835eae27bfb0c1ed1e6360cd7f Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 25 Nov 2024 21:55:52 -0300 Subject: [PATCH] Update extended header. --- include/rt64_extended_gbi.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/rt64_extended_gbi.h b/include/rt64_extended_gbi.h index 928d820..0677f01 100644 --- a/include/rt64_extended_gbi.h +++ b/include/rt64_extended_gbi.h @@ -73,7 +73,8 @@ #define G_EX_POPGEOMETRYMODE_V1 0x00002A #define G_EX_SETDITHERNOISESTRENGTH_V1 0x00002B #define G_EX_SETRDRAMEXTENDED_V1 0x00002C -#define G_EX_MAX 0x00002D +#define G_EX_MATRIX_V1 0x00002D +#define G_EX_MAX 0x00002E #define G_EX_ORIGIN_NONE 0x800 #define G_EX_ORIGIN_LEFT 0x0 @@ -103,6 +104,8 @@ #define G_EX_BILERP_ONLY 0x1 #define G_EX_BILERP_ALL 0x2 +#define G_EX_MTX_PREVIOUS 0x100 + // Represents the 8-byte commands in the F3D microcode family typedef union { struct { @@ -515,4 +518,12 @@ typedef union { PARAM(isExtended, 1, 0) \ ) +#define gEXMatrixV1(cmd, matrix, matrixp, param) \ + G_EX_COMMAND2(cmd, \ + PARAM(RT64_EXTENDED_OPCODE, 8, 24) | PARAM(G_EX_MATRIX_V1, 24, 0), \ + (unsigned)(param), \ + (unsigned)(matrix), \ + (unsigned)(matrixp) \ + ) + #endif // RT64_EXTENDED_GBI