Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <allegro5/allegro.h>
- #include <stdio.h>
- int main(void)
- {
- ALLEGRO_DISPLAY *display = NULL;
- if(!al_init()) {
- fprintf(stderr, "failed to initialize allegro!\n");
- return -1;
- }
- display = al_create_display(640, 480);
- if(!display) {
- fprintf(stderr, "failed to create display!\n");
- return -1;
- }
- al_clear_to_color(al_map_rgb(0,0,0));
- al_flip_display();
- al_rest(10.0);
- al_destroy_display(display);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment