14 gsDPSetTextureLUT(G_TT_NONE),
15 gsSPTexture(-1, -1, 0, G_TX_RENDERTILE, G_ON),
16 gsDPLoadTextureBlock_4b(theater_walls_png, G_IM_FMT_I, 16, 32, 0, G_TX_NOMIRROR | G_TX_WRAP,
17 G_TX_NOMIRROR | G_TX_CLAMP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
24 gsDPSetTextureLUT(G_TT_NONE),
25 gsSPTexture(-1, -1, 0, G_TX_RENDERTILE, G_ON),
26 gsDPLoadTextureBlock(theater_curtains_png, G_IM_FMT_RGBA, G_IM_SIZ_32b, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP,
27 G_TX_NOMIRROR | G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
35 gsDPSetTextureLUT(G_TT_RGBA16),
36 gsDPLoadTLUT_pal16(0, theater_floor_pal),
37 gsSPTexture(-1, -1, 0, G_TX_RENDERTILE, G_ON),
38 gsDPLoadTextureBlock_4b(theater_floor_png, G_IM_FMT_CI, 32, 16, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR |
39 G_TX_WRAP, 5, 4, G_TX_NOLOD, G_TX_NOLOD),
53 gsDPSetRenderMode(G_RM_PASS, G_RM_CLD_SURF2),
56 gsSPVertex(theater_wall_shadows_vtx, 8, 0),
57 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
58 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
64 gsDPSetRenderMode(G_RM_PASS, G_RM_XLU_SURF2),
67 gsSPVertex(theater_curtain_vtx, 31, 0),
68 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
69 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
70 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
71 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
72 gsSP2Triangles(15, 16, 17, 0, 15, 17, 18, 0),
73 gsSP2Triangles(19, 20, 21, 0, 19, 21, 22, 0),
74 gsSP2Triangles(13, 23, 24, 0, 13, 24, 14, 0),
75 gsSP2Triangles(23, 25, 26, 0, 23, 26, 24, 0),
76 gsSP2Triangles(25, 27, 28, 0, 25, 28, 26, 0),
77 gsSP2Triangles(27, 29, 30, 0, 27, 30, 28, 0),
83 gsDPSetRenderMode(G_RM_PASS, G_RM_XLU_SURF2),
85 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
86 gsSPVertex(theater_left_inset_shadow_vtx, 4, 0),
87 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
88 gsSPVertex(theater_right_inset_shadow_vtx, 4, 0),
89 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
95 gsDPSetRenderMode(CVG_DST_FULL | ZMODE_OPA | FORCE_BL | G_RM_PASS, CVG_DST_FULL | ZMODE_OPA | FORCE_BL |
96 GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)),
99 gsSPVertex(theater_floor_vtx, 25, 0),
100 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
101 gsSP2Triangles(4, 5, 0, 0, 4, 0, 3, 0),
102 gsSP2Triangles(1, 6, 7, 0, 1, 7, 2, 0),
103 gsSP2Triangles(3, 8, 9, 0, 3, 9, 10, 0),
104 gsSP2Triangles(11, 4, 3, 0, 11, 3, 10, 0),
105 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
106 gsSP2Triangles(8, 12, 15, 0, 8, 15, 9, 0),
107 gsSP2Triangles(6, 16, 13, 0, 6, 13, 7, 0),
108 gsSP2Triangles(14, 17, 18, 0, 19, 14, 18, 0),
109 gsSP2Triangles(20, 11, 21, 0, 11, 22, 21, 0),
110 gsSP2Triangles(23, 19, 18, 0, 23, 18, 24, 0),
111 gsSP2Triangles(22, 23, 24, 0, 22, 24, 21, 0),
112 gsSPEndDisplayList(),
117 gsDPSetRenderMode(CVG_DST_FULL | ZMODE_OPA | FORCE_BL | G_RM_PASS, CVG_DST_FULL | ZMODE_OPA | FORCE_BL |
118 GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)),
121 gsSPVertex(theater_right_wall_vtx, 6, 0),
122 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
123 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
124 gsSPEndDisplayList(),
129 gsDPSetRenderMode(CVG_DST_FULL | ZMODE_OPA | FORCE_BL | G_RM_PASS, CVG_DST_FULL | ZMODE_OPA | FORCE_BL |
130 GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)),
133 gsSPVertex(theater_left_wall_vtx, 6, 0),
134 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
135 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
136 gsSPEndDisplayList(),
158 gsDPSetCycleType(G_CYC_2CYCLE),
159 gsDPSetTextureLOD(G_TL_TILE),
160 gsDPSetTexturePersp(G_TP_PERSP),
161 gsDPSetTextureFilter(G_TF_BILERP),
162 gsDPSetTextureDetail(G_TD_CLAMP),
163 gsDPSetTextureConvert(G_TC_FILT),
164 gsDPSetCombineKey(G_CK_NONE),
165 gsDPSetAlphaCompare(G_AC_NONE),
166 gsDPSetScissor(G_SC_NON_INTERLACE, 0, 0, 320, 240),
167 gsDPSetColorDither(G_CD_MAGICSQ),
168 gsDPSetAlphaDither(G_AD_PATTERN),
169 gsSPClearGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BOTH | G_FOG | G_LIGHTING | G_TEXTURE_GEN |
170 G_TEXTURE_GEN_LINEAR | G_LOD | G_SHADING_SMOOTH | G_CLIPPING | 0x0040F9FA),
171 gsSPSetGeometryMode(G_SHADE | G_SHADING_SMOOTH),
172 gsSPPerspNormalize(0x0014),
173 gsSPEndDisplayList(),
180 gsSPTexture(-1, -1, 0, G_TX_RENDERTILE, G_ON),
181 gsDPSetCycleType(G_CYC_1CYCLE),
182 gsDPSetTexturePersp(G_TP_NONE),
183 gsDPSetTextureDetail(G_TD_CLAMP),
184 gsDPSetTextureLOD(G_TL_TILE),
185 gsDPSetTextureFilter(G_TF_POINT),
186 gsDPSetTextureConvert(G_TC_FILT),
187 gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
188 gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2),
189 gsDPSetTextureLUT(G_TT_NONE),
190 gsDPLoadTextureTile(ui_no_controller_png, G_IM_FMT_IA, G_IM_SIZ_8b, ui_no_controller_png_width,
191 ui_no_controller_png_height, 0, 0, ui_no_controller_png_width - 1,
192 ui_no_controller_png_height - 1, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 7,
193 5, G_TX_NOLOD, G_TX_NOLOD),
194 gsSPClearGeometryMode(G_CULL_BOTH | G_LIGHTING),
195 gsSPSetGeometryMode(G_SHADE | G_SHADING_SMOOTH),
196 gsSPEndDisplayList(),
241 guFrustumF(m, -80.0f, 80.0f, -60.0f, 60.0f, 160.0f, 640.0f, 1.0f);
251 guPositionF(m, 0.0f, 0.0f, 0.0f, scale * 0.1, 0.0f, 0.0f, -320.0f);
263 if (gCurtainDrawCallback != NULL) {
264 gCurtainDrawCallback();
279 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 0xFF, 0x20, 0x10, alpha);