bitmaps with allegro

This is a discussion on bitmaps with allegro within the Game Programming forums, part of the General Programming Boards category; i've just started using allegro to design games. how can i load a bitmap from memory and display it on ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    64

    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
    Posts
    208

    like this

    Code:
    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

    HERE

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

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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, 05:12 PM
  2. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 03:00 AM
  3. double buffering for allegro
    By Leeman_s in forum C++ Programming
    Replies: 6
    Last Post: 09-12-2002, 03:45 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-21-2002, 12:35 AM
  5. trouble loading bitmaps in allegro
    By bobish in forum Game Programming
    Replies: 10
    Last Post: 02-28-2002, 06:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21