Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
GreenStompSwitch.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/GreenStompSwitch_1.vtx.inc.c"
5#include "entity/model/GreenStompSwitch_2.vtx.inc.c"
6
7INCLUDE_IMG("entity/model/GreenStompSwitch_tex.png", D_0A000280_E625F0);
8INCLUDE_PAL("entity/model/GreenStompSwitch_tex.pal", D_0A000300_E62670);
10 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
11 gsDPPipeSync(),
12 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
13 gsDPSetTextureDetail(G_TD_CLAMP),
14 gsDPSetTextureLOD(G_TL_TILE),
15 gsDPLoadTextureBlock_4b(D_0A000280_E625F0, G_IM_FMT_CI, 16, 16, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
16 gsDPSetTexturePersp(G_TP_PERSP),
17 gsDPSetTextureLUT(G_TT_RGBA16),
18 gsDPLoadTLUT_pal16(0, D_0A000300_E62670),
19 gsDPSetTextureFilter(G_TF_BILERP),
20 gsDPSetTextureConvert(G_TC_FILT),
21 gsSPEndDisplayList(),
22};
23
24INCLUDE_IMG("entity/model/GreenStompSwitch_exclamationMark.png", D_0A0003D8_E62748);
25INCLUDE_PAL("entity/model/GreenStompSwitch_exclamationMark.pal", D_0A0004D8_E62848);
27 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
28 gsDPPipeSync(),
29 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
30 gsDPSetTextureDetail(G_TD_CLAMP),
31 gsDPSetTextureLOD(G_TL_TILE),
32 gsDPLoadTextureBlock_4b(D_0A0003D8_E62748, G_IM_FMT_CI, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
33 gsDPSetTexturePersp(G_TP_PERSP),
34 gsDPSetTextureLUT(G_TT_RGBA16),
35 gsDPLoadTLUT_pal16(0, D_0A0004D8_E62848),
36 gsDPSetTextureFilter(G_TF_BILERP),
37 gsDPSetTextureConvert(G_TC_FILT),
38 gsSPEndDisplayList(),
39};
40
42 1.000000, 0.000000, 0.000000, 0.000000,
43 0.000000, 1.000000, 0.000000, 0.000000,
44 0.000000, 0.000000, 1.000000, 0.000000,
45 0.000000, 0.000000, 0.000000, 1.000000
46);
47
49 gsDPPipeSync(),
50 gsDPSetCycleType(G_CYC_1CYCLE),
51 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
53 gsSPClearGeometryMode(G_LIGHTING),
54 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
55 gsSPVertex(D_0A000080_E623F0, 30, 0),
56 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
57 gsSP2Triangles(4, 5, 1, 0, 4, 1, 0, 0),
58 gsSP2Triangles(3, 2, 6, 0, 3, 6, 7, 0),
59 gsSP2Triangles(8, 9, 5, 0, 8, 5, 4, 0),
60 gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
61 gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0),
62 gsSP2Triangles(14, 15, 13, 0, 14, 13, 12, 0),
63 gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0),
64 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
65 gsSP2Triangles(17, 16, 20, 0, 17, 20, 21, 0),
66 gsSP2Triangles(21, 20, 22, 0, 21, 22, 23, 0),
67 gsSP2Triangles(19, 18, 24, 0, 19, 24, 25, 0),
68 gsSP2Triangles(25, 24, 26, 0, 25, 26, 27, 0),
69 gsSP2Triangles(28, 27, 26, 0, 28, 26, 29, 0),
70 gsSPVertex(&D_0A000080_E623F0[22], 2, 0),
71 gsSPVertex(&D_0A000080_E623F0[28], 4, 2),
72 gsSP2Triangles(1, 0, 4, 0, 1, 4, 5, 0),
73 gsSP2Triangles(5, 4, 2, 0, 5, 2, 3, 0),
74 gsSPEndDisplayList(),
75};
76
78 gsDPPipeSync(),
79 gsDPSetCycleType(G_CYC_1CYCLE),
80 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
82 gsSPClearGeometryMode(G_LIGHTING),
83 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
84 gsSPVertex(D_0A000000_E62370, 8, 0),
85 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
86 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
87 gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
88 gsSPEndDisplayList(),
89};
90
92 gsSPMatrix(&Entity_GreenStompSwitch_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
95 gsSPPopMatrix(G_MTX_MODELVIEW),
96 gsSPEndDisplayList(),
97};
98
100 gsSPDisplayList(Entity_GreenStompSwitch_RenderMain),
101 gsSPEndDisplayList(),
102};
Gfx Entity_GreenStompSwitch_LoadExclMark[]
Gfx Entity_GreenStompSwitch_RenderBase[]
Mtx Entity_GreenStompSwitch_mtx
Gfx Entity_GreenStompSwitch_Render[]
Gfx Entity_GreenStompSwitch_RenderMain[]
Gfx Entity_GreenStompSwitch_LoadTexture[]
Gfx Entity_GreenStompSwitch_RenderExclMark[]
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233