Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/castle_grounds/areas/1/12/model.inc.c
7862 views
1
// TODO: what is this? 0700C960-0700C968 [8,8]
2
UNUSED static const u64 castle_grounds_unused_2 = 0;
3
4
// 0x0700C968 - 0x0700C9A8
5
static const Vtx castle_grounds_seg7_vertex_0700C968[] = {
6
{{{ 0, 82, 0}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
7
{{{ -71, -81, 0}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
8
{{{ 0, -81, 0}, 0, { 990, 2012}, {0xff, 0xff, 0xff, 0xff}}},
9
{{{ -71, 82, 0}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
10
};
11
12
// 0x0700C9A8 - 0x0700C9E8
13
static const Vtx castle_grounds_seg7_vertex_0700C9A8[] = {
14
{{{ 72, 82, 0}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
15
{{{ 0, -81, 0}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
16
{{{ 72, -81, 0}, 0, { 990, 2012}, {0xff, 0xff, 0xff, 0xff}}},
17
{{{ 0, 82, 0}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
18
};
19
20
// 0x0700C9E8 - 0x0700D9E8
21
ALIGNED8 static const Texture castle_grounds_seg7_texture_0700C9E8[] = {
22
#include "levels/castle_grounds/3.rgba16.inc.c"
23
};
24
25
// 0x0700D9E8 - 0x0700E9E8
26
ALIGNED8 static const Texture castle_grounds_seg7_texture_0700D9E8[] = {
27
#include "levels/castle_grounds/4.rgba16.inc.c"
28
};
29
30
// 0x0700E9E8 - 0x0700EA20
31
static const Gfx castle_grounds_seg7_dl_0700E9E8[] = {
32
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, castle_grounds_seg7_texture_0700C9E8),
33
gsDPLoadSync(),
34
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
35
gsSPVertex(castle_grounds_seg7_vertex_0700C968, 4, 0),
36
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
37
gsSPEndDisplayList(),
38
};
39
40
// 0x0700EA20 - 0x0700EA58
41
static const Gfx castle_grounds_seg7_dl_0700EA20[] = {
42
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, castle_grounds_seg7_texture_0700D9E8),
43
gsDPLoadSync(),
44
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
45
gsSPVertex(castle_grounds_seg7_vertex_0700C9A8, 4, 0),
46
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
47
gsSPEndDisplayList(),
48
};
49
50
// 0x0700EA58 - 0x0700EAE8
51
const Gfx castle_grounds_seg7_dl_0700EA58[] = {
52
gsDPPipeSync(),
53
gsDPSetCombineMode(G_CC_DECALFADEA, G_CC_DECALFADEA),
54
gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2),
55
gsDPSetTextureFilter(G_TF_BILERP),
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_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
61
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
62
gsSPDisplayList(castle_grounds_seg7_dl_0700E9E8),
63
gsSPDisplayList(castle_grounds_seg7_dl_0700EA20),
64
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
65
gsDPPipeSync(),
66
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
67
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
68
gsSPSetGeometryMode(G_LIGHTING),
69
gsSPEndDisplayList(),
70
};
71
72