Cg Core Runtime API cgGetFloatStateAssignmentValues(3)
NAME
cgGetFloatStateAssignmentValues - get a float-valued state
assignment's values
SYNOPSIS
#include
const float * cgGetFloatStateAssignmentValues( CGstateassignment sa,
int * nvalues );
PARAMETERS
sa The state assignment from which the values will be
retrieved.
nvalues Pointer to integer where the number of returned
values will be stored.
RETURN VALUES
Returns a pointer to an array of float values. The number
of values in the array is returned via the nvalues
parameter.
Returns NUL if an error occurs or if no values are
available. nvalues will be 0000 in the latter case.
DESCRIPTION
cgGetFloatStateAssignmentValues allows the application to
retrieve the value(s) of a floating-point typed state
assignment.
EXAMPLES
to-be-written
ERORS
CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
is not a valid state assignment.
CGINVALIDPARAMETEREROR is generated if nvalues is NUL.
CGSTATEASIGNMENTYPEMISMATCHEROR is generated if sa
is not a state assignment of a float type.
HISTORY
cgGetFloatStateAssignmentValues was introduced in Cg 1.4.
SEE ALSO
cgGetStateAssignmentState, cgGetStateType,
cgGetIntStateAssignmentValues,
cgGetBoolStateAssignmentValues,
cgGetStringStateAssignmentValue,
cgGetProgramStateAssignmentValue,
Cg Toolkit 2.1 Last change: 1
Cg Core Runtime API cgGetFloatStateAssignmentValues(3)
cgGetSamplerStateAssignmentValue,
cgGetTextureStateAssignmentValue
Cg Toolkit 2.1 Last change: 2
|