Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
StarBoxLauncher.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/StarBoxLauncher_1.vtx.inc.c"
5#include "entity/model/StarBoxLauncher_2.vtx.inc.c"
6#include "entity/model/StarBoxLauncher_3.vtx.inc.c"
7#include "entity/model/StarBoxLauncher_4.vtx.inc.c"
8
9INCLUDE_IMG("entity/model/StarBoxLauncher_link.png", D_0A000290_E55CD0);
11 gsDPSetTextureLUT(G_TT_NONE),
12 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
13 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
14 gsDPSetTextureDetail(G_TD_CLAMP),
15 gsDPSetTextureLOD(G_TL_TILE),
16 gsDPLoadTextureBlock(D_0A000290_E55CD0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
17 gsDPSetTexturePersp(G_TP_PERSP),
18 gsDPSetTextureFilter(G_TF_BILERP),
19 gsSPEndDisplayList(),
20};
21
22INCLUDE_IMG("entity/model/StarBoxLauncher_face.png", D_0A000508_E55F48);
23INCLUDE_PAL("entity/model/StarBoxLauncher_face.pal", D_0A000D08_E56748);
25 gsDPSetTextureLUT(G_TT_RGBA16),
26 gsDPLoadTLUT_pal16(0, D_0A000D08_E56748),
27 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
28 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
29 gsDPSetTextureDetail(G_TD_CLAMP),
30 gsDPSetTextureLOD(G_TL_TILE),
31 gsDPLoadTextureBlock_4b(D_0A000508_E55F48, G_IM_FMT_CI, 128, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 7, 5, G_TX_NOLOD, G_TX_NOLOD),
32 gsDPSetTexturePersp(G_TP_PERSP),
33 gsDPSetTextureFilter(G_TF_BILERP),
34 gsSPEndDisplayList(),
35};
36
37INCLUDE_IMG("entity/model/StarBoxLauncher_box.png", D_0A000DD0_E56810);
38INCLUDE_PAL("entity/model/StarBoxLauncher_box.pal", D_0A000ED0_E56910);
40 gsDPSetTextureLUT(G_TT_RGBA16),
41 gsDPLoadTLUT_pal16(0, D_0A000ED0_E56910),
42 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
43 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
44 gsDPSetTextureDetail(G_TD_CLAMP),
45 gsDPSetTextureLOD(G_TL_TILE),
46 gsDPLoadTextureBlock_4b(D_0A000DD0_E56810, G_IM_FMT_CI, 16, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
47 gsDPSetTexturePersp(G_TP_PERSP),
48 gsDPSetTextureFilter(G_TF_BILERP),
49 gsSPEndDisplayList(),
50};
51
53 1.000000, 0.000000, 0.000000, 0.000000,
54 0.000000, 1.000000, 0.000000, 0.000000,
55 0.000000, 0.000000, 1.000000, 0.000000,
56 0.000000, 0.000000, 0.000000, 1.000000
57);
58
60 gsDPPipeSync(),
61 gsDPSetCycleType(G_CYC_1CYCLE),
62 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
64 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
65 gsSPSetGeometryMode(G_CULL_BACK),
66 gsSPVertex(D_0A000250_E55C90, 4, 0),
67 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
68 gsSPEndDisplayList(),
69};
70
72 gsDPPipeSync(),
73 gsDPSetCycleType(G_CYC_1CYCLE),
74 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
75 gsSPClearGeometryMode(G_LIGHTING),
76 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
77 gsSPVertex(D_0A000210_E55C50, 4, 0),
78 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
79 gsSPEndDisplayList(),
80};
81
83 gsDPPipeSync(),
84 gsDPSetCycleType(G_CYC_1CYCLE),
85 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
87 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
88 gsSPSetGeometryMode(G_SHADING_SMOOTH),
89 gsSPVertex(D_0A0000F0_E55B30, 18, 0),
90 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
91 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
92 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
93 gsSP2Triangles(10, 11, 12, 0, 10, 12, 13, 0),
94 gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0),
95 gsSPEndDisplayList(),
96};
97
99 gsSPDisplayList(Entity_StarBoxLauncher_RenderFace),
101 gsSPDisplayList(Entity_StarBoxLauncher_RenderChain),
102 gsSPEndDisplayList(),
103};
104
106 gsDPPipeSync(),
107 gsDPSetCycleType(G_CYC_1CYCLE),
108 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
110 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
111 gsSPSetGeometryMode(G_SHADING_SMOOTH),
112 gsSPVertex(D_0A000000_E55A40, 15, 0),
113 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
114 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
115 gsSP2Triangles(7, 8, 9, 0, 7, 9, 10, 0),
116 gsSP2Triangles(11, 12, 13, 0, 11, 13, 14, 0),
117 gsSPEndDisplayList(),
118};
119
121 gsSPDisplayList(Entity_StarBoxLauncher_RenderBox),
122 gsSPEndDisplayList(),
123};
124
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx Entity_StarBoxLauncher_LoadTextureLink[]
Gfx Entity_StarBoxLauncher_RenderBox[]
Gfx Entity_StarBoxLauncher_RenderChain[]
Mtx Entity_StarBoxLauncher_mtx
Gfx Entity_StarBoxLauncher_RenderFace[]
Gfx Entity_StarBoxLauncher_LoadTextureBox[]
Gfx Entity_StarBoxLauncher_RenderBoxCover[]
Gfx Entity_StarBoxLauncher_LoadTextureFace[]
Gfx Entity_StarBoxLauncher_RenderTop[]
unsigned char D_0A000508_E55F48[]
unsigned char D_0A000D08_E56748[]
Gfx Entity_StarBoxLauncher_RenderBottom[]
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233