L3DT documentation
Large 3D terrain generator



Initialise a map and allocate required memory.


Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

bool zmap_Init(ZMAP hMap, long nx, long ny, long MapTypeID, float HorizScale, bool WrapFlag);


Name Type Comment
hMap ZMAP a ZMAP handle to a map variable.
nx long The number of pixels in the x-direction (width).
ny long The number of pixels in the y-direction (height).
MapTypeID long The integer identifier for the map type.
HorizScale float The distance between neighbouring pixels in the x- or y-axes, measured in metres.
WrapFlag bool A boolean value indicating whether the left/right and top/bottom edges of the map 'wrap' around to produce an infinitely tiling map.

Return value

False if an error occurred, and true otherwise.



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