Go to the source code of this file.
◆ energy_orb_wave_init()
◆ energy_orb_wave_update()
Definition at line 81 of file energy_orb_wave.c.
81 {
83 f32 var_float;
85 s32 var_2;
86 s32 var_1;
87 s32 unk_1C;
88 u16 var_4;
89 s32 var_3;
90
92 effect->
flags &= ~FX_INSTANCE_FLAG_DISMISS;
94 }
95
98 }
100
103 return;
104 }
105
108 var_1 = 0xFF;
109 var_2 = 0xFF;
110
112 var_1 = (
unk_14 * 16) - 1;
113 }
115 var_1 = var_1 * data->
unk_10 / 16;
116 var_2 = data->
unk_10 * 16;
117 }
118
119 switch (unk_1C) {
120 case 0:
125 data->
unk_2C = ((s32) var_float * var_1) / 255;
126 break;
127 case 1:
128 var_3 = 255;
132 data->
unk_2C = (var_1 * var_3) / 255;
133 break;
134 case 2:
139 data->
unk_2C = ((s32) var_float * var_1) / 255;
140 break;
141 case 3:
142 var_4 = 255;
146 data->
unk_2C = (var_1 * var_4) / 255;
147 break;
148 case 4:
153 data->
unk_2C = ((s32) var_float * var_1) / 255;
154 break;
155 case 5:
156 var_4 = 255;
160 data->
unk_2C = (var_1 * var_4) / 255;
161 break;
162 case 6:
163 var_4 = 127;
167 data->
unk_2C = (var_2 * var_4) / 255;
169 break;
170 case 7:
171 var_4 = 160;
175 data->
unk_2C = (var_2 * var_4) / 255;
177 break;
178 case 8:
179 var_4 = 127;
183 data->
unk_2C = (var_2 * var_4) / 255;
185 break;
186 case 9:
187 var_4 = 160;
191 data->
unk_2C = (var_2 * var_4) / 255;
193 break;
194 default:
195 var_4 = 160;
199 data->
unk_2C = (var_2 * var_4) / 255;
201 break;
202 }
203}
struct EnergyOrbWaveFXData * energyOrbWave
@ FX_INSTANCE_FLAG_DISMISS
Referenced by energy_orb_wave_main().
◆ energy_orb_wave_render()
Definition at line 205 of file energy_orb_wave.c.
205 {
210
212 renderTask.
dist = 10;
215 if (effect82->
unk_00 >= 3) {
217 return;
218 }
219
222}
#define queue_render_task
void energy_orb_wave_appendGfx(void *effect)
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void(* appendGfx)(void *)
Referenced by energy_orb_wave_main().
◆ energy_orb_wave_appendGfx()
void energy_orb_wave_appendGfx |
( |
void * | effect | ) |
|
Definition at line 227 of file energy_orb_wave.c.
227 {
231 s32 unk_2C = data->
unk_2C;
232 s32 unk_00 = data->
unk_00;
235
238
243
249
250 if (unk_00 < 3) {
252
255
260
263
267 } else {
270 }
271
275}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by energy_orb_wave_render().
◆ energy_orb_wave_main()
EffectInstance * energy_orb_wave_main |
( |
s32 | arg0, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3, |
|
|
f32 | arg4, |
|
|
s32 | arg5 ) |
Definition at line 15 of file energy_orb_wave.c.
15 {
19 s32 numParts = 1;
20
26 bp.
effectID = EFFECT_ENERGY_ORB_WAVE;
27
32
35 if (arg5 <= 0) {
37 } else {
39 }
46
47 switch (arg0) {
48 case 0:
50 break;
51 case 1:
53 break;
54 case 2:
56 break;
57 case 3:
59 break;
60 case 4:
62 break;
63 case 5:
65 break;
66 case 6:
68 break;
69 default:
71 data->
unk_34 = -(arg4 - 0.1) / arg5;
72 break;
73 }
74
75 return effect;
76}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void energy_orb_wave_init(EffectInstance *effect)
void energy_orb_wave_update(EffectInstance *effect)
void energy_orb_wave_render(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
◆ func_E00A4648()
void func_E00A4648 |
( |
void | | ) |
|
◆ D_09001000_3A5320
◆ D_090010A8_3A53C8
◆ D_090011D0_3A54F0
◆ D_090011F0_3A5510
◆ D_09001210_3A5530