[ create a new paste ] login | about

Link: http://codepad.org/liJD2weO    [ raw code | fork ]

C++, pasted on Jul 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>

int main(int argc, char *argv[]) 
{
   al_init();
   al_init_image_addon();

   ALLEGRO_DISPLAY *my_display = al_create_display(640, 480);
   ALLEGRO_BITMAP *my_bitmap = al_load_bitmap("Image.png");

   al_clear_to_color(al_map_rgb(0,0,0));
   al_draw_bitmap(my_bitmap, 50, 50, 0);
   al_flip_display();
   al_rest(10.0);

   al_destroy_bitmap(my_bitmap);
   al_destroy_display(my_display);
   return 0;
}


Create a new paste based on this one


Comments: