NAME
cgGetFirstLeafEffectParameter - get the first leaf parameter in an effect
SYNOPSIS
#include <Cg/cg.h> CGparameter cgGetFirstLeafEffectParameter( CGeffect effect );PARAMETERS
- effect
Specifies the effect to retrieve the first leaf parameter from.
DESCRIPTION
cgGetFirstLeafEffectParameter returns the first leaf parameter in an effect. The combination of cgGetFirstLeafEffectParameter and cgGetNextLeafParameter allow the iteration through all of the parameters of basic data types (not structs or arrays) without recursion. See the "cgGetNextLeafParameter" document for more information.
RETURN VALUES
cgGetFirstLeafEffectParameter returns a the first leaf CGparameter object in effect. NULL is returned if effect is invalid or if effect does not have any parameters.
ERRORS
CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect does not refer to a valid effect.
SEE ALSO
the "cgNextLeafParameter" document, the "cgGetFirstLeafParameter" document