NAME
cgGetFirstLeafEffectParameter - get the first leaf parameter in an effect
SYNOPSIS
#include <Cg/cg.h> CGparameter cgGetFirstLeafEffectParameter( CGeffect effect );PARAMETERS
- effect
The effect from which to retrieve the first leaf parameter.
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.
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 cgGetNextLeafParameter for more information.
EXAMPLES
to-be-written
ERRORS
CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect does not refer to a valid effect.
HISTORY
cgGetFirstLeafEffectParameter was introduced in Cg 1.4.
SEE ALSO