Beispiel #1
0
void shutdown_font_renderer()
{
#ifdef USE_ALFONT
  set_our_eip(9919);
  alfont_exit();
#endif
}
Beispiel #2
0
int main()
{
    if (install())
        game.run();

    alfont_exit();
    logbook("Allegro FONT library shut down.");

    // Now we are all neatly closed, we exit Allegro and return to OS hell.
    allegro_exit();
    logbook("Allegro shut down.");
    logbook("\nThanks for playing!");
    return 0;
}
void Application::Destroy()
{
    log("destroying app resources\n");

    if (mouseButtons != NULL)
    {
        delete [] mouseButtons;
        mouseButtons = NULL;
    }

    if (prevMouseButtons != NULL)
    {
        delete [] prevMouseButtons;
        prevMouseButtons = NULL;
    }

    if (mousePressedLocs != NULL)
    {
        delete [] mousePressedLocs;
        mousePressedLocs = NULL;
    }

    if (loadingImg != NULL)
    {
        destroy_bitmap(loadingImg);
        loadingImg = NULL;
    }

    if (font != NULL)
    {
        alfont_destroy_font(font);
        font = NULL;
    }

    // allegro shutdown
    log("shutting down engine\n");
    allegro_exit();
    alfont_exit();

    log("game exiting\n");

    // logging
    if (logFile != NULL)
    {
        fclose(logFile);
        logFile = NULL;
    }
}
CAllegroDisplay::~CAllegroDisplay()
{
  fclose(error_log);
  alfont_exit();
  allegro_exit();
}
Beispiel #5
0
void deinit() {
	clear_keybuf();
	alfont_exit(); 
    allegro_exit();
	/* add other deinitializations here */
}