Go to the source code of this file.
◆ lil_oink_appendGfx()
void lil_oink_appendGfx |
( |
void * | effect | ) |
|
Definition at line 171 of file lil_oink.c.
171 {
176 s32 i;
177
180
183
186 guPositionF(mtxTransform, 0.0f, 180.0f - data->
rot[i], 0.0f, 1.0f,
189
191 G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
194 f32 shineVariation =
sin_deg(angle) * 63.0f;
195 s8 primColor = shineVariation + 63.0f;
196
197 gDPSetPrimColor(
gMainGfxPos++, 0, 0, primColor, primColor, primColor, 0);
198 }
201 }
202 angle += 20;
203 }
204}
struct LilOinkFXData * lilOink
struct EffectGraphics * graphics
Gfx * lil_oink_FramesGfx[][3]
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by lil_oink_render().
◆ lil_oink_init()
◆ lil_oink_update()
Definition at line 92 of file lil_oink.c.
92 {
94 s32 i;
95
97
100 s32 animDone = FALSE;
101
102 switch (data->
anim[i]) {
104 animDone = TRUE;
105 break;
108 animDone = TRUE;
109 break;
113 if (time >= 36) {
114 animDone = TRUE;
116 }
117 break;
121 animDone = TRUE;
122 if (time >= 9) {
125 }
126 break;
130 if (!(time < 9)) {
131 animDone = TRUE;
134 }
135 break;
137 default:
140 if (!(time < 36)) {
141 animDone = TRUE;
144 }
145 break;
146 }
148 if (animDone) {
150 data->
flags[i] &= ~LIL_OINK_FLAG_ANIM_CHANGED;
153 }
154 }
155 }
156}
@ LIL_OINK_FLAG_ANIM_CHANGED
s8 lil_oink_AnimateGfxSelect[]
Referenced by lil_oink_main().
◆ lil_oink_render()
Definition at line 158 of file lil_oink.c.
158 {
161
164 renderTask.
dist = 10;
166
169}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void lil_oink_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by lil_oink_main().
◆ lil_oink_main()
EffectInstance * lil_oink_main |
( |
s32 | arg0, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3, |
|
|
f32 | arg4, |
|
|
s32 | arg5 ) |
Definition at line 52 of file lil_oink.c.
52 {
56 s32 numParts = 1;
57 s32 i;
58
65
70
73
84 }
85
86 return effect;
87}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void lil_oink_render(EffectInstance *effect)
void lil_oink_init(EffectInstance *effect)
void lil_oink_update(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
◆ D_09002D70_401FC0
◆ D_09002DD8_402028
◆ D_09002E70_4020C0
◆ D_09002E98_4020E8
◆ D_09002F30_402180
◆ D_09002FC8_402218
◆ D_09003060_4022B0
◆ D_090030F8_402348
◆ D_09003190_4023E0
◆ D_09003228_402478
◆ D_090032C0_402510
◆ D_09003358_4025A8
◆ D_09003370_4025C0
◆ D_09003388_4025D8
◆ lil_oink_FramesGfx
Gfx* lil_oink_FramesGfx[][3] |
◆ D_E0114718
◆ lil_oink_AnimateGfxSelect
s8 lil_oink_AnimateGfxSelect[] = { 1, 2, 1, 0 } |