L3DT documentation
Large 3D terrain generator

format_SetFlags2

Description

Set the file format support flags for a file format handler variable (VarID_format).

Function prototype

bool CExtAPI::format_SetFlags2(ZFORMAT hFormat, unsigned long Flags);

Arguments

Name Type Comment
hFormat ZFORMAT A handle to the file format handler variable, which must be initialised as type VarID_format.
Flags unsigned long An unsigned long integer representing a bitfield containing the file format support flags. See comments for supported values.

Return value

False if an error occurred, and true otherwise.

Comments

Supported flag values

The Flags argument may be a binary 'or' combination of zero or more of the following values defined in 'ExtAPI_defines.h':

Symbol Hex value Description
ZFORMAT_FLAG_NATIVE 0x01 The file format is supported as a nominally lossless load/save format.
ZFORMAT_FLAG_MOSAIC 0x02 The file format supports mosaic tiling. Either ZFORMAT_FLAG_LOADTILE or ZFORMAT_FLAG_SAVETILE must also be set.
ZFORMAT_FLAG_LOAD 0x04 The file format supports the load operation. The implementation plugin must export the 'ExtLoadMapFile' function.
ZFORMAT_FLAG_SAVE 0x08 The file format supports the save operation. The implementation plugin must export the 'ExtSaveMapFile' function.
ZFORMAT_FLAG_LOADTILE 0x10 The file format supports the mosaic tile load operation. The implementation plugin must export the 'ExtLoadTileFile' function.
ZFORMAT_FLAG_SAVETILE 0x20 The file format supports the mosaic tile save operation. The implementation plugin must export the 'ExtSaveTileFile' function.
 
zeolite/functions/format_setflags2.txt · Last modified: 2017/08/31 07: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