[ create a new paste ] login | about

Link: http://codepad.org/Oy6Uvk0b    [ 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 *display = al_create_display(640, 480);
   ALLEGRO_BITMAP *bmp = al_load_bitmap("Image.png");

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

   al_destroy_bitmap(bmp);
   al_destroy_display(display);
   return 0;
}


Create a new paste based on this one


Comments: