54 if (osTvType == OS_TV_NTSC) {
56 osViSetMode(&osViModeNtscLan1);
57 osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF | OS_VI_DIVOT_ON | OS_VI_DITHER_FILTER_ON);
63 if (osTvType == OS_TV_NTSC) {
64 osViSetMode(&osViModeNtscLan1);
65 osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF | OS_VI_DIVOT_ON | OS_VI_DITHER_FILTER_ON);
66 }
else if (osTvType == OS_TV_MPAL) {
67 osViSetMode(&osViModeMpalLan1);
68 osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF | OS_VI_DIVOT_ON | OS_VI_DITHER_FILTER_ON);
150 gSPTexture(
gMainGfxPos++, -1, -1, 0, G_TX_RENDERTILE, G_ON);
154 gDPSetRenderMode(
gMainGfxPos++, G_RM_OPA_SURF, G_RM_OPA_SURF2);
159 gDPLoadTextureTile_4b(
gMainGfxPos++,
ResetTilesImg, G_IM_FMT_I, 128, 8, 0, 0, 127, 7, 0, G_TX_NOMIRROR | G_TX_WRAP,
160 G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
162 for (i = 0; i < 20; i++) {
163 for (j = 0; j < 15; j++) {
172 gSPTextureRectangle(
gMainGfxPos++, ((i * 8) + 160) * 4,
177 (t * 8) * 32, 0, 0x0400, 0x0400);
178 gSPTextureRectangle(
gMainGfxPos++, ((i * 8) + 160) * 4,
183 (t * 8) * 32, 7 * 32, 0x0400, -0x0400);
184 gSPTextureRectangle(
gMainGfxPos++, (152 - (i * 8)) * 4,
189 (t * 8 + 7) * 32, 0, -0x0400, 0x0400);
190 gSPTextureRectangle(
gMainGfxPos++, (152 - (i * 8)) * 4,
195 (t * 8 + 7) * 32, 7 * 32, -0x0400, -0x0400);
void boot_main(void *data)
DisplayContext DisplayContexts[2]
void gfxPreNMI_Callback(void)
void gfx_init_state(void)
void load_engine_data(void)
void gfx_draw_frame(void)
u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE]
void appendGfx_reset_tile_pattern(void)
void gfxRetrace_Callback(s32)
void create_audio_system(void)
void gfx_task_end_callback(void *unk)
u16 * ResetFrameBufferArray