NAME
    cgDisconnectParameter - disconnects two parameters

SYNOPSIS
      #include <Cg/cg.h>

      void cgDisconnectParameter( CGparameter param );

PARAMETERS
    param   The destination parameter in the connection that will be
            disconnected.

RETURN VALUES
    None.

DESCRIPTION
    cgDisconnectParameter disconnects an existing connection made with
    cgConnectParameter between to parameters. Since a given parameter can
    only be connected to one source parameter, only the destination
    parameter is required as an argument to cgDisconnectParameter.

    If the type of param is an interface and the struct connected to it is a
    struct that implements it, any sub-parameters created by the connection
    will also be destroyed.

EXAMPLES
      CGparameter TimeParam1 = cgGetNamedParameter(program1, "time");
      CGparameter SharedTime = cgCreateParameter(Context, 
                                                 cgGetParameterType(TimeParam1));

      cgConnectParameter(SharedTime, TimeParam1);

      // ... 

      cgDisconnectParameter(TimeParam1);

ERRORS
    CG_INVALID_PARAM_HANDLE_ERROR is generated if param is invalid.

HISTORY
    cgDisconnectParameter was introduced in Cg 1.2.

SEE ALSO
    the cgGetConnectedParameter manpage, the cgGetConnectedToParameter
    manpage, the cgConnnectParameter manpage

