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.

64 lines
1.6 KiB

  1. #ifndef __glutrimregion_h_
  2. #define __glutrimregion_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. * trimregion.h - $Revision: 1.2 $
  16. */
  17. #include "trimline.h"
  18. #include "gridline.h"
  19. #include "uarray.h"
  20. class Arc;
  21. class Backend;
  22. class TrimRegion {
  23. public:
  24. TrimRegion();
  25. Trimline left;
  26. Trimline right;
  27. Gridline top;
  28. Gridline bot;
  29. Uarray uarray;
  30. void init( REAL );
  31. void advance( REAL, REAL, REAL );
  32. void setDu( REAL );
  33. void init( long, Arc * );
  34. void getPts( Arc * );
  35. void getPts( Backend & );
  36. void getGridExtent( TrimVertex *, TrimVertex * );
  37. void getGridExtent( void );
  38. int canTile( void );
  39. private:
  40. REAL oneOverDu;
  41. };
  42. inline void
  43. TrimRegion::init( REAL vval )
  44. {
  45. bot.vval = vval;
  46. }
  47. inline void
  48. TrimRegion::advance( REAL topVindex, REAL botVindex, REAL botVval )
  49. {
  50. top.vindex = (long) topVindex;
  51. bot.vindex = (long) botVindex;
  52. top.vval = bot.vval;
  53. bot.vval = botVval;
  54. top.ustart = bot.ustart;
  55. top.uend = bot.uend;
  56. }
  57. #endif /* __glutrimregion_h_ */