Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PushBlock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/PushBlock.vtx.inc.c"
5
6INCLUDE_IMG("entity/model/PushBlock_face.png", D_0A000120_E3DB80);
7INCLUDE_PAL("entity/model/PushBlock_face.pal", D_0A0001A0_E3DC00);
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};
20
22 1.000000, 0.000000, 0.000000, 0.000000,
23 0.000000, 1.000000, 0.000000, 0.000000,
24 0.000000, 0.000000, 1.000000, 0.000000,
25 0.000000, 0.000000, 0.000000, 1.000000
26);
27
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};
44
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};
51
53 gsSPDisplayList(Entity_PushBlock_RenderBlock),
54 gsSPEndDisplayList(),
55};
Gfx Entity_PushBlock_RenderBlock[]
Definition PushBlock.c:45
Mtx Entity_PushBlock_mtx
Definition PushBlock.c:21
Gfx Entity_PushBlock_LoadTexture[]
Definition PushBlock.c:8
Gfx Entity_PushBlock_RenderFaces[]
Definition PushBlock.c:28
Gfx Entity_PushBlock_Render[]
Definition PushBlock.c:52
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233