> ## Name

> cgGetFirstEffectParameter - get the first parameter in an effect

> ## Synopsis

>     #include <Cg/cg.h>

>     CGparameter cgGetFirstEffectParameter( CGeffect effect );

> ## Parameters

> effect
>   The effect from which to retrieve the first parameter.

> ## Return Values

> Returns the first CGparameter object in effect.

> Returns NULL if effect is invalid or if effect does not have any parameters.

> ## Description

> The first top-level parameter in an effect can be retrieved using cgGetFirstEffectParameter. The rest of the effect's parameters can be discovered by iterating through them using cgGetNextParameter.

> ## Examples

>     CGparameter param = cgGetFirstEffectParameter( effect );
>     while( param )
>     {
>        /* do something with param */
>        param = cgGetNextParameter( param );
>     }

> ## Errors

> CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect is not a valid effect.

> ## History

> cgGetFirstEffectParameter was introduced in Cg 1.4.

> ## See Also

> cgGetNextParameter, cgGetNamedEffectParameter