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 {
55
56
57 args[0] = 3 *
vine->boneCount;
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 118 of file part2.inc.c.
118 {
121
124
129
133
136
138 f32 posX, posY, posZ;
139
141 return;
142 }
143
148
149 switch (i) {
150 default:
151 return;
152 case 0:
153 boneCount = 9;
154 boneLength = 10.0f;
155 break;
156 case 1:
157 boneCount = 7;
158 boneLength = 8.0f;
159 break;
160 case 2:
161 boneCount = 7;
162 boneLength = 8.0f;
163 break;
164 case 3:
165 boneCount = 5;
166 boneLength = 8.0f;
167 break;
168 }
169
171 vine->boneLength = boneLength;
172
173 for (
j = 0;
j < boneCount;
j++) {
174 if (
j == (boneCount - 1)) {
175 vine->boneRot[
j] += 90.0f;
176 } else {
183 }
184
186 }
187 }
188
190 }
191
193 }
194
197
201
203 boneCount =
vine->boneCount;
204 numPoints =
vine->numPoints;
205
206
207
208
209
214
215 for (
j = 0;
j < numPoints;
j++) {
216 posX =
vine->points[
j].x;
217 posY =
vine->points[
j].y;
218 posZ =
vine->points[
j].z;
219
223
224 if (
nearest + 1 >= boneCount) {
225 angle =
vine->boneRot[boneCount - 1];
226 } else {
231 }
234 }
236 }
237
240
241 vtx->ob[0] = posX +
deltaX;
242 vtx->ob[1] = posY +
deltaY;
243 vtx->ob[2] = posZ;
244 vtx->tc[0] =
j * 0x140;
245 vtx->tc[1] = 0;
247 vtx->cn[1] =
j * 120;
249 vtx++;
250
251 vtx->ob[0] = posX -
deltaX;
252 vtx->ob[1] = posY -
deltaY;
253 vtx->ob[2] = posZ;
254 vtx->tc[0] =
j * 0x140;
255 vtx->tc[1] = 0x400;
257 vtx->cn[1] =
j * 120;
259 vtx++;
260 }
261
262 for (
j = 0;
j < numPoints - 1;
j++) {
265 }
266 }
267
269}
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 271 of file part2.inc.c.
271 {
273
278
280}
#define queue_render_task
@ RENDER_MODE_SURFACE_OPA
void N appendGfx_piranha_vines(void *data)
void(* appendGfx)(void *)