Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/actors/coin/model.inc.c
7855 views
1
// Coin
2
3
// 0x030056C0
4
static const Vtx coin_seg3_vertex_030056C0[] = {
5
{{{ -32, 0, 0}, 0, { 0, 1984}, {0xff, 0xff, 0x00, 0xff}}},
6
{{{ 32, 0, 0}, 0, { 1984, 1984}, {0xff, 0xff, 0x00, 0xff}}},
7
{{{ 32, 64, 0}, 0, { 1984, 0}, {0xff, 0xff, 0x00, 0xff}}},
8
{{{ -32, 64, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
9
};
10
11
// 0x03005700
12
static const Vtx coin_seg3_vertex_03005700[] = {
13
{{{ -50, 0, 0}, 0, { 0, 1984}, {0x78, 0x78, 0xff, 0xff}}},
14
{{{ 50, 0, 0}, 0, { 1984, 1984}, {0x78, 0x78, 0xff, 0xff}}},
15
{{{ 50, 100, 0}, 0, { 1984, 0}, {0x78, 0x78, 0xff, 0xff}}},
16
{{{ -50, 100, 0}, 0, { 0, 0}, {0x78, 0x78, 0xff, 0xff}}},
17
};
18
19
// 0x03005740
20
static const Vtx coin_seg3_vertex_03005740[] = {
21
{{{ -35, 0, 0}, 0, { 0, 1984}, {0xff, 0x00, 0x00, 0xff}}},
22
{{{ 35, 0, 0}, 0, { 1984, 1984}, {0xff, 0x00, 0x00, 0xff}}},
23
{{{ 35, 70, 0}, 0, { 1984, 0}, {0xff, 0x00, 0x00, 0xff}}},
24
{{{ -35, 70, 0}, 0, { 0, 0}, {0xff, 0x00, 0x00, 0xff}}},
25
};
26
27
// 0x03005780
28
ALIGNED8 static const Texture coin_seg3_texture_03005780[] = {
29
#include "actors/coin/coin_front.ia16.inc.c"
30
};
31
32
// 0x03005F80
33
ALIGNED8 static const Texture coin_seg3_texture_03005F80[] = {
34
#include "actors/coin/coin_tilt_right.ia16.inc.c"
35
};
36
37
// 0x03006780
38
ALIGNED8 static const Texture coin_seg3_texture_03006780[] = {
39
#include "actors/coin/coin_side.ia16.inc.c"
40
};
41
42
// 0x03006F80
43
ALIGNED8 static const Texture coin_seg3_texture_03006F80[] = {
44
#include "actors/coin/coin_tilt_left.ia16.inc.c"
45
};
46
47
// 0x03007780 - 0x030077D0
48
const Gfx coin_seg3_dl_03007780[] = {
49
gsDPPipeSync(),
50
gsSPClearGeometryMode(G_LIGHTING),
51
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
52
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
53
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
54
gsDPLoadSync(),
55
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
56
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),
57
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
58
gsSPEndDisplayList(),
59
};
60
61
// 0x030077D0 - 0x03007800
62
const Gfx coin_seg3_dl_030077D0[] = {
63
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
64
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
65
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
66
gsSPSetGeometryMode(G_LIGHTING),
67
gsSPEndDisplayList(),
68
};
69
70
// 0x03007800 - 0x03007828
71
const Gfx coin_seg3_dl_03007800[] = {
72
gsDPPipeSync(),
73
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03005780),
74
gsSPDisplayList(coin_seg3_dl_03007780),
75
gsSPVertex(coin_seg3_vertex_030056C0, 4, 0),
76
gsSPBranchList(coin_seg3_dl_030077D0),
77
};
78
79
// 0x03007828 - 0x03007850
80
const Gfx coin_seg3_dl_03007828[] = {
81
gsDPPipeSync(),
82
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03005F80),
83
gsSPDisplayList(coin_seg3_dl_03007780),
84
gsSPVertex(coin_seg3_vertex_030056C0, 4, 0),
85
gsSPBranchList(coin_seg3_dl_030077D0),
86
};
87
88
// 0x03007850 - 0x03007878
89
const Gfx coin_seg3_dl_03007850[] = {
90
gsDPPipeSync(),
91
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03006780),
92
gsSPDisplayList(coin_seg3_dl_03007780),
93
gsSPVertex(coin_seg3_vertex_030056C0, 4, 0),
94
gsSPBranchList(coin_seg3_dl_030077D0),
95
};
96
97
// 0x03007878 - 0x030078A0
98
const Gfx coin_seg3_dl_03007878[] = {
99
gsDPPipeSync(),
100
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03006F80),
101
gsSPDisplayList(coin_seg3_dl_03007780),
102
gsSPVertex(coin_seg3_vertex_030056C0, 4, 0),
103
gsSPBranchList(coin_seg3_dl_030077D0),
104
};
105
106
// 0x030078A0 - 0x030078C8
107
const Gfx coin_seg3_dl_030078A0[] = {
108
gsDPPipeSync(),
109
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03005780),
110
gsSPDisplayList(coin_seg3_dl_03007780),
111
gsSPVertex(coin_seg3_vertex_03005700, 4, 0),
112
gsSPBranchList(coin_seg3_dl_030077D0),
113
};
114
115
// 0x030078C8 - 0x030078F0
116
const Gfx coin_seg3_dl_030078C8[] = {
117
gsDPPipeSync(),
118
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03005F80),
119
gsSPDisplayList(coin_seg3_dl_03007780),
120
gsSPVertex(coin_seg3_vertex_03005700, 4, 0),
121
gsSPBranchList(coin_seg3_dl_030077D0),
122
};
123
124
// 0x030078F0 - 0x03007918
125
const Gfx coin_seg3_dl_030078F0[] = {
126
gsDPPipeSync(),
127
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03006780),
128
gsSPDisplayList(coin_seg3_dl_03007780),
129
gsSPVertex(coin_seg3_vertex_03005700, 4, 0),
130
gsSPBranchList(coin_seg3_dl_030077D0),
131
};
132
133
// 0x03007918 - 0x03007940
134
const Gfx coin_seg3_dl_03007918[] = {
135
gsDPPipeSync(),
136
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03006F80),
137
gsSPDisplayList(coin_seg3_dl_03007780),
138
gsSPVertex(coin_seg3_vertex_03005700, 4, 0),
139
gsSPBranchList(coin_seg3_dl_030077D0),
140
};
141
142
// 0x03007940 - 0x03007968
143
const Gfx coin_seg3_dl_03007940[] = {
144
gsDPPipeSync(),
145
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03005780),
146
gsSPDisplayList(coin_seg3_dl_03007780),
147
gsSPVertex(coin_seg3_vertex_03005740, 4, 0),
148
gsSPBranchList(coin_seg3_dl_030077D0),
149
};
150
151
// 0x03007968 - 0x03007990
152
const Gfx coin_seg3_dl_03007968[] = {
153
gsDPPipeSync(),
154
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03005F80),
155
gsSPDisplayList(coin_seg3_dl_03007780),
156
gsSPVertex(coin_seg3_vertex_03005740, 4, 0),
157
gsSPBranchList(coin_seg3_dl_030077D0),
158
};
159
160
// 0x03007990 - 0x030079B8
161
const Gfx coin_seg3_dl_03007990[] = {
162
gsDPPipeSync(),
163
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03006780),
164
gsSPDisplayList(coin_seg3_dl_03007780),
165
gsSPVertex(coin_seg3_vertex_03005740, 4, 0),
166
gsSPBranchList(coin_seg3_dl_030077D0),
167
};
168
169
// 0x030079B8 - 0x030079E0
170
const Gfx coin_seg3_dl_030079B8[] = {
171
gsDPPipeSync(),
172
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, coin_seg3_texture_03006F80),
173
gsSPDisplayList(coin_seg3_dl_03007780),
174
gsSPVertex(coin_seg3_vertex_03005740, 4, 0),
175
gsSPBranchList(coin_seg3_dl_030077D0),
176
};
177
178