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
4extern Gfx D_09000400_3A2840[];
5extern Gfx D_090004A8_3A28E8[];
6
7EffectInstance* quizmo_answer_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3) {
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[]
EffectInstance * quizmo_answer_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3)
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