NAME

cgSetMatrixParameter - sets the value of matrix parameters

SYNOPSIS

  #include <Cg/cg.h>

  /* type is int, float or double */
  void cgSetMatrixParameter{ifd}{rc}(CGparameter param, const type *matrix);

PARAMETERS

param

Specifies the parameter that will be set.

matrix

An array of values to set the matrix parameter to. The array must be the number of rows times the number of columns in size.

DESCRIPTION

The cgSetMatrixParameter functions set the value of a given matrix parameter. The functions are available in various combinations.

There are versions of each function that take int, float or double values signified by the i, f or d in the function name.

There are versions of each function that assume the array of values are layed out in either row or column order signified by the r or c in the function name respectively.

The cgSetMatrixParameter functions may only be called with uniform parameters.

RETURN VALUES

The cgSetMatrixParameter functions do not return any values.

ERRORS

CG_NOT_MATRIX_PARAM_ERROR is generated if param is not a matrix parameter.

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

CG_INVALID_PARAMETER_ERROR is generated if the parameter fails to set for any other reason.

SEE ALSO

cgGetParameterRows, cgGetParameterColumns, cgGetMatrixParameterArray, and cgGetParameterValues