NAME
    cgGetNextPass - iterate through passs in a technique

SYNOPSIS
      #include <Cg/cg.h>

      CGpass cgGetNextPass( CGpass pass );

PARAMETERS
    pass    Specifies the current pass.

DESCRIPTION
    The passs within a technique can be iterated over by using the
    cgGetNextPass function. The following example code illustrates one way
    to do this:

      CGpass pass = cgGetFirstPass( technique );
      while( pass )
      {
       /* do something with pass */
       pass = cgGetNextPass( pass )
      }

    Passes are returned in the order defined in the technique.

RETURN VALUES
    cgGetNextPass returns the next pass in the technique's internal sequence
    of passes. Returns 0 when pass is the last pass in the technique.

ERRORS
    CG_INVALID_PASS_HANDLE_ERROR is generated if pass does not refer to a
    valid pass.

SEE ALSO
    the cgGetFirstPass manpage, the cgGetNamedPass manpage, and the cgIsPass
    manpage

