Go to the source code of this file.
◆ PIRANHA_DMA_ENTRY
#define PIRANHA_DMA_ENTRY |
( |
| name | ) |
|
Value:
BSS s32 PopupMenu_SelectedIndex
Definition at line 5 of file part2.inc.c.
5#define PIRANHA_DMA_ENTRY(name) \
6 (s32) world_model_anim_kzn_##name##_ROM_START,\
7 (s32) world_model_anim_kzn_##name##_ROM_END,\
8 (s32) world_model_anim_kzn_##name##_VRAM
◆ make_vine_interpolation()
Definition at line 50 of file part2.inc.c.
50 {
53 s32 args[4];
54 s32 count;
55
56
57 args[0] = 3 *
vine->boneCount;
58 args[1] = (s32) &
vine->bonePos;
59 args[2] =
vine->boneCount;
63
64 count = 0;
65 do {
70 count++;
72 vine->numPoints = count;
73}
f32 evt_get_float_variable(Evt *script, Bytecode var)
ApiStatus LoadPath(Evt *script, b32 isInitialCall)
ApiStatus GetNextPathPos(Evt *script, b32 isInitialCall)
Referenced by appendGfx_piranha_vines().
◆ appendGfx_piranha_vines()
void N appendGfx_piranha_vines |
( |
void * | data | ) |
|
Definition at line 119 of file part2.inc.c.
119 {
122
124 s32 boneCount;
125
130
134
135 s32 numPoints;
137
139 f32 posX, posY, posZ;
140
142 return;
143 }
144
149
150 switch (i) {
151 default:
152 return;
153 case 0:
154 boneCount = 9;
155 boneLength = 10.0f;
156 break;
157 case 1:
158 boneCount = 7;
159 boneLength = 8.0f;
160 break;
161 case 2:
162 boneCount = 7;
163 boneLength = 8.0f;
164 break;
165 case 3:
166 boneCount = 5;
167 boneLength = 8.0f;
168 break;
169 }
170
172 vine->boneLength = boneLength;
173
174 for (
j = 0;
j < boneCount;
j++) {
175 if (
j == (boneCount - 1)) {
176 vine->boneRot[
j] += 90.0f;
177 } else {
184 }
185
187 }
188 }
189
191 }
192
194 }
195
198
202
204 boneCount =
vine->boneCount;
205 numPoints =
vine->numPoints;
206
207
208
209
210
215
216 for (
j = 0;
j < numPoints;
j++) {
217 posX =
vine->points[
j].x;
218 posY =
vine->points[
j].y;
219 posZ =
vine->points[
j].z;
220
224
225 if (
nearest + 1 >= boneCount) {
226 angle =
vine->boneRot[boneCount - 1];
227 } else {
232 }
235 }
237 }
238
241
242 vtx->ob[0] = posX +
deltaX;
243 vtx->ob[1] = posY +
deltaY;
244 vtx->ob[2] = posZ;
245 vtx->tc[0] =
j * 0x140;
246 vtx->tc[1] = 0;
248 vtx->cn[1] =
j * 120;
250 vtx++;
251
252 vtx->ob[0] = posX -
deltaX;
253 vtx->ob[1] = posY -
deltaY;
254 vtx->ob[2] = posZ;
255 vtx->tc[0] =
j * 0x140;
256 vtx->tc[1] = 0x400;
258 vtx->cn[1] =
j * 120;
260 vtx++;
261 }
262
263 for (
j = 0;
j < numPoints - 1;
j++) {
266 }
267 }
268
270}
s32 evt_get_variable(Evt *script, Bytecode var)
void N make_vine_interpolation(LavaPiranhaVine *vine)
Referenced by worker_render_piranha_vines().
◆ worker_render_piranha_vines()
void N worker_render_piranha_vines |
( |
void | | ) |
|
Definition at line 272 of file part2.inc.c.
272 {
274
279
281}
#define queue_render_task
@ RENDER_MODE_SURFACE_OPA
void N appendGfx_piranha_vines(void *data)
void(* appendGfx)(void *)