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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/SuperBlock_tex.png", D_0A000480_E44C80)
 
 INCLUDE_PAL ("entity/model/SuperBlock_tex.pal", D_0A000580_E44D80)
 

Variables

Gfx Entity_SuperBlock_LoadTexture []
 
Mtx Entity_SuperBlock_mtx
 
Gfx Entity_SuperBlock_RenderTop []
 
Gfx Entity_SuperBlock_RenderRightFrontEdge []
 
Gfx Entity_SuperBlock_RenderLeftFrontEdge []
 
Gfx Entity_SuperBlock_RenderRightBackEdge []
 
Gfx Entity_SuperBlock_RenderLeftBackEdge []
 
Gfx Entity_SuperBlock_RenderBottom []
 
Gfx Entity_SuperBlock_RenderBlock []
 
Gfx Entity_SuperBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/SuperBlock_tex.png" ,
D_0A000480_E44C80  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/SuperBlock_tex.pal" ,
D_0A000580_E44D80  )

Variable Documentation

◆ Entity_SuperBlock_LoadTexture

Gfx Entity_SuperBlock_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A000580_E44D80),
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_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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 8 of file SuperBlock.c.

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

◆ Entity_SuperBlock_mtx

Mtx Entity_SuperBlock_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 SuperBlock.c.

◆ Entity_SuperBlock_RenderTop

Gfx Entity_SuperBlock_RenderTop[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[24], 1, 0),
gsSPVertex(&D_0A000000_E44800[28], 1, 1),
gsSPVertex(&D_0A000000_E44800[35], 1, 2),
gsSPVertex(&D_0A000000_E44800[39], 1, 3),
gsSPVertex(&D_0A000000_E44800[43], 1, 4),
gsSPVertex(&D_0A000000_E44800[47], 2, 5),
gsSPVertex(&D_0A000000_E44800[52], 1, 7),
gsSPVertex(&D_0A000000_E44800[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_SuperBlock_LoadTexture[]
Definition SuperBlock.c:8

Definition at line 28 of file SuperBlock.c.

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

◆ Entity_SuperBlock_RenderRightFrontEdge

Gfx Entity_SuperBlock_RenderRightFrontEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[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 51 of file SuperBlock.c.

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

◆ Entity_SuperBlock_RenderLeftFrontEdge

Gfx Entity_SuperBlock_RenderLeftFrontEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[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 63 of file SuperBlock.c.

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

◆ Entity_SuperBlock_RenderRightBackEdge

Gfx Entity_SuperBlock_RenderRightBackEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[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 75 of file SuperBlock.c.

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

◆ Entity_SuperBlock_RenderLeftBackEdge

Gfx Entity_SuperBlock_RenderLeftBackEdge[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[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 87 of file SuperBlock.c.

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

◆ Entity_SuperBlock_RenderBottom

Gfx Entity_SuperBlock_RenderBottom[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E44800[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 99 of file SuperBlock.c.

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

◆ Entity_SuperBlock_RenderBlock

Gfx Entity_SuperBlock_RenderBlock[]
Initial value:
= {
gsSPMatrix(&Entity_SuperBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPDisplayList(Entity_SuperBlock_RenderTop),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
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_RenderRightFrontEdge[]
Definition SuperBlock.c:51
Gfx Entity_SuperBlock_RenderTop[]
Definition SuperBlock.c:28
Mtx Entity_SuperBlock_mtx
Definition SuperBlock.c:21
Gfx Entity_SuperBlock_RenderLeftFrontEdge[]
Definition SuperBlock.c:63

Definition at line 115 of file SuperBlock.c.

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

◆ Entity_SuperBlock_Render

Gfx Entity_SuperBlock_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_SuperBlock_RenderBlock[]
Definition SuperBlock.c:115

Definition at line 127 of file SuperBlock.c.

127 {
128 gsSPDisplayList(Entity_SuperBlock_RenderBlock),
129 gsSPEndDisplayList(),
130};