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
57 args[0] = 3 *
vine->boneCount;
58 args[1] = (s32) &
vine->bonePos;
59 args[2] =
vine->boneCount;
72 vine->numPoints = count;
139 f32 posX, posY, posZ;
172 vine->boneLength = boneLength;
174 for (
j = 0;
j < boneCount;
j++) {
175 if (
j == (boneCount - 1)) {
176 vine->boneRot[
j] += 90.0f;
204 boneCount =
vine->boneCount;
205 numPoints =
vine->numPoints;
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;
225 if (
nearest + 1 >= boneCount) {
226 angle =
vine->boneRot[boneCount - 1];
242 vtx->ob[0] = posX +
deltaX;
243 vtx->ob[1] = posY +
deltaY;
245 vtx->tc[0] =
j * 0x140;
248 vtx->cn[1] =
j * 120;
252 vtx->ob[0] = posX -
deltaX;
253 vtx->ob[1] = posY -
deltaY;
255 vtx->tc[0] =
j * 0x140;
258 vtx->cn[1] =
j * 120;
263 for (
j = 0;
j < numPoints - 1;
j++) {
BSS s32 PopupMenu_SelectedIndex
#define queue_render_task
@ RENDER_MODE_SURFACE_OPA
s32 evt_get_variable(Evt *script, Bytecode var)
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
s32 create_worker_scene(void(*updateFunc)(void), void(*renderFunc)(void))
f32 evt_get_float_variable(Evt *script, Bytecode var)
void * heap_malloc(s32 size)
#define PIRANHA_DMA_ENTRY(name)
void N appendGfx_piranha_vines(void *data)
void N make_vine_interpolation(LavaPiranhaVine *vine)
void N worker_render_piranha_vines(void)
ApiStatus LoadPath(Evt *script, b32 isInitialCall)
ApiStatus GetNextPathPos(Evt *script, b32 isInitialCall)
void(* appendGfx)(void *)