Table of Contents
hfzLoadDescriptionLoad a HF2/HFZ file from disk into memory. Unlike hfzLoadEx, this function does not automatically allocate the memory block. Function prototypelong hfzLoad(const char* lpFileName, hfzHeader& fh, float * pData, LIBHFZ_PROG_CALLBACK lpProgCallback, void* lpCallbackParam); Arguments
Return valueLIBHFZ_STATUS_OK if the file was loaded successfully, and otherwise an error code. Use hfzGetErrorStr to retrieve the error description. CommentsInitialising memoryThis function requires that the pData memory block be allocated prior to the call. The required size is: 4 * nx * ny …where nx and ny are the map widths and heights in pixels. These values can be read from the file using hfzReadHeader2. Alternatively, you may use hfzLoadEx, which initialises the memory automatically. Using lpProgCallbackPlease consult the comments for hfzSave Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|