MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                       cgSetMatrixParameter(3)



NAME
     cgSetatrixParameter - sets the value of matrix parameters

SYNOPSIS
       #include 

       /* TYPE is int, float or double */

       void cgSetMatrixParameter{ifd}{rc}( CGparameter param,
                                           const TYPE * matrix );


PARAMETERS
     param   The parameter that will be set.

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

RETURN VALUES
     None.

DESCRIPTION
     The cgSetatrixParameter 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 laid out in either row or column order signified
     by the r or c in the function name respectively.

     The cgSetatrixParameter functions may only be called with
     uniform parameters.

EXAMPLES
     to-be-written

ERORS
     CGNOTMATRIXPARAMEROR is generated if param is not a
     matrix parameter.

     CGINVALIDPARAMHANDLEROR is generated if param is not a
     valid parameter.

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





Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API                       cgSetMatrixParameter(3)



HISTORY
     The d and f versions of cgSetatrixParameter were introduced
     in Cg 1.2.

     The i versions of cgSetatrixParameter were introduced in Cg
     1.4.

SEE ALSO
     cgGetParameterRows, cgGetParameterColumns,
     cgGetMatrixParameter, cgGetParameterValues













































Cg Toolkit 2.1            Last change:                          2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™