NAME
cgGetIntStateAssignmentValues - get an int-valued state assignment's values
SYNOPSIS
#include <Cg/cg.h> const int * cgGetIntStateAssignmentValues( CGstateassignment sa, int * nvalues );PARAMETERS
- sa
The state assignment from which the values will be retrieved.
- nvalues
Pointer to integer where the number of values returned will be stored.
RETURN VALUES
Returns a pointer to an array of int values. The number of values in the array is returned via the nvalues parameter.
If no values are available, NULL will be returned and nvalues will be 0.
DESCRIPTION
cgGetIntStateAssignmentValues allows the application to retrieve the value(s) of an integer typed state assignment.
EXAMPLES
to-be-written
ERRORS
CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR is generated if the handle sa is invalid.
CG_INVALID_PARAMETER_ERROR is generated if nvalues is NULL.
CG_INVALID_PARAMETER_TYPE_ERROR is generated if the state assignment is not integer-typed.
HISTORY
cgGetIntStateAssignmentValues was introduced in Cg 1.4.
SEE ALSO
cgGetStateAssignmentState, cgGetStateType, cgGetFloatStateAssignmentValues, cgGetBoolStateAssignmentValues, cgGetStringStateAssignmentValue, cgGetProgramStateAssignmentValue, cgGetSamplerStateAssignmentValue, cgGetTextureStateAssignmentValue