void exitServices() { gpuExit(); gfxExit(); sdmcExit(); hidExit(); }
int main() { // Initialize graphics gfxInitDefault(); gpuInit(); // Initialize the scene sceneInit(); gpuClearBuffers(CLEAR_COLOR); // Main loop while (aptMainLoop()) { gspWaitForVBlank(); // Synchronize with the start of VBlank gfxSwapBuffersGpu(); // Swap the framebuffers so that the frame that we rendered last frame is now visible hidScanInput(); // Read the user input // Respond to user input u32 kDown = hidKeysDown(); if (kDown & KEY_START) break; // break in order to return to hbmenu // Render the scene gpuFrameBegin(); sceneRender(); gpuFrameEnd(); gpuClearBuffers(CLEAR_COLOR); // Flush the framebuffers out of the data cache (not necessary with pure GPU rendering) //gfxFlushBuffers(); } // Deinitialize the scene sceneExit(); // Deinitialize graphics gpuExit(); gfxExit(); return 0; }
void GLimp_Shutdown( void ) { gpuExit(); }