Cg Core Runtime API cgGetEffectContext(3)
NAME
cgGetEffectContext - get a effect's context
SYNOPSIS
#include
CGcontext cgGetEffectContext( CGeffect effect );
PARAMETERS
effect The effect.
RETURN VALUES
Returns the context to which effect belongs.
Returns NUL if an error occurs.
DESCRIPTION
cgGetEffectContext allows the application to retrieve a
handle to the context to which a given effect belongs.
EXAMPLES
to-be-written
ERORS
CGINVALIDEFECTHANDLEROR is generated if effect is not
a valid effect.
HISTORY
cgGetEffectContext was introduced in Cg 1.4.
SEE ALSO
cgCreateEffect, cgCreateEffectFromFile, cgCreateContext
Cg Toolkit 2.1 Last change: 1
|