formZ SDK | 4.0 Call Back Reference | Surface Style Representation

# fz_srep_cbak_bmp_shader_are_equal

Description

Determines if the color, transparency or bump procedural shader of an srep are equal. This function should be implemented, if the srep may contain procedural shaders (i.e. don't have a solid plain color or use texture maps exclusively). This callback function definition is used as a color, transparency and bump shader callback. If the sreps passed in are not procedural, an error should be returned. The compare should handle the case where the two sreps have different procedural shaders, as well as the same shader but with different parameter values.

Plugin Prototype

fzrt_error_td fz_srep_cbak_bmp_shader_are_equal(

fzrt_int | windex,
fz_rmtl_ptr | rmtl1,
void * | srep_data1,
fz_rmtl_ptr | rmtl2,
void * | srep_data2,
fzrt_boolean * | are_equal )

Parameters

windex [Input]

project window index

rmtl1 [Input]

the surface style to which the first srep belongs

srep_data1 [Input]

The first Surface Style Representation data.

rmtl2 [Input]

the surface style to which the second srep belongs

srep_data2 [Input]

The second Surface Style Representation data.

are_equal [Result]

TRUE, if they are equal, FALSE otherwise.

Returns

Error codes

Availability

7.0.0.0

Function Set

fz_srep_cbak_fset

Defined in

fz_srep_api.h