formZ SDK | 4.0 Call Back Reference | RenderZone Shader
Description
Transparency 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 fz_shdr_cbak_trns_pixel 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 fz_shdr_cbak_trns_pixel function and also the post_render function, which should de-allocate the structure.
Plugin Prototype
fzrt_error_td fz_shdr_cbak_trns_pre_render(
void** | shdr_data ) |
Parameters
shdr_data [Result]
The pointer, which is passed to the fz_shdr_cbak_trns_pixel and fz_shdr_cbak_trns_post_render callback functions of a shader.
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
fz_shdr_cbak_trns_post_render, fz_shdr_cbak_trns_pixel
Function Set
Defined in