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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/PushBlock_face.png", D_0A000120_E3DB80)
 
 INCLUDE_PAL ("entity/model/PushBlock_face.pal", D_0A0001A0_E3DC00)
 

Variables

Gfx Entity_PushBlock_LoadTexture []
 
Mtx Entity_PushBlock_mtx
 
Gfx Entity_PushBlock_RenderFaces []
 
Gfx Entity_PushBlock_RenderBlock []
 
Gfx Entity_PushBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/PushBlock_face.png" ,
D_0A000120_E3DB80  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/PushBlock_face.pal" ,
D_0A0001A0_E3DC00  )

Variable Documentation

◆ Entity_PushBlock_LoadTexture

Gfx Entity_PushBlock_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A0001A0_E3DC00),
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_0A000120_E3DB80, G_IM_FMT_CI, 16, 16, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 8 of file PushBlock.c.

8 {
9 gsDPSetTextureLUT(G_TT_RGBA16),
10 gsDPLoadTLUT_pal16(0, D_0A0001A0_E3DC00),
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_0A000120_E3DB80, G_IM_FMT_CI, 16, 16, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
16 gsDPSetTexturePersp(G_TP_PERSP),
17 gsDPSetTextureFilter(G_TF_BILERP),
18 gsSPEndDisplayList(),
19};

◆ Entity_PushBlock_mtx

Mtx Entity_PushBlock_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 PushBlock.c.

◆ Entity_PushBlock_RenderFaces

Gfx Entity_PushBlock_RenderFaces[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPDisplayList(Entity_PushBlock_LoadTexture),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A000000_E3DA60, 18, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(3, 6, 7, 0, 3, 7, 4, 0),
gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
gsSP2Triangles(14, 13, 16, 0, 14, 16, 17, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PushBlock_LoadTexture[]
Definition PushBlock.c:8

Definition at line 28 of file PushBlock.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_PushBlock_LoadTexture),
33 gsSPClearGeometryMode(G_LIGHTING),
34 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
35 gsSPVertex(D_0A000000_E3DA60, 18, 0),
36 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
37 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
38 gsSP2Triangles(3, 6, 7, 0, 3, 7, 4, 0),
39 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
40 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
41 gsSP2Triangles(14, 13, 16, 0, 14, 16, 17, 0),
42 gsSPEndDisplayList(),
43};

◆ Entity_PushBlock_RenderBlock

Gfx Entity_PushBlock_RenderBlock[]
Initial value:
= {
gsSPMatrix(&Entity_PushBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPDisplayList(Entity_PushBlock_RenderFaces),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Mtx Entity_PushBlock_mtx
Definition PushBlock.c:21
Gfx Entity_PushBlock_RenderFaces[]
Definition PushBlock.c:28

Definition at line 45 of file PushBlock.c.

45 {
46 gsSPMatrix(&Entity_PushBlock_mtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
47 gsSPDisplayList(Entity_PushBlock_RenderFaces),
48 gsSPPopMatrix(G_MTX_MODELVIEW),
49 gsSPEndDisplayList(),
50};

◆ Entity_PushBlock_Render

Gfx Entity_PushBlock_Render[]
Initial value:
= {
gsSPDisplayList(Entity_PushBlock_RenderBlock),
gsSPEndDisplayList(),
}
Gfx Entity_PushBlock_RenderBlock[]
Definition PushBlock.c:45

Definition at line 52 of file PushBlock.c.

52 {
53 gsSPDisplayList(Entity_PushBlock_RenderBlock),
54 gsSPEndDisplayList(),
55};