int main() { // create the host subsystem. B_NEW( "client", EHost ); B_VERIFY( gHost->Init(), return 0 ); // initialize the renderer. GrInit( "ZOMG!", GAME_SCREEN_WIDTH, GAME_SCREEN_HEIGHT ); // main loop. bool done = false; while ( !done ) { // compute delta time. uint dt = 1000 / 60; // update the host subsystem. if ( !gHost->Update( dt ) ) done = true; } // shutdown the renderer. GrShutdown(); // delete the host subsystem. B_DEL( "client", gHost ); return 0; }
void S9xDeinitDisplay () { S9xTextMode (); #ifdef GRIP_SUPPORT if (grip_initialised) { GrShutdown (); GrUnlink (); } #endif destroy_bitmap (off_screen); if (sub_screen) destroy_bitmap (sub_screen); delete Delta; if (GFX.ZBuffer) free ((char *) GFX.ZBuffer); if (GFX.SubZBuffer) free ((char *) GFX.SubZBuffer); GFX.ZBuffer = NULL; GFX.SubZBuffer = NULL; }