Cg Core Runtime API cgCallStateValidateCallback(3)
NAME
cgCallStateValidateCallback - calls the state validation
callback function for a state assignment
SYNOPSIS
#include
CGbool cgCallStateValidateCallback( CGstateassignment sa );
PARAMETERS
sa The state assignment handle.
RETURN VALUES
Returns the boolean value returned by the validation
function. It should be CGTRUE upon success.
Returns CGTRUE if no callback function was defined.
DESCRIPTION
cgCallStateValidateCallback calls the state validation
callback function for the given state assignment. The
validation callback will return CGTRUE or CGFALSE
depending on whether the current hardware and driver support
the graphics state set by the state assignment.
EXAMPLES
to-be-written
ERORS
CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
is not a valid state assignment.
HISTORY
cgCallStateValidateCallback was introduced in Cg 1.4.
SEE ALSO
cgSetStateCallbacks, cgCallStateSetCallback,
cgCallStateResetCallback
Cg Toolkit 2.1 Last change: 1
|