Rally X
ELEN3009 Project by Justin Wernick and David Schneider
|
Class ensures that Allegro is initialized and uninstalled when appropriate. More...
#include <AllegroWrappers.h>
Public Member Functions | |
AllegroInit () | |
Constructor calls al_init() if it is the first instance. | |
AllegroInit (const AllegroInit &ref) | |
Copy constructor, implemented to be included in instance count. | |
~AllegroInit () | |
Destructor calls al_uninstall_system() if it is the last instant. | |
Static Private Attributes | |
static int | _initCount = 0 |
Count of the current number of initialised AllegroInit objects. |
Class ensures that Allegro is initialized and uninstalled when appropriate.
Any classes that use Allegro should include this class as a data member.
Definition at line 25 of file AllegroWrappers.h.
AllegroInit::AllegroInit | ( | ) |
Constructor calls al_init() if it is the first instance.
Definition at line 5 of file AllegroWrappers.cpp.
AllegroInit::AllegroInit | ( | const AllegroInit & | ref | ) |
Copy constructor, implemented to be included in instance count.
Definition at line 17 of file AllegroWrappers.cpp.
AllegroInit::~AllegroInit | ( | ) |
Destructor calls al_uninstall_system() if it is the last instant.
Definition at line 29 of file AllegroWrappers.cpp.
int AllegroInit::_initCount = 0 [static, private] |
Count of the current number of initialised AllegroInit objects.
Definition at line 45 of file AllegroWrappers.h.