Hi, I'm trying to find a way to make a text box in C, or something that will keep the text seperate from images, that way, when I clear screen, only the text is cleared, and the image remains.
Hi, I'm trying to find a way to make a text box in C, or something that will keep the text seperate from images, that way, when I clear screen, only the text is cleared, and the image remains.
Try using
getimage() and putimage() functions (defined in graphics.h). What u actually do is that u first draw all the images that u want to on the screen and capture that image as it is (using getimage) then u put in the text or do what ever u want to. Now, when u want to clear the screen, clear the screen and put back the stored image (use putimage) onto the screen.
-Harsha.
Help everyone you can