How - Let user load bmp at runtime
ing

I'm using C (DevC++) and Allegro.
I would like to make it possible for the user to take a bmp from any source other than the program and load it into the game as a background image.
How can I do this ?

Rampage

1. Get input from user.
2. Validate that the input represents a vaild path to a valid bmp.
3. Call load_bitmap() using the user input.
4. Replace the current background with the new one.
5. Profit!

ing

Yes, well it's quite obvious that you would want input from the user since it's the user that's supposed to load the picture.
My Q was, how do I do this.

CGamesPlay

You can use:file_select_ex

Thread #590664. Printed from Allegro.cc