formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Materials
Description
Gets the data type of a parameter of a render shader.
The parameter is identified by parm_id and is enumerated
for each shader.
Possible types are :
FZ_TYPE_INT
FZ_TYPE_FLOAT
FZ_TYPE_XYZ_FLOAT
FZ_TYPE_RGB_FLOAT
FZ_TYPE_BOOL
FZ_TYPE_PTR
If the shader is a reflection shader, the last parameters
are always the reflection maps.
For example, the MATTE shader has three reflection maps :
ambient, diffuse and glow.
Those are the last three parameters and are of type FZ_TYPE_PTR.
This pointer references another fz_shdr_ptr,
which is the reflection map shader.
Plugin Prototype
fzrt_error_td fz_shdr_ptr_get_parm_type(
fzrt_int | windex, |
shdr, | |
fzrt_int | parm_id, |
fzrt_int * | data_type ) |
Parameters
windex [Input]
project window index
shdr [Input]
shader
parm_id [Input]
parameter identifier
data_type [Result]
parameter data
Bit Flag Type: fz_type_enum
Returns
Error codes
Availability
5.0.0.0
Example Files
util_attr_rmtl.fsl
util_rmtl.fsl
Function Set
Defined in