Allegro Question..

This is a discussion on Allegro Question.. within the Game Programming forums, part of the General Programming Boards category; hello! I have a question for a game im making where for a background I have a bmp. Would it ...

  1. #1
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138

    Allegro Question..

    hello! I have a question for a game im making where for a background I have a bmp. Would it be beter to just draw the pictures in the game to the background, or would it be better to draw the pictures to the buffer and background to the buffer as well. ALso, if I should draw the pictures to the background, should I just eliminate the buffer? Thank you!

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    You're gonna have to draw the background to a buffer, because you need to clear the buffer between each frame.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138
    ahh I finaly got it to work right, ty for reply!

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    If the background covers the whole screen you wouldn't even need to clear the buffer. Just draw the background to the buffer, and the background will overwrite the last frame. You can actually get a higher framerate like this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Allegro Programming Question
    By xmltorrent in forum Game Programming
    Replies: 2
    Last Post: 08-24-2006, 02:45 PM
  2. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  3. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 02:57 PM
  4. ALLEGRO Question
    By Unregistered in forum Game Programming
    Replies: 10
    Last Post: 10-22-2001, 01:27 PM
  5. ALLEGRO Question
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 09-14-2001, 11:06 AM

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