Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SuperBlock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/SuperBlock.vtx.inc.c"
5
6INCLUDE_IMG("entity/model/SuperBlock_tex.png", D_0A000480_E44C80);
7INCLUDE_PAL("entity/model/SuperBlock_tex.pal", D_0A000580_E44D80);
9 gsDPSetTextureLUT(G_TT_RGBA16),
10 gsDPLoadTLUT_pal16(0, D_0A000580_E44D80),
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_E44C80, G_IM_FMT_CI, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, 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 gsDPSetCycleType(G_CYC_1CYCLE),
31 gsSPDisplayList(Entity_SuperBlock_LoadTexture),
32 gsSPClearGeometryMode(G_LIGHTING),
33 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
34 gsSPVertex(&D_0A000000_E44800[24], 1, 0),
35 gsSPVertex(&D_0A000000_E44800[28], 1, 1),
36 gsSPVertex(&D_0A000000_E44800[35], 1, 2),
37 gsSPVertex(&D_0A000000_E44800[39], 1, 3),
38 gsSPVertex(&D_0A000000_E44800[43], 1, 4),
39 gsSPVertex(&D_0A000000_E44800[47], 2, 5),
40 gsSPVertex(&D_0A000000_E44800[52], 1, 7),
41 gsSPVertex(&D_0A000000_E44800[56], 16, 8),
42 gsSP2Triangles(8, 9, 0, 0, 8, 0, 5, 0),
43 gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
44 gsSP2Triangles(6, 3, 12, 0, 6, 12, 13, 0),
45 gsSP2Triangles(4, 7, 14, 0, 4, 14, 15, 0),
46 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
47 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
48 gsSPEndDisplayList(),
49};
50
52 gsDPPipeSync(),
53 gsDPSetCycleType(G_CYC_1CYCLE),
54 gsSPDisplayList(Entity_SuperBlock_LoadTexture),
55 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
56 gsSPSetGeometryMode(G_SHADING_SMOOTH),
57 gsSPVertex(&D_0A000000_E44800[48], 8, 0),
58 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
59 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
60 gsSPEndDisplayList(),
61};
62
64 gsDPPipeSync(),
65 gsDPSetCycleType(G_CYC_1CYCLE),
66 gsSPDisplayList(Entity_SuperBlock_LoadTexture),
67 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
68 gsSPSetGeometryMode(G_SHADING_SMOOTH),
69 gsSPVertex(&D_0A000000_E44800[40], 8, 0),
70 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
71 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
72 gsSPEndDisplayList(),
73};
74
76 gsDPPipeSync(),
77 gsDPSetCycleType(G_CYC_1CYCLE),
78 gsSPDisplayList(Entity_SuperBlock_LoadTexture),
79 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
80 gsSPSetGeometryMode(G_SHADING_SMOOTH),
81 gsSPVertex(&D_0A000000_E44800[32], 8, 0),
82 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
83 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
84 gsSPEndDisplayList(),
85};
86
88 gsDPPipeSync(),
89 gsDPSetCycleType(G_CYC_1CYCLE),
90 gsSPDisplayList(Entity_SuperBlock_LoadTexture),
91 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
92 gsSPSetGeometryMode(G_SHADING_SMOOTH),
93 gsSPVertex(&D_0A000000_E44800[24], 8, 0),
94 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
95 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
96 gsSPEndDisplayList(),
97};
98
100 gsDPPipeSync(),
101 gsDPSetCycleType(G_CYC_1CYCLE),
102 gsSPDisplayList(Entity_SuperBlock_LoadTexture),
103 gsSPClearGeometryMode(G_LIGHTING),
104 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
105 gsSPVertex(&D_0A000000_E44800[0], 24, 0),
106 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
107 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
108 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
109 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
110 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
111 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
112 gsSPEndDisplayList(),
113};
114
116 gsSPMatrix(&Entity_SuperBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
117 gsSPDisplayList(Entity_SuperBlock_RenderBottom),
122 gsSPDisplayList(Entity_SuperBlock_RenderTop),
123 gsSPPopMatrix(G_MTX_MODELVIEW),
124 gsSPEndDisplayList(),
125};
126
128 gsSPDisplayList(Entity_SuperBlock_RenderBlock),
129 gsSPEndDisplayList(),
130};
Gfx Entity_SuperBlock_Render[]
Definition SuperBlock.c:127
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx Entity_SuperBlock_RenderLeftBackEdge[]
Definition SuperBlock.c:87
Gfx Entity_SuperBlock_RenderBottom[]
Definition SuperBlock.c:99
Gfx Entity_SuperBlock_RenderRightBackEdge[]
Definition SuperBlock.c:75
Gfx Entity_SuperBlock_RenderBlock[]
Definition SuperBlock.c:115
Gfx Entity_SuperBlock_RenderRightFrontEdge[]
Definition SuperBlock.c:51
Gfx Entity_SuperBlock_RenderTop[]
Definition SuperBlock.c:28
Gfx Entity_SuperBlock_LoadTexture[]
Definition SuperBlock.c:8
Mtx Entity_SuperBlock_mtx
Definition SuperBlock.c:21
Gfx Entity_SuperBlock_RenderLeftFrontEdge[]
Definition SuperBlock.c:63
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233