Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
BlueWarpPipe.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
include_asset.h
"
3
4
#include "entity/model/BlueWarpPipe_1.vtx.inc.c"
5
#include "entity/model/BlueWarpPipe_2.vtx.inc.c"
6
#include "entity/model/BlueWarpPipe_3.vtx.inc.c"
7
8
INCLUDE_IMG
(
"entity/model/BlueWarpPipe_texBase.png"
,
D_0A000320_E58FF0
);
9
INCLUDE_PAL
(
"entity/model/BlueWarpPipe_texBase.pal"
,
D_0A0003A0_E59070
);
10
Gfx
Entity_BlueWarpPipe_LoadTextureBase
[] = {
11
gsSPTexture
(0xFFFF, 0xFFFF, 0,
G_TX_RENDERTILE
,
G_ON
),
12
gsDPPipeSync
(),
13
gsDPSetTextureDetail
(
G_TD_CLAMP
),
14
gsDPSetTextureLOD
(
G_TL_TILE
),
15
gsDPLoadTextureBlock_4b
(
D_0A000320_E58FF0
,
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_0A0003A0_E59070
),
19
gsDPSetTextureFilter
(
G_TF_BILERP
),
20
gsDPSetTextureConvert
(
G_TC_FILT
),
21
gsSPEndDisplayList
(),
22
};
23
24
INCLUDE_IMG
(
"entity/model/BlueWarpPipe_texPipe.png"
,
D_0A000470_E59140
);
25
INCLUDE_PAL
(
"entity/model/BlueWarpPipe_texPipe.pal"
,
D_0A000570_E59240
);
26
Gfx
Entity_BlueWarpPipe_LoadTexturePipe
[] = {
27
gsSPTexture
(0xFFFF, 0xFFFF, 0,
G_TX_RENDERTILE
,
G_ON
),
28
gsDPPipeSync
(),
29
gsDPSetTextureDetail
(
G_TD_CLAMP
),
30
gsDPSetTextureLOD
(
G_TL_TILE
),
31
gsDPLoadTextureBlock_4b
(
D_0A000470_E59140
,
G_IM_FMT_CI
, 32, 16, 0,
G_TX_NOMIRROR
|
G_TX_WRAP
,
G_TX_NOMIRROR
|
G_TX_CLAMP
, 5, 4,
G_TX_NOLOD
,
G_TX_NOLOD
),
32
gsDPSetTexturePersp
(
G_TP_PERSP
),
33
gsDPSetTextureLUT
(
G_TT_RGBA16
),
34
gsDPLoadTLUT_pal16
(0,
D_0A000570_E59240
),
35
gsDPSetTextureFilter
(
G_TF_BILERP
),
36
gsDPSetTextureConvert
(
G_TC_FILT
),
37
gsSPEndDisplayList
(),
38
};
39
40
Mtx
Entity_BlueWarpPipe_mtx
=
RDP_MATRIX
(
41
1.000000, 0.000000, 0.000000, 0.000000,
42
0.000000, 1.000000, 0.000000, -55.000000,
43
0.000000, 0.000000, 1.000000, 0.000000,
44
0.000000, 0.000000, 0.000000, 1.000000
45
);
46
47
Gfx
Entity_BlueWarpPipe_RenderBase
[] = {
48
gsDPPipeSync
(),
49
gsSPDisplayList
(
Entity_BlueWarpPipe_LoadTextureBase
),
50
gsSPClearGeometryMode
(
G_LIGHTING
|
G_SHADING_SMOOTH
),
51
gsSPClearGeometryMode
(
G_CULL_BACK
),
52
gsSPVertex
(
D_0A0002E0_E58FB0
, 4, 0),
53
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
54
gsSPEndDisplayList
(),
55
};
56
57
Gfx
Entity_BlueWarpPipe_RenderPipe
[] = {
58
gsDPPipeSync
(),
59
gsSPTexture
(0x0080, 0x0080, 0,
G_TX_RENDERTILE
,
G_OFF
),
60
gsSPClearGeometryMode
(
G_LIGHTING
),
61
gsSPSetGeometryMode
(
G_CULL_BACK
|
G_SHADING_SMOOTH
),
62
gsSPVertex
(
D_0A000000_E58CD0
, 6, 0),
63
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
64
gsSP2Triangles
(0, 3, 4, 0, 0, 4, 5, 0),
65
gsSPDisplayList
(
Entity_BlueWarpPipe_LoadTexturePipe
),
66
gsSPVertex
(
D_0A000060_E58D30
, 30, 0),
67
gsSP2Triangles
(0, 1, 2, 0, 0, 2, 3, 0),
68
gsSP2Triangles
(4, 5, 1, 0, 4, 1, 0, 0),
69
gsSP2Triangles
(3, 2, 6, 0, 3, 6, 7, 0),
70
gsSP2Triangles
(8, 9, 7, 0, 8, 7, 6, 0),
71
gsSP2Triangles
(10, 11, 12, 0, 10, 12, 13, 0),
72
gsSP2Triangles
(13, 12, 14, 0, 13, 14, 15, 0),
73
gsSP2Triangles
(15, 14, 16, 0, 15, 16, 17, 0),
74
gsSP2Triangles
(17, 16, 18, 0, 17, 18, 19, 0),
75
gsSP2Triangles
(20, 21, 5, 0, 20, 5, 4, 0),
76
gsSP2Triangles
(9, 8, 21, 0, 9, 21, 20, 0),
77
gsSP2Triangles
(22, 23, 24, 0, 22, 24, 25, 0),
78
gsSP2Triangles
(25, 24, 26, 0, 25, 26, 27, 0),
79
gsSP2Triangles
(27, 26, 28, 0, 27, 28, 29, 0),
80
gsSPVertex
(&
D_0A000060_E58D30
[10], 2, 0),
81
gsSPVertex
(&
D_0A000060_E58D30
[22], 2, 2),
82
gsSPVertex
(&
D_0A000060_E58D30
[30], 10, 4),
83
gsSP2Triangles
(4, 9, 10, 0, 4, 10, 6, 0),
84
gsSP2Triangles
(5, 11, 9, 0, 5, 9, 4, 0),
85
gsSP2Triangles
(6, 10, 3, 0, 6, 3, 2, 0),
86
gsSP2Triangles
(7, 12, 13, 0, 7, 13, 8, 0),
87
gsSP2Triangles
(8, 13, 1, 0, 8, 1, 0, 0),
88
gsSPEndDisplayList
(),
89
};
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
Entity_BlueWarpPipe_RenderPipe
Gfx Entity_BlueWarpPipe_RenderPipe[]
Definition
BlueWarpPipe.c:57
Entity_BlueWarpPipe_RenderBase
Gfx Entity_BlueWarpPipe_RenderBase[]
Definition
BlueWarpPipe.c:47
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
Entity_BlueWarpPipe_mtx
Mtx Entity_BlueWarpPipe_mtx
Definition
BlueWarpPipe.c:40
Entity_BlueWarpPipe_LoadTextureBase
Gfx Entity_BlueWarpPipe_LoadTextureBase[]
Definition
BlueWarpPipe.c:10
Entity_BlueWarpPipe_LoadTexturePipe
Gfx Entity_BlueWarpPipe_LoadTexturePipe[]
Definition
BlueWarpPipe.c:26
RDP_MATRIX
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition
macros.h:237
src
entity
model
BlueWarpPipe.c
Generated by
1.10.0