====== CzMap::OpenDirectInterface ====== ===== Description ===== Create local copy of a map's memory handles, so that calls to ''[[zeolite:functions:czmap_GetPixel|CzMap::GetPixel]]'' and ''[[zeolite:functions:czmap_SetPixel|CzMap::SetPixel]]'' do not need to make API calls, and thereby execute more quickly. ===== Files ===== ^ Declaration | ''CzMap.h'' | ^ Implementation | ''CzMap.cpp'' | ===== Function prototype ===== bool CzMap::OpenDirectInterface(); ===== Arguments ===== //None.// ===== Return value ===== True if successful, and false if an error occurred (consult event log for reason). ===== Comments ===== Please note that if you make changes to a design map, heightfield or water map after calling ''CzMap::OpenDirectInterface'', you need to call ''[[zeolite:functions:CzMap_SetMinMaxAlt|CzMap::SetMinMaxAlt(0,0)]]'' to reset the minimum and maximum altitude of the map.