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.

51 lines
1.4 KiB

  1. #ifndef __glupatchlist_h_
  2. #define __glupatchlist_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. * patchlist.h - $Revision: 1.1 $
  16. */
  17. #include "types.h"
  18. #include "defines.h"
  19. #include "patch.h"
  20. class Quilt;
  21. class Patchlist {
  22. friend class Subdivider;
  23. public:
  24. Patchlist( Quilt *, REAL *, REAL * );
  25. Patchlist( Patchlist &, int , REAL );
  26. ~Patchlist();
  27. void bbox();
  28. int cullCheck( void );
  29. void getstepsize( void );
  30. int needsNonSamplingSubdivision( void );
  31. int needsSamplingSubdivision( void );
  32. int needsSubdivision( int );
  33. REAL getStepsize( int );
  34. private:
  35. Patch *patch;
  36. int notInBbox;
  37. int needsSampling;
  38. Pspec pspec[2];
  39. };
  40. inline REAL
  41. Patchlist::getStepsize( int param )
  42. {
  43. return pspec[param].stepsize;
  44. }
  45. #endif /* __glupatchlist_h_ */