Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
UltraBlock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/UltraBlock.vtx.inc.c"
5
6INCLUDE_IMG("entity/model/UltraBlock_tex.png", D_0A000480_E45590);
7INCLUDE_PAL("entity/model/UltraBlock_tex.pal", D_0A000580_E45690);
9 gsDPSetTextureLUT(G_TT_RGBA16),
10 gsDPLoadTLUT_pal16(0, D_0A000580_E45690),
11 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
12 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
13 gsDPSetTextureDetail(G_TD_CLAMP),
14 gsDPSetTextureLOD(G_TL_TILE),
15 gsDPLoadTextureBlock_4b(D_0A000480_E45590, G_IM_FMT_CI, 16, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
16 gsDPSetTexturePersp(G_TP_PERSP),
17 gsDPSetTextureFilter(G_TF_BILERP),
18 gsSPEndDisplayList(),
19};
20
22 1.000000, 0.000000, 0.000000, 0.000000,
23 0.000000, 1.000000, 0.000000, 0.000000,
24 0.000000, 0.000000, 1.000000, 0.000000,
25 0.000000, 0.000000, 0.000000, 1.000000
26);
27
29 gsDPPipeSync(),
30 gsSPDisplayList(Entity_UltraBlock_LoadTexture),
31 gsSPClearGeometryMode(G_LIGHTING),
32 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
33 gsSPVertex(&D_0A000000_E45110[24], 1, 0),
34 gsSPVertex(&D_0A000000_E45110[28], 1, 1),
35 gsSPVertex(&D_0A000000_E45110[35], 1, 2),
36 gsSPVertex(&D_0A000000_E45110[39], 1, 3),
37 gsSPVertex(&D_0A000000_E45110[43], 1, 4),
38 gsSPVertex(&D_0A000000_E45110[47], 2, 5),
39 gsSPVertex(&D_0A000000_E45110[52], 1, 7),
40 gsSPVertex(&D_0A000000_E45110[56], 16, 8),
41 gsSP2Triangles(8, 9, 0, 0, 8, 0, 5, 0),
42 gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
43 gsSP2Triangles(6, 3, 12, 0, 6, 12, 13, 0),
44 gsSP2Triangles(4, 7, 14, 0, 4, 14, 15, 0),
45 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
46 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
47 gsSPEndDisplayList(),
48};
49
51 gsDPPipeSync(),
52 gsSPDisplayList(Entity_UltraBlock_LoadTexture),
53 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
54 gsSPSetGeometryMode(G_SHADING_SMOOTH),
55 gsSPVertex(&D_0A000000_E45110[48], 8, 0),
56 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
57 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
58 gsSPEndDisplayList(),
59};
60
62 gsDPPipeSync(),
63 gsSPDisplayList(Entity_UltraBlock_LoadTexture),
64 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
65 gsSPSetGeometryMode(G_SHADING_SMOOTH),
66 gsSPVertex(&D_0A000000_E45110[40], 8, 0),
67 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
68 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
69 gsSPEndDisplayList(),
70};
71
73 gsDPPipeSync(),
74 gsSPDisplayList(Entity_UltraBlock_LoadTexture),
75 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
76 gsSPSetGeometryMode(G_SHADING_SMOOTH),
77 gsSPVertex(&D_0A000000_E45110[32], 8, 0),
78 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
79 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
80 gsSPEndDisplayList(),
81};
82
84 gsDPPipeSync(),
85 gsSPDisplayList(Entity_UltraBlock_LoadTexture),
86 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
87 gsSPSetGeometryMode(G_SHADING_SMOOTH),
88 gsSPVertex(&D_0A000000_E45110[24], 8, 0),
89 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
90 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
91 gsSPEndDisplayList(),
92};
93
95 gsDPPipeSync(),
96 gsSPDisplayList(Entity_UltraBlock_LoadTexture),
97 gsSPClearGeometryMode(G_LIGHTING),
98 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
99 gsSPVertex(&D_0A000000_E45110[0], 24, 0),
100 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
101 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
102 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
103 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
104 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
105 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
106 gsSPEndDisplayList(),
107};
108
110 gsSPMatrix(&Entity_UltraBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
111 gsSPDisplayList(Entity_UltraBlock_RenderBottom),
116 gsSPDisplayList(Entity_UltraBlock_RenderTop),
117 gsSPPopMatrix(G_MTX_MODELVIEW),
118 gsSPEndDisplayList(),
119};
120
122 gsSPDisplayList(Entity_UltraBlock_RenderBlock),
123 gsSPEndDisplayList(),
124};
Gfx Entity_UltraBlock_RenderLeftBackEdge[]
Definition UltraBlock.c:83
Gfx Entity_UltraBlock_RenderLeftFrontEdge[]
Definition UltraBlock.c:61
Gfx Entity_UltraBlock_RenderRightFrontEdge[]
Definition UltraBlock.c:50
Gfx Entity_UltraBlock_Render[]
Definition UltraBlock.c:121
Gfx Entity_UltraBlock_RenderBottom[]
Definition UltraBlock.c:94
Gfx Entity_UltraBlock_RenderTop[]
Definition UltraBlock.c:28
Gfx Entity_UltraBlock_RenderRightBackEdge[]
Definition UltraBlock.c:72
Gfx Entity_UltraBlock_LoadTexture[]
Definition UltraBlock.c:8
Mtx Entity_UltraBlock_mtx
Definition UltraBlock.c:21
Gfx Entity_UltraBlock_RenderBlock[]
Definition UltraBlock.c:109
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233