Q:

Removing drawn Allegro texts and primitives

I'm working on a game with Allegro 5 that has a loop. I'd like to make the program write onto the screen, how much time the loop has ended. These are the rounds of a turn-based game, obviously. I use the al_draw_textf function for it, which works perfectly, but I put it into the loop. Its consequence is obviously that the number is written on the same place all the time. 
To prevent it, I should delete it at the beginning of every loop. Sadly, I couldn't find any functions in Allegro Manual that does it. How can I do that then?

A:

Typically, you would do a Clear Screen before starting your subsequent Draws, otherwise all your drawings would remain on screen and overlap.
With Allegro, you will need to clear the bitmap you are drawing to before you draw to the screen.  I haven't used Allegro in a very long time, so I may be wrong about this.

