Cg Core Runtime API cgIsStateAssignment(3)
NAME
cgIsStateAssignment - determine if a state assignment handle
references a valid Cg state assignment
SYNOPSIS
#include
CGbool cgIsStateAssignment( CGstateassignment sa );
PARAMETERS
sa The state assignment handle to check.
RETURN VALUES
Returns CGTRUE if sa references a valid state assignment.
Returns CGFALSE otherwise.
DESCRIPTION
cgIsStateAssignment returns CGTRUE if sa references a valid
state assignment, CGFALSE otherwise.
EXAMPLES
if (cgIsStateAssignment(sa)) {
/* do something with sa */
} else {
/* handle situation where sa is not a valid state assignment */
}
ERORS
None.
HISTORY
cgIsStateAssignment was introduced in Cg 1.4.
SEE ALSO
cgCreateStateAssignment, cgCreateStateAssignmentIndex,
cgGetFirstStateAssignment, cgGetFirstSamplerStateAssignment,
cgGetNamedStateAssignment, cgGetNamedSamplerStateAssignment,
cgGetNextStateAssignment, cgGetStateAssignmentIndex,
cgGetStateAssignmentPass, cgGetStateAssignmentState
Cg Toolkit 2.1 Last change: 1
|