sm64coopdx/levels/ttm/areas/1/17/1.inc.c

80 lines
3.6 KiB
C
Raw Normal View History

#include "pc/rom_assets.h"
2019-11-03 19:36:27 +00:00
// 0x0700ECC8 - 0x0700ED98
ROM_ASSET_LOAD_VTX(ttm_seg7_vertex_0700ECC8, 0x004d1910, 104662, 0x0000ecc8, 208);
2019-11-03 19:36:27 +00:00
// 0x0700ED98 - 0x0700EE88
ROM_ASSET_LOAD_VTX(ttm_seg7_vertex_0700ED98, 0x004d1910, 104662, 0x0000ed98, 240);
2019-11-03 19:36:27 +00:00
// 0x0700EE88 - 0x0700EF78
ROM_ASSET_LOAD_VTX(ttm_seg7_vertex_0700EE88, 0x004d1910, 104662, 0x0000ee88, 240);
2019-11-03 19:36:27 +00:00
// 0x0700EF78 - 0x0700F068
ROM_ASSET_LOAD_VTX(ttm_seg7_vertex_0700EF78, 0x004d1910, 104662, 0x0000ef78, 240);
2019-11-03 19:36:27 +00:00
// 0x0700F068 - 0x0700F0D8
ROM_ASSET_LOAD_VTX(ttm_seg7_vertex_0700F068, 0x004d1910, 104662, 0x0000f068, 112);
2019-11-03 19:36:27 +00:00
// 0x0700F0D8 - 0x0700F170
static const Gfx ttm_seg7_dl_0700F0D8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(ttm_seg7_vertex_0700ECC8, 13, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 0, 4, 1, 0x0, 0, 5, 4, 0x0),
gsSP2Triangles( 0, 6, 5, 0x0, 0, 3, 6, 0x0),
gsSP2Triangles( 7, 5, 6, 0x0, 7, 4, 5, 0x0),
gsSP2Triangles( 1, 4, 7, 0x0, 7, 6, 8, 0x0),
gsSP2Triangles( 1, 7, 8, 0x0, 1, 8, 2, 0x0),
gsSP2Triangles( 9, 10, 11, 0x0, 9, 12, 10, 0x0),
gsSPEndDisplayList(),
};
// 0x0700F170 - 0x0700F270
static const Gfx ttm_seg7_dl_0700F170[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900A000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(ttm_seg7_vertex_0700ED98, 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(ttm_seg7_vertex_0700EE88, 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(ttm_seg7_vertex_0700EF78, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 8, 10, 9, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(ttm_seg7_vertex_0700F068, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP1Triangle( 0, 2, 6, 0x0),
gsSPEndDisplayList(),
};
// 0x0700F270 - 0x0700F300
const Gfx ttm_seg7_dl_0700F270[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
2019-11-03 19:36:27 +00:00
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
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(ttm_seg7_dl_0700F0D8),
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_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(ttm_seg7_dl_0700F170),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
gsSPEndDisplayList(),
};