Table of Contents

 
GetImages
 

Purpose

Returns the images in a layer or all the images in all the layers

 

Protoype

images CTileMngr::GetImages (int i_layer = -1)
 

Parameters

layer the specific layer to get images from
 

Description

This function doesn't return the number of images in a layer, but a list of image IDs from that layer. You can either get all the images in all the image layers or pass in a specific layer number to get only the images in that layer. The return value is of type image, which is a typedefed STL list class.

 

Use

CTileMngr tile_mngr;
// get all image IDs
images img_images = tile_mngr.GetImages();
// get image IDs for layer 2
images img_images = tile_mngr.GetImages(2); 
 

Prev: GetFrameDelay