mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
* 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>
328 lines
15 KiB
C
328 lines
15 KiB
C
#include "pc/rom_assets.h"
|
|
// 0x0703C040 - 0x0703C058
|
|
static const Lights1 inside_castle_seg7_lights_0703C040 = gdSPDefLights1(
|
|
0x4c, 0x4c, 0x4c,
|
|
0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0703C058 - 0x0703C070
|
|
static const Lights1 inside_castle_seg7_lights_0703C058 = gdSPDefLights1(
|
|
0x5f, 0x5f, 0x5f,
|
|
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0703C070 - 0x0703C160
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C070, 0x00396340, 232834, 0x0003c070, 240);
|
|
|
|
// 0x0703C160 - 0x0703C260
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C160, 0x00396340, 232834, 0x0003c160, 256);
|
|
|
|
// 0x0703C260 - 0x0703C350
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C260, 0x00396340, 232834, 0x0003c260, 240);
|
|
|
|
// 0x0703C350 - 0x0703C3F0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C350, 0x00396340, 232834, 0x0003c350, 160);
|
|
|
|
// 0x0703C3F0 - 0x0703C4D0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C3F0, 0x00396340, 232834, 0x0003c3f0, 224);
|
|
|
|
// 0x0703C4D0 - 0x0703C530
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C4D0, 0x00396340, 232834, 0x0003c4d0, 96);
|
|
|
|
// 0x0703C530 - 0x0703C620
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C530, 0x00396340, 232834, 0x0003c530, 240);
|
|
|
|
// 0x0703C620 - 0x0703C720
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C620, 0x00396340, 232834, 0x0003c620, 256);
|
|
|
|
// 0x0703C720 - 0x0703C800
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C720, 0x00396340, 232834, 0x0003c720, 224);
|
|
|
|
// 0x0703C800 - 0x0703C8E0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C800, 0x00396340, 232834, 0x0003c800, 224);
|
|
|
|
// 0x0703C8E0 - 0x0703C9E0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C8E0, 0x00396340, 232834, 0x0003c8e0, 256);
|
|
|
|
// 0x0703C9E0 - 0x0703CAC0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703C9E0, 0x00396340, 232834, 0x0003c9e0, 224);
|
|
|
|
// 0x0703CAC0 - 0x0703CBC0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703CAC0, 0x00396340, 232834, 0x0003cac0, 256);
|
|
|
|
// 0x0703CBC0 - 0x0703CCC0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703CBC0, 0x00396340, 232834, 0x0003cbc0, 256);
|
|
|
|
// 0x0703CCC0 - 0x0703CDA0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703CCC0, 0x00396340, 232834, 0x0003ccc0, 224);
|
|
|
|
// 0x0703CDA0 - 0x0703CEA0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703CDA0, 0x00396340, 232834, 0x0003cda0, 256);
|
|
|
|
// 0x0703CEA0 - 0x0703CFA0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703CEA0, 0x00396340, 232834, 0x0003cea0, 256);
|
|
|
|
// 0x0703CFA0 - 0x0703D0A0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703CFA0, 0x00396340, 232834, 0x0003cfa0, 256);
|
|
|
|
// 0x0703D0A0 - 0x0703D0D0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D0A0, 0x00396340, 232834, 0x0003d0a0, 48);
|
|
|
|
// 0x0703D0D0 - 0x0703D1D0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D0D0, 0x00396340, 232834, 0x0003d0d0, 256);
|
|
|
|
// 0x0703D1D0 - 0x0703D2D0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D1D0, 0x00396340, 232834, 0x0003d1d0, 256);
|
|
|
|
// 0x0703D2D0 - 0x0703D3C0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D2D0, 0x00396340, 232834, 0x0003d2d0, 240);
|
|
|
|
// 0x0703D3C0 - 0x0703D4C0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D3C0, 0x00396340, 232834, 0x0003d3c0, 256);
|
|
|
|
// 0x0703D4C0 - 0x0703D5C0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D4C0, 0x00396340, 232834, 0x0003d4c0, 256);
|
|
|
|
// 0x0703D5C0 - 0x0703D6C0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D5C0, 0x00396340, 232834, 0x0003d5c0, 256);
|
|
|
|
// 0x0703D6C0 - 0x0703D7C0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D6C0, 0x00396340, 232834, 0x0003d6c0, 256);
|
|
|
|
// 0x0703D7C0 - 0x0703D8C0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D7C0, 0x00396340, 232834, 0x0003d7c0, 256);
|
|
|
|
// 0x0703D8C0 - 0x0703D9B0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D8C0, 0x00396340, 232834, 0x0003d8c0, 240);
|
|
|
|
// 0x0703D9B0 - 0x0703DAA0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703D9B0, 0x00396340, 232834, 0x0003d9b0, 240);
|
|
|
|
// 0x0703DAA0 - 0x0703DBA0
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703DAA0, 0x00396340, 232834, 0x0003daa0, 256);
|
|
|
|
// 0x0703DBA0 - 0x0703DC90
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703DBA0, 0x00396340, 232834, 0x0003dba0, 240);
|
|
|
|
// 0x0703DC90 - 0x0703DD80
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703DC90, 0x00396340, 232834, 0x0003dc90, 240);
|
|
|
|
// 0x0703DD80 - 0x0703DE40
|
|
ROM_ASSET_LOAD_VTX(inside_castle_seg7_vertex_0703DD80, 0x00396340, 232834, 0x0003dd80, 192);
|
|
|
|
// 0x0703DE40 - 0x0703DF70
|
|
static const Gfx inside_castle_seg7_dl_0703DE40[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&inside_castle_seg7_lights_0703C040.l, 1),
|
|
gsSPLight(&inside_castle_seg7_lights_0703C040.a, 2),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C070, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 0, 6, 1, 0x0, 3, 5, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0),
|
|
gsSP1Triangle(12, 13, 14, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C160, 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(inside_castle_seg7_vertex_0703C260, 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),
|
|
gsSPLight(&inside_castle_seg7_lights_0703C058.l, 1),
|
|
gsSPLight(&inside_castle_seg7_lights_0703C058.a, 2),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C350, 10, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
|
|
gsSP2Triangles( 4, 3, 2, 0x0, 4, 5, 3, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0703DF70 - 0x0703E000
|
|
static const Gfx inside_castle_seg7_dl_0703DF70[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C3F0, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 4, 0x0, 8, 4, 7, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C4D0, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 0, 2, 4, 0x0, 2, 5, 4, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0703E000 - 0x0703E2D8
|
|
static const Gfx inside_castle_seg7_dl_0703E000[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C530, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP1Triangle(11, 14, 12, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C620, 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(inside_castle_seg7_vertex_0703C720, 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, 13, 11, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C800, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C8E0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703C9E0, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703CAC0, 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(inside_castle_seg7_vertex_0703CBC0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703CCC0, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703CDA0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703CEA0, 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(inside_castle_seg7_vertex_0703CFA0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
|
|
gsSP2Triangles( 9, 11, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D0A0, 3, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0703E2D8 - 0x0703E618
|
|
static const Gfx inside_castle_seg7_dl_0703E2D8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09003000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D0D0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0),
|
|
gsSP2Triangles(12, 8, 10, 0x0, 12, 10, 1, 0x0),
|
|
gsSP2Triangles( 0, 12, 1, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D1D0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 4, 6, 5, 0x0, 0, 2, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP2Triangles(11, 14, 12, 0x0, 8, 15, 9, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D2D0, 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, 13, 11, 0x0),
|
|
gsSP1Triangle( 0, 2, 14, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D3C0, 16, 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),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D4C0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D5C0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 15, 12, 14, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D6C0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSP2Triangles( 1, 4, 3, 0x0, 0, 2, 5, 0x0),
|
|
gsSP2Triangles( 6, 0, 5, 0x0, 6, 7, 0, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D7C0, 16, 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, 10, 11, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703D8C0, 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(inside_castle_seg7_vertex_0703D9B0, 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, 12, 13, 0x0),
|
|
gsSP1Triangle( 0, 2, 14, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703DAA0, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0703E618 - 0x0703E6F0
|
|
static const Gfx inside_castle_seg7_dl_0703E618[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703DBA0, 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( 0, 14, 1, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703DC90, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 3, 9, 4, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
|
|
gsSP1Triangle( 0, 2, 14, 0x0),
|
|
gsSPVertex(inside_castle_seg7_vertex_0703DD80, 12, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 0, 2, 6, 0x0, 3, 5, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0703E6F0 - 0x0703E798
|
|
const Gfx inside_castle_seg7_dl_0703E6F0[] = {
|
|
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(inside_castle_seg7_dl_0703DE40),
|
|
gsSPDisplayList(inside_castle_seg7_dl_0703DF70),
|
|
gsSPDisplayList(inside_castle_seg7_dl_0703E000),
|
|
gsSPDisplayList(inside_castle_seg7_dl_0703E2D8),
|
|
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(inside_castle_seg7_dl_0703E618),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|