Go to the source code of this file.
◆ blast_init()
◆ blast_update()
Definition at line 68 of file blast.c.
68 {
70
73
76 return;
77 }
78
80}
struct BlastFXData * blast
Referenced by blast_main().
◆ blast_render()
Definition at line 82 of file blast.c.
82 {
85
90
93}
void blast_appendGfx(void *effect)
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_PASS_THROUGH
void(* appendGfx)(void *)
Referenced by blast_main().
◆ blast_appendGfx()
void blast_appendGfx |
( |
void * | effect | ) |
|
Definition at line 95 of file blast.c.
95 {
101 s32 unk_20 = data->
unk_20;
102 f32 t = 256.0f;
103 s32 envAlpha = (data->
unk_20 - unk_20) * t;
104
109
118
120 G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW);
121
122 if (data->
unk_20 > 4.0f) {
123 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 255, 255, 255, 127);
124 } else {
125 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 255, 255, 128, 127);
126 }
127 t = !(s32)t;
128 gDPSetEnvColor(
gMainGfxPos++, 255, 255, 139, envAlpha);
129
132}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by blast_render().
◆ blast_main()
void blast_main |
( |
s32 | arg0, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3, |
|
|
f32 | arg4, |
|
|
s32 | arg5 ) |
Definition at line 27 of file blast.c.
27 {
32 s32 numParts = 1;
33 s32 randInt;
34
41
44
46
48
49 mem_clear(part, numParts *
sizeof(*part));
50
61
62 part->
unk_28 = arg0 == 0 ? 0 : 40.0;
63}
void blast_update(EffectInstance *effect)
void blast_render(EffectInstance *effect)
void blast_init(EffectInstance *effect)
#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)
◆ D_09001300_37ECD0
◆ D_09001378_37ED48
◆ D_090013F0_37EDC0
◆ D_09001468_37EE38
◆ D_090014E0_37EEB0
◆ D_09001558_37EF28
◆ D_090015D0_37EFA0
◆ D_09001648_37F018
◆ D_090016C0_37F090
◆ D_09001738_37F108
◆ D_090017B0_37F180
◆ D_E007C510