mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 23:13:02 +00:00
663e4549d8
* Proof of concept for loading rom assets at runtime * Added skybox textures * Adjusted format * Load all texture assets from rom * Adjusted rom asset loading * Load all Vtx lists from rom * clean up toad, wario and his cap conflicts * Load sound samples from rom * fix toad sounds * Loaded sequences from rom * Load collisions from rom * Object animations are now loaded from the rom * Load player animations from rom * Load goddard anims from rom * whoops * fix some compile errors * drag and drop rom checker, everything works now. * fix errors due to merge conflicts * fix compile errors on windows, switch to md5 * fix vertex colors during load Co-Authored-By: Agent X <44549182+agent-11@users.noreply.github.com> * Load dialogs from rom * Loaded course/act names from rom * Loaded ingame text from rom * rerun autogen & blacklist smlua_text_utils_init * fix ttc_seg7_vertex_0700B238 colors --------- Co-authored-by: MysterD <myster@d> Co-authored-by: Agent X <44549182+agent-11@users.noreply.github.com>
462 lines
21 KiB
C
462 lines
21 KiB
C
#include "pc/rom_assets.h"
|
|
// 0x0700A9E0 - 0x0700A9F8
|
|
static const Lights1 bob_seg7_lights_0700A9E0 = gdSPDefLights1(
|
|
0x33, 0x33, 0x33,
|
|
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700A9F8 - 0x0700AA10
|
|
static const Lights1 bob_seg7_lights_0700A9F8 = gdSPDefLights1(
|
|
0x14, 0x14, 0x14,
|
|
0x64, 0x64, 0x64, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700AA10 - 0x0700AAF0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700AA10, 0x003fc2b0, 38830, 0x0000aa10, 224);
|
|
|
|
// 0x0700AAF0 - 0x0700ABF0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700AAF0, 0x003fc2b0, 38830, 0x0000aaf0, 256);
|
|
|
|
// 0x0700ABF0 - 0x0700ACF0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700ABF0, 0x003fc2b0, 38830, 0x0000abf0, 256);
|
|
|
|
// 0x0700ACF0 - 0x0700ADF0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700ACF0, 0x003fc2b0, 38830, 0x0000acf0, 256);
|
|
|
|
// 0x0700ADF0 - 0x0700AED0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700ADF0, 0x003fc2b0, 38830, 0x0000adf0, 224);
|
|
|
|
// 0x0700AED0 - 0x0700AFC0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700AED0, 0x003fc2b0, 38830, 0x0000aed0, 240);
|
|
|
|
// 0x0700AFC0 - 0x0700B0C0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700AFC0, 0x003fc2b0, 38830, 0x0000afc0, 256);
|
|
|
|
// 0x0700B0C0 - 0x0700B1B0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B0C0, 0x003fc2b0, 38830, 0x0000b0c0, 240);
|
|
|
|
// 0x0700B1B0 - 0x0700B2B0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B1B0, 0x003fc2b0, 38830, 0x0000b1b0, 256);
|
|
|
|
// 0x0700B2B0 - 0x0700B3B0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B2B0, 0x003fc2b0, 38830, 0x0000b2b0, 256);
|
|
|
|
// 0x0700B3B0 - 0x0700B4B0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B3B0, 0x003fc2b0, 38830, 0x0000b3b0, 256);
|
|
|
|
// 0x0700B4B0 - 0x0700B5A0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B4B0, 0x003fc2b0, 38830, 0x0000b4b0, 240);
|
|
|
|
// 0x0700B5A0 - 0x0700B6A0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B5A0, 0x003fc2b0, 38830, 0x0000b5a0, 256);
|
|
|
|
// 0x0700B6A0 - 0x0700B790
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B6A0, 0x003fc2b0, 38830, 0x0000b6a0, 240);
|
|
|
|
// 0x0700B790 - 0x0700B890
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B790, 0x003fc2b0, 38830, 0x0000b790, 256);
|
|
|
|
// 0x0700B890 - 0x0700B970
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B890, 0x003fc2b0, 38830, 0x0000b890, 224);
|
|
|
|
// 0x0700B970 - 0x0700BA70
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700B970, 0x003fc2b0, 38830, 0x0000b970, 256);
|
|
|
|
// 0x0700BA70 - 0x0700BB50
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BA70, 0x003fc2b0, 38830, 0x0000ba70, 224);
|
|
|
|
// 0x0700BB50 - 0x0700BC50
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BB50, 0x003fc2b0, 38830, 0x0000bb50, 256);
|
|
|
|
// 0x0700BC50 - 0x0700BD30
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BC50, 0x003fc2b0, 38830, 0x0000bc50, 224);
|
|
|
|
// 0x0700BD30 - 0x0700BE30
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BD30, 0x003fc2b0, 38830, 0x0000bd30, 256);
|
|
|
|
// 0x0700BE30 - 0x0700BF30
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BE30, 0x003fc2b0, 38830, 0x0000be30, 256);
|
|
|
|
// 0x0700BF30 - 0x0700BF90
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BF30, 0x003fc2b0, 38830, 0x0000bf30, 96);
|
|
|
|
// 0x0700BF90 - 0x0700C080
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700BF90, 0x003fc2b0, 38830, 0x0000bf90, 240);
|
|
|
|
// 0x0700C080 - 0x0700C170
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C080, 0x003fc2b0, 38830, 0x0000c080, 240);
|
|
|
|
// 0x0700C170 - 0x0700C250
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C170, 0x003fc2b0, 38830, 0x0000c170, 224);
|
|
|
|
// 0x0700C250 - 0x0700C350
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C250, 0x003fc2b0, 38830, 0x0000c250, 256);
|
|
|
|
// 0x0700C350 - 0x0700C440
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C350, 0x003fc2b0, 38830, 0x0000c350, 240);
|
|
|
|
// 0x0700C440 - 0x0700C4A0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C440, 0x003fc2b0, 38830, 0x0000c440, 96);
|
|
|
|
// 0x0700C4A0 - 0x0700C5A0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C4A0, 0x003fc2b0, 38830, 0x0000c4a0, 256);
|
|
|
|
// 0x0700C5A0 - 0x0700C690
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C5A0, 0x003fc2b0, 38830, 0x0000c5a0, 240);
|
|
|
|
// 0x0700C690 - 0x0700C790
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C690, 0x003fc2b0, 38830, 0x0000c690, 256);
|
|
|
|
// 0x0700C790 - 0x0700C870
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C790, 0x003fc2b0, 38830, 0x0000c790, 224);
|
|
|
|
// 0x0700C870 - 0x0700C950
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C870, 0x003fc2b0, 38830, 0x0000c870, 224);
|
|
|
|
// 0x0700C950 - 0x0700CA40
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700C950, 0x003fc2b0, 38830, 0x0000c950, 240);
|
|
|
|
// 0x0700CA40 - 0x0700CB20
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CA40, 0x003fc2b0, 38830, 0x0000ca40, 224);
|
|
|
|
// 0x0700CB20 - 0x0700CC10
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CB20, 0x003fc2b0, 38830, 0x0000cb20, 240);
|
|
|
|
// 0x0700CC10 - 0x0700CD00
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CC10, 0x003fc2b0, 38830, 0x0000cc10, 240);
|
|
|
|
// 0x0700CD00 - 0x0700CE00
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CD00, 0x003fc2b0, 38830, 0x0000cd00, 256);
|
|
|
|
// 0x0700CE00 - 0x0700CE40
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CE00, 0x003fc2b0, 38830, 0x0000ce00, 64);
|
|
|
|
// 0x0700CE40 - 0x0700CEC0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CE40, 0x003fc2b0, 38830, 0x0000ce40, 128);
|
|
|
|
// 0x0700CEC0 - 0x0700CF80
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CEC0, 0x003fc2b0, 38830, 0x0000cec0, 192);
|
|
|
|
// 0x0700CF80 - 0x0700CFC0
|
|
ROM_ASSET_LOAD_VTX(bob_seg7_vertex_0700CF80, 0x003fc2b0, 38830, 0x0000cf80, 64);
|
|
|
|
// 0x0700CFC0 - 0x0700D7D8
|
|
static const Gfx bob_seg7_dl_0700CFC0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09009000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&bob_seg7_lights_0700A9E0.l, 1),
|
|
gsSPLight(&bob_seg7_lights_0700A9E0.a, 2),
|
|
gsSPVertex(bob_seg7_vertex_0700AA10, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
|
|
gsSP2Triangles( 0, 4, 1, 0x0, 1, 5, 2, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 12, 13, 10, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700AAF0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 4, 5, 2, 0x0, 2, 3, 4, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0),
|
|
gsSP2Triangles( 8, 7, 10, 0x0, 8, 10, 11, 0x0),
|
|
gsSP2Triangles( 9, 8, 11, 0x0, 6, 12, 7, 0x0),
|
|
gsSP2Triangles(10, 13, 14, 0x0, 11, 10, 14, 0x0),
|
|
gsSP2Triangles( 9, 11, 14, 0x0, 9, 15, 6, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700ABF0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0),
|
|
gsSP2Triangles( 2, 5, 6, 0x0, 2, 6, 3, 0x0),
|
|
gsSP2Triangles( 3, 6, 7, 0x0, 3, 7, 8, 0x0),
|
|
gsSP2Triangles( 9, 10, 11, 0x0, 11, 12, 9, 0x0),
|
|
gsSP1Triangle(13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700ACF0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 4, 7, 8, 0x0, 5, 9, 10, 0x0),
|
|
gsSP2Triangles(11, 5, 10, 0x0, 12, 13, 14, 0x0),
|
|
gsSP1Triangle( 7, 15, 8, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700ADF0, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700AED0, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 7, 4, 6, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
|
|
gsSP1Triangle(12, 13, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700AFC0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 5, 8, 6, 0x0, 5, 9, 8, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B0C0, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP2Triangles(12, 10, 14, 0x0, 12, 7, 10, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B1B0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 3, 2, 4, 0x0, 2, 5, 4, 0x0),
|
|
gsSP2Triangles( 5, 6, 4, 0x0, 6, 7, 4, 0x0),
|
|
gsSP2Triangles( 3, 4, 8, 0x0, 7, 1, 0, 0x0),
|
|
gsSP2Triangles( 9, 10, 11, 0x0, 12, 7, 0, 0x0),
|
|
gsSP2Triangles( 7, 13, 14, 0x0, 7, 6, 13, 0x0),
|
|
gsSP2Triangles( 7, 14, 1, 0x0, 15, 12, 0, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B2B0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 3, 0x0, 6, 7, 8, 0x0),
|
|
gsSP2Triangles( 3, 2, 9, 0x0, 2, 10, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 9, 0x0, 11, 10, 12, 0x0),
|
|
gsSP2Triangles(13, 10, 14, 0x0, 10, 15, 12, 0x0),
|
|
gsSP1Triangle(10, 13, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B3B0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 1, 0x0, 5, 2, 1, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
|
|
gsSP2Triangles( 8, 10, 11, 0x0, 8, 11, 12, 0x0),
|
|
gsSP1Triangle(13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B4B0, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 7, 4, 6, 0x0),
|
|
gsSP2Triangles( 6, 5, 8, 0x0, 9, 10, 11, 0x0),
|
|
gsSP1Triangle(12, 13, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B5A0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
|
|
gsSP2Triangles( 1, 4, 3, 0x0, 5, 6, 7, 0x0),
|
|
gsSP2Triangles( 6, 5, 8, 0x0, 5, 9, 8, 0x0),
|
|
gsSP2Triangles( 5, 7, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP1Triangle(14, 11, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B6A0, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0),
|
|
gsSP2Triangles( 5, 6, 0, 0x0, 5, 0, 2, 0x0),
|
|
gsSP2Triangles( 0, 6, 7, 0x0, 1, 0, 8, 0x0),
|
|
gsSP2Triangles( 9, 10, 11, 0x0, 12, 13, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B790, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 0, 4, 3, 0x0, 5, 6, 7, 0x0),
|
|
gsSP2Triangles( 5, 7, 8, 0x0, 9, 10, 11, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 13, 15, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B890, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700B970, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
|
|
gsSP2Triangles( 4, 3, 2, 0x0, 5, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 5, 0x0, 10, 11, 12, 0x0),
|
|
gsSP2Triangles( 6, 13, 14, 0x0, 6, 15, 7, 0x0),
|
|
gsSP1Triangle(15, 6, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700BA70, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0),
|
|
gsSP2Triangles(10, 9, 8, 0x0, 11, 12, 13, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700BB50, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
|
|
gsSP2Triangles( 9, 12, 10, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700BC50, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 2, 1, 4, 0x0, 5, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 1, 11, 4, 0x0),
|
|
gsSP2Triangles(12, 5, 7, 0x0, 0, 3, 13, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700BD30, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
|
|
gsSP2Triangles( 1, 4, 3, 0x0, 4, 5, 3, 0x0),
|
|
gsSP2Triangles( 6, 7, 4, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0),
|
|
gsSP2Triangles( 9, 12, 11, 0x0, 13, 8, 10, 0x0),
|
|
gsSP2Triangles( 9, 14, 12, 0x0, 11, 15, 10, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700BE30, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 4, 1, 0, 0x0, 4, 5, 6, 0x0),
|
|
gsSP2Triangles( 7, 0, 2, 0x0, 7, 2, 8, 0x0),
|
|
gsSP2Triangles( 2, 9, 10, 0x0, 2, 10, 8, 0x0),
|
|
gsSP2Triangles( 2, 11, 9, 0x0, 2, 12, 11, 0x0),
|
|
gsSP2Triangles( 2, 13, 12, 0x0, 2, 3, 13, 0x0),
|
|
gsSP2Triangles( 4, 0, 7, 0x0, 7, 8, 10, 0x0),
|
|
gsSP2Triangles( 5, 7, 10, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 6, 10, 9, 0x0, 6, 5, 10, 0x0),
|
|
gsSP2Triangles(14, 6, 9, 0x0, 4, 6, 14, 0x0),
|
|
gsSP2Triangles(14, 9, 11, 0x0, 4, 14, 15, 0x0),
|
|
gsSP2Triangles(15, 14, 11, 0x0, 15, 11, 12, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700BF30, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 0, 3, 0x0, 4, 3, 5, 0x0),
|
|
gsSPLight(&bob_seg7_lights_0700A9F8.l, 1),
|
|
gsSPLight(&bob_seg7_lights_0700A9F8.a, 2),
|
|
gsSPVertex(bob_seg7_vertex_0700BF90, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
|
|
gsSP1Triangle(11, 14, 12, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C080, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
|
|
gsSP1Triangle( 0, 2, 14, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700D7D8 - 0x0700D910
|
|
static const Gfx bob_seg7_dl_0700D7D8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09005800),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&bob_seg7_lights_0700A9E0.l, 1),
|
|
gsSPLight(&bob_seg7_lights_0700A9E0.a, 2),
|
|
gsSPVertex(bob_seg7_vertex_0700C170, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0),
|
|
gsSP2Triangles( 0, 3, 4, 0x0, 5, 6, 3, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C250, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 7, 9, 0x0, 10, 5, 7, 0x0),
|
|
gsSP2Triangles(10, 6, 5, 0x0, 1, 11, 12, 0x0),
|
|
gsSP2Triangles( 2, 1, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C350, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
|
|
gsSP2Triangles( 4, 2, 3, 0x0, 4, 3, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 10, 0x0),
|
|
gsSP2Triangles( 6, 8, 9, 0x0, 6, 10, 11, 0x0),
|
|
gsSP1Triangle(12, 13, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C440, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700D910 - 0x0700DC40
|
|
static const Gfx bob_seg7_dl_0700D910[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09009800),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(bob_seg7_vertex_0700C4A0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 9, 10, 0x0, 11, 7, 10, 0x0),
|
|
gsSP2Triangles( 8, 12, 9, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C5A0, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 7, 4, 8, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 9, 13, 14, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C690, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
|
|
gsSP2Triangles( 0, 3, 4, 0x0, 0, 4, 5, 0x0),
|
|
gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 12, 13, 14, 0x0),
|
|
gsSP2Triangles(12, 11, 13, 0x0, 15, 14, 13, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C790, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 7, 0x0),
|
|
gsSP2Triangles(11, 12, 8, 0x0, 12, 6, 8, 0x0),
|
|
gsSP1Triangle(11, 13, 12, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C870, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
|
|
gsSP2Triangles( 0, 2, 4, 0x0, 5, 6, 7, 0x0),
|
|
gsSP2Triangles( 1, 8, 2, 0x0, 9, 3, 4, 0x0),
|
|
gsSP2Triangles( 9, 10, 3, 0x0, 11, 5, 7, 0x0),
|
|
gsSP2Triangles(12, 11, 13, 0x0, 11, 7, 13, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700C950, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 9, 10, 0x0, 11, 7, 10, 0x0),
|
|
gsSP2Triangles( 8, 12, 9, 0x0, 13, 11, 10, 0x0),
|
|
gsSP1Triangle(13, 14, 11, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700CA40, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 4, 8, 5, 0x0),
|
|
gsSP2Triangles( 3, 5, 9, 0x0, 10, 3, 9, 0x0),
|
|
gsSP2Triangles( 1, 11, 12, 0x0, 1, 13, 11, 0x0),
|
|
gsSP1Triangle( 1, 12, 2, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700CB20, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 9, 10, 0x0, 11, 7, 10, 0x0),
|
|
gsSP2Triangles( 8, 12, 9, 0x0, 13, 11, 10, 0x0),
|
|
gsSP1Triangle(13, 14, 11, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700CC10, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 11, 13, 12, 0x0),
|
|
gsSP1Triangle(14, 0, 2, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700CD00, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
|
|
gsSP2Triangles(13, 12, 14, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(bob_seg7_vertex_0700CE00, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DC40 - 0x0700DC88
|
|
static const Gfx bob_seg7_dl_0700DC40[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bob_seg7_texture_07002000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(bob_seg7_vertex_0700CE40, 8, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DC88 - 0x0700DCE0
|
|
static const Gfx bob_seg7_dl_0700DC88[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_0900A000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(bob_seg7_vertex_0700CEC0, 12, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DCE0 - 0x0700DD18
|
|
static const Gfx bob_seg7_dl_0700DCE0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09006000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(bob_seg7_vertex_0700CF80, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DD18 - 0x0700DE30
|
|
const Gfx bob_seg7_dl_0700DD18[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_2CYCLE),
|
|
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
|
|
gsDPSetDepthSource(G_ZS_PIXEL),
|
|
gsDPSetFogColor(160, 160, 160, 255),
|
|
gsSPFogPosition(980, 1000),
|
|
gsSPSetGeometryMode(G_FOG),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(bob_seg7_dl_0700CFC0),
|
|
gsSPDisplayList(bob_seg7_dl_0700D7D8),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(bob_seg7_dl_0700D910),
|
|
gsSPDisplayList(bob_seg7_dl_0700DC40),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(bob_seg7_dl_0700DC88),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(bob_seg7_dl_0700DCE0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2),
|
|
gsSPClearGeometryMode(G_FOG),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList(),
|
|
};
|