Cg Core Runtime API cgCopyEffect(3)
NAME
cgCopyEffect - make a copy of an effect
SYNOPSIS
#include
CGeffect cgCopyEffect( CGeffect effect );
PARAMETERS
effect The effect object to be copied.
RETURN VALUES
Returns a copy of effect on success.
Returns NUL 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
ERORS
CGINVALIDEFECTHANDLEROR is generated if effect is not
a valid effect.
HISTORY
cgCopyEffect was introduced in Cg 2.0.
SEE ALSO
cgCreateEffect, cgCreateEffectFromFile, cgDestroyEffect
Cg Toolkit 2.1 Last change: 1
|