sm64coopdx/levels/bbh/areas/1/35/model.inc.c
Isaac0-dev 663e4549d8
extract assets from rom at runtime (#4)
* 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>
2024-03-23 16:11:30 -04:00

466 lines
20 KiB
C

#include "pc/rom_assets.h"
// 0x0701B7A8 - 0x0701B7C0
static const Lights1 bbh_seg7_lights_0701B7A8 = gdSPDefLights1(
0x24, 0x11, 0x0b,
0x5a, 0x2c, 0x1d, 0x28, 0x28, 0x28
);
// 0x0701B7C0 - 0x0701B7D8
static const Lights1 bbh_seg7_lights_0701B7C0 = gdSPDefLights1(
0x20, 0x20, 0x20,
0x50, 0x50, 0x50, 0x28, 0x28, 0x28
);
// 0x0701B7D8 - 0x0701B7F0
static const Lights1 bbh_seg7_lights_0701B7D8 = gdSPDefLights1(
0x3c, 0x3c, 0x3c,
0x96, 0x96, 0x96, 0x28, 0x28, 0x28
);
// 0x0701B7F0 - 0x0701B808
static const Lights1 bbh_seg7_lights_0701B7F0 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0701B808 - 0x0701B820
static const Lights1 bbh_seg7_lights_0701B808 = gdSPDefLights1(
0x24, 0x07, 0x00,
0x5a, 0x13, 0x00, 0x28, 0x28, 0x28
);
// 0x0701B820 - 0x0701B838
static const Lights1 bbh_seg7_lights_0701B820 = gdSPDefLights1(
0x44, 0x1c, 0x0c,
0xaa, 0x46, 0x1e, 0x28, 0x28, 0x28
);
// 0x0701B838 - 0x0701B850
static const Lights1 bbh_seg7_lights_0701B838 = gdSPDefLights1(
0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x28, 0x28, 0x28
);
// 0x0701B850 - 0x0701B940
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701B850, 0x00371c40, 68724, 0x0001b850, 240);
// 0x0701B940 - 0x0701B9B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701B940, 0x00371c40, 68724, 0x0001b940, 112);
// 0x0701B9B0 - 0x0701BAB0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701B9B0, 0x00371c40, 68724, 0x0001b9b0, 256);
// 0x0701BAB0 - 0x0701BAF0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BAB0, 0x00371c40, 68724, 0x0001bab0, 64);
// 0x0701BAF0 - 0x0701BBF0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BAF0, 0x00371c40, 68724, 0x0001baf0, 256);
// 0x0701BBF0 - 0x0701BCF0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BBF0, 0x00371c40, 68724, 0x0001bbf0, 256);
// 0x0701BCF0 - 0x0701BDF0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BCF0, 0x00371c40, 68724, 0x0001bcf0, 256);
// 0x0701BDF0 - 0x0701BEE0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BDF0, 0x00371c40, 68724, 0x0001bdf0, 240);
// 0x0701BEE0 - 0x0701BFD0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BEE0, 0x00371c40, 68724, 0x0001bee0, 240);
// 0x0701BFD0 - 0x0701C0D0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701BFD0, 0x00371c40, 68724, 0x0001bfd0, 256);
// 0x0701C0D0 - 0x0701C1B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C0D0, 0x00371c40, 68724, 0x0001c0d0, 224);
// 0x0701C1B0 - 0x0701C2A0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C1B0, 0x00371c40, 68724, 0x0001c1b0, 240);
// 0x0701C2A0 - 0x0701C380
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C2A0, 0x00371c40, 68724, 0x0001c2a0, 224);
// 0x0701C380 - 0x0701C460
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C380, 0x00371c40, 68724, 0x0001c380, 224);
// 0x0701C460 - 0x0701C560
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C460, 0x00371c40, 68724, 0x0001c460, 256);
// 0x0701C560 - 0x0701C650
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C560, 0x00371c40, 68724, 0x0001c560, 240);
// 0x0701C650 - 0x0701C730
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C650, 0x00371c40, 68724, 0x0001c650, 224);
// 0x0701C730 - 0x0701C820
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C730, 0x00371c40, 68724, 0x0001c730, 240);
// 0x0701C820 - 0x0701C8D0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C820, 0x00371c40, 68724, 0x0001c820, 176);
// 0x0701C8D0 - 0x0701C990
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C8D0, 0x00371c40, 68724, 0x0001c8d0, 192);
// 0x0701C990 - 0x0701CA80
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701C990, 0x00371c40, 68724, 0x0001c990, 240);
// 0x0701CA80 - 0x0701CB70
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701CA80, 0x00371c40, 68724, 0x0001ca80, 240);
// 0x0701CB70 - 0x0701CC60
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701CB70, 0x00371c40, 68724, 0x0001cb70, 240);
// 0x0701CC60 - 0x0701CD50
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701CC60, 0x00371c40, 68724, 0x0001cc60, 240);
// 0x0701CD50 - 0x0701CE40
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701CD50, 0x00371c40, 68724, 0x0001cd50, 240);
// 0x0701CE40 - 0x0701CF30
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701CE40, 0x00371c40, 68724, 0x0001ce40, 240);
// 0x0701CF30 - 0x0701D030
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701CF30, 0x00371c40, 68724, 0x0001cf30, 256);
// 0x0701D030 - 0x0701D130
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D030, 0x00371c40, 68724, 0x0001d030, 256);
// 0x0701D130 - 0x0701D1B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D130, 0x00371c40, 68724, 0x0001d130, 128);
// 0x0701D1B0 - 0x0701D2B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D1B0, 0x00371c40, 68724, 0x0001d1b0, 256);
// 0x0701D2B0 - 0x0701D3B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D2B0, 0x00371c40, 68724, 0x0001d2b0, 256);
// 0x0701D3B0 - 0x0701D4B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D3B0, 0x00371c40, 68724, 0x0001d3b0, 256);
// 0x0701D4B0 - 0x0701D5B0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D4B0, 0x00371c40, 68724, 0x0001d4b0, 256);
// 0x0701D5B0 - 0x0701D6A0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D5B0, 0x00371c40, 68724, 0x0001d5b0, 240);
// 0x0701D6A0 - 0x0701D7A0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D6A0, 0x00371c40, 68724, 0x0001d6a0, 256);
// 0x0701D7A0 - 0x0701D820
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D7A0, 0x00371c40, 68724, 0x0001d7a0, 128);
// 0x0701D820 - 0x0701D910
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D820, 0x00371c40, 68724, 0x0001d820, 240);
// 0x0701D910 - 0x0701D980
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D910, 0x00371c40, 68724, 0x0001d910, 112);
// 0x0701D980 - 0x0701D9C0
ROM_ASSET_LOAD_VTX(bbh_seg7_vertex_0701D980, 0x00371c40, 68724, 0x0001d980, 64);
// 0x0701D9C0 - 0x0701DA50
static const Gfx bbh_seg7_dl_0701D9C0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7A8.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7A8.a, 2),
gsSPVertex(bbh_seg7_vertex_0701B850, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 14, 12, 0x0),
gsSPVertex(bbh_seg7_vertex_0701B940, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP1Triangle( 0, 2, 6, 0x0),
gsSPEndDisplayList(),
};
// 0x0701DA50 - 0x0701DB20
static const Gfx bbh_seg7_dl_0701DA50[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7C0.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7C0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701B9B0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 7, 0x0, 4, 8, 9, 0x0),
gsSP2Triangles( 4, 9, 5, 0x0, 8, 4, 7, 0x0),
gsSP2Triangles(10, 9, 8, 0x0, 11, 10, 8, 0x0),
gsSP2Triangles( 3, 5, 12, 0x0, 2, 10, 11, 0x0),
gsSP2Triangles( 0, 2, 11, 0x0, 13, 14, 3, 0x0),
gsSP2Triangles(15, 1, 0, 0x0, 12, 1, 15, 0x0),
gsSP2Triangles(13, 3, 12, 0x0, 13, 12, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701BAB0, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSPEndDisplayList(),
};
// 0x0701DB20 - 0x0701DBF0
static const Gfx bbh_seg7_dl_0701DB20[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7D8.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7D8.a, 2),
gsSPVertex(bbh_seg7_vertex_0701BAF0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0),
gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701BBF0, 16, 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(11, 14, 12, 0x0, 0, 2, 15, 0x0),
gsSPEndDisplayList(),
};
// 0x0701DBF0 - 0x0701DFA0
static const Gfx bbh_seg7_dl_0701DBF0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09003800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7A8.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7A8.a, 2),
gsSPVertex(bbh_seg7_vertex_0701BCF0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP2Triangles(12, 14, 13, 0x0, 0, 15, 1, 0x0),
gsSPLight(&bbh_seg7_lights_0701B808.l, 1),
gsSPLight(&bbh_seg7_lights_0701B808.a, 2),
gsSPVertex(bbh_seg7_vertex_0701BDF0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 14, 12, 0x0),
gsSPVertex(bbh_seg7_vertex_0701BEE0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 7, 9, 8, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
gsSP1Triangle( 0, 14, 1, 0x0),
gsSPVertex(bbh_seg7_vertex_0701BFD0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 3, 6, 0x0),
gsSP2Triangles( 7, 6, 8, 0x0, 9, 10, 11, 0x0),
gsSP2Triangles( 9, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C0D0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C1B0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C2A0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 1, 13, 2, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C380, 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(bbh_seg7_vertex_0701C460, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 2, 1, 4, 0x0, 5, 6, 7, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 10, 9, 11, 0x0),
gsSP2Triangles(12, 11, 9, 0x0, 13, 14, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C560, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C650, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701C730, 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),
gsSP1Triangle(11, 14, 12, 0x0),
gsSPVertex(bbh_seg7_vertex_0701C820, 11, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP1Triangle( 0, 2, 10, 0x0),
gsSPLight(&bbh_seg7_lights_0701B820.l, 1),
gsSPLight(&bbh_seg7_lights_0701B820.a, 2),
gsSPVertex(bbh_seg7_vertex_0701C8D0, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
gsSPEndDisplayList(),
};
// 0x0701DFA0 - 0x0701E188
static const Gfx bbh_seg7_dl_0701DFA0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09005000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7C0.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7C0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701C990, 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),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701CA80, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701CB70, 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(bbh_seg7_vertex_0701CC60, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSP1Triangle( 0, 2, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701CD50, 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, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701CE40, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSP1Triangle( 0, 14, 1, 0x0),
gsSPVertex(bbh_seg7_vertex_0701CF30, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP2Triangles(11, 14, 12, 0x0, 0, 15, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0701E188 - 0x0701E210
static const Gfx bbh_seg7_dl_0701E188[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07000000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701D030, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 3, 8, 0x0),
gsSP2Triangles( 7, 6, 3, 0x0, 9, 7, 8, 0x0),
gsSP2Triangles( 9, 10, 7, 0x0, 11, 12, 13, 0x0),
gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0701E210 - 0x0701E430
static const Gfx bbh_seg7_dl_0701E210[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09007000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701B7D8.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7D8.a, 2),
gsSPVertex(bbh_seg7_vertex_0701D130, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1),
gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701D1B0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 3, 9, 4, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D2B0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D3B0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D4B0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(10, 14, 15, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D5B0, 15, 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),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D6A0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
gsSP2Triangles( 4, 6, 8, 0x0, 6, 9, 8, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 13, 15, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D7A0, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0),
gsSP2Triangles( 2, 1, 4, 0x0, 5, 3, 4, 0x0),
gsSP2Triangles( 5, 4, 6, 0x0, 7, 5, 6, 0x0),
gsSPEndDisplayList(),
};
// 0x0701E430 - 0x0701E4B0
static const Gfx bbh_seg7_dl_0701E430[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09009000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bbh_seg7_vertex_0701D820, 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, 13, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701D910, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP1Triangle( 0, 6, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0701E4B0 - 0x0701E4E0
static const Gfx bbh_seg7_dl_0701E4B0[] = {
gsSPLight(&bbh_seg7_lights_0701B838.l, 1),
gsSPLight(&bbh_seg7_lights_0701B838.a, 2),
gsSPVertex(bbh_seg7_vertex_0701D980, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0701E4E0 - 0x0701E5D8
const Gfx bbh_seg7_dl_0701E4E0[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_SHADING_SMOOTH),
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(bbh_seg7_dl_0701D9C0),
gsSPDisplayList(bbh_seg7_dl_0701DA50),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 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(bbh_seg7_dl_0701DB20),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 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(bbh_seg7_dl_0701DBF0),
gsSPDisplayList(bbh_seg7_dl_0701DFA0),
gsSPDisplayList(bbh_seg7_dl_0701E188),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(bbh_seg7_dl_0701E210),
gsSPDisplayList(bbh_seg7_dl_0701E430),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPDisplayList(bbh_seg7_dl_0701E4B0),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};