L3DT documentation
Large 3D terrain generator



Get the pointer to the array of scanlines of a map.


Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

void** zmap_GetScanlineArray(ZMAP hMap);


Name Type Comment
hMap ZMAP A ZMAP handle to a map.

Return value

A null pointer if:

  • The map is not initialised, or;
  • The map is a mosaic (See zmap_GetMosaicFlag), or;
  • The map is allocated as a contiguous block of memory (See zmap_IsContiguous), or;
  • An error occurred.

Otherwise, the return value is the pointer to an array of pointers to the scanlines. The length of the array is given by zmap_GetHeight. Each member of the scanline array is a pointer to the first pixel of each scanline. The length of each scanline is given by zmap_GetWidth, and the type and size of the pixel data in the scanlines may be retrieved from zmap_GetMapType and zmap_GetPixelSize.



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