NAME
cgGetFirstLeafParameter - get the first leaf parameter in a program
SYNOPSIS
#include <Cg/cg.h> CGparameter cgGetFirstLeafParameter( CGprogram prog, CGenum name_space );PARAMETERS
- prog
Specifies the program to retrieve the first leaf parameter from.
- name_space
Specifies the namespace of the parameter to iterate through. Currently only CG_PROGRAM is supported.
DESCRIPTION
cgGetFirstLeafParameter returns the first leaf parameter in a program. The combination of cgGetFirstLeafParameter and cgGetNextLeafParameter allow the iteration through all of the parameters of basic data types (not structs or arrays) without recursion. See the "cgGetNextLeafParameter" document for more information.
RETURN VALUES
cgGetFirstLeafParameter returns a the first leaf CGparameter object in prog. NULL is returned if prog is invalid or if prog does not have any parameters.
ERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog does not refer to a valid program.
SEE ALSO