L3DT documentation
Large 3D terrain generator

LibHFZ functions

High-level functions

  • hfzSave — Save a float map as a HF2/HFZ file.
  • hfzLoad — Load a float map from a HF2/HFZ file.
  • hfzLoadEx — Load a float map from a HF2/HFZ file, and automatically allocates required memory.

Medium-level functions

  • hfzReadHeader — Read a hfzHeader from a HF2/HFZ file (already open).
  • hfzReadHeader2 — Read a hfzHeader from a HF2/HFZ file (not already open).
  • hfzReadTile — Read a map data tile from a HF2/HFZ file (uses map memory block).
  • hfzReadTile2 — Read a map data tile from a HF2/HFZ file (uses tile memory block).
  • hfzWriteHeader — Write a hfzHeader to a HF2/HFZ file.
  • hfzWriteTile — Write a map data tile to a HF2/HFZ file (uses map memory block).
  • hfzWriteTile2 — Write a map data tile to a HF2/HFZ file (uses tile memory block).

Low-level functions (overridables)

  • hfzOpen — Open a HF2/HFZ file for reading or writing.
  • hfzClose — Close an open HF2/HFZ file.
  • hfzRead — Read bytes from an open HF2/HFZ file.
  • hfzWrite — Write bytes to an open HF2/HFZ file.
  • hfzMalloc — Allocate memory.
  • hfzMemcpy — Copy memory.
  • hfzFree — Free memory.

Helper functions

Header manipulation

Extended header manipulation

Byte order handling

Error processing

  • hfzGetErrorStr — Convert a LibHFZ error code to an error description string.
 
libhfz/functions.txt · Last modified: 2017/08/31 05:39 (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