Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
ScriptSpring_gfx.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
include_asset.h
"
3
4
#include "entity/model/ScriptSpring_1.vtx.inc.c"
5
#include "entity/model/ScriptSpring_2.vtx.inc.c"
6
#include "entity/model/ScriptSpring_3.vtx.inc.c"
7
#include "entity/model/ScriptSpring_4.vtx.inc.c"
8
#include "entity/model/ScriptSpring_5.vtx.inc.c"
9
#include "entity/model/ScriptSpring_6.vtx.inc.c"
10
#include "entity/model/ScriptSpring_7.vtx.inc.c"
11
12
INCLUDE_IMG
(
"entity/model/ScriptSpring_tex1.png"
,
D_0A000860_E66000
);
13
INCLUDE_PAL
(
"entity/model/ScriptSpring_tex1.pal"
,
D_0A000960_E66100
);
14
Gfx
Entity_ScriptSpring_LoadTexture1
[] = {
15
gsDPSetTextureLUT
(
G_TT_RGBA16
),
16
gsDPLoadTLUT_pal256
(
D_0A000960_E66100
),
17
gsSPTexture
(0xFFFF, 0xFFFF, 0,
G_TX_RENDERTILE
,
G_ON
),
18
gsDPSetCombineMode
(
G_CC_MODULATEIA
,
G_CC_MODULATEIA
),
19
gsDPSetTextureDetail
(
G_TD_CLAMP
),
20
gsDPSetTextureLOD
(
G_TL_TILE
),
21
gsDPLoadTextureBlock
(
D_0A000860_E66000
,
G_IM_FMT_CI
,
G_IM_SIZ_8b
, 16, 16, 0,
G_TX_NOMIRROR
|
G_TX_CLAMP
,
G_TX_NOMIRROR
|
G_TX_CLAMP
, 4, 4,
G_TX_NOLOD
,
G_TX_NOLOD
),
22
gsDPSetTexturePersp
(
G_TP_PERSP
),
23
gsDPSetTextureFilter
(
G_TF_BILERP
),
24
gsSPEndDisplayList
(),
25
};
26
27
INCLUDE_IMG
(
"entity/model/ScriptSpring_tex2.png"
,
D_0A000C08_E663A8
);
28
INCLUDE_PAL
(
"entity/model/ScriptSpring_tex2.pal"
,
D_0A000D08_E664A8
);
29
Gfx
Entity_ScriptSpring_LoadTexture2
[] = {
30
gsDPSetTextureLUT
(
G_TT_RGBA16
),
31
gsDPLoadTLUT_pal256
(
D_0A000D08_E664A8
),
32
gsSPTexture
(0xFFFF, 0xFFFF, 0,
G_TX_RENDERTILE
,
G_ON
),
33
gsDPSetCombineMode
(
G_CC_MODULATEIA
,
G_CC_MODULATEIA
),
34
gsDPSetTextureDetail
(
G_TD_CLAMP
),
35
gsDPSetTextureLOD
(
G_TL_TILE
),
36
gsDPLoadTextureBlock
(
D_0A000C08_E663A8
,
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
),
37
gsDPSetTexturePersp
(
G_TP_PERSP
),
38
gsDPSetTextureFilter
(
G_TF_BILERP
),
39
gsSPEndDisplayList
(),
40
};
41
42
INCLUDE_IMG
(
"entity/model/ScriptSpring_star.png"
,
D_0A000FB0_E66750
);
43
INCLUDE_PAL
(
"entity/model/ScriptSpring_star.pal"
,
D_0A0013B0_E66B50
);
44
Gfx
Entity_ScriptSpring_LoadTextureStar
[] = {
45
gsDPSetTextureLUT
(
G_TT_RGBA16
),
46
gsDPLoadTLUT_pal256
(
D_0A0013B0_E66B50
),
47
gsSPTexture
(0xFFFF, 0xFFFF, 0,
G_TX_RENDERTILE
,
G_ON
),
48
gsDPSetCombineMode
(
G_CC_MODULATEIA
,
G_CC_MODULATEIA
),
49
gsDPSetTextureDetail
(
G_TD_CLAMP
),
50
gsDPSetTextureLOD
(
G_TL_TILE
),
51
gsDPLoadTextureBlock
(
D_0A000FB0_E66750
,
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
),
52
gsDPSetTexturePersp
(
G_TP_PERSP
),
53
gsDPSetTextureFilter
(
G_TF_BILERP
),
54
gsSPEndDisplayList
(),
55
};
56
57
Gfx
Entity_ScriptSpring_RenderPart2
[] = {
58
gsDPPipeSync
(),
59
gsDPSetCycleType
(
G_CYC_1CYCLE
),
60
gsDPSetRenderMode
(
G_RM_AA_ZB_TEX_EDGE
,
G_RM_AA_ZB_TEX_EDGE2
),
61
gsSPDisplayList
(
Entity_ScriptSpring_LoadTextureStar
),
62
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
63
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
64
gsSPVertex
(
D_0A0007E0_E65F80
, 8, 0),
65
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
66
gsSP2Triangles
(0, 3, 4, 0, 0, 4, 5, 0),
67
gsSP2Triangles
(0, 5, 6, 0, 0, 6, 7, 0),
68
gsSPEndDisplayList
(),
69
};
70
71
Gfx
Entity_ScriptSpring_RenderPart6
[] = {
72
gsDPPipeSync
(),
73
gsDPSetCycleType
(
G_CYC_1CYCLE
),
74
gsDPSetRenderMode
(
G_RM_AA_ZB_OPA_SURF
,
G_RM_AA_ZB_OPA_SURF2
),
75
gsSPDisplayList
(
Entity_ScriptSpring_LoadTexture1
),
76
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
77
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
78
gsSPVertex
(
D_0A000680_E65E20
, 22, 0),
79
gsSP2Triangles
(0, 1, 2, 0, 3, 2, 4, 0),
80
gsSP2Triangles
(5, 6, 7, 0, 8, 9, 7, 0),
81
gsSP2Triangles
(10, 11, 12, 0, 13, 14, 15, 0),
82
gsSP2Triangles
(16, 17, 18, 0, 19, 20, 21, 0),
83
gsSPEndDisplayList
(),
84
};
85
86
Gfx
Entity_ScriptSpring_RenderPart1
[] = {
87
gsDPPipeSync
(),
88
gsDPSetCycleType
(
G_CYC_1CYCLE
),
89
gsDPSetRenderMode
(
G_RM_AA_ZB_OPA_SURF
,
G_RM_AA_ZB_OPA_SURF2
),
90
gsSPDisplayList
(
Entity_ScriptSpring_LoadTexture2
),
91
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
92
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
93
gsSPVertex
(
D_0A000400_E65BA0
, 18, 0),
94
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
95
gsSP2Triangles
(3, 2, 4, 0, 3, 4, 5, 0),
96
gsSP2Triangles
(5, 4, 6, 0, 5, 6, 7, 0),
97
gsSP2Triangles
(8, 9, 1, 0, 8, 1, 0, 0),
98
gsSP2Triangles
(10, 11, 9, 0, 10, 9, 8, 0),
99
gsSP2Triangles
(12, 13, 11, 0, 12, 11, 10, 0),
100
gsSP2Triangles
(14, 15, 16, 0, 14, 16, 17, 0),
101
gsSP2Triangles
(7, 6, 15, 0, 7, 15, 14, 0),
102
gsSPVertex
(&
D_0A000400_E65BA0
[18], 22, 0),
103
gsSP2Triangles
(0, 1, 2, 0, 1, 3, 4, 0),
104
gsSP2Triangles
(5, 6, 7, 0, 5, 8, 9, 0),
105
gsSP2Triangles
(10, 11, 12, 0, 13, 14, 15, 0),
106
gsSP2Triangles
(16, 17, 18, 0, 19, 20, 21, 0),
107
gsSPEndDisplayList
(),
108
};
109
110
Gfx
Entity_ScriptSpring_RenderPart3
[] = {
111
gsDPPipeSync
(),
112
gsDPSetCycleType
(
G_CYC_1CYCLE
),
113
gsDPSetRenderMode
(
G_RM_AA_ZB_OPA_SURF
,
G_RM_AA_ZB_OPA_SURF2
),
114
gsDPSetCombineMode
(
G_CC_SHADE
,
G_CC_SHADE
),
115
gsSPTexture
(0x0080, 0x0080, 0,
G_TX_RENDERTILE
,
G_OFF
),
116
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
117
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
118
gsSPVertex
(
D_0A000380_E65B20
, 8, 0),
119
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
120
gsSP2Triangles
(0, 3, 4, 0, 0, 4, 5, 0),
121
gsSP2Triangles
(0, 5, 6, 0, 0, 6, 7, 0),
122
gsSPEndDisplayList
(),
123
};
124
125
Gfx
Entity_ScriptSpring_RenderPart4
[] = {
126
gsDPPipeSync
(),
127
gsDPSetCycleType
(
G_CYC_1CYCLE
),
128
gsDPSetRenderMode
(
G_RM_AA_ZB_OPA_SURF
,
G_RM_AA_ZB_OPA_SURF2
),
129
gsDPSetCombineMode
(
G_CC_SHADE
,
G_CC_SHADE
),
130
gsSPTexture
(0x0080, 0x0080, 0,
G_TX_RENDERTILE
,
G_OFF
),
131
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
132
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
133
gsSPVertex
(
D_0A000300_E65AA0
, 8, 0),
134
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
135
gsSP2Triangles
(0, 3, 4, 0, 0, 4, 5, 0),
136
gsSP2Triangles
(0, 5, 6, 0, 0, 6, 7, 0),
137
gsSPEndDisplayList
(),
138
};
139
140
Gfx
Entity_ScriptSpring_RenderPart5
[] = {
141
gsDPPipeSync
(),
142
gsDPSetCycleType
(
G_CYC_1CYCLE
),
143
gsDPSetRenderMode
(
G_RM_AA_ZB_OPA_SURF
,
G_RM_AA_ZB_OPA_SURF2
),
144
gsDPSetCombineMode
(
G_CC_SHADE
,
G_CC_SHADE
),
145
gsSPTexture
(0x0080, 0x0080, 0,
G_TX_RENDERTILE
,
G_OFF
),
146
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
147
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
148
gsSPVertex
(
D_0A000280_E65A20
, 8, 0),
149
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
150
gsSP2Triangles
(0, 3, 4, 0, 0, 4, 5, 0),
151
gsSP2Triangles
(0, 5, 6, 0, 0, 6, 7, 0),
152
gsSPEndDisplayList
(),
153
};
154
155
Gfx
Entity_ScriptSpring_RenderPart7
[] = {
156
gsDPPipeSync
(),
157
gsDPSetCycleType
(
G_CYC_1CYCLE
),
158
gsDPSetRenderMode
(
G_RM_AA_ZB_OPA_SURF
,
G_RM_AA_ZB_OPA_SURF2
),
159
gsSPDisplayList
(
Entity_ScriptSpring_LoadTexture2
),
160
gsSPClearGeometryMode
(
G_CULL_BACK
|
G_LIGHTING
),
161
gsSPSetGeometryMode
(
G_SHADING_SMOOTH
),
162
gsSPVertex
(
D_0A000000_E657A0
, 18, 0),
163
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
164
gsSP2Triangles
(3, 2, 4, 0, 3, 4, 5, 0),
165
gsSP2Triangles
(5, 4, 6, 0, 5, 6, 7, 0),
166
gsSP2Triangles
(8, 9, 1, 0, 8, 1, 0, 0),
167
gsSP2Triangles
(10, 11, 9, 0, 10, 9, 8, 0),
168
gsSP2Triangles
(12, 13, 11, 0, 12, 11, 10, 0),
169
gsSP2Triangles
(14, 15, 16, 0, 14, 16, 17, 0),
170
gsSP2Triangles
(7, 6, 15, 0, 7, 15, 14, 0),
171
gsSPVertex
(&
D_0A000000_E657A0
[18], 22, 0),
172
gsSP2Triangles
(0, 1, 2, 0, 3, 4, 1, 0),
173
gsSP2Triangles
(5, 6, 7, 0, 8, 9, 7, 0),
174
gsSP2Triangles
(10, 11, 12, 0, 13, 14, 15, 0),
175
gsSP2Triangles
(16, 17, 18, 0, 19, 20, 21, 0),
176
gsSPEndDisplayList
(),
177
};
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
Entity_ScriptSpring_RenderPart5
Gfx Entity_ScriptSpring_RenderPart5[]
Definition
ScriptSpring_gfx.c:140
Entity_ScriptSpring_RenderPart4
Gfx Entity_ScriptSpring_RenderPart4[]
Definition
ScriptSpring_gfx.c:125
Entity_ScriptSpring_RenderPart3
Gfx Entity_ScriptSpring_RenderPart3[]
Definition
ScriptSpring_gfx.c:110
Entity_ScriptSpring_RenderPart2
Gfx Entity_ScriptSpring_RenderPart2[]
Definition
ScriptSpring_gfx.c:57
Entity_ScriptSpring_RenderPart6
Gfx Entity_ScriptSpring_RenderPart6[]
Definition
ScriptSpring_gfx.c:71
Entity_ScriptSpring_RenderPart1
Gfx Entity_ScriptSpring_RenderPart1[]
Definition
ScriptSpring_gfx.c:86
Entity_ScriptSpring_LoadTextureStar
Gfx Entity_ScriptSpring_LoadTextureStar[]
Definition
ScriptSpring_gfx.c:44
Entity_ScriptSpring_LoadTexture1
Gfx Entity_ScriptSpring_LoadTexture1[]
Definition
ScriptSpring_gfx.c:14
Entity_ScriptSpring_LoadTexture2
Gfx Entity_ScriptSpring_LoadTexture2[]
Definition
ScriptSpring_gfx.c:29
Entity_ScriptSpring_RenderPart7
Gfx Entity_ScriptSpring_RenderPart7[]
Definition
ScriptSpring_gfx.c:155
include_asset.h
INCLUDE_PAL
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
Definition
include_asset.h:30
INCLUDE_IMG
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Definition
include_asset.h:27
src
entity
model
ScriptSpring_gfx.c
Generated by
1.10.0