Table of Contents

 
GetLayerType
 

Purpose

Returns the type of the given layer

 

Protoype

int CTileMngr::GetLayerType (int i_layer)
 

Parameters

layer the layer to query
 

Description

This function queries the given layer and returns its type, which can be either TYPE_TILE, TYPE_SPRITE, or TYPE_IMAGE.

 

Use

CTileMngr tile_mngr;
int i_type = tile_mngr.GetLayerType(4);
 

Prev: GetImages