NAME
cgGetStateValidateCallback - get the state validatuib callback function for a state
SYNOPSIS
#include <Cg/cg.h> CGstatecallback cgGetStateValidateCallback( CGstate state );PARAMETERS
- state
Specifies the state to retrieve the callback from.
DESCRIPTION
cgGetStateValidateCallback returns the callback function used for validating the state when the given state is encountered in a pass in a technique. See cgSetStateCallbacks and cgCallStateValidateCallback for more information.
RETURN VALUES
cgStateValidateCallback returns a pointer to the state validateting callback function. If state is not a valid state or if it has no callback, NULL is returned.
ERRORS
CG_INVALID_STATE_HANDLE_ERROR is generated if state does not refer to a valid state.
SEE ALSO
cgSetStateCallbacks, cgCallStateValidateCallback, cgValidateTechnique, and cgValidatePassState