L3DT documentation
Large 3D terrain generator



Get the pointer to the first pixel of a scanline in a map.


Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

void* zmap_GetScanlinePtr(ZMAP hMap, long j);


Name Type Comment
hMap ZMAP A ZMAP handle to a map.
j long The y-axis coordinate of the scanline. Note the origin is at the southwest corner of the map.

Return value

A null pointer if:

  • The map is not initialised, or;
  • The map is a mosaic (See zmap_GetMosaicFlag), or;
  • An error occurred.

Otherwise, the return value is the pointer to the first pixel in the scanline. The number of pixels in the scanline is given by zmap_GetWidth, and the type and size of the pixel data in the scanline may be retrieved from zmap_GetMapType and zmap_GetPixelSize.



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