cgGetParameterClass(3)

NAME
cgGetParameterClass - get a parameter's class

SYNOPSIS
  #include <Cg/cg.h>
  CGparameterclass cgGetParameterClass( CGparameter param );

PARAMETERS
The parameter.

RETURN VALUES
Returns the parameter class enumerant of param.

Returns CG_PARAMETERCLASS_UNKNOWN if an error occurs.

DESCRIPTION
cgGetParameterClass allows the application to retrieve the class of a parameter.

The returned CGparameterclass value enumerates the high-level parameter classes: The parameter is of a scalar type, such as CG_INT, or CG_FLOAT. The parameter is of a vector type, such as CG_INT1, or CG_FLOAT4. The parameter is of a matrix type, such as CG_INT1x1, or CG_FLOAT4x4. The parameter is a struct or interface. The parameter is an array. The parameter is a sampler. The parameter is a texture, string, or program.

EXAMPLES
to-be-written

ERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.

HISTORY
cgGetParameterClass was introduced in Cg 1.4.

SEE ALSO
the cgGetParameterType manpage, the cgGetType manpage, the cgGetTypeString manpage