NAME

cgGetFirstTechnique - get the first technique in an effect

SYNOPSIS

  #include <Cg/cg.h>

  CGtechnique cgGetFirstTechnique( CGeffect effect );

PARAMETERS

effect

Specifies the effect to retrieve the first technique from.

DESCRIPTION

cgGetFirstTechnique is used to begin iteration over all of the techniques contained within a effect. See cgGetNextTechnique for more information.

RETURN VALUES

cgGetFirstTechnique returns a the first CGtechnique object in effect. If effect cointains no techniques, NULL is returned.

ERRORS

CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect does not refer to a valid effect.

SEE ALSO

cgGetNextTechnique, cgGetNamedTechnique, and cgIsTechnique