Thread: bitmaps with allegro

  1. #1
    Registered User
    Join Date
    Jan 2002

    bitmaps with allegro

    i've just started using allegro to design games.

    how can i load a bitmap from memory and display it on screen?

    i've tried nothing and i'm all out of ideas.

    Thanks guys.

  2. #2
    Registered User
    Join Date
    May 2002

    like this

    BITMAP *pic;
    pic=load_bitmap("picture.bmp", null);
    I think I may have made a syntax error or sumthing but I think thats rite.

    to display it you use

    blit(pic, screen, 0, 0, 0, 0, 640, 480);

    you can find a good tutorial on all this at


    oh and if u search on google you will find many more tutorials.
    Last edited by kas2002; 08-03-2002 at 08:12 AM.
    Jeff Paddon
    Undergraduate Research Assistant
    Physics Department
    St. Francis Xavier University

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    for the most part all you are going to need are the allegro docs; there in your allegro folder. also, here is the link to the main allegro site.

    doc9 will have information about loading bitmaps and doc13 will have information about displaying bitmaps.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Loading Bitmaps in Allegro
    By LiNeAr in forum Game Programming
    Replies: 1
    Last Post: 08-15-2005, 04:12 PM
  2. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 02:00 AM
  3. double buffering for allegro
    By Leeman_s in forum C++ Programming
    Replies: 6
    Last Post: 09-12-2002, 02:45 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM
  5. trouble loading bitmaps in allegro
    By bobish in forum Game Programming
    Replies: 10
    Last Post: 02-28-2002, 06:07 PM