NAME
cgSetParameter4iv - sets the value of scalar and vector parameters
SYNOPSIS
#include <Cg/cg.h> void cgSetParameter4iv( CGparameter param, const int * v );PARAMETERS
- param
The parameter that will be set.
- v
Array of values to use to set param.
RETURN VALUES
None.
DESCRIPTION
cgSetParameter4iv sets the value of a given scalar or vector parameter.
If more values are passed in than param requires, the extra values will be ignored. If fewer values are passed in than param requires, the last value will be smeared.
Once cgSetParameter4iv 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 handle.
HISTORY
cgSetParameter4iv was introduced in Cg 1.4.
SEE ALSO