Table of Contents
hfzReadTile2DescriptionRead a map data tile from an open HF2/HFZ file. This function uses a smaller memory block (tile-sized) for loading the map data, as opposed to the complete memory block (map-sized) used in hfzReadTile. Function prototypelong hfzReadTile2(hfzFile* fs, hfzHeader& fh, long TileX, long TileY, float* pTileData); Arguments
Return valueLIBHFZ_STATUS_OK if the tile was read successfully, and otherwise an error code. Use hfzGetErrorStr to retrieve the error description. CommentsTile orderPlease refer to the HF2 file specification for the required tile order. Regarding pTileDatapTileData is a user-supplied handle to an array of floats with a length of TileSize * TileSize (as defined in the hfzHeader). The caller is responsible for initialising this memory before the function call and releasing it afterwards. Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|