Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/castle_courtyard/areas/1/3/model.inc.c
7862 views
1
// 0x07005708 - 0x070057F8
2
static const Vtx castle_courtyard_seg7_vertex_07005708[] = {
3
{{{ 205, 1741, 502}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
4
{{{ 614, 1741, 502}, 0, { 0, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
5
{{{ 614, 1331, 502}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
6
{{{ -2047, 1126, 195}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
7
{{{ -1637, 717, 195}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
8
{{{ -2047, 717, 195}, 0, { 990, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
9
{{{ -1637, 1126, 195}, 0, { 0, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
10
{{{ -2047, 1741, 195}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
11
{{{ -1637, 1331, 195}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
12
{{{ -2047, 1331, 195}, 0, { 990, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
13
{{{ -1637, 1741, 195}, 0, { 0, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
14
{{{ -613, 1741, 502}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
15
{{{ -204, 1331, 502}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
16
{{{ -613, 1331, 502}, 0, { 990, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
17
{{{ -204, 1741, 502}, 0, { 0, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
18
};
19
20
// 0x070057F8 - 0x070058A8
21
static const Vtx castle_courtyard_seg7_vertex_070057F8[] = {
22
{{{ 1638, 1741, 195}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
23
{{{ 2048, 1741, 195}, 0, { 0, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
24
{{{ 2048, 1331, 195}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
25
{{{ 205, 1741, 502}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
26
{{{ 614, 1331, 502}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
27
{{{ 205, 1331, 502}, 0, { 990, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
28
{{{ 1638, 1126, 195}, 0, { 990, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
29
{{{ 2048, 1126, 195}, 0, { 0, 0}, {0xa2, 0xa2, 0xc1, 0xff}}},
30
{{{ 2048, 717, 195}, 0, { 0, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
31
{{{ 1638, 717, 195}, 0, { 990, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
32
{{{ 1638, 1331, 195}, 0, { 990, 990}, {0xa2, 0xa2, 0xc1, 0xff}}},
33
};
34
35
// 0x070058A8 - 0x07005938
36
static const Gfx castle_courtyard_seg7_dl_070058A8[] = {
37
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_0900A800),
38
gsDPLoadSync(),
39
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
40
gsSPVertex(castle_courtyard_seg7_vertex_07005708, 15, 0),
41
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
42
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
43
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
44
gsSP1Triangle(11, 14, 12, 0x0),
45
gsSPVertex(castle_courtyard_seg7_vertex_070057F8, 11, 0),
46
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
47
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
48
gsSP1Triangle( 0, 2, 10, 0x0),
49
gsSPEndDisplayList(),
50
};
51
52
// 0x07005938 - 0x070059A8
53
const Gfx castle_courtyard_seg7_dl_07005938[] = {
54
gsDPPipeSync(),
55
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
56
gsSPClearGeometryMode(G_LIGHTING),
57
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),
58
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
59
gsDPTileSync(),
60
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
61
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
62
gsSPDisplayList(castle_courtyard_seg7_dl_070058A8),
63
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
64
gsDPPipeSync(),
65
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
66
gsSPSetGeometryMode(G_LIGHTING),
67
gsSPEndDisplayList(),
68
};
69
70