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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/PowBlock_face.png", D_0A000100_E43C20)
 
 INCLUDE_PAL ("entity/model/PowBlock_face.pal", D_0A000900_E44420)
 

Variables

Gfx Entity_PowBlock_LoadTexture []
 
Mtx Entity_PowBlock_mtx
 
Gfx Entity_PowBlock_RenderTopBottom []
 
Gfx Entity_PowBlock_RenderSides []
 
Gfx Entity_PowBlock_RenderFaces []
 
Gfx Entity_PowBlock_RenderBlock []
 
Gfx Entity_PowBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/PowBlock_face.png" ,
D_0A000100_E43C20  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/PowBlock_face.pal" ,
D_0A000900_E44420  )

Variable Documentation

◆ Entity_PowBlock_LoadTexture

Gfx Entity_PowBlock_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A000900_E44420),
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(D_0A000100_E43C20, G_IM_FMT_CI, G_IM_SIZ_8b, 64, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 8 of file PowBlock.c.

8 {
9 gsDPSetTextureLUT(G_TT_RGBA16),
10 gsDPLoadTLUT_pal256(D_0A000900_E44420),
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(D_0A000100_E43C20, G_IM_FMT_CI, G_IM_SIZ_8b, 64, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
16 gsDPSetTexturePersp(G_TP_PERSP),
17 gsDPSetTextureFilter(G_TF_BILERP),
18 gsSPEndDisplayList(),
19};

◆ Entity_PowBlock_mtx

Mtx Entity_PowBlock_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 PowBlock.c.

◆ Entity_PowBlock_RenderTopBottom

Gfx Entity_PowBlock_RenderTopBottom[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPDisplayList(Entity_PowBlock_LoadTexture),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(D_0A000000_E43B20, 4, 0),
gsSPVertex(&D_0A000000_E43B20[8], 4, 4),
gsSP2Triangles(3, 4, 7, 0, 3, 7, 0, 0),
gsSP2Triangles(1, 6, 5, 0, 1, 5, 2, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PowBlock_LoadTexture[]
Definition PowBlock.c:8

Definition at line 28 of file PowBlock.c.

28 {
29 gsDPPipeSync(),
30 gsDPSetCycleType(G_CYC_1CYCLE),
31 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
32 gsSPDisplayList(Entity_PowBlock_LoadTexture),
33 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
34 gsSPSetGeometryMode(G_CULL_BACK),
35 gsSPVertex(D_0A000000_E43B20, 4, 0),
36 gsSPVertex(&D_0A000000_E43B20[8], 4, 4),
37 gsSP2Triangles(3, 4, 7, 0, 3, 7, 0, 0),
38 gsSP2Triangles(1, 6, 5, 0, 1, 5, 2, 0),
39 gsSPEndDisplayList(),
40};

◆ Entity_PowBlock_RenderSides

Gfx Entity_PowBlock_RenderSides[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPDisplayList(Entity_PowBlock_LoadTexture),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(D_0A000000_E43B20, 16, 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),
gsSPEndDisplayList(),
}

Definition at line 42 of file PowBlock.c.

42 {
43 gsDPPipeSync(),
44 gsDPSetCycleType(G_CYC_1CYCLE),
45 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
46 gsSPDisplayList(Entity_PowBlock_LoadTexture),
47 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
48 gsSPSetGeometryMode(G_CULL_BACK),
49 gsSPVertex(D_0A000000_E43B20, 16, 0),
50 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
51 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
52 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
53 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
54 gsSPEndDisplayList(),
55};

◆ Entity_PowBlock_RenderFaces

Gfx Entity_PowBlock_RenderFaces[]
Initial value:
= {
gsSPDisplayList(Entity_PowBlock_RenderSides),
gsSPEndDisplayList(),
}
Gfx Entity_PowBlock_RenderSides[]
Definition PowBlock.c:42
Gfx Entity_PowBlock_RenderTopBottom[]
Definition PowBlock.c:28

Definition at line 57 of file PowBlock.c.

57 {
58 gsSPDisplayList(Entity_PowBlock_RenderSides),
59 gsSPDisplayList(Entity_PowBlock_RenderTopBottom),
60 gsSPEndDisplayList(),
61};

◆ Entity_PowBlock_RenderBlock

Gfx Entity_PowBlock_RenderBlock[]
Initial value:
= {
gsSPDisplayList(Entity_PowBlock_RenderFaces),
gsSPEndDisplayList(),
}
Gfx Entity_PowBlock_RenderFaces[]
Definition PowBlock.c:57

Definition at line 63 of file PowBlock.c.

63 {
64 gsSPDisplayList(Entity_PowBlock_RenderFaces),
65 gsSPEndDisplayList(),
66};

◆ Entity_PowBlock_Render

Gfx Entity_PowBlock_Render[]
Initial value:
= {
gsSPDisplayList(Entity_PowBlock_RenderBlock),
gsSPEndDisplayList(),
}
Gfx Entity_PowBlock_RenderBlock[]
Definition PowBlock.c:63

Definition at line 68 of file PowBlock.c.

68 {
69 gsSPDisplayList(Entity_PowBlock_RenderBlock),
70 gsSPEndDisplayList(),
71};