Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
UltraBlockContent.c
Go to the documentation of this file.
1#include "common.h"
2
3unsigned char D_0A000000_E4AA80[] = {
40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 119, 119, 119, 119, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 119, 119, 119, 119, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 113, 17, 34, 34, 34, 39, 112, 0, 0, 0, 0, 0, 0, 0, 0, 119, 18, 102, 102, 102, 102, 34, 119, 0, 0, 0, 0, 0, 0, 0, 7, 113, 102, 0, 0, 0, 0, 102, 39, 112, 0, 0, 0, 0, 0, 0, 119, 22, 0, 0, 0, 0, 0, 0, 98, 119, 0, 0, 0, 0, 0, 7, 113, 96, 0, 0, 0, 0, 0, 0, 6, 39, 112, 0, 0, 0, 0, 119, 22, 0, 0, 0, 0, 0, 0, 0, 0, 98, 119, 0, 0, 0, 7, 118, 102, 0, 0, 0, 0, 0, 0, 0, 0, 102, 39, 112, 0, 0, 7, 118, 32, 0, 0, 0, 0, 0, 0, 0, 0, 2, 103, 112, 0, 0, 7, 118, 32, 0, 0, 0, 0, 0, 0, 0, 0, 2, 103, 112, 0, 0, 7, 118, 16, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 7, 118, 16, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 7, 118, 16, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 7, 118, 16, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 7, 118, 16, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 7, 118, 16, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 7, 118, 34, 0, 0, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 0, 119, 98, 0, 0, 0, 0, 0, 0, 0, 0, 33, 103, 112, 0, 0, 0, 7, 118, 32, 0, 0, 0, 0, 0, 0, 0, 22, 119, 0, 0, 0, 0, 0, 119, 98, 0, 0, 0, 0, 0, 0, 1, 103, 112, 0, 0, 0, 0, 0, 7, 118, 34, 0, 0, 0, 0, 2, 22, 119, 0, 0, 0, 0, 0, 0, 0, 119, 98, 17, 17, 18, 34, 34, 103, 112, 0, 0, 0, 0, 0, 0, 0, 7, 118, 102, 102, 102, 102, 102, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 119, 119, 119, 119, 119, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 119, 119, 119, 119, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
5
6unsigned char D_0A000200_E4AC80[] = {
70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 221, 221, 221, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 221, 221, 221, 221, 221, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 221, 221, 216, 136, 136, 153, 160, 0, 0, 0, 0, 0, 0, 0, 0, 221, 221, 216, 136, 137, 154, 170, 170, 0, 0, 0, 0, 0, 0, 0, 0, 221, 210, 42, 136, 137, 34, 170, 170, 0, 0, 0, 0, 0, 0, 0, 13, 221, 210, 36, 169, 138, 34, 74, 170, 160, 0, 0, 0, 0, 0, 0, 13, 221, 209, 36, 169, 138, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 13, 221, 129, 36, 170, 154, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 8, 221, 129, 36, 186, 154, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 8, 221, 129, 36, 186, 170, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 8, 141, 129, 20, 186, 170, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 8, 136, 130, 18, 75, 162, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 9, 136, 130, 17, 36, 65, 18, 75, 170, 160, 0, 0, 0, 0, 0, 0, 0, 152, 137, 33, 17, 17, 36, 187, 170, 160, 0, 0, 0, 0, 0, 0, 0, 152, 153, 148, 34, 36, 75, 186, 170, 0, 0, 0, 0, 0, 0, 0, 0, 9, 153, 154, 171, 187, 187, 170, 170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 153, 153, 170, 170, 170, 170, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 153, 153, 154, 170, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
8
9unsigned char D_0A000400_E4AE80[] = {
100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 119, 119, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 17, 18, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 114, 102, 102, 39, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 38, 221, 137, 98, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 113, 109, 221, 221, 150, 39, 112, 0, 0, 0, 0, 0, 0, 0, 0, 119, 22, 221, 221, 136, 137, 98, 119, 0, 0, 0, 0, 0, 0, 0, 7, 113, 109, 221, 152, 137, 170, 166, 39, 112, 0, 0, 0, 0, 0, 0, 119, 38, 221, 210, 169, 138, 42, 170, 98, 119, 0, 0, 0, 0, 0, 7, 114, 109, 221, 209, 74, 138, 20, 170, 166, 103, 112, 0, 0, 0, 0, 119, 98, 221, 221, 209, 74, 138, 20, 186, 170, 38, 119, 0, 0, 0, 0, 119, 98, 141, 221, 129, 74, 154, 20, 186, 170, 22, 119, 0, 0, 0, 0, 119, 98, 141, 221, 129, 74, 170, 20, 186, 170, 22, 119, 0, 0, 0, 0, 119, 98, 152, 221, 130, 20, 164, 20, 186, 170, 22, 119, 0, 0, 0, 0, 7, 118, 41, 141, 132, 33, 17, 68, 186, 161, 103, 112, 0, 0, 0, 0, 0, 119, 98, 152, 137, 66, 36, 75, 170, 22, 119, 0, 0, 0, 0, 0, 0, 7, 118, 41, 137, 171, 187, 186, 161, 103, 112, 0, 0, 0, 0, 0, 0, 0, 119, 98, 153, 153, 170, 170, 22, 119, 0, 0, 0, 0, 0, 0, 0, 0, 7, 118, 41, 153, 153, 146, 103, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 98, 153, 153, 38, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 118, 33, 18, 103, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 102, 102, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 119, 119, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
11
12unsigned char D_0A000600_E4B080[] = {
1389, 138, 247, 171, 231, 69, 49, 193, 196, 193, 230, 231, 204, 145, 89, 139, 83, 183, 59, 47, 42, 101, 0, 209, 93, 119, 92, 183, 0, 1, 0, 1 };
14
15
17 {{{ 13, 13, 0 }, 0, { 0, 0 }, { 255, 255, 255, 255 }}},
18 {{{ -13, 13, 0 }, 0, { 1024, 0 }, { 255, 255, 255, 255 }}},
19 {{{ -13, -13, 0 }, 0, { 1024, 1024 }, { 255, 255, 255, 255 }}},
20 {{{ 13, -13, 0 }, 0, { 0, 1024 }, { 255, 255, 255, 255 }}},
21};
22
24 gsDPSetTextureLUT(G_TT_RGBA16),
25 gsDPLoadTLUT_pal16(0, D_0A000600_E4B080),
26 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
27 gsDPSetTextureDetail(G_TD_CLAMP),
28 gsDPSetTextureLOD(G_TL_TILE),
29 gsDPSetTexturePersp(G_TP_PERSP),
30 gsDPSetTextureFilter(G_TF_BILERP),
31 gsSPEndDisplayList(),
32};
33
35 gsDPSetCycleType(G_CYC_1CYCLE),
37 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
38 gsSPVertex(Entity_UltraBlockContent_vtx, 4, 0),
39 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
40 gsSPEndDisplayList(),
41};
42
44 gsDPPipeSync(),
45 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
46 gsDPLoadTextureBlock_4b(D_0A000400_E4AE80, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
48 gsSPEndDisplayList(),
49};
50
52 gsDPPipeSync(),
53 gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
54 gsDPLoadTextureBlock_4b(D_0A000400_E4AE80, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
56 gsSPEndDisplayList(),
57};
58
60 gsDPPipeSync(),
61 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
62 gsDPLoadTextureBlock_4b(D_0A000200_E4AC80, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
64 gsSPEndDisplayList(),
65};
66
68 gsDPPipeSync(),
69 gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
70 gsDPLoadTextureBlock_4b(D_0A000200_E4AC80, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
72 gsSPEndDisplayList(),
73};
Vtx Entity_UltraBlockContent_vtx[]
unsigned char D_0A000400_E4AE80[]
Gfx Entity_UltraBlockContent_RenderImage[]
Gfx Entity_UltraBlockContent_Render3[]
Gfx Entity_UltraBlockContent_Render4[]
unsigned char D_0A000000_E4AA80[]
unsigned char D_0A000200_E4AC80[]
Gfx Entity_UltraBlockContent_Render[]
Gfx Entity_UltraBlockContent_LoadPalette[]
Gfx Entity_UltraBlockContent_Render2[]
unsigned char D_0A000600_E4B080[]