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;
59 args[2] =
vine->boneCount;
72 vine->numPoints = count;
138 f32 posX, posY, posZ;
171 vine->boneLength = boneLength;
173 for (
j = 0;
j < boneCount;
j++) {
174 if (
j == (boneCount - 1)) {
175 vine->boneRot[
j] += 90.0f;
203 boneCount =
vine->boneCount;
204 numPoints =
vine->numPoints;
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;
224 if (
nearest + 1 >= boneCount) {
225 angle =
vine->boneRot[boneCount - 1];
241 vtx->ob[0] = posX +
deltaX;
242 vtx->ob[1] = posY +
deltaY;
244 vtx->tc[0] =
j * 0x140;
247 vtx->cn[1] =
j * 120;
251 vtx->ob[0] = posX -
deltaX;
252 vtx->ob[1] = posY -
deltaY;
254 vtx->tc[0] =
j * 0x140;
257 vtx->cn[1] =
j * 120;
262 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 *)