Table of Contents

 
RemoveImage
 

Purpose

Frees a given image and removes it from the manager

 

Protoype

void CImageMngr::RemoveImage (string str_img_id)
 

Parameters

img_id the ID of the image object to remove
 

Description

This function removes a single image object from the manager. It also calls the SDL_FreeSurface() routine in order to release the surface storing the image and thus free up memory immediately.

 

Use

CImageMngr image;
image.RemoveImage("my_image");
 

Prev: RemoveAll