NAME

cgGetEffectContext - get a effect's context

SYNOPSIS

  #include <Cg/cg.h>

  CGcontext cgGetEffectContext( CGeffect effect );

PARAMETERS

effect

The effect.

RETURN VALUES

Returns a CGcontext handle to the context. In the event of an error NULL is returned.

DESCRIPTION

cgGetEffectContext allows the application to retrieve a handle to the context a given effect belongs to.

EXAMPLES

to-be-written

ERRORS

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

HISTORY

cgGetEffectContext was introduced in Cg 1.4.

SEE ALSO

cgCreateEffect, cgCreateEffectFromFile, cgCreateContext