L3DT documentation
Large 3D terrain generator

zmap_LoadFile

Description

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

Files

Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

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

Arguments

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.

Comments

Regarding hFormat

Please consult zmap_SaveFile for comments regarding the hFormat argument.

 
zeolite/functions/zmap_loadfile.txt · Last modified: 2017/08/31 07:30 (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