Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

  1. #ifndef __glumonotonizer_h_
  2. #define __glumonotonizer_h_
  3. /**************************************************************************
  4. * *
  5. * Copyright (C) 1992, Silicon Graphics, Inc. *
  6. * *
  7. * These coded instructions, statements, and computer programs contain *
  8. * unpublished proprietary information of Silicon Graphics, Inc., and *
  9. * are protected by Federal copyright law. They may not be disclosed *
  10. * to third parties or copied or duplicated in any form, in whole or *
  11. * in part, without the prior written consent of Silicon Graphics, Inc. *
  12. * *
  13. **************************************************************************/
  14. /*
  15. * monotonizer.h - $Revision: 1.1 $
  16. */
  17. #include "mysetjmp.h"
  18. #include "types.h"
  19. class Arc;
  20. class ArcTessellator;
  21. class Pool;
  22. class Bin;
  23. class PwlArcPool;
  24. class Mapdesc;
  25. class Monotonizer {
  26. ArcTessellator& arctessellator;
  27. Pool& arcpool;
  28. Pool& pwlarcpool;
  29. jmp_buf& nurbsJmpBuf;
  30. enum dir { down, same, up, none };
  31. void tessellate( Arc *, REAL );
  32. void monotonize( Arc *, Bin & );
  33. int isMonotone( Arc * );
  34. public:
  35. Monotonizer( ArcTessellator& at, Pool& ap, Pool& p, jmp_buf& j )
  36. : arctessellator(at), arcpool(ap), pwlarcpool(p), nurbsJmpBuf(j) {}
  37. int decompose( Bin &, REAL );
  38. };
  39. #endif /* __glumonotonizer_h_ */