sm64coopdx/levels/bitdw/areas/1/wooden_platform/model.inc.c

109 lines
4.8 KiB
C

#include "pc/rom_assets.h"
// 0x07005C40 - 0x07005D40
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_07005C40, 0x00454e00, 29021, 0x00005c40, 256);
// 0x07005D40 - 0x07005E40
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_07005D40, 0x00454e00, 29021, 0x00005d40, 256);
// 0x07005E40 - 0x07005F20
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_07005E40, 0x00454e00, 29021, 0x00005e40, 224);
// 0x07005F20 - 0x07006010
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_07005F20, 0x00454e00, 29021, 0x00005f20, 240);
// 0x07006010 - 0x070060F0
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_07006010, 0x00454e00, 29021, 0x00006010, 224);
// 0x070060F0 - 0x070061E0
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_070060F0, 0x00454e00, 29021, 0x000060f0, 240);
// 0x070061E0 - 0x070062E0
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_070061E0, 0x00454e00, 29021, 0x000061e0, 256);
// 0x070062E0 - 0x07006360
ROM_ASSET_LOAD_VTX(bitdw_seg7_vertex_070062E0, 0x00454e00, 29021, 0x000062e0, 128);
// 0x07006360 - 0x070063E8
static const Gfx bitdw_seg7_dl_07006360[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09004800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bitdw_seg7_vertex_07005C40, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 4, 3, 2, 0x0, 5, 6, 2, 0x0),
gsSP2Triangles( 6, 7, 2, 0x0, 7, 4, 2, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 12, 0x0),
gsSP2Triangles( 8, 13, 14, 0x0, 8, 15, 11, 0x0),
gsSP2Triangles( 8, 14, 9, 0x0, 8, 10, 15, 0x0),
gsSPEndDisplayList(),
};
// 0x070063E8 - 0x070064A8
static const Gfx bitdw_seg7_dl_070063E8[] = {
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(bitdw_seg7_vertex_07005D40, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0),
gsSP2Triangles( 1, 4, 2, 0x0, 0, 2, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 6, 9, 0x0, 10, 9, 11, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
gsSPVertex(bitdw_seg7_vertex_07005E40, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 0, 4, 1, 0x0, 3, 2, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
gsSPEndDisplayList(),
};
// 0x070064A8 - 0x070065F0
static const Gfx bitdw_seg7_dl_070064A8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bitdw_seg7_texture_07001000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bitdw_seg7_vertex_07005F20, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(14, 11, 13, 0x0),
gsSPVertex(bitdw_seg7_vertex_07006010, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 4, 6, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSPVertex(bitdw_seg7_vertex_070060F0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bitdw_seg7_vertex_070061E0, 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, 10, 11, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0),
gsSPVertex(bitdw_seg7_vertex_070062E0, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSPEndDisplayList(),
};
// 0x070065F0 - 0x07006670
const Gfx bitdw_seg7_dl_070065F0[] = {
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(bitdw_seg7_dl_07006360),
gsSPDisplayList(bitdw_seg7_dl_070063E8),
gsSPDisplayList(bitdw_seg7_dl_070064A8),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};