Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SimpleSpring_gfx.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/SimpleSpring_1.vtx.inc.c"
5#include "entity/model/SimpleSpring_2.vtx.inc.c"
6#include "entity/model/SimpleSpring_3.vtx.inc.c"
7#include "entity/model/SimpleSpring_4.vtx.inc.c"
8#include "entity/model/SimpleSpring_5.vtx.inc.c"
9#include "entity/model/SimpleSpring_6.vtx.inc.c"
10
11INCLUDE_IMG("entity/model/SimpleSpring_tex1.png", D_0A0007E0_E68D60);
12INCLUDE_PAL("entity/model/SimpleSpring_tex1.pal", D_0A0008E0_E68E60);
14 gsDPSetTextureLUT(G_TT_RGBA16),
15 gsDPLoadTLUT_pal256(D_0A0008E0_E68E60),
16 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
17 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
18 gsDPSetTextureDetail(G_TD_CLAMP),
19 gsDPSetTextureLOD(G_TL_TILE),
20 gsDPLoadTextureBlock(D_0A0007E0_E68D60, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
21 gsDPSetTexturePersp(G_TP_PERSP),
22 gsDPSetTextureFilter(G_TF_BILERP),
23 gsSPEndDisplayList(),
24};
25
26INCLUDE_IMG("entity/model/SimpleSpring_tex2.png", D_0A000B88_E69108);
28 gsDPSetTextureLUT(G_TT_NONE),
29 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
30 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
31 gsDPSetTextureDetail(G_TD_CLAMP),
32 gsDPSetTextureLOD(G_TL_TILE),
33 gsDPLoadTextureBlock(D_0A000B88_E69108, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
34 gsDPSetTexturePersp(G_TP_PERSP),
35 gsDPSetTextureFilter(G_TF_BILERP),
36 gsSPEndDisplayList(),
37};
38
39INCLUDE_IMG("entity/model/SimpleSpring_star.png", D_0A000E00_E69380);
40INCLUDE_PAL("entity/model/SimpleSpring_star.pal", D_0A001200_E69780);
42 gsDPSetTextureLUT(G_TT_RGBA16),
43 gsDPLoadTLUT_pal256(D_0A001200_E69780),
44 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
45 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
46 gsDPSetTextureDetail(G_TD_CLAMP),
47 gsDPSetTextureLOD(G_TL_TILE),
48 gsDPLoadTextureBlock(D_0A000E00_E69380, G_IM_FMT_CI, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
49 gsDPSetTexturePersp(G_TP_PERSP),
50 gsDPSetTextureFilter(G_TF_BILERP),
51 gsSPEndDisplayList(),
52};
53
55 gsDPPipeSync(),
56 gsDPSetCycleType(G_CYC_1CYCLE),
57 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
59 gsSPClearGeometryMode(G_LIGHTING),
60 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
61 gsSPVertex(D_0A000760_E68CE0, 8, 0),
62 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
63 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
64 gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
65 gsSPEndDisplayList(),
66};
67
69 gsDPPipeSync(),
70 gsDPSetCycleType(G_CYC_1CYCLE),
71 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
72 gsSPDisplayList(Entity_SimpleSpring_LoadTexture2),
73 gsSPClearGeometryMode(G_LIGHTING),
74 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
75 gsSPVertex(D_0A000600_E68B80, 22, 0),
76 gsSP2Triangles(0, 1, 2, 0, 3, 2, 4, 0),
77 gsSP2Triangles(5, 6, 7, 0, 8, 9, 7, 0),
78 gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
79 gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
80 gsSPEndDisplayList(),
81};
82
84 gsDPPipeSync(),
85 gsDPSetCycleType(G_CYC_1CYCLE),
86 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
87 gsSPDisplayList(Entity_SimpleSpring_LoadTexture1),
88 gsSPClearGeometryMode(G_LIGHTING),
89 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
90 gsSPVertex(D_0A000380_E68900, 18, 0),
91 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
92 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
93 gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0),
94 gsSP2Triangles(8, 9, 1, 0, 8, 1, 0, 0),
95 gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
96 gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0),
97 gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0),
98 gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0),
99 gsSPVertex(&D_0A000380_E68900[18], 22, 0),
100 gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
101 gsSP2Triangles(5, 6, 7, 0, 5, 8, 9, 0),
102 gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
103 gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
104 gsSPEndDisplayList(),
105};
106
108 gsDPPipeSync(),
109 gsDPSetCycleType(G_CYC_1CYCLE),
110 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
111 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
112 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
113 gsSPClearGeometryMode(G_LIGHTING),
114 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
115 gsSPVertex(D_0A000280_E68800, 8, 0),
116 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
117 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
118 gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
119 gsSPEndDisplayList(),
120};
121
123 gsDPPipeSync(),
124 gsDPSetCycleType(G_CYC_1CYCLE),
125 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
126 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
127 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
128 gsSPClearGeometryMode(G_LIGHTING),
129 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
130 gsSPVertex(D_0A000300_E68880, 8, 0),
131 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
132 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
133 gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
134 gsSPEndDisplayList(),
135};
136
138 gsDPPipeSync(),
139 gsDPSetCycleType(G_CYC_1CYCLE),
140 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
141 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
142 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
143 gsSPClearGeometryMode(G_LIGHTING),
144 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
145 gsSPVertex(D_0A000280_E68800, 8, 0),
146 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
147 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
148 gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
149 gsSPEndDisplayList(),
150};
151
153 gsDPPipeSync(),
154 gsDPSetCycleType(G_CYC_1CYCLE),
155 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
156 gsSPDisplayList(Entity_SimpleSpring_LoadTexture1),
157 gsSPClearGeometryMode(G_LIGHTING),
158 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
159 gsSPVertex(D_0A000000_E68580, 18, 0),
160 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
161 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
162 gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0),
163 gsSP2Triangles(8, 9, 1, 0, 8, 1, 0, 0),
164 gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
165 gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0),
166 gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0),
167 gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0),
168 gsSPVertex(&D_0A000000_E68580[18], 22, 0),
169 gsSP2Triangles(0, 1, 2, 0, 3, 4, 1, 0),
170 gsSP2Triangles(5, 6, 7, 0, 8, 9, 7, 0),
171 gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
172 gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
173 gsSPEndDisplayList(),
174};
Gfx Entity_SimpleSpring_RenderPart5[]
Gfx Entity_SimpleSpring_RenderPart4[]
Gfx Entity_SimpleSpring_RenderPart1[]
Gfx Entity_SimpleSpring_RenderPart3[]
Gfx Entity_SimpleSpring_RenderPart7[]
Gfx Entity_SimpleSpring_LoadTexture1[]
Gfx Entity_SimpleSpring_RenderPart6[]
Gfx Entity_SimpleSpring_LoadTextureStar[]
Gfx Entity_SimpleSpring_RenderPart2[]
Gfx Entity_SimpleSpring_LoadTexture2[]
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)