summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2024-01-17 03:07:37 +0100
committerGitHub <noreply@github.com>2024-01-16 19:07:37 -0700
commiteb69ec24932b39ea4d5e3d6bbb199b64c326a5bf (patch)
tree914c7374c2ee34eb7eae76ef5eb90feed266459f /src
parent6114540359deca412959f01d8f651abec0bf9eb9 (diff)
rename some texture (#530)
* rename some texture * format common_texture
Diffstat (limited to 'src')
-rw-r--r--src/code_80057C60.c20
-rw-r--r--src/code_8006E9C0.c8
-rw-r--r--src/code_80071F00.c74
-rw-r--r--src/common_textures.h224
-rw-r--r--src/data/common_textures.inc.c534
-rw-r--r--src/hud_renderer.c76
-rw-r--r--src/racing/actors.c20
-rw-r--r--src/racing/actors.h2
8 files changed, 481 insertions, 477 deletions
diff --git a/src/code_80057C60.c b/src/code_80057C60.c
index 4f78f2317..af5725b25 100644
--- a/src/code_80057C60.c
+++ b/src/code_80057C60.c
@@ -1080,7 +1080,7 @@ void func_80059360(void) {
if (D_801657B0 == 0) {
func_8004FA78(0);
if (playerHUD[PLAYER_ONE].lapCount != 3) {
- func_8004CB60(playerHUD[PLAYER_ONE].lapX, playerHUD[PLAYER_ONE].lapY, D_0D00A958);
+ func_8004CB60(playerHUD[PLAYER_ONE].lapX, playerHUD[PLAYER_ONE].lapY, common_texture_hud_lap);
func_8004FC78(playerHUD[PLAYER_ONE].lapX + 0xC, playerHUD[PLAYER_ONE].lapY - 4, playerHUD[PLAYER_ONE].alsoLapCount);
func_8004E638(0);
}
@@ -1095,7 +1095,7 @@ void func_800593F8(void) {
if (D_801657B0 == 0) {
func_8004FA78(1);
if (playerHUD[PLAYER_TWO].lapCount != 3) {
- func_8004CB60(playerHUD[PLAYER_TWO].lapX, playerHUD[PLAYER_TWO].lapY, D_0D00A958);
+ func_8004CB60(playerHUD[PLAYER_TWO].lapX, playerHUD[PLAYER_TWO].lapY, common_texture_hud_lap);
func_8004FC78(playerHUD[PLAYER_TWO].lapX + 0xC, playerHUD[PLAYER_TWO].lapY - 4, playerHUD[PLAYER_TWO].alsoLapCount);
func_8004E638(1);
}
@@ -1133,12 +1133,12 @@ void func_80059530(void) {
void func_80059560(s32 playerId) {
if (gModeSelection != BATTLE) {
if (D_801657F8 && gIsHUDVisible) {
- func_8004CB60(playerHUD[playerId].lapX, playerHUD[playerId].lapY, D_0D00A958);
+ func_8004CB60(playerHUD[playerId].lapX, playerHUD[playerId].lapY, common_texture_hud_lap);
func_8004FC78(playerHUD[playerId].lapX - 12, playerHUD[playerId].lapY + 4, playerHUD[playerId].alsoLapCount);
}
if (D_801657E4 == 2) {
if (playerHUD[playerId].unk_74 && D_80165608) {
- func_80047910(playerHUD[playerId].unk_6C, playerHUD[playerId].unk_6E, 0, 1.0f, gTLUTPortraitBombKartAndQuestionMark, gTexturePortraitBombKart, D_0D005AE0, 0x20, 0x20, 0x20, 0x20);
+ func_80047910(playerHUD[playerId].unk_6C, playerHUD[playerId].unk_6E, 0, 1.0f, common_tlut_portrait_bomb_kart_and_question_mark, common_texture_portrait_bomb_kart, D_0D005AE0, 0x20, 0x20, 0x20, 0x20);
}
}
}
@@ -4840,7 +4840,7 @@ void func_8006538C(Player *player, s8 arg1, s16 arg2, s8 arg3) {
primAlpha = player->unk_258[arg2].unk_03E;
func_800652D4(spB4, spAC, ((player->unk_258[arg2].unk_00C * player->size) * 1.4));
gSPDisplayList(gDisplayListHead++, D_0D008DB8);
- gDPLoadTextureBlock(gDisplayListHead++, D_0D02BC58[player->unk_258[arg2].unk_010], G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
+ gDPLoadTextureBlock(gDisplayListHead++, common_texture_particle_smoke[player->unk_258[arg2].unk_010], G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
func_8004B72C(primRed, primGreen, primBlue, envRed, envGreen, envBlue, primAlpha);
gDPSetAlphaCompare(gDisplayListHead++, G_AC_DITHER);
gSPDisplayList(gDisplayListHead++, D_0D008E48);
@@ -4854,7 +4854,7 @@ void func_8006538C(Player *player, s8 arg1, s16 arg2, s8 arg3) {
primAlpha = player->unk_258[arg2].unk_03E;
func_800652D4(spB4, spAC, player->unk_258[arg2].unk_00C * player->size);
gSPDisplayList(gDisplayListHead++, D_0D008DB8);
- gDPLoadTextureBlock(gDisplayListHead++, D_0D02BC58[player->unk_258[arg2].unk_010], G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
+ gDPLoadTextureBlock(gDisplayListHead++, common_texture_particle_smoke[player->unk_258[arg2].unk_010], G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
func_8004B72C(primRed, primGreen, primBlue, envRed, envGreen, envBlue, primAlpha);
gSPDisplayList(gDisplayListHead++, D_0D008E48);
}
@@ -5059,7 +5059,7 @@ void func_80066714(Player *player, UNUSED s32 arg1, s16 arg2, s8 arg3) {
func_800652D4(sp5C, sp54, player->unk_258[10 + arg2].unk_00C * player->size);
gSPDisplayList(gDisplayListHead++, D_0D008C90);
gDPSetTextureLUT(gDisplayListHead++, G_TT_NONE);
- gDPLoadTextureBlock(gDisplayListHead++, D_0D000200, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
+ gDPLoadTextureBlock(gDisplayListHead++, common_texture_particle_fire, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
func_8004B35C(red, green, blue, alpha);
gDPSetRenderMode(gDisplayListHead++, G_RM_ZB_XLU_SURF, G_RM_ZB_XLU_SURF2);
gSPVertex(gDisplayListHead++, D_800E8B00, 4, 0);
@@ -5194,12 +5194,12 @@ void func_80067604(Player *player, UNUSED s8 arg1, s16 arg2, s8 arg3) {
func_800652D4(sp8C, sp84, player->unk_258[30 + arg2].unk_00C * player->size);
if (player->unk_258[30 + arg2].unk_010 == 1) {
gSPDisplayList(gDisplayListHead++, D_0D008DB8);
- gDPLoadTextureBlock(gDisplayListHead++, D_0D02AC58, G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
+ gDPLoadTextureBlock(gDisplayListHead++, common_texture_particle_spark, G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
func_8004B72C(0x000000FF, 0x000000FF, 0x000000DF, 0x000000FF, 0x0000005F, 0, 0x00000060);
gSPDisplayList(gDisplayListHead++, D_0D008E70);
} else {
gSPDisplayList(gDisplayListHead++, D_0D008DB8);
- gDPLoadTextureBlock(gDisplayListHead++, D_0D02AC58, G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
+ gDPLoadTextureBlock(gDisplayListHead++, common_texture_particle_spark, G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
func_8004B72C(0x000000FF, 0x000000FF, 0x000000DF, 0x000000FF, 0x0000005F, 0, 0x00000060);
gSPDisplayList(gDisplayListHead++, D_0D008E48);
}
@@ -5978,7 +5978,7 @@ void func_8006C4D4(Vec3f arg0, f32 arg1, s32 rgb, s16 alpha, s16 arg4) {
sp44[2] = 0;
func_800652D4(sp4C, sp44, arg1);
gSPDisplayList(gDisplayListHead++, D_0D008DB8);
- gDPLoadTextureBlock(gDisplayListHead++, D_0D02AC58[arg4], G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
+ gDPLoadTextureBlock(gDisplayListHead++, common_texture_particle_spark[arg4], G_IM_FMT_I, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
func_8004B414(red, green, blue, alpha);
gSPDisplayList(gDisplayListHead++, D_0D008E48);
gMatrixEffectCount += 1;
diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c
index 73d24e70e..e33513231 100644
--- a/src/code_8006E9C0.c
+++ b/src/code_8006E9C0.c
@@ -150,10 +150,10 @@ void init_item_window(s32 objectIndex) {
temp_v0 = &gObjectList[objectIndex];
temp_v0->currentItem = ITEM_NONE;
temp_v0->itemDisplay = temp_v0->currentItem;
- temp_v0->tlutList = (s32 *) gTLUTItemWindowNone;
- temp_v0->activeTLUT = (s32 *) gTLUTItemWindowNone;
- temp_v0->textureList = gTextureItemWindowNone;
- temp_v0->activeTexture = gTextureItemWindowNone;
+ temp_v0->tlutList = (s32 *) common_tlut_item_window_none;
+ temp_v0->activeTLUT = (s32 *) common_tlut_item_window_none;
+ temp_v0->textureList = common_texture_item_window_none;
+ temp_v0->activeTexture = common_texture_item_window_none;
temp_v0->unk_04C = -1;
temp_v0->unk_09C = 0x00A0; // Screen X position
temp_v0->unk_09E = -0x0020; // Screen Y position
diff --git a/src/code_80071F00.c b/src/code_80071F00.c
index a402005ad..e5e32542f 100644
--- a/src/code_80071F00.c
+++ b/src/code_80071F00.c
@@ -67,31 +67,31 @@ Vtx D_800E44B0[] = {
};
u8 *gItemWindowTLUTs[] = {
- gTLUTItemWindowNone, gTLUTItemWindowBanana, gTLUTItemWindowBananaBunch, gTLUTItemWindowGreenShell,
- gTLUTItemWindowTripleGreenShell, gTLUTItemWindowRedShell, gTLUTItemWindowTripleRedShell, gTLUTItemWindowBlueShell,
- gTLUTItemWindowThunderBolt, gTLUTItemWindowFakeItemBox, gTLUTItemWindowStar, gTLUTItemWindowBoo,
- gTLUTItemWindowMushroom, gTLUTItemWindowDoubleMushroom, gTLUTItemWindowTripleMushroom, gTLUTItemWindowSuperMushroom
+ common_tlut_item_window_none, common_tlut_item_window_banana, common_tlut_item_window_banana_bunch, common_tlut_item_window_green_shell,
+ common_tlut_item_window_triple_green_shell, common_tlut_item_window_red_shell, common_tlut_item_window_triple_red_shell, common_tlut_item_window_blue_shell,
+ common_tlut_item_window_thunder_bolt, common_tlut_item_window_fake_item_box, common_tlut_item_window_star, common_tlut_item_window_boo,
+ common_tlut_item_window_mushroom, common_tlut_item_window_double_mushroom, common_tlut_item_window_triple_mushroom, common_tlut_item_window_super_mushroom
};
u8 *gItemWindowTextures[] = {
- gTextureItemWindowNone, gTextureItemWindowBanana, gTextureItemWindowBananaBunch, gTextureItemWindowGreenShell,
- gTextureItemWindowTripleGreenShell, gTextureItemWindowRedShell, gTextureItemWindowTripleRedShell, gTextureItemWindowBlueShell,
- gTextureItemWindowThunderBolt, gTextureItemWindowFakeItemBox, gTextureItemWindowStar, gTextureItemWindowBoo,
- gTextureItemWindowMushroom, gTextureItemWindowDoubleMushroom, gTextureItemWindowTripleMushroom, gTextureItemWindowSuperMushroom
+ common_texture_item_window_none, common_texture_item_window_banana, common_texture_item_window_banana_bunch, common_texture_item_window_green_shell,
+ common_texture_item_window_triple_green_shell, common_texture_item_window_red_shell, common_texture_item_window_triple_red_shell, common_texture_item_window_blue_shell,
+ common_texture_item_window_thunder_bolt, common_texture_item_window_fake_item_box, common_texture_item_window_star, common_texture_item_window_boo,
+ common_texture_item_window_mushroom, common_texture_item_window_double_mushroom, common_texture_item_window_triple_mushroom, common_texture_item_window_super_mushroom
};
u8 *D_800E4570[] = {
- D_0D00B158, D_0D00B558, D_0D00B958
+ common_texture_hud_lap_1_on_3, common_texture_hud_lap_2_on_3, common_texture_hud_lap_3_on_3
};
u8 *gPortraitTLUTs[] = {
- gTLUTPortraitMario, gTLUTPortraitLuigi, gTLUTPortraitYoshi, gTLUTPortraitToad,
- gTLUTPortraitDonkeyKong, gTLUTPortraitWario, gTLUTPortraitPeach, gTLUTPortraitBowser
+ common_tlut_portrait_mario, common_tlut_portrait_luigi, common_tlut_portrait_yoshi, common_tlut_portrait_toad,
+ common_tlut_portrait_donkey_kong, common_tlut_portrait_wario, common_tlut_portrait_peach, common_tlut_portrait_bowser
};
u8 *gPortraitTextures[] = {
- gTexturePortraitMario, gTexturePortraitLuigi, gTexturePortraitYoshi, gTexturePortraitToad,
- gTexturePortraitDonkeyKong, gTexturePortraitWario, gTexturePortraitPeach, gTexturePortraitBowser
+ common_texture_portrait_mario, common_texture_portrait_luigi, common_texture_portrait_yoshi, common_texture_portrait_toad,
+ common_texture_portrait_donkey_kong, common_texture_portrait_wario, common_texture_portrait_peach, common_texture_portrait_bowser
};
s32 find_unused_obj_index(s32* arg0) {
@@ -1881,8 +1881,8 @@ void func_8007634C(s32 objectIndex) {
Objects *temp_v0;
temp_v0 = &gObjectList[objectIndex];
- temp_v0->activeTexture = D_0D02BC58;
- temp_v0->textureList = D_0D02BC58;
+ temp_v0->activeTexture = common_texture_particle_smoke;
+ temp_v0->textureList = common_texture_particle_smoke;
temp_v0->unk_0A0 = 0x00FF;
func_8008B8BC(objectIndex, 0U, 0U, 0U);
func_8008B80C(objectIndex, 0.0f, 0.0f, 0.0f);
@@ -2051,8 +2051,8 @@ void func_80076958(s32 objectIndex) {
Objects *temp_v0;
temp_v0 = &gObjectList[objectIndex];
- temp_v0->activeTexture = D_0D02BC58;
- temp_v0->textureList = D_0D02BC58;
+ temp_v0->activeTexture = common_texture_particle_smoke;
+ temp_v0->textureList = common_texture_particle_smoke;
temp_v0->unk_0A0 = 0x00FF;
func_8008B8BC(objectIndex, 0U, 0U, 0U);
func_8008B80C(objectIndex, 0.0f, 0.0f, 0.0f);
@@ -2144,8 +2144,8 @@ void func_80076C9C(s32 objectIndex, Vec3f arg1, s16 arg2) {
init_object(objectIndex, (s32) arg2);
temp_v0 = &gObjectList[objectIndex];
temp_v0->unk_0D5 = 0x0A;
- temp_v0->activeTexture = D_0D02BC58;
- temp_v0->textureList = D_0D02BC58;
+ temp_v0->activeTexture = common_texture_particle_smoke;
+ temp_v0->textureList = common_texture_particle_smoke;
temp_v0->sizeScaling = 0.3f;
func_8008B7D4(objectIndex, arg1[0], arg1[1], arg1[2]);
temp_v0->type = 0x00FF;
@@ -2220,8 +2220,8 @@ void func_80076FEC(s32 objectIndex, s32 flameIndex) {
init_object(objectIndex, 3);
gObjectList[objectIndex].unk_0D5 = 0xB;
- gObjectList[objectIndex].activeTexture = D_0D02BC58;
- gObjectList[objectIndex].textureList = D_0D02BC58;
+ gObjectList[objectIndex].activeTexture = common_texture_particle_smoke;
+ gObjectList[objectIndex].textureList = common_texture_particle_smoke;
gObjectList[objectIndex].sizeScaling = 0.8f;
gObjectList[objectIndex].unk_010[0] = (f32)*(gTorchSpawns + (flameIndex * 3) + 0) * xOrientation;
@@ -2380,8 +2380,8 @@ void func_80077700(s32 objectIndex, Vec3f arg1, s32 arg2) {
init_object(objectIndex, 0);
gObjectList[objectIndex].unk_0D5 = 7;
- gObjectList[objectIndex].activeTLUT = (u32 *) D_0D028DD8;
- gObjectList[objectIndex].tlutList = (u32 *) D_0D028DD8;
+ gObjectList[objectIndex].activeTLUT = (u32 *) common_texture_particle_leaf;
+ gObjectList[objectIndex].tlutList = (u32 *) common_texture_particle_leaf;
gObjectList[objectIndex].sizeScaling = 0.1f;
gObjectList[objectIndex].unk_044 = arg1[1];
switch (gCurrentCourseId) {
@@ -2976,7 +2976,7 @@ void func_800792D8(s32 objectIndex, s32 arg1) {
D_801656F0 = 0;
D_8018D168 = 0;
}
- init_texture_object(objectIndex, (u8 *) gTLUTLakituCountdown, gTextureLakituNoLights1, 0x38U, (u16) 0x00000048);
+ init_texture_object(objectIndex, (u8 *) common_tlut_lakitu_countdown, gTextureLakituNoLights1, 0x38U, (u16) 0x00000048);
gObjectList[objectIndex].vertex = D_0D005EB0;
gObjectList[objectIndex].sizeScaling = 0.15f;
set_object_flag_unk_054_false(objectIndex, 0x00000010);
@@ -3067,7 +3067,7 @@ void func_8007963C(s32 objectIndex, s32 playerIndex) {
Objects *temp_v0;
func_800791F0(objectIndex, playerIndex);
- init_texture_object(objectIndex, gTLUTLakituCheckeredFlag, gTextureLakituCheckeredFlag01, 0x48U, (u16) 0x00000038);
+ init_texture_object(objectIndex, common_tlut_lakitu_checkered_flag, gTextureLakituCheckeredFlag01, 0x48U, (u16) 0x00000038);
temp_v0 = &gObjectList[objectIndex];
temp_v0->activeTexture = D_8018C028;
temp_v0->vertex = D_0D006730;
@@ -3144,7 +3144,7 @@ void func_8007993C(s32 objectIndex, Player *player) {
void func_800799A8(s32 objectIndex, s32 arg1) {
func_800791F0(objectIndex, arg1);
- init_texture_object(objectIndex, gTLUTLakituFishing, gTextureLakituFishing1, 0x38U, (u16) 0x00000048);
+ init_texture_object(objectIndex, common_tlut_lakitu_fishing, gTextureLakituFishing1, 0x38U, (u16) 0x00000048);
gObjectList[objectIndex].vertex = D_0D005F30;
gObjectList[objectIndex].sizeScaling = 0.15f;
func_80086E70(objectIndex);
@@ -3317,7 +3317,7 @@ void func_8007A060(s32 objectIndex, s32 playerIndex) {
Objects *temp_v0;
func_800791F0(objectIndex, playerIndex);
- init_texture_object(objectIndex, gTLUTLakituSecondLap, gTextureLakituSecondLap01, 0x48U, (u16) 0x00000038);
+ init_texture_object(objectIndex, common_tlut_lakitu_second_lap, gTextureLakituSecondLap01, 0x48U, (u16) 0x00000038);
temp_v0 = &gObjectList[objectIndex];
temp_v0->activeTexture = D_8018C028;
temp_v0->vertex = D_0D006730;
@@ -3365,7 +3365,7 @@ void func_8007A228(s32 objectIndex, s32 playerIndex) {
Objects *temp_v0;
func_800791F0(objectIndex, playerIndex);
- init_texture_object(objectIndex, gTLUTLakituFinalLap, gTextureLakituFinalLap01, 0x48U, (u16) 0x00000038);
+ init_texture_object(objectIndex, common_tlut_lakitu_final_lap, gTextureLakituFinalLap01, 0x48U, (u16) 0x00000038);
temp_v0 = &gObjectList[objectIndex];
temp_v0->activeTexture = D_8018C028;
temp_v0->vertex = D_0D006730;
@@ -3412,7 +3412,7 @@ void func_8007A2EC(s32 objectIndex, s32 playerIndex) {
void func_8007A3F0(s32 objectIndex, s32 arg1) {
f32 var = 5000.0f;
func_800791F0(objectIndex, arg1);
- init_texture_object(objectIndex, gTLUTLakituReverse, gTextureLakituReverse01, 0x48U, (u16) 0x00000038);
+ init_texture_object(objectIndex, common_tlut_lakitu_reverse, gTextureLakituReverse01, 0x48U, (u16) 0x00000038);
gObjectList[objectIndex].activeTexture = D_8018C028;
gObjectList[objectIndex].vertex = D_0D006730;
gObjectList[objectIndex].pos[2] = var;
@@ -3641,26 +3641,26 @@ u8 gen_random_item(s16 rank, s16 isCpu)
if (gModeSelection == VERSUS) {
switch (gPlayerCountSelection1) {
case TWO_PLAYERS_SELECTED:
- curve = segmented_to_virtual((void *) gVersus2PlayerItemCurve);
+ curve = segmented_to_virtual((void *) common_versus_2_player_item_curve);
break;
case THREE_PLAYERS_SELECTED:
- curve = segmented_to_virtual((void *) gVersus3PlayerItemCurve);
+ curve = segmented_to_virtual((void *) common_versus_3_player_item_curve);
break;
case FOUR_PLAYERS_SELECTED:
- curve = segmented_to_virtual((void *) gVersus4PlayerItemCurve);
+ curve = segmented_to_virtual((void *) common_versus_4_player_item_curve);
break;
}
randomItem = *((rank * 100) + curve + sRandomItemIndex);
} else if (gModeSelection == BATTLE) {
- curve = segmented_to_virtual((void *) gBattleItemCurve);
+ curve = segmented_to_virtual((void *) common_battle_item_curve);
randomItem = curve[sRandomItemIndex];
} else { // GP Mode
if (isCpu == 0) {
- curve = segmented_to_virtual((void *) gGrandPrixHumanItemCurve);
+ curve = segmented_to_virtual((void *) common_grand_prix_human_item_curve);
}
else {
- curve = segmented_to_virtual((void *) gGrandPrixCPUItemCurve);
+ curve = segmented_to_virtual((void *) common_grand_prix_cpu_item_curve);
}
randomItem = *((rank * 100) + curve + sRandomItemIndex);
}
@@ -3762,8 +3762,8 @@ void func_8007B254(s32 objectIndex, s32 arg1) {
func_80072428(objectIndex);
gObjectList[objectIndex].state = 2;
gObjectList[objectIndex].type = 0;
- gObjectList[objectIndex].tlutList = (u8 *) gTLUTItemWindowNone;
- gObjectList[objectIndex].textureList = gTextureItemWindowNone;
+ gObjectList[objectIndex].tlutList = (u8 *) common_tlut_item_window_none;
+ gObjectList[objectIndex].textureList = common_texture_item_window_none;
gObjectList[objectIndex].textureWidth = 0x28;
gObjectList[objectIndex].textureHeight = 0x20;
gObjectList[objectIndex].unk_04C = 0x00000032;
diff --git a/src/common_textures.h b/src/common_textures.h
index ac71e92d2..ca306736e 100644
--- a/src/common_textures.h
+++ b/src/common_textures.h
@@ -10,8 +10,10 @@ typedef struct {
/* 0x4 */ s32 unk4;
} UnkCommonTextureStruct0; // size = 0x8
-extern s8 gTLUTFinishLineBanner[];
-extern s8 D_0D000200[];
+/** @cond */
+
+extern s8 common_tlut_finish_line_banner[];
+extern s8 common_texture_particle_fire[];
extern Vtx D_0D001200[];
extern Vtx D_0D001210[];
extern Vtx D_0D001240[];
@@ -50,7 +52,7 @@ extern Vtx D_0D001E28[];
extern Vtx D_0D001E58[];
extern Vtx D_0D001E88[];
extern Vtx D_0D001EB8[];
-extern s8 gItemBoxQuestionMark_Texture[];
+extern s8 common_texture_item_box_question_mark[];
extern Gfx D_0D002EE8[];
extern Vtx common_fake_item_box_question_mark_vertices[];
extern Gfx common_model_fake_itembox[];
@@ -68,13 +70,13 @@ extern Gfx D_0D003278[];
extern Gfx D_0D003288[];
extern Vtx common_vtx_banana[];
extern Vtx common_vtx_flat_banana[];
-extern s8 gBananaTexture[];
+extern s8 common_texture_banana[];
extern s8 common_texture_flat_banana[];
extern Gfx common_model_banana[];
extern Gfx common_model_flat_banana[];
-extern s8 D_0D004C68[];
-extern s8 gTLUTGreenShell[];
-extern s8 gTLUTBlueShell[];
+extern s8 common_tlut_trees_import[];
+extern s8 common_tlut_green_shell[];
+extern s8 common_tlut_blue_shell[];
extern Vtx D_0D005238[];
extern Vtx D_0D005278[];
extern Gfx D_0D0052B8[];
@@ -141,8 +143,8 @@ extern Gfx D_0D006A28[];
extern Gfx D_0D006A40[];
extern s8 D_0D006A58[];
extern s8 D_0D006AD8[];
-extern s8 gTLUTDebugFont[];
-extern s8 gTextureDebugFont[];
+extern s8 common_tlut_debug_font[];
+extern s8 common_texture_debug_font[];
extern Gfx D_0D0076F8[];
extern Gfx D_0D007780[];
extern Gfx D_0D0077A0[];
@@ -207,12 +209,12 @@ extern Gfx D_0D008080[];
extern Gfx D_0D008108[];
extern Gfx D_0D008120[];
extern Gfx D_0D008138[];
-extern u8 gGrandPrixHumanItemCurve[][100];
-extern u8 gGrandPrixCPUItemCurve[][100];
-extern u8 gVersus2PlayerItemCurve[][100];
-extern u8 gVersus3PlayerItemCurve[][100];
-extern u8 gVersus4PlayerItemCurve[][100];
-extern u8 gBattleItemCurve[][100];
+extern u8 common_grand_prix_human_item_curve[][100];
+extern u8 common_grand_prix_cpu_item_curve[][100];
+extern u8 common_versus_2_player_item_curve[][100];
+extern u8 common_versus_3_player_item_curve[][100];
+extern u8 common_versus_4_player_item_curve[][100];
+extern u8 common_battle_item_curve[][100];
extern Vtx D_0D008B78[];
extern Vtx D_0D008BB8[];
extern Vtx D_0D008BF8[];
@@ -252,18 +254,18 @@ extern f32 D_0D009568[][4];
extern f32 D_0D0096B8[][4];
extern f32 D_0D009808[][4];
extern s32 unkPad;
-extern s8 D_0D009958[];
-extern s8 D_0D00A558[];
-extern s8 D_0D00A958[];
-extern u8 D_0D00AB58[];
-extern s8 D_0D00AD58[];
-extern s8 D_0D00B158[];
-extern s8 D_0D00B558[];
-extern s8 D_0D00B958[];
-extern s8 D_0D00BD58[];
-extern s8 D_0D00C158[];
-extern u8 D_0D00C558[];
-extern u8 D_0D00D258[][4096];
+extern s8 common_texture_speedometer[];
+extern s8 common_texture_speedometer_needle[];
+extern s8 common_texture_hud_lap[];
+extern u8 common_texture_hud_123[];
+extern s8 common_texture_hud_lap_time[];
+extern s8 common_texture_hud_lap_1_on_3[];
+extern s8 common_texture_hud_lap_2_on_3[];
+extern s8 common_texture_hud_lap_3_on_3[];
+extern s8 common_texture_hud_total_time[];
+extern s8 common_texture_hud_time[];
+extern u8 common_texture_hud_normal_digit[];
+extern u8 common_texture_hud_place[][4096];
extern s8 D_0D00E258[];
extern s8 D_0D00F258[];
extern s8 D_0D010258[];
@@ -275,97 +277,99 @@ extern u8 D_0D015258[][2048];
extern s8 D_0D015A58[];
extern s8 D_0D016258[];
extern s8 D_0D016A58[];
-extern u8 D_0D017258[];
+extern u8 common_tlut_player_emblem[];
extern s16 tlutPad[];
-extern u8 D_0D017458[][2048];
-extern u8 gTLUTHudTypeCRankFont[];
-extern u8 gTextureHudTypeCRankFont[][256];
-extern u8 gTLUTHudTypeCRankTinyFont[];
-extern u8 gTextureHudTypeCRankTinyFont[][64];
-extern u8 gTextureCharacterPortraitBorder[];
-extern s8 gTLUTPortraitMario[];
-extern s8 gTLUTPortraitLuigi[];
-extern s8 gTLUTPortraitPeach[];
-extern s8 gTLUTPortraitToad[];
-extern s8 gTLUTPortraitYoshi[];
-extern s8 gTLUTPortraitDonkeyKong[];
-extern s8 gTLUTPortraitWario[];
-extern s8 gTLUTPortraitBowser[];
-extern s8 gTLUTPortraitBombKartAndQuestionMark[];
-extern s8 gTexturePortraitMario[];
-extern s8 gTexturePortraitLuigi[];
-extern s8 gTexturePortraitPeach[];
-extern s8 gTexturePortraitToad[];
-extern s8 gTexturePortraitYoshi[];
-extern s8 gTexturePortraitDonkeyKong[];
-extern s8 gTexturePortraitWario[];
-extern u8 gTexturePortraitBowser[];
-extern u8 gTexturePortraitBombKart[];
-extern u8 gTexturePortraitQuestionMark[];
-extern s8 gTLUTItemWindowNone[];
-extern s8 gTLUTItemWindowBanana[];
-extern s8 gTLUTItemWindowBananaBunch[];
-extern s8 gTLUTItemWindowMushroom[];
-extern s8 gTLUTItemWindowDoubleMushroom[];
-extern s8 gTLUTItemWindowTripleMushroom[];
-extern s8 gTLUTItemWindowSuperMushroom[];
-extern s8 gTLUTItemWindowBlueShell[];
-extern s8 gTLUTItemWindowBoo[];
-extern s8 gTLUTItemWindowGreenShell[];
-extern s8 gTLUTItemWindowTripleGreenShell[];
-extern s8 gTLUTItemWindowRedShell[];
-extern s8 gTLUTItemWindowTripleRedShell[];
-extern s8 gTLUTItemWindowStar[];
-extern s8 gTLUTItemWindowThunderBolt[];
-extern s8 gTLUTItemWindowFakeItemBox[];
-extern u8 gTextureItemWindowNone[];
-extern s8 gTextureItemWindowBanana[];
-extern s8 gTextureItemWindowBananaBunch[];
-extern s8 gTextureItemWindowMushroom[];
-extern s8 gTextureItemWindowDoubleMushroom[];
-extern s8 gTextureItemWindowTripleMushroom[];
-extern s8 gTextureItemWindowSuperMushroom[];
-extern s8 gTextureItemWindowBlueShell[];
-extern s8 gTextureItemWindowBoo[];
-extern s8 gTextureItemWindowGreenShell[];
-extern s8 gTextureItemWindowTripleGreenShell[];
-extern s8 gTextureItemWindowRedShell[];
-extern s8 gTextureItemWindowTripleRedShell[];
-extern s8 gTextureItemWindowStar[];
-extern s8 gTextureItemWindowThunderBolt[];
-extern s8 gTextureItemWindowFakeItemBox[];
-extern u8 gTLUTLakituCountdown[][512];
-extern u8 gTLUTLakituCheckeredFlag[];
-extern u8 gTLUTLakituSecondLap[];
-extern u8 gTLUTLakituFinalLap[];
-extern u8 gTLUTLakituReverse[];
-extern u8 gTLUTLakituFishing[];
+extern u8 common_texture_player_emblem[][2048];
+extern u8 common_tlut_hud_type_C_rank_font[];
+extern u8 common_texture_hud_type_C_rank_font[][256];
+extern u8 common_tlut_hud_type_C_rank_tiny_font[];
+extern u8 common_texture_hud_type_C_rank_tiny_font[][64];
+extern u8 common_texture_character_portrait_border[];
+extern s8 common_tlut_portrait_mario[];
+extern s8 common_tlut_portrait_luigi[];
+extern s8 common_tlut_portrait_peach[];
+extern s8 common_tlut_portrait_toad[];
+extern s8 common_tlut_portrait_yoshi[];
+extern s8 common_tlut_portrait_donkey_kong[];
+extern s8 common_tlut_portrait_wario[];
+extern s8 common_tlut_portrait_bowser[];
+extern s8 common_tlut_portrait_bomb_kart_and_question_mark[];
+extern s8 common_texture_portrait_mario[];
+extern s8 common_texture_portrait_luigi[];
+extern s8 common_texture_portrait_peach[];
+extern s8 common_texture_portrait_toad[];
+extern s8 common_texture_portrait_yoshi[];
+extern s8 common_texture_portrait_donkey_kong[];
+extern s8 common_texture_portrait_wario[];
+extern u8 common_texture_portrait_bowser[];
+extern u8 common_texture_portrait_bomb_kart[];
+extern u8 common_texture_portrait_question_mark[];
+extern s8 common_tlut_item_window_none[];
+extern s8 common_tlut_item_window_banana[];
+extern s8 common_tlut_item_window_banana_bunch[];
+extern s8 common_tlut_item_window_mushroom[];
+extern s8 common_tlut_item_window_double_mushroom[];
+extern s8 common_tlut_item_window_triple_mushroom[];
+extern s8 common_tlut_item_window_super_mushroom[];
+extern s8 common_tlut_item_window_blue_shell[];
+extern s8 common_tlut_item_window_boo[];
+extern s8 common_tlut_item_window_green_shell[];
+extern s8 common_tlut_item_window_triple_green_shell[];
+extern s8 common_tlut_item_window_red_shell[];
+extern s8 common_tlut_item_window_triple_red_shell[];
+extern s8 common_tlut_item_window_star[];
+extern s8 common_tlut_item_window_thunder_bolt[];
+extern s8 common_tlut_item_window_fake_item_box[];
+extern u8 common_texture_item_window_none[];
+extern s8 common_texture_item_window_banana[];
+extern s8 common_texture_item_window_banana_bunch[];
+extern s8 common_texture_item_window_mushroom[];
+extern s8 common_texture_item_window_double_mushroom[];
+extern s8 common_texture_item_window_triple_mushroom[];
+extern s8 common_texture_item_window_super_mushroom[];
+extern s8 common_texture_item_window_blue_shell[];
+extern s8 common_texture_item_window_boo[];
+extern s8 common_texture_item_window_green_shell[];
+extern s8 common_texture_item_window_triple_green_shell[];
+extern s8 common_texture_item_window_red_shell[];
+extern s8 common_texture_item_window_triple_red_shell[];
+extern s8 common_texture_item_window_star[];
+extern s8 common_texture_item_window_thunder_bolt[];
+extern s8 common_texture_item_window_fake_item_box[];
+extern u8 common_tlut_lakitu_countdown[][512];
+extern u8 common_tlut_lakitu_checkered_flag[];
+extern u8 common_tlut_lakitu_second_lap[];
+extern u8 common_tlut_lakitu_final_lap[];
+extern u8 common_tlut_lakitu_reverse[];
+extern u8 common_tlut_lakitu_fishing[];
-extern u8 D_0D028DD8[];
-extern s8 D_0D025ED8[];
-extern s8 D_0D0260D8[];
-extern s8 D_0D026558[];
-extern s8 D_0D0269D8[];
-extern s8 D_0D026E58[];
-extern s8 D_0D0272D8[];
-extern s8 D_0D027758[];
-extern s8 D_0D027BD8[];
-extern s8 D_0D028058[];
-extern s8 D_0D0284D8[];
-extern s8 D_0D028958[];
-extern s8 D_0D0291D8[];
+extern u8 common_texture_particle_leaf[];
+extern s8 common_tlut_traffic_light[];
+extern s8 common_texture_traffic_light_01[];
+extern s8 common_texture_traffic_light_02[];
+extern s8 common_texture_traffic_light_03[];
+extern s8 common_texture_traffic_light_04[];
+extern s8 common_texture_traffic_light_05[];
+extern s8 common_texture_traffic_light_06[];
+extern s8 common_texture_traffic_light_07[];
+extern s8 common_texture_traffic_light_08[];
+extern s8 common_texture_traffic_light_09[];
+extern s8 common_texture_traffic_light_10[];
+extern s8 common_texture_unused_particle_leaf[];
extern u8 D_0D0293D8[];
extern s8 D_0D029458[];
-extern u8 D_0D029858[][1024];
+extern u8 common_texture_bomb[][1024];
extern s8 D_0D029C58[];
extern s8 D_0D02A058[];
extern s8 D_0D02A458[];
-extern u8 D_0D02A858[];
+extern u8 common_tlut_bomb[];
extern u8 D_0D02AA58[];
-extern u8 D_0D02AC58[][1024];
-extern u8 D_0D02BC58[][1024];
-extern s8 gTextureMiniMapFinishLine[];
-extern s8 gMiniMapKartTextures[][128];
+extern u8 common_texture_particle_spark[][1024];
+extern u8 common_texture_particle_smoke[][1024];
+extern s8 common_texture_minimap_finish_line[];
+extern s8 common_texture_minimap_kart_character[][128];
extern s8 common_texture_minimap_progress_dot[];
+/** @endcond */
+
#endif
diff --git a/src/data/common_textures.inc.c b/src/data/common_textures.inc.c
index d0a3e8649..39c9389c5 100644
--- a/src/data/common_textures.inc.c
+++ b/src/data/common_textures.inc.c
@@ -30,12 +30,12 @@ extern s8 D_03008000[];
extern s8 D_03008800[];
*/
-s8 gTLUTFinishLineBanner[] = { // tlut
- #include "assets/finish_line_banner/gTLUTFinishLineBanner.inc.c"
+s8 common_tlut_finish_line_banner[] = { // tlut
+ #include "assets/finish_line_banner/common_tlut_finish_line_banner.inc.c"
};
-s8 D_0D000200[] = { // tlut
- #include "textures/common/132B50_00200.rgba16.inc.c"
+s8 common_texture_particle_fire[] = { // tlut
+ #include "textures/common/common_texture_particle_fire.rgba16.inc.c"
};
Vtx D_0D001200[] = {
@@ -218,7 +218,7 @@ Gfx D_0D001828[] = {
Gfx D_0D001840[] = {
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPPipeSync(),
- gsDPLoadTLUT_pal256(gTLUTFinishLineBanner),
+ gsDPLoadTLUT_pal256(common_tlut_finish_line_banner),
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_CI, G_IM_SIZ_8b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
@@ -396,8 +396,8 @@ Vtx D_0D001EB8[] = {
};
// D_0D001EE8
-s8 gItemBoxQuestionMark_Texture[] = {
- #include "textures/common/132B50_01EE8.rgba16.inc.c"
+s8 common_texture_item_box_question_mark[] = {
+ #include "textures/common/common_texture_item_box_question_mark.rgba16.inc.c"
};
Gfx D_0D002EE8[] = {
@@ -430,7 +430,7 @@ Gfx common_model_fake_itembox[] = {
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 124, 252),
- gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, gItemBoxQuestionMark_Texture),
+ gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, common_texture_item_box_question_mark),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
@@ -450,7 +450,7 @@ Gfx itemBoxQuestionMarkModel[] = {
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 124, 252),
- gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, gItemBoxQuestionMark_Texture),
+ gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, common_texture_item_box_question_mark),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
@@ -578,12 +578,12 @@ Vtx common_vtx_flat_banana[] = {
// D_0D003348
-s8 gBananaTexture[] = {
- #include "textures/common/132B50_03348.rgba16.inc.c"
+s8 common_texture_banana[] = {
+ #include "textures/common/common_texture_banana.rgba16.inc.c"
};
s8 common_texture_flat_banana[] = {
- #include "textures/common/132B50_03B48.rgba16.inc.c"
+ #include "textures/common/common_texture_flat_banana.rgba16.inc.c"
};
// 0x4B48
@@ -595,7 +595,7 @@ Gfx common_model_banana[] = {
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 124, 124),
- gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, gBananaTexture),
+ gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, common_texture_banana),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
@@ -632,16 +632,16 @@ Gfx common_model_flat_banana[] = {
// tlut size 8x29
//! @todo What is this?
-s8 D_0D004C68[] = {
- #include "assets/trees/gTLUTTreesImport.inc.c"
+s8 common_tlut_trees_import[] = {
+ #include "assets/trees/common_tlut_trees_import.inc.c"
};
-s8 gTLUTGreenShell[] = {
- #include "assets/greenshell/gTLUTGreenShell.inc.c"
+s8 common_tlut_green_shell[] = {
+ #include "assets/greenshell/common_tlut_green_shell.inc.c"
};
// 5038
-s8 gTLUTBlueShell[] = {
- #include "assets/blueshell/gTLUTBlueShell.inc.c"
+s8 common_tlut_blue_shell[] = {
+ #include "assets/blueshell/common_tlut_blue_shell.inc.c"
};
Vtx D_0D005238[] = {
@@ -1278,12 +1278,12 @@ s8 D_0D006AD8[] = {
};
// tlut
-s8 gTLUTDebugFont[] = {
- #include "assets/debug_font/gTLUTDebugFont.inc.c"
+s8 common_tlut_debug_font[] = {
+ #include "assets/debug_font/common_tlut_debug_font.inc.c"
};
-s8 gTextureDebugFont[] = {
- #include "assets/debug_font/gTextureDebugFont.inc.c"
+s8 common_texture_debug_font[] = {
+ #include "assets/debug_font/common_texture_debug_font.inc.c"
};
// 0x76F8
@@ -1757,9 +1757,9 @@ Gfx D_0D008060[] = {
Gfx D_0D008080[] = {
gsSPDisplayList(D_0D007EF8),
gsDPSetTextureLUT(G_TT_RGBA16),
- gsDPLoadTLUT_pal16(0, gTLUTDebugFont),
+ gsDPLoadTLUT_pal16(0, common_tlut_debug_font),
gsDPLoadSync(),
- gsDPLoadTextureBlock_4b(gTextureDebugFont, G_IM_FMT_CI, 128, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
+ gsDPLoadTextureBlock_4b(common_texture_debug_font, G_IM_FMT_CI, 128, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
gsSPEndDisplayList(),
};
@@ -1782,7 +1782,7 @@ Gfx D_0D008138[] = {
};
// Curve graphs for generating a random item based on player race position.
-u8 gGrandPrixHumanItemCurve[8][100] = {
+u8 common_grand_prix_human_item_curve[8][100] = {
{ // 1st
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
@@ -1881,7 +1881,7 @@ u8 gGrandPrixHumanItemCurve[8][100] = {
},
};
-u8 gGrandPrixCPUItemCurve[8][100] = {
+u8 common_grand_prix_cpu_item_curve[8][100] = {
{
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
@@ -1980,7 +1980,7 @@ u8 gGrandPrixCPUItemCurve[8][100] = {
},
};
-u8 gVersus2PlayerItemCurve[2][100] = {
+u8 common_versus_2_player_item_curve[2][100] = {
{
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BOO, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
@@ -2007,7 +2007,7 @@ u8 gVersus2PlayerItemCurve[2][100] = {
},
};
-u8 gVersus3PlayerItemCurve[3][100] = {
+u8 common_versus_3_player_item_curve[3][100] = {
{
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
@@ -2046,7 +2046,7 @@ u8 gVersus3PlayerItemCurve[3][100] = {
},
};
-u8 gVersus4PlayerItemCurve[4][100] = {
+u8 common_versus_4_player_item_curve[4][100] = {
{
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
@@ -2097,7 +2097,7 @@ u8 gVersus4PlayerItemCurve[4][100] = {
},
};
-u8 gBattleItemCurve[1][100] = {
+u8 common_battle_item_curve[1][100] = {
{
ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA, ITEM_BANANA,
ITEM_BANANA_BUNCH, ITEM_BANANA_BUNCH, ITEM_BANANA_BUNCH, ITEM_BANANA_BUNCH, ITEM_BANANA_BUNCH, ITEM_GREEN_SHELL, ITEM_GREEN_SHELL, ITEM_GREEN_SHELL, ITEM_GREEN_SHELL, ITEM_GREEN_SHELL,
@@ -2566,92 +2566,92 @@ f32 D_0D009808[][4] = {
};
// Odometer speedometer
-s8 D_0D009958[] = {
- #include "textures/common/132B50_09958.i4.inc.c"
+s8 common_texture_speedometer[] = {
+ #include "textures/common/common_texture_speedometer.i4.inc.c"
};
// i8? odometer needle
-s8 D_0D00A558[] = {
- #include "textures/common/132B50_0A558.i4.inc.c"
+s8 common_texture_speedometer_needle[] = {
+ #include "textures/common/common_texture_speedometer_needle.i4.inc.c"
};
// Lap UI Texture
-s8 D_0D00A958[] = {
- #include "textures/common/132B50_0A958.rgba16.inc.c"
+s8 common_texture_hud_lap[] = {
+ #include "textures/common/common_texture_hud_lap.rgba16.inc.c"
};
// 123/
-u8 D_0D00AB58[] = {
- #include "textures/common/132B50_0AB58.rgba16.inc.c"
+u8 common_texture_hud_123[] = {
+ #include "textures/common/common_texture_hud_123.rgba16.inc.c"
};
// Lap
-s8 D_0D00AD58[] = {
- #include "textures/common/132B50_0AD58.rgba16.inc.c"
+s8 common_texture_hud_lap_time[] = {
+ #include "textures/common/common_texture_hud_lap_time.rgba16.inc.c"
};
// 1/3
-s8 D_0D00B158[] = {
- #include "textures/common/132B50_0B158.rgba16.inc.c"
+s8 common_texture_hud_lap_1_on_3[] = {
+ #include "textures/common/common_texture_hud_lap_1_on_3.rgba16.inc.c"
};
// 2/3
-s8 D_0D00B558[] = {
- #include "textures/common/132B50_0B558.rgba16.inc.c"
+s8 common_texture_hud_lap_2_on_3[] = {
+ #include "textures/common/common_texture_hud_lap_2_on_3.rgba16.inc.c"
};
// 3/3
-s8 D_0D00B958[] = {
- #include "textures/common/132B50_0B958.rgba16.inc.c"
+s8 common_texture_hud_lap_3_on_3[] = {
+ #include "textures/common/common_texture_hud_lap_3_on_3.rgba16.inc.c"
};
// total
-s8 D_0D00BD58[] = {
- #include "textures/common/132B50_0BD58.rgba16.inc.c"
+s8 common_texture_hud_total_time[] = {
+ #include "textures/common/common_texture_hud_total_time.rgba16.inc.c"
};
// time
-s8 D_0D00C158[] = {
- #include "textures/common/132B50_0C158.rgba16.inc.c"
+s8 common_texture_hud_time[] = {
+ #include "textures/common/common_texture_hud_time.rgba16.inc.c"
};
// 0123456789'"!
-u8 D_0D00C558[] = {
- #include "textures/common/132B50_0C558.rgba16.inc.c"
+u8 common_texture_hud_normal_digit[] = {
+ #include "textures/common/common_texture_hud_normal_digit.rgba16.inc.c"
};
-u8 D_0D00D258[][4096] = {
+u8 common_texture_hud_place[][4096] = {
// first place
{
- #include "textures/common/132B50_0D258.i4.inc.c"
+ #include "textures/common/common_texture_hud_1st.i4.inc.c"
},
// second place
{
- #include "textures/common/132B50_0E258.i4.inc.c"
+ #include "textures/common/common_texture_hud_2nd.i4.inc.c"
},
// third place
{
- #include "textures/common/132B50_0F258.i4.inc.c"
+ #include "textures/common/common_texture_hud_3rd.i4.inc.c"
},
// fourth place
{
- #include "textures/common/132B50_10258.i4.inc.c"
+ #include "textures/common/common_texture_hud_4th.i4.inc.c"
},
// fifth place
{
- #include "textures/common/132B50_11258.i4.inc.c"
+ #include "textures/common/common_texture_hud_5th.i4.inc.c"
},
// sixth place
{
- #include "textures/common/132B50_12258.i4.inc.c"
+ #include "textures/common/common_texture_hud_6th.i4.inc.c"
},
// seventh place
{
- #include "textures/common/132B50_13258.i4.inc.c"
+ #include "textures/common/common_texture_hud_7th.i4.inc.c"
},
// eighth place
{
- #include "textures/common/132B50_14258.i4.inc.c"
+ #include "textures/common/common_texture_hud_8th.i4.inc.c"
},
};
@@ -2675,424 +2675,424 @@ u8 D_0D015258[][2048] = {
};
// tlut for 1p, 2p, 3p, 4p
-u8 D_0D017258[] = {
- #include "assets/player_emblems/gTLUTPlayerEmblem.inc.c"
+u8 common_tlut_player_emblem[] = {
+ #include "assets/player_emblems/common_tlut_player_emblem.inc.c"
};
// 1p, 2p, 3p, 4p
-u8 D_0D017458[][2048] = {
+u8 common_texture_player_emblem[][2048] = {
{
- #include "assets/player_emblems/gTexturePlayerEmblem1p.inc.c"
+ #include "assets/player_emblems/common_texture_player_emblem_1p.inc.c"
},
{
- #include "assets/player_emblems/gTexturePlayerEmblem2p.inc.c"
+ #include "assets/player_emblems/common_texture_player_emblem_2p.inc.c"
},
{
- #include "assets/player_emblems/gTexturePlayerEmblem3p.inc.c"
+ #include "assets/player_emblems/common_texture_player_emblem_3p.inc.c"
},
{
- #include "assets/player_emblems/gTexturePlayerEmblem4p.inc.c"
+ #include "assets/player_emblems/common_texture_player_emblem_4p.inc.c"
},
};
// font tlut for 12345678
-u8 gTLUTHudTypeCRankFont[] = {
- #include "assets/hud_type_c/gTLUTHudTypeCRankFont.inc.c"
+u8 common_tlut_hud_type_C_rank_font[] = {
+ #include "assets/hud_type_c/common_tlut_hud_type_C_rank_font.inc.c"
};
// font 12345678
-u8 gTextureHudTypeCRankFont[][256] = {
+u8 common_texture_hud_type_C_rank_font[][256] = {
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont1.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_1.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont2.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_2.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont3.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_3.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont4.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_4.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont5.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_5.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont6.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_6.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont7.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_7.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankFont8.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_font_8.inc.c"
},
};
// font tlut for 0123456789
-u8 gTLUTHudTypeCRankTinyFont[] = {
- #include "assets/hud_type_c/gTLUTHudTypeCRankTinyFont.inc.c"
+u8 common_tlut_hud_type_C_rank_tiny_font[] = {
+ #include "assets/hud_type_c/common_tlut_hud_type_C_rank_tiny_font.inc.c"
};
// 0123456789
-u8 gTextureHudTypeCRankTinyFont[][64] = {
+u8 common_texture_hud_type_C_rank_tiny_font[][64] = {
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont0.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_0.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont1.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_1.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont2.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_2.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont3.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_3.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont4.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_4.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont5.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_5.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont6.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_6.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont7.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_7.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont8.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_8.inc.c"
},
{
- #include "assets/hud_type_c/gTextureHudTypeCRankTinyFont9.inc.c"
+ #include "assets/hud_type_c/common_texture_hud_type_C_rank_tiny_font_9.inc.c"
},
};
// Square
-u8 gTextureCharacterPortraitBorder[] = {
- #include "assets/hud_type_c/gTextureCharacterPortraitBorder.inc.c"
+u8 common_texture_character_portrait_border[] = {
+ #include "assets/hud_type_c/common_texture_character_portrait_border.inc.c"
};
// 1A4D8 mario tlut
-s8 gTLUTPortraitMario[] = {
- #include "assets/character_portraits/gTLUTPortraitMario.inc.c"
+s8 common_tlut_portrait_mario[] = {
+ #include "assets/character_portraits/common_tlut_portrait_mario.inc.c"
};
// 1A6D8 luigi tlut
-s8 gTLUTPortraitLuigi[] = {
- #include "assets/character_portraits/gTLUTPortraitLuigi.inc.c"
+s8 common_tlut_portrait_luigi[] = {
+ #include "assets/character_portraits/common_tlut_portrait_luigi.inc.c"
};
// 1A8D8 peach tlut
-s8 gTLUTPortraitPeach[] = {
- #include "assets/character_portraits/gTLUTPortraitPeach.inc.c"
+s8 common_tlut_portrait_peach[] = {
+ #include "assets/character_portraits/common_tlut_portrait_peach.inc.c"
};
// 1AAD8 toad tlut
-s8 gTLUTPortraitToad[] = {
- #include "assets/character_portraits/gTLUTPortraitToad.inc.c"
+s8 common_tlut_portrait_toad[] = {
+ #include "assets/character_portraits/common_tlut_portrait_toad.inc.c"
};
// 1ACD8 yoshi tlut
-s8 gTLUTPortraitYoshi[] = {
- #include "assets/character_portraits/gTLUTPortraitYoshi.inc.c"
+s8 common_tlut_portrait_yoshi[] = {
+ #include "assets/character_portraits/common_tlut_portrait_yoshi.inc.c"
};
// 1AED8 dk tlut
-s8 gTLUTPortraitDonkeyKong[] = {
- #include "assets/character_portraits/gTLUTPortraitDonkeyKong.inc.c"
+s8 common_tlut_portrait_donkey_kong[] = {
+ #include "assets/character_portraits/common_tlut_portrait_donkey_kong.inc.c"
};
// 1B0D8 wario tlut
-s8 gTLUTPortraitWario[] = {
- #include "assets/character_portraits/gTLUTPortraitWario.inc.c"
+s8 common_tlut_portrait_wario[] = {
+ #include "assets/character_portraits/common_tlut_portrait_wario.inc.c"
};
// 1B2D8 bowser tlut
-s8 gTLUTPortraitBowser[] = {
- #include "assets/character_portraits/gTLUTPortraitBowser.inc.c"
+s8 common_tlut_portrait_bowser[] = {
+ #include "assets/character_portraits/common_tlut_portrait_bowser.inc.c"
};
// 1B4D8 bob-omb tlut and question mark?
-s8 gTLUTPortraitBombKartAndQuestionMark[] = {
- #include "assets/character_portraits/gTLUTPortraitBombKartAndQuestionMark.inc.c"
+s8 common_tlut_portrait_bomb_kart_and_question_mark[] = {
+ #include "assets/character_portraits/common_tlut_portrait_bomb_kart_and_question_mark.inc.c"
};
// Mario
-s8 gTexturePortraitMario[] = {
- #include "assets/character_portraits/gTexturePortraitMario.inc.c"
+s8 common_texture_portrait_mario[] = {
+ #include "assets/character_portraits/common_texture_portrait_mario.inc.c"
};
// Luigi
-s8 gTexturePortraitLuigi[] = {
- #include "assets/character_portraits/gTexturePortraitLuigi.inc.c"
+s8 common_texture_portrait_luigi[] = {
+ #include "assets/character_portraits/common_texture_portrait_luigi.inc.c"
};
// Peach
-s8 gTexturePortraitPeach[] = {
- #include "assets/character_portraits/gTexturePortraitPeach.inc.c"
+s8 common_texture_portrait_peach[] = {
+ #include "assets/character_portraits/common_texture_portrait_peach.inc.c"
};
// Toad
-s8 gTexturePortraitToad[] = {
- #include "assets/character_portraits/gTexturePortraitToad.inc.c"
+s8 common_texture_portrait_toad[] = {
+ #include "assets/character_portraits/common_texture_portrait_toad.inc.c"
};
// Yoshi
-s8 gTexturePortraitYoshi[] = {
- #include "assets/character_portraits/gTexturePortraitYoshi.inc.c"
+s8 common_texture_portrait_yoshi[] = {
+ #include "assets/character_portraits/common_texture_portrait_yoshi.inc.c"
};
// Donkey Kong
-s8 gTexturePortraitDonkeyKong[] = {
- #include "assets/character_portraits/gTexturePortraitDonkeyKong.inc.c"
+s8 common_texture_portrait_donkey_kong[] = {
+ #include "assets/character_portraits/common_texture_portrait_donkey_kong.inc.c"
};
// Wario
-s8 gTexturePortraitWario[] = {
- #include "assets/character_portraits/gTexturePortraitWario.inc.c"
+s8 common_texture_portrait_wario[] = {
+ #include "assets/character_portraits/common_texture_portrait_wario.inc.c"
};
// Bowser
-u8 gTexturePortraitBowser[] = {
- #include "assets/character_portraits/gTexturePortraitBowser.inc.c"
+u8 common_texture_portrait_bowser[] = {
+ #include "assets/character_portraits/common_texture_portrait_bowser.inc.c"
};
// Mini Bomb Kart
-u8 gTexturePortraitBombKart[] = {
- #include "assets/character_portraits/gTexturePortraitBombKart.inc.c"
+u8 common_texture_portrait_bomb_kart[] = {
+ #include "assets/character_portraits/common_texture_portrait_bomb_kart.inc.c"
};
// Question Mark
-u8 gTexturePortraitQuestionMark[] = {
- #include "assets/character_portraits/gTexturePortraitQuestionMark.inc.c"
+u8 common_texture_portrait_question_mark[] = {
+ #include "assets/character_portraits/common_texture_portrait_question_mark.inc.c"
};
// 1DED8 tlut item frames
-s8 gTLUTItemWindowNone[] = {
- #include "assets/item_window/gTLUTItemWindowNone.inc.c"
+s8 common_tlut_item_window_none[] = {
+ #include "assets/item_window/common_tlut_item_window_none.inc.c"
};
-s8 gTLUTItemWindowBanana[] = {
- #include "assets/item_window/gTLUTItemWindowBanana.inc.c"
+s8 common_tlut_item_window_banana[] = {
+ #include "assets/item_window/common_tlut_item_window_banana.inc.c"
};
-s8 gTLUTItemWindowBananaBunch[] = {
- #include "assets/item_window/gTLUTItemWindowBananaBunch.inc.c"
+s8 common_tlut_item_window_banana_bunch[] = {
+ #include "assets/item_window/common_tlut_item_window_banana_bunch.inc.c"
};
-s8 gTLUTItemWindowMushroom[] = {
- #include "assets/item_window/gTLUTItemWindowMushroom.inc.c"
+s8 common_tlut_item_window_mushroom[] = {
+ #include "assets/item_window/common_tlut_item_window_mushroom.inc.c"
};
-s8 gTLUTItemWindowDoubleMushroom[] = {
- #include "assets/item_window/gTLUTItemWindowDoubleMushroom.inc.c"
+s8 common_tlut_item_window_double_mushroom[] = {
+ #include "assets/item_window/common_tlut_item_window_double_mushroom.inc.c"
};
-s8 gTLUTItemWindowTripleMushroom[] = {
- #include "assets/item_window/gTLUTItemWindowTripleMushroom.inc.c"
+s8 common_tlut_item_window_triple_mushroom[] = {
+ #include "assets/item_window/common_tlut_item_window_triple_mushroom.inc.c"
};
-s8 gTLUTItemWindowSuperMushroom[] = {
- #include "assets/item_window/gTLUTItemWindowSuperMushroom.inc.c"
+s8 common_tlut_item_window_super_mushroom[] = {
+ #include "assets/item_window/common_tlut_item_window_super_mushroom.inc.c"
};
-s8 gTLUTItemWindowBlueShell[] = {
- #include "assets/item_window/gTLUTItemWindowBlueShell.inc.c"
+s8 common_tlut_item_window_blue_shell[] = {
+ #include "assets/item_window/common_tlut_item_window_blue_shell.inc.c"
};
-s8 gTLUTItemWindowBoo[] = {
- #include "assets/item_window/gTLUTItemWindowBoo.inc.c"
+s8 common_tlut_item_window_boo[] = {
+ #include "assets/item_window/common_tlut_item_window_boo.inc.c"
};
-s8 gTLUTItemWindowGreenShell[] = {
- #include "assets/item_window/gTLUTItemWindowGreenShell.inc.c"
+s8 common_tlut_item_window_green_shell[] = {
+ #include "assets/item_window/common_tlut_item_window_green_shell.inc.c"
};
-s8 gTLUTItemWindowTripleGreenShell[] = {
- #include "assets/item_window/gTLUTItemWindowTripleGreenShell.inc.c"
+s8 common_tlut_item_window_triple_green_shell[] = {
+ #include "assets/item_window/common_tlut_item_window_triple_green_shell.inc.c"
};
-s8 gTLUTItemWindowRedShell[] = {
- #include "assets/item_window/gTLUTItemWindowRedShell.inc.c"
+s8 common_tlut_item_window_red_shell[] = {
+ #include "assets/item_window/common_tlut_item_window_red_shell.inc.c"
};
-s8 gTLUTItemWindowTripleRedShell[] = {
- #include "assets/item_window/gTLUTItemWindowTripleRedShell.inc.c"
+s8 common_tlut_item_window_triple_red_shell[] = {
+ #include "assets/item_window/common_tlut_item_window_triple_red_shell.inc.c"
};
-s8 gTLUTItemWindowStar[] = {
- #include "assets/item_window/gTLUTItemWindowStar.inc.c"
+s8 common_tlut_item_window_star[] = {
+ #include "assets/item_window/common_tlut_item_window_star.inc.c"
};
-s8 gTLUTItemWindowThunderBolt[] = {
- #include "assets/item_window/gTLUTItemWindowThunderBolt.inc.c"
+s8 common_tlut_item_window_thunder_bolt[] = {
+ #include "assets/item_window/common_tlut_item_window_thunder_bolt.inc.c"
};
-s8 gTLUTItemWindowFakeItemBox[] = {
- #include "assets/item_window/gTLUTItemWindowFakeItemBox.inc.c"
+s8 common_tlut_item_window_fake_item_box[] = {
+ #include "assets/item_window/common_tlut_item_window_fake_item_box.inc.c"
};
// UI Item Frames
-u8 gTextureItemWindowNone[] = {
- #include "assets/item_window/gTextureItemWindowNone.inc.c"
+u8 common_texture_item_window_none[] = {
+ #include "assets/item_window/common_texture_item_window_none.inc.c"
};
-s8 gTextureItemWindowBanana[] = {
- #include "assets/item_window/gTextureItemWindowBanana.inc.c"
+s8 common_texture_item_window_banana[] = {
+ #include "assets/item_window/common_texture_item_window_banana.inc.c"
};
-s8 gTextureItemWindowBananaBunch[] = {
- #include "assets/item_window/gTextureItemWindowBananaBunch.inc.c"
+s8 common_texture_item_window_banana_bunch[] = {
+ #include "assets/item_window/common_texture_item_window_banana_bunch.inc.c"
};
-s8 gTextureItemWindowMushroom[] = {
- #include "assets/item_window/gTextureItemWindowMushroom.inc.c"
+s8 common_texture_item_window_mushroom[] = {
+ #include "assets/item_window/common_texture_item_window_mushroom.inc.c"
};
-s8 gTextureItemWindowDoubleMushroom[] = {
- #include "assets/item_window/gTextureItemWindowDoubleMushroom.inc.c"
+s8 common_texture_item_window_double_mushroom[] = {
+ #include "assets/item_window/common_texture_item_window_double_mushroom.inc.c"
};
-s8 gTextureItemWindowTripleMushroom[] = {
- #include "assets/item_window/gTextureItemWindowTripleMushroom.inc.c"
+s8 common_texture_item_window_triple_mushroom[] = {
+ #include "assets/item_window/common_texture_item_window_triple_mushroom.inc.c"
};
-s8 gTextureItemWindowSuperMushroom[] = {
- #include "assets/item_window/gTextureItemWindowSuperMushroom.inc.c"
+s8 common_texture_item_window_super_mushroom[] = {
+ #include "assets/item_window/common_texture_item_window_super_mushroom.inc.c"
};
-s8 gTextureItemWindowBlueShell[] = {
- #include "assets/item_window/gTextureItemWindowBlueShell.inc.c"
+s8 common_texture_item_window_blue_shell[] = {
+ #include "assets/item_window/common_texture_item_window_blue_shell.inc.c"
};
-s8 gTextureItemWindowBoo[] = {
- #include "assets/item_window/gTextureItemWindowBoo.inc.c"
+s8 common_texture_item_window_boo[] = {
+ #include "assets/item_window/common_texture_item_window_boo.inc.c"
};
-s8 gTextureItemWindowGreenShell[] = {
- #include "assets/item_window/gTextureItemWindowGreenShell.inc.c"
+s8 common_texture_item_window_green_shell[] = {
+ #include "assets/item_window/common_texture_item_window_green_shell.inc.c"
};
-s8 gTextureItemWindowTripleGreenShell[] = {
- #include "assets/item_window/gTextureItemWindowTripleGreenShell.inc.c"
+s8 common_texture_item_window_triple_green_shell[] = {
+ #include "assets/item_window/common_texture_item_window_triple_green_shell.inc.c"
};
-s8 gTextureItemWindowRedShell[] = {
- #include "assets/item_window/gTextureItemWindowRedShell.inc.c"
+s8 common_texture_item_window_red_shell[] = {
+ #include "assets/item_window/common_texture_item_window_red_shell.inc.c"
};
-s8 gTextureItemWindowTripleRedShell[] = {
- #include "assets/item_window/gTextureItemWindowTripleRedShell.inc.c"
+s8 common_texture_item_window_triple_red_shell[] = {
+ #include "assets/item_window/common_texture_item_window_triple_red_shell.inc.c"
};
-s8 gTextureItemWindowStar[] = {
- #include "assets/item_window/gTextureItemWindowStar.inc.c"
+s8 common_texture_item_window_star[] = {
+ #include "assets/item_window/common_texture_item_window_star.inc.c"
};
-s8 gTextureItemWindowThunderBolt[] = {
- #include "assets/item_window/gTextureItemWindowThunderBolt.inc.c"
+s8 common_texture_item_window_thunder_bolt[] = {
+ #include "assets/item_window/common_texture_item_window_thunder_bolt.inc.c"
};
-s8 gTextureItemWindowFakeItemBox[] = {
- #include "assets/item_window/gTextureItemWindowFakeItemBox.inc.c"
+s8 common_texture_item_window_fake_item_box[] = {
+ #include "assets/item_window/common_texture_item_window_fake_item_box.inc.c"
};
-u8 gTLUTLakituCountdown[][512] = {
+u8 common_tlut_lakitu_countdown[][512] = {
{
- #include "assets/lakitu/nolights/gTLUTLakituNoLights.inc.c"
+ #include "assets/lakitu/nolights/common_tlut_lakitu_no_lights.inc.c"
},
{
- #include "assets/lakitu/redlights/gTLUTLakituRedLights.inc.c"
+ #include "assets/lakitu/redlights/common_tlut_lakitu_red_lights.inc.c"
},
{
- #include "assets/lakitu/bluelight/gTLUTLakituBlueLight.inc.c"
+ #include "assets/lakitu/bluelight/common_tlut_lakitu_blue_lights.inc.c"
}
};
/**
* @todo Generate tlut based on the actual texture.
* The textures these tluts are for are not in common_textures.inc.c
- * This applies to gTLUTLakituCheckeredFlag, gTLUTLakituSecondLap,
- * gTLUTLakituFinalLap, gTLUTLakituReverse, gTLUTLakituFishing
+ * This applies to common_tlut_lakitu_checkered_flag, common_tlut_lakitu_second_lap,
+ * common_tlut_lakitu_final_lap, common_tlut_lakitu_reverse, common_tlut_lakitu_fishing
* Appears to be animation textures.
*/
-u8 gTLUTLakituCheckeredFlag[] = {
- #include "assets/lakitu/checkeredflag/gTLUTLakituCheckeredFlag.inc.c"
+u8 common_tlut_lakitu_checkered_flag[] = {
+ #include "assets/lakitu/checkeredflag/common_tlut_lakitu_checkered_flag.inc.c"
};
-u8 gTLUTLakituSecondLap[] = {
- #include "assets/lakitu/secondlap/gTLUTLakituSecondLap.inc.c"
+u8 common_tlut_lakitu_second_lap[] = {
+ #include "assets/lakitu/secondlap/common_tlut_lakitu_second_lap.inc.c"
};
-u8 gTLUTLakituFinalLap[] = {
- #include "assets/lakitu/finallap/gTLUTLakituFinalLap.inc.c"
+u8 common_tlut_lakitu_final_lap[] = {
+ #include "assets/lakitu/finallap/common_tlut_lakitu_final_lap.inc.c"
};
-u8 gTLUTLakituReverse[] = {
- #include "assets/lakitu/reverse/gTLUTLakituReverse.inc.c"
+u8 common_tlut_lakitu_reverse[] = {
+ #include "assets/lakitu/reverse/common_tlut_lakitu_reverse.inc.c"
};
-u8 gTLUTLakituFishing[] = {
- #include "assets/lakitu/fishing/gTLUTLakituFishing.inc.c"
+u8 common_tlut_lakitu_fishing[] = {
+ #include "assets/lakitu/fishing/common_tlut_lakitu_fishing.inc.c"
};
// unused traffic light tlut
-UNUSED s8 D_0D025ED8[] = {
- #include "assets/unused_traffic_light/gTLUTUnusedTrafficLight.inc.c"
+UNUSED s8 common_tlut_traffic_light[] = {
+ #include "assets/unused_traffic_light/common_tlut_traffic_light.inc.c"
};
// unused traffic light textures
-UNUSED s8 D_0D0260D8[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight01.inc.c"
+UNUSED s8 common_texture_traffic_light_01[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_01.inc.c"
};
-UNUSED s8 D_0D026558[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight02.inc.c"
+UNUSED s8 common_texture_traffic_light_02[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_02.inc.c"
};
-UNUSED s8 D_0D0269D8[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight03.inc.c"
+UNUSED s8 common_texture_traffic_light_03[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_03.inc.c"
};
-UNUSED s8 D_0D026E58[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight04.inc.c"
+UNUSED s8 common_texture_traffic_light_04[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_04.inc.c"
};
-UNUSED s8 D_0D0272D8[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight05.inc.c"
+UNUSED s8 common_texture_traffic_light_05[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_05.inc.c"
};
-UNUSED s8 D_0D027758[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight06.inc.c"
+UNUSED s8 common_texture_traffic_light_06[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_06.inc.c"
};
-UNUSED s8 D_0D027BD8[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight07.inc.c"
+UNUSED s8 common_texture_traffic_light_07[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_07.inc.c"
};
-UNUSED s8 D_0D028058[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight08.inc.c"
+UNUSED s8 common_texture_traffic_light_08[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_08.inc.c"
};
-UNUSED s8 D_0D0284D8[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight09.inc.c"
+UNUSED s8 common_texture_traffic_light_09[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_09.inc.c"
};
-UNUSED s8 D_0D028958[] = {
- #include "assets/unused_traffic_light/gTextureUnusedTrafficLight10.inc.c"
+UNUSED s8 common_texture_traffic_light_10[] = {
+ #include "assets/unused_traffic_light/common_texture_traffic_light_10.inc.c"
};
// leaf
-u8 D_0D028DD8[] = {
- #include "textures/common/132B50_28DD8.rgba16.inc.c"
+u8 common_texture_particle_leaf[] = {
+ #include "textures/common/common_texture_particle_leaf.rgba16.inc.c"
};
// leaf
-s8 D_0D0291D8[] = {
- #include "textures/common/132B50_291D8.rgba16.inc.c"
+UNUSED s8 common_texture_unused_particle_leaf[] = {
+ #include "textures/common/common_texture_unused_particle_leaf.rgba16.inc.c"
};
@@ -3107,90 +3107,90 @@ s8 D_0D029458[] = {
};
// Uses 2A858 as tlut
-u8 D_0D029858[][1024] = {
+u8 common_texture_bomb[][1024] = {
{
- #include "assets/bomb/gTextureBomb1.inc.c"
+ #include "assets/bomb/common_texture_bomb_1.inc.c"
},
{
- #include "assets/bomb/gTextureBomb2.inc.c"
+ #include "assets/bomb/common_texture_bomb_2.inc.c"
},
{
- #include "assets/bomb/gTextureBomb3.inc.c"
+ #include "assets/bomb/common_texture_bomb_3.inc.c"
},
{
- #include "assets/bomb/gTextureBomb4.inc.c"
+ #include "assets/bomb/common_texture_bomb_4.inc.c"
},
};
// Special tlut that uses 0xFFFF as a transparent tail instead of 0x0 or 0x07FE.
// tlut for 29858
-u8 D_0D02A858[] = {
- #include "assets/bomb/gTLUTBomb.inc.c"
+u8 common_tlut_bomb[] = {
+ #include "assets/bomb/common_tlut_bomb.inc.c"
};
u8 D_0D02AA58[] = {
#include "textures/common/132B50_2AA58.rgba16.inc.c"
};
-u8 D_0D02AC58[][1024] = {
+u8 common_texture_particle_spark[][1024] = {
{
- #include "textures/common/132B50_2AC58.i8.inc.c"
+ #include "textures/common/common_texture_particle_spark_1.i8.inc.c"
},
{
- #include "textures/common/132B50_2B058.i8.inc.c"
+ #include "textures/common/common_texture_particle_spark_2.i8.inc.c"
},
{
- #include "textures/common/132B50_2B458.i8.inc.c"
+ #include "textures/common/common_texture_particle_spark_3.i8.inc.c"
},
{
- #include "textures/common/132B50_2B858.i8.inc.c"
+ #include "textures/common/common_texture_particle_spark_4.i8.inc.c"
},
};
-u8 D_0D02BC58[][1024] = {
+u8 common_texture_particle_smoke[][1024] = {
{
- #include "textures/common/132B50_2BC58.i8.inc.c"
+ #include "textures/common/common_texture_particle_smoke_1.i8.inc.c"
},
{
- #include "textures/common/132B50_2C058.i8.inc.c"
+ #include "textures/common/common_texture_particle_smoke_2.i8.inc.c"
},
{
- #include "textures/common/132B50_2C458.i8.inc.c"
+ #include "textures/common/common_texture_particle_smoke_3.i8.inc.c"
},
{
- #include "textures/common/132B50_2C858.i8.inc.c"
+ #include "textures/common/common_texture_particle_smoke_4.i8.inc.c"
},
};
// minimap cars
-s8 gTextureMiniMapFinishLine[] = {
- #include "assets/minimap_icons/gTextureMiniMapFinishLine.inc.c"
+s8 common_texture_minimap_finish_line[] = {
+ #include "assets/minimap_icons/common_texture_minimap_finish_line.inc.c"
};
-s8 gMiniMapKartTextures[][128] = {
+s8 common_texture_minimap_kart_character[][128] = {
{ // Mario
- #include "assets/minimap_icons/gTextureMiniMapKartMario.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_mario.inc.c"
},
{ // Luigi
- #include "assets/minimap_icons/gTextureMiniMapKartLuigi.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_luigi.inc.c"
},
{ // Yoshi
- #include "assets/minimap_icons/gTextureMiniMapKartYoshi.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_yoshi.inc.c"
},
{ // Toad
- #include "assets/minimap_icons/gTextureMiniMapKartToad.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_toad.inc.c"
},
{ // Donkey Kong
- #include "assets/minimap_icons/gTextureMiniMapKartDonkeyKong.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_donkey_kong.inc.c"
},
{ // Wario
- #include "assets/minimap_icons/gTextureMiniMapKartWario.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_wario.inc.c"
},
{ // Peach
- #include "assets/minimap_icons/gTextureMiniMapKartPeach.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_peach.inc.c"
},
{ // Bowser
- #include "assets/minimap_icons/gTextureMiniMapKartBowser.inc.c"
+ #include "assets/minimap_icons/common_texture_minimap_kart_bowser.inc.c"
},
};
diff --git a/src/hud_renderer.c b/src/hud_renderer.c
index 708c5d7b6..dd445b0a8 100644
--- a/src/hud_renderer.c
+++ b/src/hud_renderer.c
@@ -2229,7 +2229,7 @@ void func_8004E6C4(s32 playerId) {
}
void func_8004E78C(s32 playerId) {
- func_8004CB60((s32) playerHUD[playerId].lapX, playerHUD[playerId].lapY + 3, (s32) D_0D00A958);
+ func_8004CB60((s32) playerHUD[playerId].lapX, playerHUD[playerId].lapY + 3, (s32) common_texture_hud_lap);
func_8004CB90(playerHUD[playerId].lapX + 0x1C, (s32) playerHUD[playerId].lapY, D_800E4570[playerHUD[playerId].alsoLapCount]);
}
@@ -2237,11 +2237,11 @@ void func_8004E800(s32 playerId) {
if (playerHUD[playerId].unk_81 != 0) {
if (playerHUD[playerId].lapCount != 3) {
func_8004A384(playerHUD[playerId].rankX + playerHUD[playerId].slideRankX, playerHUD[playerId].rankY + playerHUD[playerId].slideRankY, 0U,
- playerHUD[playerId].rankScaling, 0x000000FF, D_800E55F8[D_8018CF98[playerId]], 0, 0x000000FF, D_0D00D258[D_8018CF98[playerId]],
+ playerHUD[playerId].rankScaling, 0x000000FF, D_800E55F8[D_8018CF98[playerId]], 0, 0x000000FF, common_texture_hud_place[D_8018CF98[playerId]],
D_0D0068F0, 0x00000080, 0x00000040, 0x00000080, 0x00000040);
} else {
func_8004A384(playerHUD[playerId].rankX + playerHUD[playerId].slideRankX, playerHUD[playerId].rankY + playerHUD[playerId].slideRankY, 0U,
- playerHUD[playerId].rankScaling, 0x000000FF, D_800E55F8[D_80165594], 0, 0x000000FF, D_0D00D258[gGPCurrentRaceRankByPlayerId[playerId]],
+ playerHUD[playerId].rankScaling, 0x000000FF, D_800E55F8[D_80165594], 0, 0x000000FF, common_texture_hud_place[gGPCurrentRaceRankByPlayerId[playerId]],
D_0D0068F0, 0x00000080, 0x00000040, 0x00000080, 0x00000040);
}
}
@@ -2270,26 +2270,26 @@ void func_8004EB38(s32 playerId) {
temp_s0 = &playerHUD[playerId];
if ((u8) temp_s0->unk_7B != 0) {
- func_8004C9D8(temp_s0->lap1CompletionTimeX - 0x13, temp_s0->timerY + 8, 0x00000080, (s32) D_0D00C158, 0x00000020, 0x00000010, 0x00000020, 0x00000010);
+ func_8004C9D8(temp_s0->lap1CompletionTimeX - 0x13, temp_s0->timerY + 8, 0x00000080, (s32) common_texture_hud_time, 0x00000020, 0x00000010, 0x00000020, 0x00000010);
func_8004F950((s32) temp_s0->lap1CompletionTimeX, (s32) temp_s0->timerY, 0x00000080, (s32) temp_s0->someTimer);
}
if ((u8) temp_s0->unk_7C != 0) {
- func_8004C9D8(temp_s0->lap2CompletionTimeX - 0x13, temp_s0->timerY + 8, 0x00000050, (s32) D_0D00C158, 0x00000020, 0x00000010, 0x00000020, 0x00000010);
+ func_8004C9D8(temp_s0->lap2CompletionTimeX - 0x13, temp_s0->timerY + 8, 0x00000050, (s32) common_texture_hud_time, 0x00000020, 0x00000010, 0x00000020, 0x00000010);
func_8004F950((s32) temp_s0->lap2CompletionTimeX, (s32) temp_s0->timerY, 0x00000050, (s32) temp_s0->someTimer);
}
if ((u8) temp_s0->unk_7E != 0) {
- func_8004C9D8((s32) temp_s0->lapAfterImage1X, temp_s0->lapY + 3, 0x00000080, (s32) D_0D00A958, 0x00000020, 8, 0x00000020, 8);
+ func_8004C9D8((s32) temp_s0->lapAfterImage1X, temp_s0->lapY + 3, 0x00000080, (s32) common_texture_hud_lap, 0x00000020, 8, 0x00000020, 8);
func_8004C9D8(temp_s0->lapAfterImage1X + 0x1C, (s32) temp_s0->lapY, 0x00000080, D_800E4570[temp_s0->alsoLapCount], 0x00000020, 0x00000010, 0x00000020, 0x00000010);
}
if ((u8) temp_s0->unk_7F != 0) {
- func_8004C9D8((s32) temp_s0->lapAfterImage2X, temp_s0->lapY + 3, 0x00000050, (s32) D_0D00A958, 0x00000020, 8, 0x00000020, 8);
+ func_8004C9D8((s32) temp_s0->lapAfterImage2X, temp_s0->lapY + 3, 0x00000050, (s32) common_texture_hud_lap, 0x00000020, 8, 0x00000020, 8);
func_8004C9D8(temp_s0->lapAfterImage2X + 0x1C, (s32) temp_s0->lapY, 0x00000050, D_800E4570[temp_s0->alsoLapCount], 0x00000020, 0x00000010, 0x00000020, 0x00000010);
}
}
void func_8004ED40(s32 arg0) {
- func_8004A2F4(playerHUD[arg0].speedometerX, playerHUD[arg0].speedometerY, 0U, 1.0f, D_8018D300, D_8018D308, D_8018D310, 0xFF, (u8* ) D_0D009958, D_0D0064B0, 0x40, 0x60, 0x40, 0x30);
- func_8004A258(D_8018CFEC, D_8018CFF4, D_8016579E, 1.0f, (u8* ) D_0D00A558, &D_0D005FF0, 0x40, 0x20, 0x40, 0x20);
+ func_8004A2F4(playerHUD[arg0].speedometerX, playerHUD[arg0].speedometerY, 0U, 1.0f, D_8018D300, D_8018D308, D_8018D310, 0xFF, (u8* ) common_texture_speedometer, D_0D0064B0, 0x40, 0x60, 0x40, 0x30);
+ func_8004A258(D_8018CFEC, D_8018CFF4, D_8016579E, 1.0f, (u8* ) common_texture_speedometer_needle, &D_0D005FF0, 0x40, 0x20, 0x40, 0x20);
}
void func_8004EE54(s32 arg0) {
@@ -2326,7 +2326,7 @@ void func_8004F020(s32 arg0) {
var_f0 = var_f0 + 4.0;
break;
}
- func_8004CAD0(var_f2, var_f0, gTextureMiniMapFinishLine);
+ func_8004CAD0(var_f2, var_f0, common_texture_minimap_finish_line);
}
#ifdef NON_MATCHING
@@ -2344,10 +2344,10 @@ void func_8004F168(s32 arg0, s32 playerId, s32 characterId) {
temp_a1 = ((D_8018D2D8[arg0] + D_8018D2F8) - ((s16) D_8018D2B8 / 2)) + D_8018D2E8 + (s32) (player->pos[2] * D_8018D2A0);
if (characterId != 8) {
if ((gGPCurrentRaceRankByPlayerId[playerId] == 0) && (gModeSelection != BATTLE) && (gModeSelection != TIME_TRIALS)) {
- func_80046424((s32) temp_a0, (s32) temp_a1, (player->unk_02C[1] + 0x8000) & 0xFFFF, 1.0f, (u8 *) gMiniMapKartTextures[characterId], common_vtx_player_minimap_icon, 8, 8, 8, 8);
+ func_80046424((s32) temp_a0, (s32) temp_a1, (player->unk_02C[1] + 0x8000) & 0xFFFF, 1.0f, (u8 *) common_texture_minimap_kart_character[characterId], common_vtx_player_minimap_icon, 8, 8, 8, 8);
// return;
} else {
- func_800463B0((s32) temp_a0, (s32) temp_a1, (player->unk_02C[1] + 0x8000) & 0xFFFF, 1.0f, (u8 *) gMiniMapKartTextures[characterId], common_vtx_player_minimap_icon, 8, 8, 8, 8);
+ func_800463B0((s32) temp_a0, (s32) temp_a1, (player->unk_02C[1] + 0x8000) & 0xFFFF, 1.0f, (u8 *) common_texture_minimap_kart_character[characterId], common_vtx_player_minimap_icon, 8, 8, 8, 8);
}
//return;
} else {
@@ -2457,7 +2457,7 @@ void print_timer(s32 arg0, s32 arg1, s32 arg2) {
gSPDisplayList(gDisplayListHead++, D_0D008108);
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
- func_80043D50(D_0D00C558, 104, 16);
+ func_80043D50(common_texture_hud_normal_digit, 104, 16);
func_8004F6D0(arg2);
func_8004F774(arg0, arg1);
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
@@ -2476,7 +2476,7 @@ void func_8004F8CC(s32 arg0, s32 arg1) {
void func_8004F950(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
gSPDisplayList(gDisplayListHead++, D_0D007F38);
set_transparency(arg2);
- func_80043D50(D_0D00C558, 104, 16);
+ func_80043D50(common_texture_hud_normal_digit, 104, 16);
func_8004F6D0(arg3);
func_8004F8CC(arg0, arg1);
}
@@ -2484,7 +2484,7 @@ void func_8004F950(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
void func_8004F9CC(s32 arg0, s32 arg1, s32 arg2) {
gSPDisplayList(gDisplayListHead++, D_0D007F38);
func_8004B614(D_801656C0, D_801656D0, D_801656E0, 128, 128, 128, 255);
- func_80043D50(D_0D00C558, 104, 16);
+ func_80043D50(common_texture_hud_normal_digit, 104, 16);
func_8004F6D0(arg2);
func_8004F8CC(arg0, arg1);
}
@@ -2502,7 +2502,7 @@ void func_8004FA78(s32 playerId) {
func_8004F9CC(playerHUD[playerId].lapCompletionTimeXs[var_s0], playerHUD[playerId].timerY + (var_s0*0x10), playerHUD[playerId].lapDurations[var_s0]);
}
}
- func_8004CB90(playerHUD[playerId].totalTimeX - 0x13, playerHUD[playerId].timerY + 0x38, D_0D00BD58);
+ func_8004CB90(playerHUD[playerId].totalTimeX - 0x13, playerHUD[playerId].timerY + 0x38, common_texture_hud_total_time);
if (D_801657E5 != 0) {
func_8004F9CC(playerHUD[playerId].totalTimeX, playerHUD[playerId].timerY + 0x30, playerHUD[playerId].someTimer);
} else {
@@ -2511,10 +2511,10 @@ void func_8004FA78(s32 playerId) {
}
} else {
if (playerHUD[playerId].blinkTimer == 0) {
- func_8004CB90(playerHUD[playerId].timerX - 0x13, playerHUD[playerId].timerY + 8, D_0D00C158);
+ func_8004CB90(playerHUD[playerId].timerX - 0x13, playerHUD[playerId].timerY + 8, common_texture_hud_time);
print_timer(playerHUD[playerId].timerX, playerHUD[playerId].timerY, playerHUD[playerId].someTimer);
} else {
- func_8004CB90(playerHUD[playerId].timerX - 0x13, playerHUD[playerId].timerY + 8, D_0D00AD58);
+ func_8004CB90(playerHUD[playerId].timerX - 0x13, playerHUD[playerId].timerY + 8, common_texture_hud_lap_time);
if (D_801657E3 != 0) {
func_8004F9CC(playerHUD[playerId].timerX, playerHUD[playerId].timerY, playerHUD[playerId].someTimer1);
} else if (playerHUD[playerId].blinkState == 0) {
@@ -2529,7 +2529,7 @@ void func_8004FC78(s16 arg0, s16 arg1, s8 arg2) {
gSPDisplayList(gDisplayListHead++, D_0D008108);
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
- func_80043D50(D_0D00AB58, 32, 8);
+ func_80043D50(common_texture_hud_123, 32, 8);
func_8004BA98(arg0, arg1, 8, 8, arg2 * 8, 0, 0);
func_8004BA98(arg0 + 8, arg1, 8, 8, 24, 0, 0);
func_8004BA98(arg0 + 16, arg1, 8, 8, 16, 0, 0);
@@ -2541,8 +2541,8 @@ void func_8004FDB4(f32 arg0, f32 arg1, s16 arg2, s16 arg3, s16 characterId, s32
func_80042330((s32) arg0, (s32) arg1, 0U, 1.0f);
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
func_8004B35C(0x000000FF, 0x000000FF, 0x000000FF, D_8018D3E0);
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTPortraitBombKartAndQuestionMark);
- rsp_load_texture(gTexturePortraitQuestionMark, 0x00000020, 0x00000020);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_portrait_bomb_kart_and_question_mark);
+ rsp_load_texture(common_texture_portrait_question_mark, 0x00000020, 0x00000020);
gSPDisplayList(gDisplayListHead++, D_0D0069E0);
} else {
func_80042330(arg0, arg1, 0U, 1.0f);
@@ -2559,14 +2559,14 @@ void func_8004FDB4(f32 arg0, f32 arg1, s16 arg2, s16 arg3, s16 characterId, s32
func_80042330(arg0, arg1, 0U, 1.0f);
gSPDisplayList(gDisplayListHead++, D_0D007A60);
func_8004B35C(D_8018D3E4, D_8018D3E8, D_8018D3EC, 0x000000FF);
- func_80044924(gTextureCharacterPortraitBorder, 0x20, 0x20);
+ func_80044924(common_texture_character_portrait_border, 0x20, 0x20);
gSPDisplayList(gDisplayListHead++, D_0D0069E0);
}
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
func_8004B35C(0x000000FF, 0x000000FF, 0x000000FF, arg5);
gSPDisplayList(gDisplayListHead++, D_0D007CB8);
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTHudTypeCRankFont);
- rsp_load_texture(gTextureHudTypeCRankFont[arg2], 0x00000010, 0x00000010);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_hud_type_C_rank_font);
+ rsp_load_texture(common_texture_hud_type_C_rank_font[arg2], 0x00000010, 0x00000010);
if (arg7 != 0) {
func_80042330((s32) (arg0 + 9.0f), (s32) (arg1 + 7.0f), 0U, 1.0f);
} else {
@@ -2784,8 +2784,8 @@ void func_80050C68(void) {
if ((gBombKarts[var_s1].state != BOMB_STATE_EXPLODED) && (gBombKarts[var_s1].state != BOMB_STATE_INACTIVE)) {
func_800507D8(var_s1, &sp88, &sp84);
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTPortraitBombKartAndQuestionMark);
- rsp_load_texture(gTexturePortraitBombKart, 0x00000020, 0x00000020);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_portrait_bomb_kart_and_question_mark);
+ rsp_load_texture(common_texture_portrait_bomb_kart, 0x00000020, 0x00000020);
func_80042330(sp88 + 0x20, sp84 + 0x12, 0U, 0.6f);
gSPDisplayList(gDisplayListHead++, D_0D0069E0);
}
@@ -2829,8 +2829,8 @@ void func_80050E34(s32 playerId, s32 arg1) {
if ((gCurrentCourseId == COURSE_YOSHI_VALLEY) && (lapCount < 3)) {
gSPDisplayList(gDisplayListHead++, D_0D007DB8);
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTPortraitBombKartAndQuestionMark);
- rsp_load_texture(gTexturePortraitQuestionMark, 0x00000020, 0x00000020);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_portrait_bomb_kart_and_question_mark);
+ rsp_load_texture(common_texture_portrait_question_mark, 0x00000020, 0x00000020);
object = &gObjectList[objectIndex];
object->pos[0] = object->unk_028[0] + ((f32) (spD0 + 0x20));
object->pos[1] = object->unk_028[1] + ((f32) (spC4 + spCC));
@@ -2856,8 +2856,8 @@ void func_80050E34(s32 playerId, s32 arg1) {
} else {
gSPDisplayList(gDisplayListHead++, D_0D0069E0);
}
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTHudTypeCRankTinyFont);
- rsp_load_texture(gTextureHudTypeCRankTinyFont[arg1 + 1], 8, 8);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_hud_type_C_rank_tiny_font);
+ rsp_load_texture(common_texture_hud_type_C_rank_tiny_font[arg1 + 1], 8, 8);
if (spB8 != 0) {
func_80042330(spD0 + 0x26, (spC4 + spCC) + 4, 0U, 1.0f);
} else {
@@ -2867,7 +2867,7 @@ void func_80050E34(s32 playerId, s32 arg1) {
if ((player == gPlayerOne) && (gScreenModeSelection == SCREEN_MODE_1P)) {
gSPDisplayList(gDisplayListHead++, D_0D007A40);
func_8004B35C(D_8018D3E4, D_8018D3E8, D_8018D3EC, 0x000000FF);
- func_80044924(gTextureCharacterPortraitBorder, 0x00000020, 0x00000020);
+ func_80044924(common_texture_character_portrait_border, 0x00000020, 0x00000020);
rsp_set_matrix_transformation(object->pos, object->unk_0BE, object->sizeScaling);
gSPDisplayList(gDisplayListHead++, D_0D0069E0);
}
@@ -2913,7 +2913,7 @@ void func_80051638(UNUSED s32 arg0) {
gSPDisplayList(gDisplayListHead++, D_0D0079C8);
gSPClearGeometryMode(gDisplayListHead++, G_CULL_BOTH);
- func_80043D50(D_0D028DD8, 0x00000020, 0x00000010);
+ func_80043D50(common_texture_particle_leaf, 0x00000020, 0x00000010);
for(someIndex = 0; someIndex < D_8018C970_SIZE; someIndex++) {
leafIndex = D_8018C970[someIndex];
if (leafIndex != -1) {
@@ -3672,7 +3672,7 @@ void func_80054664(s32 cameraId) {
s32 objectIndex;
gSPDisplayList(gDisplayListHead++, D_0D007AE0);
- func_8004477C(D_0D02BC58[D_80165598], 0x00000020, 0x00000020);
+ func_8004477C(common_texture_particle_smoke[D_80165598], 0x00000020, 0x00000020);
func_8004B414(0, 0, 0, 0x000000FF);
D_80183E80[0] = 0;
D_80183E80[2] = 0x8000;
@@ -3716,7 +3716,7 @@ void func_80054938(s32 cameraId) {
sp54 = &camera1[cameraId];
gSPDisplayList(gDisplayListHead++, D_0D007AE0);
- func_8004477C(D_0D02BC58[D_80165598], 32, 32);
+ func_8004477C(common_texture_particle_smoke[D_80165598], 32, 32);
func_8004B72C(255, 255, 255, 255, 255, 255, 255);
D_80183E80[0] = 0;
D_80183E80[2] = 0x8000;
@@ -4171,7 +4171,7 @@ void func_800562E4(s32 arg0, s32 arg1, s32 arg2) {
D_80165878 = D_800E46F8[arg0][2];
func_8004B138(D_80165860, D_8016586C, D_80165878, arg2);
rsp_set_matrix_transformation(D_80183E40, D_80183E80, 0.2f);
- func_80044BF8(D_0D02AC58[arg1], 0x00000020, 0x00000020);
+ func_80044BF8(common_texture_particle_spark[arg1], 0x00000020, 0x00000020);
gSPVertex(gDisplayListHead++, D_0D005AE0, 4, 0);
gSPDisplayList(gDisplayListHead++, common_rectangle_display);
}
@@ -4195,7 +4195,7 @@ void func_800563DC(s32 objectIndex, s32 cameraId, s32 arg2) {
rsp_set_matrix_transformation(D_80183E40, D_80183E80, 0.2f);
gSPDisplayList(gDisplayListHead++, D_0D007E98);
func_8004B310(arg2);
- draw_rectangle_texture_overlap(D_0D02A858, D_0D029858[residue], D_0D005AE0, 0x00000020, 0x00000020, 0x00000020, 0x00000020);
+ draw_rectangle_texture_overlap(common_tlut_bomb, common_texture_bomb[residue], D_0D005AE0, 0x00000020, 0x00000020, 0x00000020, 0x00000020);
temp_s0 = D_8018D400;
gSPDisplayList(gDisplayListHead++, D_0D007B00);
func_8004B414(0, 0, 0, arg2);
@@ -4299,11 +4299,11 @@ void func_80056BF0(s32 bombIndex) {
temp_v0 = D_801655CC % 6U;
thing = D_800E471C[temp_v0];
- bombFrame = D_0D029858[thing];
+ bombFrame = common_texture_bomb[thing];
D_80183E40[0] = sp40.bombPos[0];
D_80183E40[1] = sp40.bombPos[1] + 1.0;
D_80183E40[2] = sp40.bombPos[2];
- func_800480B4(D_80183E40, D_80183E80, 0.25f, D_0D02A858, bombFrame, D_0D005AE0, 0x20, 0x20, 0x20, 0x20);
+ func_800480B4(D_80183E40, D_80183E80, 0.25f, common_tlut_bomb, bombFrame, D_0D005AE0, 0x20, 0x20, 0x20, 0x20);
temp_s0 = D_8018D400;
gSPDisplayList(gDisplayListHead++, D_0D007B00);
func_8004B414(0, 0, 0, 0xFF);
diff --git a/src/racing/actors.c b/src/racing/actors.c
index 805ac6751..05ba211d3 100644
--- a/src/racing/actors.c
+++ b/src/racing/actors.c
@@ -392,7 +392,7 @@ void func_802977E4(Player *arg0) {
// Invert green and red on green shell texture
void init_red_shell_texture(void) {
s16 *red_shell_texture = (s16 *) &gTLUTRedShell[0];
- s16 *green_shell_texture = (s16 *) VIRTUAL_TO_PHYSICAL2(gSegmentTable[SEGMENT_NUMBER2(gTLUTGreenShell)] + SEGMENT_OFFSET(gTLUTGreenShell));
+ s16 *green_shell_texture = (s16 *) VIRTUAL_TO_PHYSICAL2(gSegmentTable[SEGMENT_NUMBER2(common_tlut_green_shell)] + SEGMENT_OFFSET(common_tlut_green_shell));
s16 color_pixel, red_color, green_color, blue_color, alpha_color;
s32 i;
for (i = 0; i < 256; i++) {
@@ -943,7 +943,7 @@ void render_actor_tree_mario_raceway(Camera *camera, Mat4 arg1, struct Actor *ar
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
gSPDisplayList(gDisplayListHead++, d_course_mario_raceway_dl_tree);
}
}
@@ -966,7 +966,7 @@ void render_actor_tree_yoshi_valley(Camera *camera, Mat4 arg1, struct Actor *arg
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
gSPDisplayList(gDisplayListHead++, d_course_yoshi_valley_dl_tree);
}
}
@@ -989,7 +989,7 @@ void render_actor_tree_royal_raceway(Camera *camera, Mat4 arg1, struct Actor *ar
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
gSPDisplayList(gDisplayListHead++, d_course_royal_raceway_dl_tree);
}
}
@@ -1012,7 +1012,7 @@ void render_actor_tree_moo_moo_farm(Camera *camera, Mat4 arg1, struct Actor *arg
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
gSPDisplayList(gDisplayListHead++, d_course_moo_moo_farm_dl_tree);
}
}
@@ -1035,7 +1035,7 @@ void func_80299864(Camera *camera, Mat4 arg1, struct Actor *arg2) {
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
// Why is a TLUT being used a DL here? That makes no sense
// Based on the TLUT being loaded above, this ought to be be another
// tree related DL, presumably one found in a course other than Moo Moo farm
@@ -1062,7 +1062,7 @@ void render_actor_tree_bowser_castle(Camera *camera, Mat4 arg1, struct Actor *ar
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
gSPDisplayList(gDisplayListHead++, d_course_royal_raceway_dl_castle_tree);
}
}
@@ -1085,7 +1085,7 @@ void render_actor_bush_bowser_castle(Camera *camera, Mat4 arg1, struct Actor *ar
arg1[3][2] = arg2->pos[2];
if (render_set_position(arg1, 0) != 0) {
- gDPLoadTLUT_pal256(gDisplayListHead++, D_0D004C68);
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_trees_import);
gSPDisplayList(gDisplayListHead++, d_course_bowsers_castle_dl_bush);
}
}
@@ -1262,7 +1262,7 @@ UNUSED s16 D_802B8810[] = {
};
void render_actor_green_shell(Camera *camera, Mat4 matrix, struct ShellActor *shell) {
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTGreenShell); // set texture
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_green_shell); // set texture
render_actor_shell(camera, matrix, shell);
}
@@ -1273,7 +1273,7 @@ void render_actor_red_shell(Camera *camera, Mat4 matrix, struct ShellActor *shel
// Middle of a tlut access
void render_actor_blue_shell(Camera *camera, Mat4 matrix, struct ShellActor *shell) {
- gDPLoadTLUT_pal256(gDisplayListHead++, gTLUTBlueShell); // set texture
+ gDPLoadTLUT_pal256(gDisplayListHead++, common_tlut_blue_shell); // set texture
render_actor_shell(camera, matrix, shell);
}
diff --git a/src/racing/actors.h b/src/racing/actors.h
index 0d40910ec..6828866e2 100644
--- a/src/racing/actors.h
+++ b/src/racing/actors.h
@@ -124,7 +124,7 @@ extern s16 gCurrentCourseId;
extern u16 isCrossingTriggeredByIndex[];
extern Lights1 D_800DC610[];
-extern s8 D_0D004C68[];
+extern s8 common_tlut_trees_import[];
extern Gfx D_0D005338[];
extern Gfx D_0D005368[];
extern Gfx D_0D007B20[];