NAME
cgGetParameterProgram - get a parameter's parent program
SYNOPSIS
#include <Cg/cg.h> CGprogram cgGetParameterProgram( CGparameter prog );PARAMETERS
- param
Specifies the parameter.
DESCRIPTION
cgGetParameterProgram allows the application to retrieve a handle to the program a given parameter belongs to.
RETURN VALUES
Returns a CGprogram handle to the parent program. In the event of an error NULL is returned.
ERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog does not refer to a valid program.
SEE ALSO
the "cgCreateProgram" document, the "cgCreateContext" document