NAME

cgDestroyEffect - delete an effect object

SYNOPSIS

  #include <Cg/cg.h>

  void cgDestroyEffect( CGeffect effect );

PARAMETERS

effect

Specifies the effect object to delete.

DESCRIPTION

cgDestroyEffect removes the specified effect object and all its associated data. Any CGeffect handles that reference this effect will become invalid after the effect is deleted. Likewise, all techniques, passes, and parameters contained in the effect also become invalid after the effect is destroyed.

ERRORS

CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect is an invalid effect handle.

SEE ALSO

cgCreateEffect, cgCreateEffectFromFile