Listing 1. Beginning of the program named ImageDisplay01.
#include <allegro.h> int main(){ //Typical Allegro setup. allegro_init(); install_keyboard(); set_color_depth(32); //Create an onscreen window 332x651 pixels in size. set_gfx_mode(GFX_AUTODETECT_WINDOWED,332,651,0,0); |