1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
#include <allegro5/allegro.h>
int main(int argc, char **argv){
	ALLEGRO_DISPLAY *display = NULL;
	if(!al_init()){
		fprintf(stderr, "failed to initialize allegro!\n");
		return EXIT_FAILURE;
	}
	display = al_create_display(640, 480);
	if(!display){
		fprintf(stderr, "failed to create display!\n");
		return EXIT_FAILURE;
	}
	al_clear_to_color(al_map_rgb(0,0,0));
	al_flip_display();
	al_rest(10.0);
	al_destroy_display(display);
	return EXIT_SUCCESS;
}