NAME

cgGetNumUserTypes - gets the number of parent types of a given type

SYNOPSIS

  #include <Cg/cg.h>

  int cgGetNumUserTypes(CGprogram program);

PARAMETERS

program

The program the types are defined in.

DESCRIPTION

cgGetNumUserTypes returns the number of user defined types in the program program.

RETURN VALUES

Returns the number of user defined types in program.

ERRORS

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program is invalid.

SEE ALSO

the "cgGetUserType" document, and the "cgGetNamedUserType" document