private int[] processHits(int hits,IntBuffer buffer){
  if (hits == 0) {
    return EMPTY_HIT_LIST;
  }
  if (hits < 0) {
    logger.warning("Too many hits!!" + " IntBuffer capacity = " + buffer.capacity());
    return EMPTY_HIT_LIST;
  }
  int[] hitsResults=new int[hits];
  int offset=0;
  int names;
  for (int i=0; i < hits; i++) {
    names=buffer.get(offset);
    offset++;
    offset++;
    offset++;
    for (int j=0; j < names; j++) {
      if (j == (names - 1)) {
        hitsResults[i]=buffer.get(offset);
      }
      offset++;
    }
  }
  logger.fine("hits = " + hits + "; offset = "+ offset);
  return hitsResults;
}

private int [ ] processHits ( int hits , IntBuffer buffer ) { if ( hits == 0 ) { return EMPTY_HIT_LIST ; } if ( hits < 0 ) { logger . warning ( "Too many hits!!" + " IntBuffer capacity = " + buffer . capacity ( ) ) ; return EMPTY_HIT_LIST ; } int [ ] hitsResults = new int [ hits ] ; int offset = 0 ; int names ; for ( int i = 0 ; i < hits ; i ++ ) { names = buffer . get ( offset ) ; offset ++ ; offset ++ ; offset ++ ; for ( int j = 0 ; j < names ; j ++ ) { if ( j == ( names - 1 ) ) { hitsResults [ i ] = buffer . get ( offset ) ; } offset ++ ; } } logger . fine ( "hits = " + hits + "; offset = " + offset ) ; return hitsResults ; }
retrieve the opengl ids that were hited by a previous picking operation .
