NAME
cgCopyProgram - make a copy of a program object
SYNOPSIS
#include <Cg/cg.h> CGprogram cgCopyProgram( CGprogram prog );PARAMETERS
- prog
Specifies the program to copy.
DESCRIPTION
cgCopyProgram creates a new program object that is a copy of prog and adds it to the same context as prog. This function is useful for creating a new instance of a program whose parameter properties have been modified by the run-time API.
RETURN VALUES
Returns a copy of prog on success.
Returns NULL if prog is invalid or allocation fails.
ERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog is an invalid program handle.
SEE ALSO
the "cgCreateProgram" document, the "cgDestroyProgram" document