> ## Name

> cgIsTechnique - determine if a technique handle references a valid technique

> ## Synopsis

>     #include <Cg/cg.h>

>     CGbool cgIsTechnique( CGtechnique tech );

> ## Parameters

> tech
>   The technique handle to check.

> ## Return Values

> Returns CG_TRUE if tech references a valid technique.

> Returns CG_FALSE otherwise.

> ## Description

> cgIsTechnique returns CG_TRUE if tech references a valid technique, CG_FALSE otherwise.

> ## Examples

>     if (cgIsTechnique(tech)) {
>       /* do something with tech */
>     } else {
>       /* handle situation where tech is not a valid technique */
>     }

> ## Errors

> None.

> ## History

> cgIsTechnique was introduced in Cg 1.4.

> ## See Also

> cgCreateTechnique, cgGetFirstTechnique, cgGetNamedTechnique, cgGetNextTechnique, cgGetTechniqueEffect, cgGetTechniqueName, cgIsTechniqueValidated, cgValidateTechnique