NAME
    cgCopyEffect - make a copy of an effect

SYNOPSIS
      #include <Cg/cg.h>

      CGeffect cgCopyEffect( CGeffect effect );

PARAMETERS
    effect  The effect object to be copied.

RETURN VALUES
    Returns a copy of effect on success.

    Returns NULL if effect is invalid or the copy fails.

DESCRIPTION
    cgCopyEffect creates a new effect object that is a copy of effect and
    adds it to the same context as effect.

EXAMPLES
    *to-be-written*

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

HISTORY
    cgCopyEffect was introduced in Cg 2.0.

SEE ALSO
    cgCreateEffect, cgCreateEffectFromFile, cgDestroyEffect

