Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Signpost.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/Signpost_1.vtx.inc.c"
5#include "entity/model/Signpost_2.vtx.inc.c"
6
7INCLUDE_IMG("entity/model/Signpost.png", D_0A000580_E59A00);
8INCLUDE_PAL("entity/model/Signpost.pal", D_0A000780_E59C00);
10 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
11 gsDPPipeSync(),
12 gsDPSetTextureDetail(G_TD_CLAMP),
13 gsDPSetTextureLOD(G_TL_TILE),
14 gsDPLoadTextureBlock_4b(D_0A000580_E59A00, G_IM_FMT_CI, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
15 gsDPSetTexturePersp(G_TP_PERSP),
16 gsDPSetTextureLUT(G_TT_RGBA16),
17 gsDPLoadTLUT_pal16(0, D_0A000780_E59C00),
18 gsDPSetTextureFilter(G_TF_BILERP),
19 gsDPSetTextureConvert(G_TC_FILT),
20 gsSPEndDisplayList(),
21};
22
24 gsDPPipeSync(),
25 gsSPDisplayList(Entity_Signpost_LoadTexture),
26 gsSPClearGeometryMode(G_LIGHTING),
27 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
28 gsSPVertex(D_0A000120_E595A0, 31, 0),
29 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
30 gsSP2Triangles(2, 1, 4, 0, 2, 4, 5, 0),
31 gsSP2Triangles(4, 1, 0, 0, 4, 0, 6, 0),
32 gsSP2Triangles(7, 8, 9, 0, 7, 9, 10, 0),
33 gsSP2Triangles(10, 9, 11, 0, 10, 11, 12, 0),
34 gsSP2Triangles(13, 14, 15, 0, 13, 15, 16, 0),
35 gsSP2Triangles(15, 14, 17, 0, 15, 17, 18, 0),
36 gsSP2Triangles(14, 13, 19, 0, 14, 19, 17, 0),
37 gsSP2Triangles(20, 0, 3, 0, 20, 3, 21, 0),
38 gsSP2Triangles(22, 23, 20, 0, 22, 20, 21, 0),
39 gsSP2Triangles(20, 23, 24, 0, 20, 24, 25, 0),
40 gsSP2Triangles(24, 23, 22, 0, 24, 22, 26, 0),
41 gsSP2Triangles(27, 28, 29, 0, 27, 29, 30, 0),
42 gsSPVertex(&D_0A000120_E595A0[7], 2, 0),
43 gsSPVertex(&D_0A000120_E595A0[13], 1, 2),
44 gsSPVertex(&D_0A000120_E595A0[16], 1, 3),
45 gsSPVertex(&D_0A000120_E595A0[19], 1, 4),
46 gsSPVertex(&D_0A000120_E595A0[31], 9, 5),
47 gsSP2Triangles(1, 0, 5, 0, 1, 5, 9, 0),
48 gsSP2Triangles(2, 6, 10, 0, 2, 10, 4, 0),
49 gsSP2Triangles(6, 11, 8, 0, 6, 8, 10, 0),
50 gsSP2Triangles(6, 2, 3, 0, 6, 3, 12, 0),
51 gsSP2Triangles(7, 11, 6, 0, 7, 6, 12, 0),
52 gsSP2Triangles(8, 11, 7, 0, 8, 7, 13, 0),
53 gsSPClearGeometryMode(G_SHADING_SMOOTH),
54 gsSPVertex(&D_0A000120_E595A0[40], 4, 0),
55 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
56 gsSPSetGeometryMode(G_SHADING_SMOOTH),
57 gsSPVertex(D_0A000120_E595A0, 1, 0),
58 gsSPVertex(&D_0A000120_E595A0[6], 1, 1),
59 gsSPVertex(&D_0A000120_E595A0[20], 1, 2),
60 gsSPVertex(&D_0A000120_E595A0[25], 1, 3),
61 gsSPVertex(&D_0A000120_E595A0[27], 2, 4),
62 gsSPVertex(&D_0A000120_E595A0[44], 14, 6),
63 gsSP2Triangles(0, 2, 3, 0, 0, 3, 1, 0),
64 gsSP2Triangles(6, 4, 7, 0, 6, 7, 8, 0),
65 gsSP2Triangles(6, 8, 9, 0, 6, 9, 10, 0),
66 gsSP2Triangles(6, 10, 11, 0, 6, 11, 12, 0),
67 gsSP2Triangles(5, 13, 14, 0, 5, 14, 15, 0),
68 gsSP2Triangles(5, 15, 16, 0, 5, 16, 17, 0),
69 gsSP2Triangles(5, 17, 18, 0, 5, 18, 19, 0),
70 gsSPClearGeometryMode(G_SHADING_SMOOTH),
71 gsSPVertex(&D_0A000120_E595A0[58], 12, 0),
72 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
73 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
74 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
75 gsSPEndDisplayList(),
76};
77
79 gsDPPipeSync(),
80 gsSPDisplayList(Entity_Signpost_LoadTexture),
81 gsSPClearGeometryMode(G_LIGHTING),
82 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
83 gsSPVertex(D_0A000000_E59480, 18, 0),
84 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
85 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
86 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
87 gsSP2Triangles(7, 10, 11, 0, 7, 11, 8, 0),
88 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
89 gsSP2Triangles(16, 11, 10, 0, 16, 10, 17, 0),
90 gsSPEndDisplayList(),
91};
92
94 gsSPDisplayList(Entity_Signpost_RenderPole),
95 gsSPDisplayList(Entity_Signpost_RenderSign),
96 gsSPEndDisplayList(),
97};
98
100 gsSPDisplayList(Entity_Signpost_RenderMain),
101 gsSPEndDisplayList(),
102};
Gfx Entity_Signpost_Render[]
Definition Signpost.c:99
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx Entity_Signpost_LoadTexture[]
Definition Signpost.c:9
Gfx Entity_Signpost_RenderMain[]
Definition Signpost.c:93
Gfx Entity_Signpost_RenderSign[]
Definition Signpost.c:23
Gfx Entity_Signpost_RenderPole[]
Definition Signpost.c:78