88 lines
3.8 KiB
C
88 lines
3.8 KiB
C
#include "pc/rom_assets.h"
|
|
// 0x0700D658 - 0x0700D748
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700D658, 0x00383950, 74560, 0x0000d658, 240);
|
|
|
|
// 0x0700D748 - 0x0700D838
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700D748, 0x00383950, 74560, 0x0000d748, 240);
|
|
|
|
// 0x0700D838 - 0x0700D938
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700D838, 0x00383950, 74560, 0x0000d838, 256);
|
|
|
|
// 0x0700D938 - 0x0700D9B8
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700D938, 0x00383950, 74560, 0x0000d938, 128);
|
|
|
|
// 0x0700D9B8 - 0x0700DAA8
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700D9B8, 0x00383950, 74560, 0x0000d9b8, 240);
|
|
|
|
// 0x0700DAA8 - 0x0700DB98
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700DAA8, 0x00383950, 74560, 0x0000daa8, 240);
|
|
|
|
// 0x0700DB98 - 0x0700DC18
|
|
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700DB98, 0x00383950, 74560, 0x0000db98, 128);
|
|
|
|
// 0x0700DC18 - 0x0700DD28
|
|
static const Gfx ccm_seg7_dl_0700DC18[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, snow_09009800),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(ccm_seg7_vertex_0700D658, 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(ccm_seg7_vertex_0700D748, 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, 13, 11, 0x0),
|
|
gsSP1Triangle( 0, 2, 14, 0x0),
|
|
gsSPVertex(ccm_seg7_vertex_0700D838, 16, 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),
|
|
gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0),
|
|
gsSPVertex(ccm_seg7_vertex_0700D938, 8, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DD28 - 0x0700DDF0
|
|
static const Gfx ccm_seg7_dl_0700DD28[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, snow_09009000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(ccm_seg7_vertex_0700D9B8, 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(ccm_seg7_vertex_0700DAA8, 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(14, 0, 2, 0x0),
|
|
gsSPVertex(ccm_seg7_vertex_0700DB98, 8, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DDF0 - 0x0700DE68
|
|
const Gfx ccm_seg7_dl_0700DDF0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsDPSetTile(G_IM_FMT_IA, 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_IA, 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(ccm_seg7_dl_0700DC18),
|
|
gsSPDisplayList(ccm_seg7_dl_0700DD28),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|