NAME
cgResetPassState - calls the state resetting callback functions for all of the state assignments in a pass.
SYNOPSIS
#include <Cg/cg.h> void cgResetPassState(CGpass pass);PARAMETERS
- pass
Specifies the pass handle.
DESCRIPTION
cgResetPassState resets all of the graphics state defined in a pass by calling the state resetting callbacks for all of the state assignments in the pass.
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.
ERRORS
CG_INVALID_PASS_ERROR is generated if pass does not refer to a valid pass.
CG_INVALID_TECHNIQUE_ERROR if the technique that the pass is a part of has failed validation.
SEE ALSO
the "cgSetPassState" document, the "cgCallStateResetCallback" document