L3DT documentation
Large 3D terrain generator

zmap_GetMosaicTile

Description

Retrieve a handle to a tile in a mosaic map.

Files

Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

void* zmap_GetMosaicTile(ZMAP hMap, long tx, long ty);

Arguments

Name Type Comment
hMap ZMAP A ZMAP handle to a map, a tile of which is to be retrieved.
tx long The x-coordinate of the tile.
ty long The y-coordinate of the tile.

Return value

A null handle if:

  • The map is not a mosaic,
  • The tile coordinates are invalid, or;
  • An unspecified error occurred.

A valid (non-null) tile handle otherwise.

Comments

The handle returned by map_GetMosaicTile is not a handle to the raw memory buffer of the tile. Use ztile_GetDataPtr for this.

 
zeolite/functions/zmap_getmosaictile.txt · Last modified: 2017/08/31 05:53 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki