Table of Contents

CzMap::OpenDirectInterface

Description

Create local copy of a map's memory handles, so that calls to CzMap::GetPixel and 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 CzMap::SetMinMaxAlt(0,0) to reset the minimum and maximum altitude of the map.