Guest User

Untitled

a guest
May 16th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <allegro5/allegro.h>
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6.  
  7. ALLEGRO_DISPLAY *display = NULL;
  8.  
  9. if(!al_init()) {
  10. fprintf(stderr, "failed to initialize allegro!\n");
  11. return -1;
  12. }
  13.  
  14. display = al_create_display(640, 480);
  15. if(!display) {
  16. fprintf(stderr, "failed to create display!\n");
  17. return -1;
  18. }
  19.  
  20. al_clear_to_color(al_map_rgb(0,0,0));
  21.  
  22. al_flip_display();
  23.  
  24. al_rest(10.0);
  25.  
  26. al_destroy_display(display);
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment