summaryrefslogtreecommitdiff
path: root/src/code_80057C60.h
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-07-01 23:42:14 +0000
committerGitHub <noreply@github.com>2025-07-01 17:42:14 -0600
commit7937896598f3df46eb78c158bde787bc4f12ad7f (patch)
tree876548daaec2f8a5bb284374d834abcf9aad15b9 /src/code_80057C60.h
parentb57afa83b42bb14e526043be4ca9f6e322788edb (diff)
make some texture more flexible and editable + port documentation from the decomp + fix some bug (#309)
* support a more flexible background * remove useless function * rename of some font * experimental png * migrate to the new initdata * fix skybox and adjust minimap * format in audio * simplify player render * simplify shell render and support custom texture of shell * clean redshell texture * format and multiple fix * some update of name * allow change icon of character * more rename * continue rename * more documentation and simplification * change lus and continue rename * continue rename * few fix for asan * fix ghost * Update menu_items.c * fix mac error * some test of tweak for texture * some tweak * some button constant * finish fix ghost * Update menu_items.c * Update render_objects.c * Update menu_items.c * Update libultraship * Update libultraship * Delete valgrind.report * Update libultraship * callgrind benchmark * Update valgrind_callgrind.sh * fix animation * some rename * remove useless submodule * Update libultraship * fix assets * fix mistake * fix more mistake * Update menu_items.c * sync more rename with the decom + fix review * fix a mistake * fix more mistake * re add the limit of fps * fix some hd texture and minimap * fix a name * Update menu_items.c * fix a regression * fix some segment 5 texture (not all) * Update camera.c * improve performance of custom sprite * fix flatten bug and add documentation on player vertex * Update render_player.c * fix data menu * fix trophy for 50 and 150 * Update memory.c * Update code_80057C60.c * fix ghost * fix boo tlut * fix a mistake in yaml * fix yaml * Update common_data.yml * add comment for segment 3 * allow even more change in texture * Update common_data.yml * Update update.inc.c * Update camera.c * Update some_data.c * wip changes * Update other_textures.yml * More changes * Update update_objects.c * Fix compile * Update memory.c * Update memory.c --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/code_80057C60.h')
-rw-r--r--src/code_80057C60.h78
1 files changed, 38 insertions, 40 deletions
diff --git a/src/code_80057C60.h b/src/code_80057C60.h
index 515378aa1..8a91bd889 100644
--- a/src/code_80057C60.h
+++ b/src/code_80057C60.h
@@ -1,6 +1,10 @@
#ifndef CODE_80057C60_H
#define CODE_80057C60_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <common_structs.h>
#include "objects.h"
#include "camera.h"
@@ -116,16 +120,16 @@ void func_8005D18C(void);
void func_8005D1F4(s32);
void func_8005D290(void);
-void func_8005D6C0(Player*);
-void func_8005D794(Player*, UnkPlayerStruct258*, f32, f32, f32, s8, s8);
-s32 func_8005D7D8(UnkPlayerStruct258*, s8, f32);
-s32 func_8005D800(UnkPlayerStruct258*, s32, s16);
-s32 func_8005D82C(UnkPlayerStruct258*, s32, s16);
-void func_8005D898(Player*, s16, s32, s8, s8);
-void func_8005DA30(Player*, s16, s32, s8, s8);
+void reset_player_particle_pool(Player*);
+void set_particle_position_and_rotation(Player*, UnkPlayerStruct258*, f32, f32, f32, s8, s8);
+s32 init_particle_player(UnkPlayerStruct258*, s8, f32);
+s32 set_particle_colour(UnkPlayerStruct258*, s32, s16);
+s32 set_particle_colour_randomly_varried(UnkPlayerStruct258*, s32, s16);
+void set_drift_particles(Player*, s16, s32, s8, s8);
+void check_drift_particles_setup_valid(Player*, s16, s32, s8, s8);
void func_8005DAD0(void);
void func_8005DAD8(UnkPlayerStruct258*, s16, s16, s16);
-void func_8005DAF4(Player*, s16, s32, s8, s8);
+void setup_tyre_particles(Player*, s16, s32, s8, s8);
void func_8005EA94(Player*, s16, s32, s8, s8);
void func_8005ED48(Player*, s16, s32, s8, s8);
@@ -162,7 +166,7 @@ void func_80062B18(f32*, f32*, f32*, f32, f32, f32, u16, u16);
void func_80062C74(Player*, s16, s32, s32);
void func_80062F98(Player*, s16, s8, s8);
-void func_800630C0(Player*, s16, s8, s8);
+void set_oob_splash_particle_position(Player*, s16, s8, s8);
void func_800631A8(Player*, s16, s8, s8);
void func_80063268(Player*, s16, s8, s8);
void func_80063408(Player*, s16, s8, s8);
@@ -192,41 +196,41 @@ void func_800651F4(Player*, s8, s8, s8);
void func_800652D4(Vec3f, Vec3s, f32);
void func_8006538C(Player*, s8, s16, s8);
void func_800658A0(Player*, s8, s16, s8);
-void func_80065AB0(Player*, s8, s16, s8);
-void func_80065F0C(Player*, s8, s16, s8);
+void render_player_drift_particles(Player*, s8, s16, s8);
+void render_player_ground_particles(Player*, s8, s16, s8);
void func_800664E0(Player*, s8, s16, s8);
void func_80066998(Player*, s8, s16, s8);
void func_80066BAC(Player*, s8, s16, s8);
void func_80067280(Player*, s8, s16, s8);
-void func_80067604(Player*, s8, s16, s8);
-void func_80067964(Player*, s8, f32, s8, s8);
-void func_80067D3C(Player*, s8, u8*, s8, f32, s32);
+void render_player_boost_spark_particles(Player*, s8, s16, s8);
+void render_player_onomatopoeia_whrrrr(Player*, s8, f32, s8, s8);
+void render_player_speech_bubble(Player*, s8, u8*, s8, f32, s32);
-void func_8006801C(Player*, s8, u8*, s8, f32, s32);
-void func_80068310(Player*, s8, f32, s8, s8);
+void render_music_note(Player*, s8, u8*, s8, f32, s32);
+void render_player_onomatopoeia_crash(Player*, s8, f32, s8, s8);
void func_80068724(Player*, s8, f32, s8, s8);
-void func_80068AA4(Player*, s8, f32, s8, s8);
-void func_80068DA0(Player*, s8, f32, s8, s8);
+void render_player_onomatopoeia_boing(Player*, s8, f32, s8, s8);
+void render_player_onomatopoeia_pomp(Player*, s8, f32, s8, s8);
void func_800691B8(Player*, s8, s16, s8);
void func_80069444(Player*, s8, s16, s8);
-void func_800696CC(Player*, s8, s16, s8, f32);
+void render_wall_bonk_star_particles(Player*, s8, s16, s8, f32);
void func_80069938(Player*, s8, s16, s8);
void func_80069BA8(Player*, s8, s16, s8);
void func_80069DB8(Player*, s8, s16, s8);
void func_8006A01C(Player*, s8, s16, s8);
void func_8006A280(Player*, s8, s16, s8);
-void func_8006A50C(Player*, f32, f32, s8, s8, s16);
+void init_balloon(Player*, f32, f32, s8, s8, s16);
void func_8006A7C0(Player*, f32, f32, s8, s8);
void render_battle_balloon(Player*, s8, s16, s8);
-void func_8006B7E4(Player*, s8);
-void func_8006B87C(Player*, s8);
-void func_8006B8B4(Player*, s8);
-void func_8006B974(s32, s8, s8);
+void init_all_player_balloons(Player*, s8);
+void clear_all_player_balloons(Player*, s8);
+void pop_player_balloon(Player*, s8);
+void set_player_balloon_to_gone(s32, s8, s8);
void func_8006B9CC(Player*, s8);
void func_8006BA94(Player*, s8, s8);
void render_balloon(Vec3f, f32, s16, s16);
@@ -594,30 +598,20 @@ extern u8* D_8018D464;
extern u8* D_8018D468;
extern u8* D_8018D46C;
extern u8* D_8018D470;
-extern u8* D_8018D474;
extern u8* D_8018D478;
extern u8* D_8018D480;
extern u8* D_8018D484;
-extern u8* D_8018D488;
extern u8* D_8018D48C;
extern u8* D_8018D490;
-extern u8* D_8018D494;
-extern u8* D_8018D498;
extern u8* D_8018D49C;
extern u8* D_8018D4A0;
-extern u8* D_8018D4A4;
-extern u8* D_8018D4A8;
-extern u8* D_8018D4AC;
-extern u8* D_8018D4B0;
-extern u8* D_8018D4B4;
-extern u8* D_8018D4B8;
extern u8* D_8018D4BC;
extern u8* D_8018D4C0;
-extern u8* D_8018D4C4;
-extern u8* D_8018D4C8;
-extern Vec3f D_8018D4D0[];
-extern Vec3f D_8018D530[];
-extern Vec3f D_8018D590[];
+extern u8* gTextureLoadedLightningBolt0;
+extern u8* gTextureLoadedLightningBolt1;
+extern Vec3f gPlayerBalloonPosX[];
+extern Vec3f gPlayerBalloonPosY[];
+extern Vec3f gPlayerBalloonPosZ[];
extern u16 gPlayerBalloonStatus[8][3];
extern Vec3s D_8018D620[];
extern Vec3f D_8018D650[];
@@ -633,8 +627,12 @@ extern Vec3s D_8018D830[];
extern Vec3s D_8018D860[];
extern Vec3s D_8018D890[];
extern s16 gPlayerBalloonCount[]; // D_8018D8C0
-extern Vec3s D_8018D8D0[];
+extern Vec3s gPlayerBalloonDepartingTimer[];
/** @endcond */
+#ifdef __cplusplus
+}
+#endif
+
#endif