Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > A

allegro_exit

man page of allegro_exit

allegro_exit: Closes down the Allegro system.

NAME

allegro_exit - Closes down the Allegro system.

SYNOPSIS

#include <allegro.h> void allegro_exit();
DESCRIPTION
Closes down the Allegro system. This includes returning the system to text mode and removing whatever mouse, keyboard, and timer routines have been installed. You don't normally need to bother making an explicit call to this function, because allegro_init() installs it as an atexit() routine so it will be called automatically when your program exits. Note that after you call this function, other functions like destroy_bitmap() will most likely crash. This is a problem for C++ global destructors, which usually get called after atexit(), so don't put Allegro calls in them. You can write the destructor code in another method which you can manually call before your program exits, avoiding this problem.
SEE ALSO
install_allegro(3alleg), allegro_init(3alleg), destroy_bitmap(3alleg), ex3d(3alleg), exscn3d(3alleg), exswitch(3alleg), exxfade(3alleg),
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 39.93ms.

information-information.de | generiere.de | Ermitteln Sie Ihre IP-Adresse schnell und einfach