Go to the source code of this file.
◆ sun_init()
◆ sun_update()
Definition at line 74 of file sun.c.
74 {
76 s32 time;
77 s32 i;
78
82 }
85 }
86
90 }
93 return;
94 }
95
99 if (data->
alpha < 0) {
101 }
102 }
107 }
108
113 }
118 }
119 }
120
123 * ((
sin_deg((time * 2 + (20 * i))) * 0.01) + 0.05)
125
128 }
131 }
132 }
133}
BSS s32 PopupMenu_SelectedIndex
EffectInstanceDataPtr data
@ FX_INSTANCE_FLAG_DISMISS
Referenced by sun_main().
◆ sun_render()
Definition at line 135 of file sun.c.
135 {
138
143
146}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void(* appendGfx)(void *)
void sun_appendGfx(void *effect)
Referenced by sun_main().
◆ sun_appendGfx()
Definition at line 148 of file sun.c.
148 {
153 s32 alpha;
156 s32 i;
157
161
162 if (alpha != 0) {
165
167 guOrthoF(mtx, -1600.0f, 1600.0f, -1200.0f, 1200.0f, -100.0f, 100.0f, 1.0f);
168 } else {
169 guOrthoF(mtx, 1600.0f, -1600.0f, -1200.0f, 1200.0f, -100.0f, 100.0f, 1.0f);
170 }
171
179
183
188 }
193 }
194}
struct EffectSharedData * shared
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by sun_render().
◆ sun_main()
Definition at line 23 of file sun.c.
23 {
27 s32 numParts = 1;
28 s32 i;
29
36
39
42
45 if (duration <= 0) {
47 } else {
49 }
50 data->
pos.
x = offsetX;
51 data->
pos.
y = offsetY;
52 data->
pos.
z = offsetZ;
61
64 }
67
68 return effect;
69}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void sun_update(EffectInstance *effect)
void sun_render(EffectInstance *effect)
void sun_init(EffectInstance *effect)
◆ D_09000898_40C438
◆ D_09000980_40C520
◆ D_09000998_40C538
◆ D_090009B0_40C550
◆ D_090009C8_40C568
◆ D_090009E0_40C580
◆ D_E0120780
◆ D_E0120794