Function mupdf_sys::fz_process_shade
source · pub unsafe extern "C" fn fz_process_shade(
ctx: *mut fz_context,
shade: *mut fz_shade,
ctm: fz_matrix,
scissor: fz_rect,
prepare: fz_shade_prepare_fn,
process: fz_shade_process_fn,
process_arg: *mut c_void
)
Expand description
Process a shade, using supplied callback functions. This decomposes the shading to a mesh (even ones that are not natively meshes, such as linear or radial shadings), and processes triangles from those meshes.
shade: The shade to process.
ctm: The transform to use
prepare: Callback function to ‘prepare’ each vertex. This function is passed an array of floats, and populates a fz_vertex structure.
process: This function is passed 3 pointers to vertex structures, and actually performs the processing (typically filling the area between the vertexes).
process_arg: An opaque argument passed through from caller to callback functions.