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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/HeartBlock_face.png", D_0A0003C0_E435B0)
 

Variables

Gfx Entity_HeartBlock_LoadTexture []
 
Gfx Entity_HeartBlock_RenderBlock []
 
Gfx Entity_HeartBlock_Render []
 

Function Documentation

◆ INCLUDE_IMG()

INCLUDE_IMG ( "entity/model/HeartBlock_face.png" ,
D_0A0003C0_E435B0  )

Variable Documentation

◆ Entity_HeartBlock_LoadTexture

Gfx Entity_HeartBlock_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(D_0A0003C0_E435B0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureLUT(G_TT_NONE),
gsDPSetTextureFilter(G_TF_BILERP),
gsDPSetTextureConvert(G_TC_FILT),
gsSPEndDisplayList(),
}

Definition at line 7 of file HeartBlock.c.

7 {
8 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
9 gsDPPipeSync(),
10 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
11 gsDPSetTextureDetail(G_TD_CLAMP),
12 gsDPSetTextureLOD(G_TL_TILE),
13 gsDPLoadTextureBlock(D_0A0003C0_E435B0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
14 gsDPSetTexturePersp(G_TP_PERSP),
15 gsDPSetTextureLUT(G_TT_NONE),
16 gsDPSetTextureFilter(G_TF_BILERP),
17 gsDPSetTextureConvert(G_TC_FILT),
18 gsSPEndDisplayList(),
19};

◆ Entity_HeartBlock_RenderBlock

Gfx Entity_HeartBlock_RenderBlock[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPVertex(&D_0A000000_E431F0[4], 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPVertex(&D_0A000000_E431F0[8], 28, 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),
gsSP2Triangles(24, 25, 26, 0, 24, 26, 27, 0),
gsSPVertex(&D_0A000000_E431F0[36], 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),
gsSPVertex(&D_0A000000_E431F0[52], 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPVertex(&D_0A000000_E431F0[56], 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_HeartBlock_LoadTexture[]
Definition HeartBlock.c:7

Definition at line 21 of file HeartBlock.c.

21 {
22 gsDPPipeSync(),
23 gsDPSetCycleType(G_CYC_1CYCLE),
24 gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
25 gsSPDisplayList(Entity_HeartBlock_LoadTexture),
26 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
27 gsSPSetGeometryMode(G_SHADING_SMOOTH),
28 gsSPVertex(&D_0A000000_E431F0[4], 4, 0),
29 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
30 gsSPVertex(&D_0A000000_E431F0[8], 28, 0),
31 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
32 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
33 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
34 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
35 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
36 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
37 gsSP2Triangles(24, 25, 26, 0, 24, 26, 27, 0),
38 gsSPVertex(&D_0A000000_E431F0[36], 16, 0),
39 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
40 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
41 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
42 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
43 gsSPVertex(&D_0A000000_E431F0[52], 4, 0),
44 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
45 gsSPVertex(&D_0A000000_E431F0[56], 4, 0),
46 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
47 gsSPEndDisplayList(),
48};

◆ Entity_HeartBlock_Render

Gfx Entity_HeartBlock_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_HeartBlock_RenderBlock[]
Definition HeartBlock.c:21

Definition at line 50 of file HeartBlock.c.

50 {
51 gsSPDisplayList(Entity_HeartBlock_RenderBlock),
52 gsSPEndDisplayList(),
53};