NAME
    cgSetParameter - sets the value of scalar and vector parameters

SYNOPSIS
      #include <Cg/cg.h>

      /* type is int, float or double */

      void cgSetParameter1{ifd}(CGparameter param,
                                type x);

      void cgSetParameter2{ifd}(CGparameter param,
                                type x,
                                type y);

      void cgSetParameter3{ifd}(CGparameter param,
                                type x,
                                type y,
                                type z);

      void cgSetParameter4{ifd}(CGparameter param,
                                type x,
                                type y,
                                type z,
                                type w);

      void cgSetParameter{1234}{ifd}v(CGparameter param,
                                      const type *v);

PARAMETERS
    param   Specifies the parameter that will be set.

    x, y, z, and w
            The values to set the parameter to.

    v       The values to set the parameter to for the array versions of the
            set functions.

DESCRIPTION
    The cgSetParameter functions set the value of a given scalar or vector
    parameter. The functions are available in various combinations.

    Each function takes either 1, 2, 3, or 4 values depending on the
    function that is used. If more values are passed in than the parameter
    requires, the extra values will be ignored. If less values are passed in
    than the parameter requires, the last value will be smeared.

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

    The functions with the v at the end of their names take an array of
    values instead of explicit parameters.

    Once cgSetParameter has been used to set a parameter, the values may be
    retrieved from the parameter using the CG_CURRENT enumerant with
    cgGetParameterValues.

    If an API-dependant layer of the Cg runtime (e.g. cgGL) is used, these
    entry points may end up making API (e.g. OpenGL) calls.

RETURN VALUES
    The cgSetParameter functions do not return any values.

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

SEE ALSO
    the cgGetParameterValue manpage

