cgSetParameter1i(3)

NAME
cgSetParameter1i - set the value of scalar and vector parameters

SYNOPSIS
  #include <Cg/cg.h>
  void cgSetParameter1i( CGparameter param,
                         int x );

PARAMETERS
The parameter that will be set. The value to which param will be set.

RETURN VALUES
None.

DESCRIPTION
cgSetParameter1i sets the value of a given scalar or vector parameter.

Once cgSetParameter1i 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.

EXAMPLES
to-be-written

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

CG_INVALID_PARAMETER_ERROR is generated if param is a varying input to a fragment program.

HISTORY
cgSetParameter1i was introduced in Cg 1.4.

SEE ALSO
cgGetParameterValue, cgGetParameterValues