NAME
cgGetMatrixParameter - gets the value of matrix parameters
SYNOPSIS
#include <Cg/cg.h> /* type is one of int, float, or double */ cgGetMatrixParameter{ifd}{rc}(CGparameter param, type *matrix);PARAMETERS
- param
Specifies the parameter for which the values will be returned.
- matrix
An array of values into which the parameter's value will be written. The array must have size equal to the number of rows in the matrix times the number of columns in the matrix.
DESCRIPTION
The cgGetMatrixParameter functions retrieve 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 specify the order in which matrix values should be written to the array. Row-major copying is indicated by r, while column-major is indicated by c.
RETURN VALUES
The cgGetMatrixParameter 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.
SEE ALSO
cgGetParameterRows cgGetParameterColumsn, cgGetMatrixParameterArray, cgGetParameterValues