L3DT documentation
Large 3D terrain generator



Load a map from a file. Note: this does not work for mosaics.

Function prototype

bool CExtAPI::map_LoadFile(ZMAP hMap, const char* lpFileName, long MapTypeID, ZFORMAT hFormat, bool SetFlags, bool ShowProgress);


Name Type Comment
hMap ZMAP A ZMAP handle to a map variable, the contents of which are to be loaded from disk.
lpFileName const char* A handle to a C-style string containing the full path and extension of the file to be loaded.
MapTypeID long A long integer containing the map type identifier for the new map.
hFormat ZFORMAT A ZFORMAT handle to the format variable to be used to load the file.
SetFlags bool A boolean flag indicating whether this map should be flagged as loaded, and have its active format and filename stored.
ShowProgress bool A boolean flag indicating whether the load operation should show a progress bar.

Return value

False if an error occurred, and true otherwise.


Regarding hFormat

Please consult map_SaveFile for comments regarding the hFormat argument.

zeolite/functions/map_loadfile.txt · Last modified: 2017/08/31 05:14 (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