Initialize Allegro

The call to allegro_init in Listing 2 is required at the beginning of the program.

This call sets up all the components that Allegro needs.

Listing 2. Initialize Allegro.
int main(){
  allegro_init();