BRender Technical Reference Manual:4 Data Structures (Alphabetical Reference):br_material_enum_cbfn
Next|Prev|Up
The Call-Back Function
Specification
CBFnMaterialEnum()

br_material_enum_cbfn


The Call-Back Function

This type defines a function, supplied to BrMaterialEnum()
161, and to be called by it for a selection of materials.

The typedef

(See fwproto.h for a precise declaration)

br_uint_32 br_material_enum_cbfn(br_material*, void *) Enumerator

Specification


CBFnMaterialEnum()

Description:
An application defined call-back function accepting a material and an application supplied argument (as supplied to 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.



Generated with CERN WebMaker