MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                        cgSetStateCallbacks(3)



NAME
     cgSetStateCallbacks - registers the callback functions for a
     state assignment

SYNOPSIS
       #include 

       void cgSetStateCallbacks( CGstate state,
                                 CGstatecallback set,
                                 CGstatecallback reset,
                                 CGstatecallback validate );


PARAMETERS
     state   The state handle.

     set     The pointer to the callback function to call for
             setting the state of state assignments based on
             state.  This may be a NUL pointer.

     reset   The pointer to the callback function to call for
             resetting the state of state assignments based on
             state.  This may be a NUL pointer.

     validate
             The pointer to the callback function to call for
             validating the state of state assignments based on
             state.  This may be a NUL pointer.

RETURN VALUES
     None.

DESCRIPTION
     cgSetStateCallbacks sets the three callback functions for a
     state definition.  These functions are later called when the
     state a particular state assignment based on this state must
     be set, reset, or validated.  Any of the callback functions
     may be specified as NUL.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDSTATEHANDLEROR is generated if state is not a
     valid state.

HISTORY
     cgSetStateCallbacks was introduced in Cg 1.4.

SEE ALSO
     cgSetPassState, cgCallStateSetCallback,
     cgCallStateResetCallback, cgCallStateValidateCallback,



Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API                        cgSetStateCallbacks(3)



     cgValidateTechnique






















































Cg Toolkit 2.1            Last change:                          2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™