Table of Contents

 
AddImage
 

Purpose

Adds a new image object to the given layer for rendering

 

Protoype

void CTileMngr::AddImage (string str_image, int i_layer)
 

Parameters

image the ID of the image object
layer the layer to assign the image to
 

Description

This function adds an image object to a given layer. You must do this if you want the map to render the object.

 

Use

CTileMngr tile_mngr;
tile_mngr.AddImage("my_image", 1);
 

Prev: _UpdateTile
Next: AddLayer