Table of Contents

 
RemoveAllImages
 

Purpose

Removes all the images to be rendered on a given layer or every layer

 

Protoype

void CTileMngr::RemoveAllImages (int i_layer = -1)
 

Parameters

layer the layer to remove the images from
 

Description

This function removes image IDs from a layer, which means the images are no longer rendered with the map. The original image objects remain intact, however. If you do not specify a layer to remove IDs from, all image layers will be affected. Note also that the image layers themselves will still exist, they will just be empty.

 

Use

CTileMngr tile_mngr;
// remove only images on layer 3
tile_mngr.RemoveAllImages(3);
// remove all images in all image layeers
tile_mngr.RemoveAllImages(); 
 

Prev: PositionMap