void Hardware_DeInit( void ) { Screen_DeInit(); Graphic_DeInit(); Video_DeInit(); IKBD_DeInit(); Vbl_DeInit(); System_DeInit(); }
void NDS_DeInit(void) { if(MMU.CART_ROM != MMU.UNUSED_RAM) NDS_FreeROM(); nds.nextHBlank = 3168; SPU_DeInit(); Screen_DeInit(); MMU_DeInit(); gpu3D->NDS_3D_Close(); }
void Test_Loop( void ) { Screen_Init(); Box_Render(); while( !IKBD_GetKeyStatus(eIKBDSCAN_SPACE) ) { } Screen_DeInit(); }
void Test_Loop( void ) { Screen_Init(); gpPicture = File_Load( "RGLOGO.PI1" ); if( gpPicture ) { Memory_Copy( 32000L, &gpPicture->Pixels[ 0 ], gpPhysic ); Video_SetNextPalST( &gpPicture->Header.Palette[ 0 ] ); while( !IKBD_GetKeyStatus(eIKBDSCAN_SPACE) ) { } } File_UnLoad( gpPicture ); Screen_DeInit(); }
void Test_Loop( void ) { sGraphicPos lPos; S16 lAddX,lAddY; sSprite * lpSprite; Screen_Init(); gpPicture = File_Load( "SPRITE.PI1" ); if( gpPicture ) { Video_SetPalST( &gpPicture->Header.Palette[ 0 ] ); lPos.X = 0; lPos.Y = 0; lAddX = 1; lAddY = 1; lpSprite = Sprite_Create( &gpPicture->Pixels[ 0 ], &gpPicture->Pixels[ 0 ], 16, 16, 4, 0 ); while( !IKBD_GetKeyStatus(eIKBDSCAN_SPACE) ) { Screen_Swap(); gGraphic.pVRAM = gpLogic; gGraphic.pFuncs->ClearScreen( &gGraphic ); gGraphic.pClipFuncs->DrawSprite( &gGraphic, &lPos, lpSprite ); if( lAddX > 0 ) { lPos.X++; if( lPos.X > (320-16) ) { lPos.X = 320-16; lAddX = -1; } } else { lPos.X--; if( lPos.X < 0 ) { lPos.X = 0; lAddX = 1; } } if( lAddY > 0 ) { lPos.Y++; if( lPos.Y > (200-16) ) { lPos.Y = 200-16; lAddY = -1; } } else { lPos.Y--; if( lPos.Y < 0 ) { lPos.Y = 0; lAddY = 1; } } } } File_UnLoad( gpPicture ); Screen_DeInit(); }