Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/bin/title_screen_bg.c
7854 views
1
#include <ultra64.h>
2
#include "sm64.h"
3
4
#include "make_const_nonconst.h"
5
6
// 0x0A000000 - 0x0A000100
7
static const Vtx title_screen_bg_vertex_0A000000[] = {
8
{{{ 0, 60, -1}, 0, { 0, 608}, {0xff, 0xff, 0xff, 0xff}}},
9
{{{ 80, 60, -1}, 0, { 2528, 608}, {0xff, 0xff, 0xff, 0xff}}},
10
{{{ 80, 80, -1}, 0, { 2528, 0}, {0xff, 0xff, 0xff, 0xff}}},
11
{{{ 0, 80, -1}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
12
{{{ 0, 40, -1}, 0, { 0, 608}, {0xff, 0xff, 0xff, 0xff}}},
13
{{{ 80, 40, -1}, 0, { 2528, 608}, {0xff, 0xff, 0xff, 0xff}}},
14
{{{ 80, 60, -1}, 0, { 2528, 0}, {0xff, 0xff, 0xff, 0xff}}},
15
{{{ 0, 60, -1}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
16
{{{ 0, 20, -1}, 0, { 0, 608}, {0xff, 0xff, 0xff, 0xff}}},
17
{{{ 80, 20, -1}, 0, { 2528, 608}, {0xff, 0xff, 0xff, 0xff}}},
18
{{{ 80, 40, -1}, 0, { 2528, 0}, {0xff, 0xff, 0xff, 0xff}}},
19
{{{ 0, 40, -1}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
20
{{{ 0, 0, -1}, 0, { 0, 608}, {0xff, 0xff, 0xff, 0xff}}},
21
{{{ 80, 0, -1}, 0, { 2528, 608}, {0xff, 0xff, 0xff, 0xff}}},
22
{{{ 80, 20, -1}, 0, { 2528, 0}, {0xff, 0xff, 0xff, 0xff}}},
23
{{{ 0, 20, -1}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
24
};
25
26
// 0x0A000100 - 0x0A000118
27
const Gfx title_screen_bg_dl_0A000100[] = {
28
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
29
gsDPSetRenderMode(G_RM_AA_OPA_SURF, G_RM_AA_OPA_SURF2),
30
gsSPEndDisplayList(),
31
};
32
33
// 0x0A000118 - 0x0A000130
34
const Gfx title_screen_bg_dl_0A000118[] = {
35
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
36
gsSPVertex(title_screen_bg_vertex_0A000000, 16, 0),
37
gsSPEndDisplayList(),
38
};
39
40
// 0x0A000130 - 0x0A000148
41
const Gfx title_screen_bg_dl_0A000130[] = {
42
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
43
gsSPEndDisplayList(),
44
};
45
46
// 0x0A000148 - 0x0A000160
47
const Gfx title_screen_bg_dl_0A000148[] = {
48
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
49
gsSPEndDisplayList(),
50
};
51
52
// 0x0A000160 - 0x0A000178
53
const Gfx title_screen_bg_dl_0A000160[] = {
54
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
55
gsSPEndDisplayList(),
56
};
57
58
// 0x0A000178 - 0x0A000190
59
const Gfx title_screen_bg_dl_0A000178[] = {
60
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
61
gsSPEndDisplayList(),
62
};
63
64
// 0x0A000190 - 0x0A0001C0
65
const Gfx title_screen_bg_dl_0A000190[] = {
66
gsDPPipeSync(),
67
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
68
gsSPSetGeometryMode(G_LIGHTING),
69
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
70
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
71
gsSPEndDisplayList(),
72
};
73
74
// 0x0A0001C0
75
ALIGNED8 static const Texture title_texture_0A0001C0[] = {
76
#include "textures/title_screen_bg/title_screen_bg.001C0.rgba16.inc.c"
77
};
78
79
// 0x0A000E40
80
ALIGNED8 static const Texture title_texture_0A000E40[] = {
81
#include "textures/title_screen_bg/title_screen_bg.00E40.rgba16.inc.c"
82
};
83
84
// 0x0A001AC0
85
ALIGNED8 static const Texture title_texture_0A001AC0[] = {
86
#include "textures/title_screen_bg/title_screen_bg.01AC0.rgba16.inc.c"
87
};
88
89
// 0x0A002740
90
ALIGNED8 static const Texture title_texture_0A002740[] = {
91
#include "textures/title_screen_bg/title_screen_bg.02740.rgba16.inc.c"
92
};
93
94
// 0x0A0033C0
95
ALIGNED8 static const Texture title_texture_0A0033C0[] = {
96
#include "textures/title_screen_bg/title_screen_bg.033C0.rgba16.inc.c"
97
};
98
99
// 0x0A004040
100
ALIGNED8 static const Texture title_texture_0A004040[] = {
101
#include "textures/title_screen_bg/title_screen_bg.04040.rgba16.inc.c"
102
};
103
104
// 0x0A004CC0
105
ALIGNED8 static const Texture title_texture_0A004CC0[] = {
106
#include "textures/title_screen_bg/title_screen_bg.04CC0.rgba16.inc.c"
107
};
108
109
// 0x0A005940
110
ALIGNED8 static const Texture title_texture_0A005940[] = {
111
#include "textures/title_screen_bg/title_screen_bg.05940.rgba16.inc.c"
112
};
113
114
// 0x0A0065C0
115
const Texture *const mario_title_texture_table[] = {
116
title_texture_0A0001C0, title_texture_0A000E40, title_texture_0A001AC0, title_texture_0A002740,
117
};
118
119
// 0x0A0065D0
120
const Texture *const game_over_texture_table[] = {
121
title_texture_0A0033C0, title_texture_0A004040, title_texture_0A004CC0, title_texture_0A005940,
122
};
123
124
UNUSED static const u64 title_screen_bg_unused_0 = 0;
125
126
const Gfx title_screen_bg_dl_0A0065E8[] = {
127
gsDPPipeSync(),
128
gsDPSetCycleType(G_CYC_COPY),
129
gsDPSetTexturePersp(G_TP_NONE),
130
gsDPSetTextureFilter(G_TF_POINT),
131
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
132
gsSPEndDisplayList(),
133
};
134
135
const Gfx title_screen_bg_dl_0A006618[] = {
136
gsDPPipeSync(),
137
gsDPSetCycleType(G_CYC_1CYCLE),
138
gsDPSetTexturePersp(G_TP_PERSP),
139
gsDPSetTextureFilter(G_TF_BILERP),
140
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
141
gsSPEndDisplayList(),
142
};
143
144
#ifdef VERSION_SH
145
146
ALIGNED8 static const u8 title_texture_rumble_pak[] = {
147
#include "textures/title_screen_bg/title_screen_bg.06648.rgba16.inc.c"
148
};
149
150
const Gfx title_screen_bg_dl_0A007548[] = {
151
gsDPPipeSync(),
152
gsDPSetCycleType(G_CYC_COPY),
153
gsDPSetTexturePersp(G_TP_NONE),
154
gsDPSetTextureFilter(G_TF_POINT),
155
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
156
gsDPSetScissor(G_SC_NON_INTERLACE, 0, 0, 319, 239),
157
gsDPLoadTextureTile(title_texture_rumble_pak, G_IM_FMT_RGBA, G_IM_SIZ_16b, 80, 0, 0, 0, 79, 23, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 7, 5, G_TX_NOLOD, G_TX_NOLOD),
158
gsSPTextureRectangle(220 << 2, 200 << 2, 299 << 2, 223 << 2, G_TX_RENDERTILE, 0, 0, 4 << 10, 1 << 10),
159
gsDPPipeSync(),
160
gsDPSetCycleType(G_CYC_1CYCLE),
161
gsDPSetTexturePersp(G_TP_PERSP),
162
gsDPSetTextureFilter(G_TF_BILERP),
163
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
164
gsSPEndDisplayList(),
165
};
166
#endif
167
168