Move over (Match func_80009968 as audioline_reverb_create), this one is build_tex_display_list! (#504)

* Match audioline_reverb_create

* Update score and run formatter

* Update audioline_distance to be more explicit

* Fix ifdef name

* Get build_tex_display_list to NON_MATCHING, with some documentation

* Match build_tex_display_list!

* Update score

* Woops, extra line break

* Add some of the names to the math_util.c file itself.

* Match func_80004520

* Update score
This commit is contained in:
Ryan Myers
2025-04-09 15:17:50 -04:00
committed by GitHub
parent 8bd6f4248c
commit c0228a75b2
19 changed files with 320 additions and 254 deletions
+1 -1
View File
@@ -599,7 +599,7 @@ typedef struct ALSoundState {
/* 0x0C */ ALVoice voice;
/* 0x28 */ ALSound *sound; /* sound referenced here */
/* 0x2C */ s16 priority;
/* 0x30 */ f32 pitch; /* current playback pitch */
/* 0x30 */ struct ALSoundState *unk30;
/* 0x34 */ u8 pad34[0x2];
/* 0x34 */ u8 soundPriority;
/* 0x38 */ s16 vol; /* volume - combined with volume from bank */
+6
View File
@@ -126,4 +126,10 @@
_g->words.w1 = rgba; \
}
#if defined(F3DDKR_GBI)
// ?????? - Needed to modify this to work with matching build_tex_display_list
#undef TXL2WORDS_4b
#define TXL2WORDS_4b(txls) ((txls)/16)
#endif
#endif
+2 -1
View File
@@ -7,6 +7,7 @@
#include "enums.h"
#include "level_object_entries.h"
#include "object_properties.h"
#include "gbi.h"
// Stolen from PD
// This hacky structure allows coords to be accessed using
@@ -127,7 +128,7 @@ typedef struct TextureHeader {
// 0x80 = V clamp flag. 0 = Wrap, 1 = Clamp
/* 0x08 */ s16 ciPaletteOffset;
/* 0x0A */ s16 numberOfCommands; // initialized in RAM; Number of commands in the texture display list. (Usually 0x07)
/* 0x0C */ s32 *cmd; // initialized in RAM; Pointer to texture display list.
/* 0x0C */ Gfx *cmd; // initialized in RAM; Pointer to texture display list.
/* 0x10 */ u8 unk10;
/* 0x11 */ u8 unk11;
/* 0x12 */ u16 numOfTextures; // For animated textures, static textures are just 0x01. Each texture has it's own header.