|failure without bitmap|
Hello, I am trying to insert an image into my game and gives the following error:
Assertion failed: bitmap, file d:/Libraries\build\allegro\src\allegro-git\src\bitmap_draw.c, line 138
janela = al_create_display(1080, 720);
imagem = al_load_bitmap("capturar.jpg");
al_draw_bitmap(imagem, 0, 0, 0);
I wanted to know how to solve the problem, because it gave in more than one code
Hi Vieira - welcome to the forums.
It seems your bitmap pointer imagem is null. This means al_load_bitmap was unable to load the file you specified, "capturar.jpg".
For future reference, please post questions like this in the programming questions subforum; "Allegro Development" is for discussion of the development of the Allegro library (rather than with it).