NAME
cgGetUserType - get enumerant of user-defined type from a program or effect
SYNOPSIS
#include <Cg/cg.h> CGtype cgGetUserType(CGhandle handle, int index);PARAMETERS
- handle
The CGprogram or CGeffect in which the type is defined.
- index
The index of the user-defined type. index must be greater than or equal to 0 and less than the value returned by a corresponding call to cgGetNumUserTypes.
DESCRIPTION
cgGetUserType returns the enumerant associated with the user-defined type with the given index in the given CGprogram or CGeffect.
RETURN VALUES
Returns the type enumerant associated with the type with the given index.
ERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if handle is not a valid CGprogram or CGeffect.
CG_OUT_OF_ARRAY_BOUNDS_ERROR is generated if index is outside the proper range.
SEE ALSO
the "cgGetNumUserTypes" document, and the "cgGetNamedUserType" document