L3DT documentation
Large 3D terrain generator


This function has been removed from the core API, and is now available via the 'calc.AM.GetIDfromColour' zeofunc.


Get the 16-bit ID of a land type in the attributes map, as represented by an AttributesPixel structure, that corresponds to a given display colour.

Function prototype

AttributesPixel CExtAPI::calc_AM_GetIDfromColour(COLORREF col);


Name Type Comment
col COLORREF A Windows COLORREF structure containing the (supposed) display colour of a land type, the ID of which is to be determined.

Return value

Zero if the given colour does not match the display colour of a known land type, and non-zero otherwise.


This function is used when loading the attributes map from a colour-mapped image file.

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