|
Drawing Operations Not Working |
AlejandroRM
Member #21,513
October 2021
|
Hello! I'm a Allegro newbie and not enough experienced C++ programmer having a problem. I want to develop a spaceships videogame but when I try to do things like loading images outside the main.cpp, everything "works" but when I try to draw them, nothing happens or the program crashes and exits with code 1. |
DanielH
Member #934
January 2001
|
1st rule is to post some code. There are numerous reasons this could happen. |
Chris Katko
Member #1,881
January 2002
|
I'd bet you: 1) you're not loading files after setting up allegro and creating a display. or 2) you're not checking if bitmaps are NULL after al_load_bitmap which means it's likely failing because you have the path wrong. -----sig: |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Poured gasoline on engine. Still not working. Gonna have a cigarette. Checklist : 2) Are you making copies (shallow) copies of objects? 3) What do you mean not working. Not compiling? Not linking? Not running? 4) Have you checked return values of functions that could fail? 5) As they said, did you create your bitmaps after calling al_init? 6) What was the return value of al_load_bitmap? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|