Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
HeartBlock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/HeartBlock.vtx.inc.c"
5
6INCLUDE_IMG("entity/model/HeartBlock_face.png", D_0A0003C0_E435B0);
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};
20
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};
49
51 gsSPDisplayList(Entity_HeartBlock_RenderBlock),
52 gsSPEndDisplayList(),
53};
Gfx Entity_HeartBlock_Render[]
Definition HeartBlock.c:50
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx Entity_HeartBlock_LoadTexture[]
Definition HeartBlock.c:7
Gfx Entity_HeartBlock_RenderBlock[]
Definition HeartBlock.c:21