Go to the source code of this file.
◆ windy_leaves_init()
◆ windy_leaves_update()
Definition at line 85 of file windy_leaves.c.
85 {
87 f32 temp_f0_2;
88 f32 temp_f4;
89 s32 temp_v0;
90 s32 temp_v0_2;
91 s32 temp_a1;
92 s32 i;
93 s32 temp;
94 s32 temp2;
95
100 return;
101 }
105 if (temp_a1 < 10) {
107 }
108 if (temp_v0 < 10) {
110 }
111
112 part++;
113 switch (temp) {
114 case 0:
115 for (i = 1; i < effect->
numParts; i++, part++) {
119 if (temp == 0) {
122 } else {
125 }
132 if (part->
unk_04.
x > -200.0f) {
134 } else {
136 }
139 } else {
141 }
145 } else {
148 } else {
150 }
153 } else {
155 }
158 }
162 }
163 break;
164 case 1:
165 for (i = 1; i < effect->
numParts; i++, part++) {
176 if (part->
unk_04.
x > -200.0f) {
178 } else {
180 }
183 } else {
185 }
186 part->
unk_30 *= 0.9603999999999999;
187 part->
unk_38 *= 0.9603999999999999;
188 part->
unk_14 *= 0.9603999999999999;
189 } else {
192 } else {
194 }
197 } else {
199 }
200 part->
unk_30 *= 0.9603999999999999;
201 part->
unk_38 *= 0.9603999999999999;
202 }
206 }
207 break;
208 case 2:
209 for (i = 1; i < effect->
numParts; i++, part++) {
215 }
216 break;
217 }
218}
struct WindyLeavesFXData * windyLeaves
s32 effect_simple_rand(s32, s32)
Referenced by windy_leaves_main().
◆ windy_leaves_render()
Definition at line 220 of file windy_leaves.c.
220 {
223
228
231}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void(* appendGfx)(void *)
void windy_leaves_appendGfx(void *effect)
Referenced by windy_leaves_main().
◆ windy_leaves_appendGfx()
void windy_leaves_appendGfx |
( |
void * | effect | ) |
|
Definition at line 233 of file windy_leaves.c.
233 {
236 Gfx* dlist;
237 s32 i;
238
240 if (part->
type == 0) {
242 }
243
250
251 part++;
252 for (i = 1; i < ((
EffectInstance*)effect)->numParts; i++, part++) {
263 }
264}
DisplayContext * gDisplayContext
Referenced by windy_leaves_render().
◆ windy_leaves_main()
void windy_leaves_main |
( |
s32 | type, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3 ) |
Definition at line 13 of file windy_leaves.c.
13 {
18 s32 numParts;
19 s32 i;
20
27
28 numParts = 5;
33
41
42 part++;
43 for (i = 1; i < numParts; i++, part++) {
48 part->
unk_04.
x = temp_s0_2 + 75;
52 part->
unk_20 = 360 - temp_s2;
53
54 switch (type) {
55 case 0:
61 part->
unk_1C = (f32)temp_v0_2 * 0.1;
62 break;
63 case 1:
69 part->
unk_1C = 2.0 * ((f32)temp_v0_2 * 0.1);
70 break;
71 case 2:
72 part->
unk_1C = 2.0 * ((f32)temp_v0_2 * 0.1);
75 break;
76 default:
77 break;
78 }
79 }
80}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
void windy_leaves_update(EffectInstance *effect)
void windy_leaves_render(EffectInstance *effect)
void windy_leaves_init(EffectInstance *effect)
◆ D_09001180_33E790
◆ D_09001258_33E868
◆ D_09001280_33E890