NAME

cgGetParameterEffect - get a parameter's parent program

SYNOPSIS

  #include <Cg/cg.h>

  CGeffect cgGetParameterEffect( CGparameter param );

PARAMETERS

param

The parameter.

RETURN VALUES

Returns a CGeffect handle to the parent effect. In the event of an error or if the parameter is not a child of an effect, NULL is returned.

DESCRIPTION

cgGetParameterEffect allows the application to retrieve a handle to the effect a given parameter belongs to.

EXAMPLES

to-be-written

ERRORS

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

HISTORY

cgGetParameterEffect was introduced in Cg 1.5.

SEE ALSO

cgCreateEffect, cgGetParameterProgram, cgCreateContext