NAME
cgGetParameterProgram - get a parameter's parent program
SYNOPSIS
#include <Cg/cg.h> CGprogram cgGetParameterProgram( CGparameter param );PARAMETERS
- param
The parameter.
RETURN VALUES
Returns a CGprogram handle to the parent program. In the event of an error or if the parameter is not a child of a program, NULL is returned.
DESCRIPTION
cgGetParameterProgram allows the application to retrieve a handle to the program a given parameter belongs to.
EXAMPLES
to-be-written
ERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program does not refer to a valid program.
HISTORY
cgGetParameterProgram was introduced in Cg 1.1.
SEE ALSO