NAME

cgGetParameterRows - get number of parameter rows

SYNOPSIS

  #include <Cg/cg.h>

  int cgGetParameterRows( CGparameter param );

PARAMETERS

param

Specifies the parameter.

DESCRIPTION

cgGetParameterRows return the number of rows associated with the given parameter's type.

If param is an array, the number of rows associated with each element of the array is returned.

RETURN VALUES

If param is a numeric type, or an array of numeric types, the number of rows associated with the type is returned.

Otherwise, 0 is returned.

ERRORS

CG_INVALID_PARAM_HANDLE_ERROR is generated if param does not refer to a valid parameter.

SEE ALSO

cgGetParameterType and cgGetParameterColumns