formZ SDK | 4.0 Call Back Reference | Renderer

fz_rndr_cbak_proj_data_init

Description

Project data init function. This function needs to be implemented, if the info function returns a size other than 0 for the project data size argument. It is called once, when a new project is created. formZ will allocate a data block of the given size. The project data init function is then called with the pointer to the data and is expected to initialize the data. The project data block is intended to store any runtime data a renderer may need on a per project basis. For example, a renderer may need to create a copy of the geometry to be rendered. This would be stored in the project data.

Plugin Prototype

fzrt_error_td fz_rndr_cbak_proj_data_init(

fzrt_int

windex,

fzrt_ptr

proj_data )

Parameters

windex [Input]

project window index

proj_data [Input]

Pointer to the project data block, maintained by formZ.

Returns

Error codes

Availability

5.0.0.0

Function Set

fz_rndr_cbak_fset


Defined in

fz_rndr_api.h