NAME

cgGetNamedProgramParameter - get a program parameter by name

SYNOPSIS

  #include <Cg/cg.h>

  CGparameter cgGetNamedProgramParameter(CGprogram prog, 
                                         CGenum name_space, 
                                         const char *name);

PARAMETERS

prog

Specifies the program to retrieve the parameter from.

name_space

Specifies the namespace of the parameter to iterate through. Currently CG_PROGRAM and CG_GLOBAL are supported.

name

Specifies the name of the parameter to retrieve.

DESCRIPTION

cgGetNamedProgramParameter is essentially identical to the "cgGetNamedParameter" document except it limits the search of the parameter to the name space specified by name_space.

RETURN VALUES

Returns the named parameter from the program. If the program has no parameter corresponding to name, a NULL is returned ( cgIsParameter() returns CG_FALSE for invalid parameters).

ERRORS

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

SEE ALSO

the "cgGetNamedParameter" document