Menu

Allegro and bimap need help

Anonymous
2002-09-11
2012-09-26
  • Anonymous

    Anonymous - 2002-09-11

    I'm trying to load a bimap with allegro

    BITMAP *my_pic;
    my_pic =load_bitmap("laberge.bmp", NULL);
    acquire_screen();
    blit(my_pic, screen, 0,0,0,0,480,360);
    release_screen();

    The tutorial say that load_bitmap("Location of the bitmap", pallete);
    But how do you indicate the location? Is it load_bitmap("c:..."). I've try to use the edit resource file but no success because I don't know how to use it.

    Thanks

    cognacd

     
    • Ben Li

      Ben Li - 2002-09-22

      This should load the bitmap laberge.bmp if it is in the same directory as your exe file

      BITMAP *my_pic;
      my_pic =load_bitmap("laberge.bmp", NULL);

      Also, you can post allegro questions at

      www.allegro.cc

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.