Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PowBlock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/PowBlock.vtx.inc.c"
5
6INCLUDE_IMG("entity/model/PowBlock_face.png", D_0A000100_E43C20);
7INCLUDE_PAL("entity/model/PowBlock_face.pal", D_0A000900_E44420);
9 gsDPSetTextureLUT(G_TT_RGBA16),
10 gsDPLoadTLUT_pal256(D_0A000900_E44420),
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(D_0A000100_E43C20, G_IM_FMT_CI, G_IM_SIZ_8b, 64, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 6, 5, 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_PowBlock_LoadTexture),
33 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
34 gsSPSetGeometryMode(G_CULL_BACK),
35 gsSPVertex(D_0A000000_E43B20, 4, 0),
36 gsSPVertex(&D_0A000000_E43B20[8], 4, 4),
37 gsSP2Triangles(3, 4, 7, 0, 3, 7, 0, 0),
38 gsSP2Triangles(1, 6, 5, 0, 1, 5, 2, 0),
39 gsSPEndDisplayList(),
40};
41
43 gsDPPipeSync(),
44 gsDPSetCycleType(G_CYC_1CYCLE),
45 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
46 gsSPDisplayList(Entity_PowBlock_LoadTexture),
47 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
48 gsSPSetGeometryMode(G_CULL_BACK),
49 gsSPVertex(D_0A000000_E43B20, 16, 0),
50 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
51 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
52 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
53 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
54 gsSPEndDisplayList(),
55};
56
58 gsSPDisplayList(Entity_PowBlock_RenderSides),
59 gsSPDisplayList(Entity_PowBlock_RenderTopBottom),
60 gsSPEndDisplayList(),
61};
62
64 gsSPDisplayList(Entity_PowBlock_RenderFaces),
65 gsSPEndDisplayList(),
66};
67
69 gsSPDisplayList(Entity_PowBlock_RenderBlock),
70 gsSPEndDisplayList(),
71};
Gfx Entity_PowBlock_RenderBlock[]
Definition PowBlock.c:63
Gfx Entity_PowBlock_RenderSides[]
Definition PowBlock.c:42
Mtx Entity_PowBlock_mtx
Definition PowBlock.c:21
Gfx Entity_PowBlock_RenderTopBottom[]
Definition PowBlock.c:28
Gfx Entity_PowBlock_LoadTexture[]
Definition PowBlock.c:8
Gfx Entity_PowBlock_RenderFaces[]
Definition PowBlock.c:57
Gfx Entity_PowBlock_Render[]
Definition PowBlock.c:68
#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