Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
quizmo_answer.c File Reference

Go to the source code of this file.

Functions

EffectInstancequizmo_answer_main (s32 arg0, f32 arg1, f32 arg2, f32 arg3)
 

Variables

Gfx D_09000400_3A2840 []
 
Gfx D_090004A8_3A28E8 []
 

Function Documentation

◆ quizmo_answer_main()

EffectInstance * quizmo_answer_main ( s32 arg0,
f32 arg1,
f32 arg2,
f32 arg3 )

Definition at line 7 of file quizmo_answer.c.

7 {
9 EffectInstance* effect;
10
11 bp.unk_00 = 0;
12 bp.init = NULL;
13 bp.update = NULL;
14 bp.renderWorld = 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->graphics->data));
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}
#define remove_effect
#define create_effect_instance
struct EffectGraphics * graphics
Definition effects.h:2606
void * quizmoAnswer
Definition effects.h:2544
EffectData data
Definition effects.h:2605
Gfx D_090004A8_3A28E8[]
Gfx D_09000400_3A2840[]
#define VIRTUAL_TO_PHYSICAL(addr)
Definition macros.h:47
void(* renderUI)(EffectInstance *effectInst)
Definition effects.h:2655
void(* init)(EffectInstance *effectInst)
Definition effects.h:2652
void(* update)(EffectInstance *effectInst)
Definition effects.h:2653
void(* renderWorld)(EffectInstance *effectInst)
Definition effects.h:2654
Gfx * gMainGfxPos
Definition cam_main.c:15

Variable Documentation

◆ D_09000400_3A2840

Gfx D_09000400_3A2840[]
extern

Referenced by quizmo_answer_main().

◆ D_090004A8_3A28E8

Gfx D_090004A8_3A28E8[]
extern

Referenced by quizmo_answer_main().