formZ SDK | 4.0 Call Back Reference | RenderZone Shader

# fz_shdr_cbak_colr_pre_render

Description

Color shader pre_render function (Optional). This function is called once before the start of each rendering. It is expected to precompute information that will be used by the function. Typically, the pre-render function will allocate a data structure, fill it with precomputed information and pass the pointer of the structure back to formZ via the function argument. This pointer will be passed back into the function and also the function, which should de-allocate the structure.

Plugin Prototype

fzrt_error_td fz_shdr_cbak_colr_pre_render(

void** | shdr_data )

Parameters

shdr_data [Result]

The pointer, which is passed to the and callback functions of a shader.

Returns

Error codes

Availability

5.0.0.0

Example Files

sine_wave.fsl

See Also

,

Function Set

fz_shdr_cbak_colr_fset

Defined in

fz_rzne_shdr_api.h