NAME

cgGetNumUserTypes - get number of user-defined types in a program or effect

SYNOPSIS

  #include <Cg/cg.h>

  int cgGetNumUserTypes(CGhandle handle);

PARAMETERS

handle

The CGprogram or CGeffect in which the types are defined.

DESCRIPTION

cgGetNumUserTypes returns the number of user-defined types in a given CGprogram or CGeffect.

RETURN VALUES

Returns the number of user defined types.

ERRORS

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if handle is not a valid CGprogram or CGeffect.

SEE ALSO

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