L3DT documentation
Large 3D terrain generator



Get the x and y coordinates of of a tile in a mosaic.


Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

bool zmap_tile_GetTileCoords(void* hTile, long& x, long& y);


Name Type Comment
hTile void* A handle to a tile, the coordinates of which are to be retrieved.
x long& A long integer, passed by reference, that is to receive the x coordinate.
y long& A long integer, passed by reference, that is to receive the y coordinate.

Return value

False if an error occurred, and true otherwise (with x and y set to the correct values.)


The x and y coordinates returned by zmap_tile_GetTileCoords refer to the coordinates of the south-west corner of the given tile (bottom-left, on screen), as measured from the south-west corner of the map, and are measured in pixels. The coordinate axes are such that x increases in the east direction, and y increases in the north direction.

zeolite/functions/zmap_tile_gettilecoords.txt · Last modified: 2017/08/31 04:48 (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