Table of Contents | ||||
|
||||
AddLayer | ||||
Purpose Adds a new layer to the map engine |
||||
Protoype void CTileMngr::AddLayer (int i_layer, int i_type) |
||||
Parameters
|
||||
Description This function adds a new layer to the map. You must specify the layer number (0 being the lowest) where you want this layer to reside and the type of layer that you want to add. There are three layer types, each can only hold a specific type of object due to the way they are each rendered. Tile Layers This layer can only hold tiles and is referenced with TYPE_TILE Sprite Layers This layer can only hold sprite objects and is referenced with TYPE_SPRITE Image Layers This layer can only hold image objects and is referenced with TYPE_IMAGE |
||||
Use CTileMngr tile_mngr; // add a new sprite layer tile_mngr.AddLayer(3, TYPE_SPRITE); |
||||
|
||||
|