formZ SDK | 4.0 Call Back Reference | Light Representation

# fz_light_rep_cbak_data_io

Description

Light Representation data io function (Required). This function is called whenever the data of a Light Representation is written to or read from file.

Plugin Prototype

fzrt_error_td fz_light_rep_cbak_data_io(

fzrt_int | windex,
fz_iost_ptr | iost,
fz_iost_dir_td_enum | dir,
fzpl_vers_td * const | version,
fzrt_unsigned_int | size,
fz_lite_ptr | light,
void * | light_rep_data )

Parameters

windex [Input]

project window index

iost [Input]

The io stream pointer.

dir [Input]

Reading or writing indicator.

version [Input, Result]

When reading, this is the version with which the Light Representation was written. When writing, the parameter needs to be set to the current version of the Light Representation's It is up to the plugin to keep track of the version.

size [Input]

When reading, this parameter is the size of the data when it was written. When writing, this parameter is unused.

light [Input]

the light, which is written/read

light_rep_data [Input]

Pointer to the Light Representation data from which to write or to which to read.

Returns

Error codes

Availability

7.0.0.0

Function Set

fz_light_rep_cbak_fset

Defined in

fz_view_rep_api.h