NAME
cgGetParentType - gets a parent type of a child type
SYNOPSIS
#include <Cg/cg.h> CGtype cgGetParentType(CGtype type, int index);PARAMETERS
- type
Specifies the child type.
- index
The index of the parent type. index must be greater than or equal to 0 and less than N where N is the value returned by cgGetNumParentTypes.
DESCRIPTION
cgGetParentType returns a parent type of type.
RETURN VALUES
Returns the number of parent types. (CGparameter)0 is returned if there are no parents.
CG_UNKNOWN_TYPE if type is a built-in type or an error is thrown.
ERRORS
CG_OUT_OF_ARRAY_BOUNDS_ERROR is generated if index is outside the proper range.
SEE ALSO