L3DT documentation
Large 3D terrain generator

map_Init

Description

Initialise a map, allocate memory, etc.

Function prototype

TYPE CExtAPI::map_Init(ZMAP hMap, long nx, long ny, long MapTypeID, float HorizScale, bool WrapFlag);

Arguments

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.

Comments

None.

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