sm64coopdx/levels/bits/areas/1/2/model.inc.c

136 lines
5.9 KiB
C

#include "pc/rom_assets.h"
// 0x07002988 - 0x07002A88
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002988, 0x0046c3a0, 47442, 0x00002988, 256);
// 0x07002A88 - 0x07002B78
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002A88, 0x0046c3a0, 47442, 0x00002a88, 240);
// 0x07002B78 - 0x07002C68
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002B78, 0x0046c3a0, 47442, 0x00002b78, 240);
// 0x07002C68 - 0x07002D68
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002C68, 0x0046c3a0, 47442, 0x00002c68, 256);
// 0x07002D68 - 0x07002E68
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002D68, 0x0046c3a0, 47442, 0x00002d68, 256);
// 0x07002E68 - 0x07002F48
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002E68, 0x0046c3a0, 47442, 0x00002e68, 224);
// 0x07002F48 - 0x07003048
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07002F48, 0x0046c3a0, 47442, 0x00002f48, 256);
// 0x07003048 - 0x07003148
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07003048, 0x0046c3a0, 47442, 0x00003048, 256);
// 0x07003148 - 0x070031C8
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07003148, 0x0046c3a0, 47442, 0x00003148, 128);
// 0x070031C8 - 0x070032C8
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_070031C8, 0x0046c3a0, 47442, 0x000031c8, 256);
// 0x070032C8 - 0x07003348
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_070032C8, 0x0046c3a0, 47442, 0x000032c8, 128);
// 0x07003348 - 0x070033B0
static const Gfx bits_seg7_dl_07003348[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09007000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bits_seg7_vertex_07002988, 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, 15, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x070033B0 - 0x070034F8
static const Gfx bits_seg7_dl_070033B0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bits_seg7_vertex_07002A88, 15, 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),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(bits_seg7_vertex_07002B78, 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(bits_seg7_vertex_07002C68, 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(bits_seg7_vertex_07002D68, 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(bits_seg7_vertex_07002E68, 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),
gsSPEndDisplayList(),
};
// 0x070034F8 - 0x070035E0
static const Gfx bits_seg7_dl_070034F8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bits_seg7_vertex_07002F48, 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, 13, 14, 0x0, 0, 2, 15, 0x0),
gsSPVertex(bits_seg7_vertex_07003048, 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, 13, 14, 0x0, 0, 2, 15, 0x0),
gsSPVertex(bits_seg7_vertex_07003148, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0),
gsSP2Triangles( 4, 5, 0, 0x0, 1, 0, 5, 0x0),
gsSP2Triangles( 5, 6, 1, 0x0, 6, 7, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x070035E0 - 0x07003670
static const Gfx bits_seg7_dl_070035E0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09000800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bits_seg7_vertex_070031C8, 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),
gsSPVertex(bits_seg7_vertex_070032C8, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSPEndDisplayList(),
};
// 0x07003670 - 0x070036F8
const Gfx bits_seg7_dl_07003670[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_LIGHTING),
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(bits_seg7_dl_07003348),
gsSPDisplayList(bits_seg7_dl_070033B0),
gsSPDisplayList(bits_seg7_dl_070034F8),
gsSPDisplayList(bits_seg7_dl_070035E0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};