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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/GreenStompSwitch_tex.png", D_0A000280_E625F0)
 
 INCLUDE_PAL ("entity/model/GreenStompSwitch_tex.pal", D_0A000300_E62670)
 
 INCLUDE_IMG ("entity/model/GreenStompSwitch_exclamationMark.png", D_0A0003D8_E62748)
 
 INCLUDE_PAL ("entity/model/GreenStompSwitch_exclamationMark.pal", D_0A0004D8_E62848)
 

Variables

Gfx Entity_GreenStompSwitch_LoadTexture []
 
Gfx Entity_GreenStompSwitch_LoadExclMark []
 
Mtx Entity_GreenStompSwitch_mtx
 
Gfx Entity_GreenStompSwitch_RenderBase []
 
Gfx Entity_GreenStompSwitch_RenderExclMark []
 
Gfx Entity_GreenStompSwitch_RenderMain []
 
Gfx Entity_GreenStompSwitch_Render []
 

Function Documentation

◆ INCLUDE_IMG() [1/2]

INCLUDE_IMG ( "entity/model/GreenStompSwitch_tex.png" ,
D_0A000280_E625F0  )

◆ INCLUDE_PAL() [1/2]

INCLUDE_PAL ( "entity/model/GreenStompSwitch_tex.pal" ,
D_0A000300_E62670  )

◆ INCLUDE_IMG() [2/2]

INCLUDE_IMG ( "entity/model/GreenStompSwitch_exclamationMark.png" ,
D_0A0003D8_E62748  )

◆ INCLUDE_PAL() [2/2]

INCLUDE_PAL ( "entity/model/GreenStompSwitch_exclamationMark.pal" ,
D_0A0004D8_E62848  )

Variable Documentation

◆ Entity_GreenStompSwitch_LoadTexture

Gfx Entity_GreenStompSwitch_LoadTexture[]
Initial value:
= {
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A000300_E62670),
gsDPSetTextureFilter(G_TF_BILERP),
gsDPSetTextureConvert(G_TC_FILT),
gsSPEndDisplayList(),
}

Definition at line 9 of file GreenStompSwitch.c.

9 {
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};

◆ Entity_GreenStompSwitch_LoadExclMark

Gfx Entity_GreenStompSwitch_LoadExclMark[]
Initial value:
= {
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A0004D8_E62848),
gsDPSetTextureFilter(G_TF_BILERP),
gsDPSetTextureConvert(G_TC_FILT),
gsSPEndDisplayList(),
}

Definition at line 26 of file GreenStompSwitch.c.

26 {
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};

◆ Entity_GreenStompSwitch_mtx

Mtx Entity_GreenStompSwitch_mtx
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000
)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233

Definition at line 41 of file GreenStompSwitch.c.

◆ Entity_GreenStompSwitch_RenderBase

Gfx Entity_GreenStompSwitch_RenderBase[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A000080_E623F0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 1, 0, 4, 1, 0, 0),
gsSP2Triangles(3, 2, 6, 0, 3, 6, 7, 0),
gsSP2Triangles(8, 9, 5, 0, 8, 5, 4, 0),
gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0),
gsSP2Triangles(14, 15, 13, 0, 14, 13, 12, 0),
gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0),
gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
gsSP2Triangles(17, 16, 20, 0, 17, 20, 21, 0),
gsSP2Triangles(21, 20, 22, 0, 21, 22, 23, 0),
gsSP2Triangles(19, 18, 24, 0, 19, 24, 25, 0),
gsSP2Triangles(25, 24, 26, 0, 25, 26, 27, 0),
gsSP2Triangles(28, 27, 26, 0, 28, 26, 29, 0),
gsSPVertex(&D_0A000080_E623F0[22], 2, 0),
gsSPVertex(&D_0A000080_E623F0[28], 4, 2),
gsSP2Triangles(1, 0, 4, 0, 1, 4, 5, 0),
gsSP2Triangles(5, 4, 2, 0, 5, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_GreenStompSwitch_LoadTexture[]

Definition at line 48 of file GreenStompSwitch.c.

48 {
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};

◆ Entity_GreenStompSwitch_RenderExclMark

Gfx Entity_GreenStompSwitch_RenderExclMark[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A000000_E62370, 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
gsSPEndDisplayList(),
}
Gfx Entity_GreenStompSwitch_LoadExclMark[]

Definition at line 77 of file GreenStompSwitch.c.

77 {
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};

◆ Entity_GreenStompSwitch_RenderMain

Gfx Entity_GreenStompSwitch_RenderMain[]
Initial value:
= {
gsSPMatrix(&Entity_GreenStompSwitch_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Gfx Entity_GreenStompSwitch_RenderBase[]
Mtx Entity_GreenStompSwitch_mtx
Gfx Entity_GreenStompSwitch_RenderExclMark[]

Definition at line 91 of file GreenStompSwitch.c.

91 {
92 gsSPMatrix(&Entity_GreenStompSwitch_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
95 gsSPPopMatrix(G_MTX_MODELVIEW),
96 gsSPEndDisplayList(),
97};

◆ Entity_GreenStompSwitch_Render

Gfx Entity_GreenStompSwitch_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_GreenStompSwitch_RenderMain[]

Definition at line 99 of file GreenStompSwitch.c.

99 {
100 gsSPDisplayList(Entity_GreenStompSwitch_RenderMain),
101 gsSPEndDisplayList(),
102};