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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/BrickBlock_face.png", D_0A000140_E3DEF0)
 
 INCLUDE_PAL ("entity/model/BrickBlock_face.pal", D_0A000340_E3E0F0)
 

Variables

Gfx Entity_BrickBlock_LoadTexture []
 
Gfx Entity_BrickBlock_InitTexture []
 
Gfx Entity_BrickBlock_RenderFaces []
 
Gfx Entity_BrickBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/BrickBlock_face.png" ,
D_0A000140_E3DEF0  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/BrickBlock_face.pal" ,
D_0A000340_E3E0F0  )

Variable Documentation

◆ Entity_BrickBlock_LoadTexture

Gfx Entity_BrickBlock_LoadTexture[]
Initial value:
= {
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock_4b(D_0A000140_E3DEF0, G_IM_FMT_CI, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal16(0, D_0A000340_E3E0F0),
gsDPSetTextureFilter(G_TF_BILERP),
gsDPSetTextureConvert(G_TC_FILT),
gsSPEndDisplayList(),
}

Definition at line 8 of file BrickBlock.c.

8 {
9 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
10 gsDPPipeSync(),
11 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
12 gsDPSetTextureDetail(G_TD_CLAMP),
13 gsDPSetTextureLOD(G_TL_TILE),
14 gsDPLoadTextureBlock_4b(D_0A000140_E3DEF0, G_IM_FMT_CI, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
15 gsDPSetTexturePersp(G_TP_PERSP),
16 gsDPSetTextureLUT(G_TT_RGBA16),
17 gsDPLoadTLUT_pal16(0, D_0A000340_E3E0F0),
18 gsDPSetTextureFilter(G_TF_BILERP),
19 gsDPSetTextureConvert(G_TC_FILT),
20 gsSPEndDisplayList(),
21};

◆ Entity_BrickBlock_InitTexture

Gfx Entity_BrickBlock_InitTexture[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPClearGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
}
Gfx Entity_BrickBlock_LoadTexture[]
Definition BrickBlock.c:8

Definition at line 23 of file BrickBlock.c.

23 {
24 gsDPPipeSync(),
25 gsDPSetCycleType(G_CYC_1CYCLE),
26 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
27 gsSPDisplayList(Entity_BrickBlock_LoadTexture),
28 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
29 gsSPClearGeometryMode(G_LIGHTING),
30 gsSPEndDisplayList(),
31};

◆ Entity_BrickBlock_RenderFaces

Gfx Entity_BrickBlock_RenderFaces[]
Initial value:
= {
gsSPVertex(D_0A000000_E3DDB0, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPVertex(&D_0A000000_E3DDB0[4], 16, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
gsSPEndDisplayList(),
}
Gfx Entity_BrickBlock_InitTexture[]
Definition BrickBlock.c:23

Definition at line 33 of file BrickBlock.c.

33 {
34 gsSPDisplayList(Entity_BrickBlock_InitTexture),
35 gsSPVertex(D_0A000000_E3DDB0, 4, 0),
36 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
37 gsSPVertex(&D_0A000000_E3DDB0[4], 16, 0),
38 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
39 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
40 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
41 gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
42 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
43 gsSPEndDisplayList(),
44};

◆ Entity_BrickBlock_Render

Gfx Entity_BrickBlock_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_BrickBlock_RenderFaces[]
Definition BrickBlock.c:33

Definition at line 46 of file BrickBlock.c.

46 {
47 gsSPDisplayList(Entity_BrickBlock_RenderFaces),
48 gsSPEndDisplayList(),
49};