NAME

cgGetParameterContext - get a parameter's parent context

SYNOPSIS

  #include <Cg/cg.h>

  CGcontext cgGetParameterContext(CGparameter ctx);

PARAMETERS

param

Specifies the parameter.

DESCRIPTION

cgGetParameterContext allows the application to retrieve a handle to the context a given parameter belongs to.

RETURN VALUES

Returns a CGcontext handle to the parent context. In the event of an error NULL is returned.

ERRORS

CG_INVALID_CONTEXT_HANDLE_ERROR is generated if ctx does not refer to a valid context.

SEE ALSO

cgGetParameterProgram