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 or if the parameter is not a child of a program, NULL is returned.

ERRORS
    CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog does not refer to a
    valid program.

SEE ALSO
    the cgCreateProgram manpage, the cgGetParameterEffect manpage, the
    cgCreateContext manpage

