Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
quizmo_answer.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
effects_internal.h
"
3
4
extern
Gfx
D_09000400_3A2840
[];
5
extern
Gfx
D_090004A8_3A28E8
[];
6
7
EffectInstance
*
quizmo_answer_main
(s32
arg0
,
f32
arg1
,
f32
arg2
,
f32
arg3
) {
8
EffectBlueprint
bp
;
9
EffectInstance
* effect;
10
11
bp
.unk_00 = 0;
12
bp
.init =
NULL
;
13
bp
.update =
NULL
;
14
bp
.renderScene =
NULL
;
15
bp
.renderUI =
NULL
;
16
bp
.
effectID
=
EFFECT_QUIZMO_ANSWER
;
17
18
effect =
create_effect_instance
(&
bp
);
19
effect->
data
.
quizmoAnswer
=
NULL
;
20
21
gDPPipeSync
(
gMainGfxPos
++);
22
gSPSegment
(
gMainGfxPos
++, 0x09,
VIRTUAL_TO_PHYSICAL
(effect->
shared
->
graphics
));
23
24
if
(
arg0
== 0) {
25
gSPDisplayList
(
gMainGfxPos
++,
D_09000400_3A2840
);
26
gDPSetPrimColor
(
gMainGfxPos
++, 0, 0, 255, 64, 64, 230);
27
}
else
{
28
gSPDisplayList
(
gMainGfxPos
++,
D_090004A8_3A28E8
);
29
gDPSetPrimColor
(
gMainGfxPos
++, 0, 0, 80, 80, 255, 230);
30
}
31
32
gDPSetScissor
(
gMainGfxPos
++,
G_SC_NON_INTERLACE
, 0, 0, 320, 240);
33
gSPTextureRectangle
(
gMainGfxPos
++, 512, 304, 768, 560,
G_TX_RENDERTILE
, 0, 1024, 1024, 1024);
34
gDPPipeSync
(
gMainGfxPos
++);
35
gSPSegment
(
gMainGfxPos
++, 0x00,
NULL
);
36
37
remove_effect
(effect);
38
return
NULL
;
39
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
remove_effect
#define remove_effect
Definition
effect_shims.h:50
create_effect_instance
#define create_effect_instance
Definition
effect_shims.h:49
EffectInstanceDataPtr::quizmoAnswer
void * quizmoAnswer
Definition
effects.h:2544
EffectInstance::data
EffectInstanceDataPtr data
Definition
effects.h:2605
EffectInstance::effectID
s32 effectID
Definition
effects.h:2603
EffectInstance::shared
struct EffectSharedData * shared
Definition
effects.h:2606
EffectInstance
Definition
effects.h:2601
effects_internal.h
D_090004A8_3A28E8
Gfx D_090004A8_3A28E8[]
quizmo_answer_main
EffectInstance * quizmo_answer_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3)
Definition
quizmo_answer.c:7
D_09000400_3A2840
Gfx D_09000400_3A2840[]
VIRTUAL_TO_PHYSICAL
#define VIRTUAL_TO_PHYSICAL(addr)
Definition
macros.h:47
EffectBlueprint
Definition
effects.h:2649
EffectSharedData::graphics
s32 * graphics
Definition
effects.h:2666
gMainGfxPos
Gfx * gMainGfxPos
Definition
cam_main.c:15
src
effects
quizmo_answer.c
Generated by
1.10.0