MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                   cgCallStateResetCallback(3)



NAME
     cgCallStateResetCallback - calls the state resetting
     callback function for a state assignment

SYNOPSIS
       #include 

       CGbool cgCallStateResetCallback( CGstateassignment sa );


PARAMETERS
     sa      The state assignment handle.

RETURN VALUES
     Returns the boolean value returned by the callback function.
     It should be CGTRUE upon success.

     Returns CGTRUE if no callback function was defined.

DESCRIPTION
     cgCallStateResetCallback calls the graphics state resetting
     callback function for the given state assignment.

     The semantics of "resetting state" will depend on the
     particular graphics state manager that defined the valid
     state assignments; it will generally either mean that
     graphics state is reset to what it was before the pass, or
     that it is reset to the default value.  The OpenGL state
     manager in the OpenGL Cg runtime implements the latter
     approach.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
     is not a valid state assignment.

HISTORY
     cgCallStateResetCallback was introduced in Cg 1.4.

SEE ALSO
     cgResetPassState, cgSetStateCallbacks,
     cgCallStateSetCallback, cgCallStateValidateCallback











Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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