| Table of Contents | ||
|
|
||
| EraseImage | ||
|
Purpose Clears the surface of an image |
||
|
Protoype void CImageMngr::EraseImage (string str_img_id) |
||
|
Parameters
|
||
|
Description Although there is also a function to remove an image object from the manager, this function serves a slightly different purpose. Instead of having to go through the process of removing and then adding a new image, sometimes it is just easier to erase the image and blit a new one. This function fills in the surface of the image object with its transparent color and erases any image stored in the surface. |
||
|
Use CImageMngr image; image.EraseImage("my_image");
|
||
|
|
||
|