br_material_enum_cbfn
BrMaterialEnum()
161
, and to be called by it for a selection of materials.
typedef
fwproto.h
for a precise declaration)
br_uint_32 br_material_enum_cbfn(br_material*, void *) Enumerator
Specification
Description:
An application defined call-back function accepting a material and an application supplied argument (as supplied to CBFnMaterialEnum()
BrMaterialEnum()
161).
Declaration:
br_uint_32 BR_CALLBACK CBFnMaterialEnum(br_material* mat, void* arg)
Arguments:
br_material * mat
One of the resource classes selected by BrMaterialEnum()
161.
void * arg
The argument supplied to BrMaterialEnum()
161.
Preconditions: BRender has completed initialisation.
Effects: Application defined. Avoid adding or removing materials within this function.
Result:
br_uint_32
Any non-zero value will terminate the enumeration and be returned by BrMaterialEnum()
161. Return zero to continue the enumeration.
See Also:
BrMaterialEnum()
161
, BrMaterialFind()
162
.