


#ifndef __SCANLINE_H__
#define __SCANLINE_H__



//---- SCANLINE CLASS --------------------------------------------------------//

#define SCANLINE_MAX_POINTS 32

class Scanline
{
public:

  Scanline( );
  ~Scanline( );

  void clear( );
  void addPoint( float x );

  void firstPoint( );
  bool nextPoint( float *x );

  void firstPair( );
  bool nextPair( float *x1, float *x2 );

private:

  float *px;
  int pnum;
  int pmax;

  int pointptr;
  int pairptr;
};




#endif
