Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
UltraBlock.c File Reference

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/UltraBlock_tex.png", D_0A000480_E45590)
 
 INCLUDE_PAL ("entity/model/UltraBlock_tex.pal", D_0A000580_E45690)
 

Variables

Gfx Entity_UltraBlock_LoadTexture []
 
Mtx Entity_UltraBlock_mtx
 
Gfx Entity_UltraBlock_RenderTop []
 
Gfx Entity_UltraBlock_RenderRightFrontEdge []
 
Gfx Entity_UltraBlock_RenderLeftFrontEdge []
 
Gfx Entity_UltraBlock_RenderRightBackEdge []
 
Gfx Entity_UltraBlock_RenderLeftBackEdge []
 
Gfx Entity_UltraBlock_RenderBottom []
 
Gfx Entity_UltraBlock_RenderBlock []
 
Gfx Entity_UltraBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/UltraBlock_tex.png" ,
D_0A000480_E45590  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/UltraBlock_tex.pal" ,
D_0A000580_E45690  )

Variable Documentation

◆ Entity_UltraBlock_LoadTexture

Gfx Entity_UltraBlock_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A000580_E45690),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 8 of file UltraBlock.c.

8 {
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};

◆ Entity_UltraBlock_mtx

Mtx Entity_UltraBlock_mtx
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000
)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233

Definition at line 21 of file UltraBlock.c.

◆ Entity_UltraBlock_RenderTop

Gfx Entity_UltraBlock_RenderTop[]
Initial value:
= {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E45110[24], 1, 0),
gsSPVertex(&D_0A000000_E45110[28], 1, 1),
gsSPVertex(&D_0A000000_E45110[35], 1, 2),
gsSPVertex(&D_0A000000_E45110[39], 1, 3),
gsSPVertex(&D_0A000000_E45110[43], 1, 4),
gsSPVertex(&D_0A000000_E45110[47], 2, 5),
gsSPVertex(&D_0A000000_E45110[52], 1, 7),
gsSPVertex(&D_0A000000_E45110[56], 16, 8),
gsSP2Triangles(8, 9, 0, 0, 8, 0, 5, 0),
gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
gsSP2Triangles(6, 3, 12, 0, 6, 12, 13, 0),
gsSP2Triangles(4, 7, 14, 0, 4, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
gsSPEndDisplayList(),
}
Gfx Entity_UltraBlock_LoadTexture[]
Definition UltraBlock.c:8

Definition at line 28 of file UltraBlock.c.

28 {
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};

◆ Entity_UltraBlock_RenderRightFrontEdge

Gfx Entity_UltraBlock_RenderRightFrontEdge[]
Initial value:
= {
gsDPPipeSync(),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E45110[48], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

Definition at line 50 of file UltraBlock.c.

50 {
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};

◆ Entity_UltraBlock_RenderLeftFrontEdge

Gfx Entity_UltraBlock_RenderLeftFrontEdge[]
Initial value:
= {
gsDPPipeSync(),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E45110[40], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

Definition at line 61 of file UltraBlock.c.

61 {
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};

◆ Entity_UltraBlock_RenderRightBackEdge

Gfx Entity_UltraBlock_RenderRightBackEdge[]
Initial value:
= {
gsDPPipeSync(),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E45110[32], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

Definition at line 72 of file UltraBlock.c.

72 {
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};

◆ Entity_UltraBlock_RenderLeftBackEdge

Gfx Entity_UltraBlock_RenderLeftBackEdge[]
Initial value:
= {
gsDPPipeSync(),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E45110[24], 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSPEndDisplayList(),
}

Definition at line 83 of file UltraBlock.c.

83 {
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};

◆ Entity_UltraBlock_RenderBottom

Gfx Entity_UltraBlock_RenderBottom[]
Initial value:
= {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E45110[0], 24, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
gsSPEndDisplayList(),
}

Definition at line 94 of file UltraBlock.c.

94 {
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};

◆ Entity_UltraBlock_RenderBlock

Gfx Entity_UltraBlock_RenderBlock[]
Initial value:
= {
gsSPMatrix(&Entity_UltraBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPDisplayList(Entity_UltraBlock_RenderTop),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
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_RenderBottom[]
Definition UltraBlock.c:94
Gfx Entity_UltraBlock_RenderTop[]
Definition UltraBlock.c:28
Gfx Entity_UltraBlock_RenderRightBackEdge[]
Definition UltraBlock.c:72
Mtx Entity_UltraBlock_mtx
Definition UltraBlock.c:21

Definition at line 109 of file UltraBlock.c.

109 {
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};

◆ Entity_UltraBlock_Render

Gfx Entity_UltraBlock_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_UltraBlock_RenderBlock[]
Definition UltraBlock.c:109

Definition at line 121 of file UltraBlock.c.

121 {
122 gsSPDisplayList(Entity_UltraBlock_RenderBlock),
123 gsSPEndDisplayList(),
124};