formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Manager

# fz_rndr_get_attr

Description

Checks whether a given renderer posseses a certain capability (attribute). The renderer is identified by its uuid. If FZRT_UUID_NULL is passed for the uuid, the current renderer is used. The type of capability is determined by the fz_rndr_attr_enum function argument. If the renderer has the given capability. *resp will be returned as TRUE, and as FALSE otherwise. This function allows a plugin, for example, to test whether the current rendering mode supports texture maps or handles panoramic images.

Plugin Prototype

fzrt_error_td fz_rndr_get_attr(

fzrt_int | windex,
fzrt_UUID_td | rndr_uuid,
fz_rndr_attr_enum | rndr_attr,
fzrt_boolean * | resp )

Parameters

windex [Input]

project window index

rndr_uuid [Input]

the UUID of the renderer for which to get an attribute. Use FZRT_UUID_NULL for the current renderer.

rndr_attr [Input]

the type of capability, the renderer is checked for.

resp [Result]

TRUE, if the renderer has the capability it is tested for, FALSE otherwise.

Returns

Error codes.

Availability

6.0.0.5

Function Set

fz_rndr_mngr_fset

Defined in

fz_rndr_api.h