NAME
cgGetEffectContext - get a effect's context
SYNOPSIS
#include <Cg/cg.h> CGcontext cgGetEffectContext( CGeffect effect );PARAMETERS
- effect
Specifies the effect.
DESCRIPTION
cgGetEffectContext allows the application to retrieve a handle to the context a given effect belongs to.
RETURN VALUES
Returns a CGcontext handle to the context. In the event of an error NULL is returned.
ERRORS
CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect does not refer to a valid effect.
SEE ALSO
the "cgCreateEffect" document, the "cgCreateEffectFromFile" document, and the "cgCreateContext" document