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.
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.
RETURN VALUES
This function does not return a value.
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.
SEE ALSO
cgGetConnectedParameter, cgGetConnectedToParameter, and cgConnnectParameter