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.3 KiB

  1. #ifndef __glucurve_h_
  2. #define __glucurve_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. * curve.h - $Revision: 1.1 $
  16. */
  17. #include "types.h"
  18. #include "defines.h"
  19. class Mapdesc;
  20. class Quilt;
  21. class Curve {
  22. public:
  23. friend class Curvelist;
  24. Curve( Quilt *, REAL, REAL, Curve * );
  25. Curve( Curve&, REAL, Curve * );
  26. Curve * next;
  27. private:
  28. Mapdesc * mapdesc;
  29. int stride;
  30. int order;
  31. int cullval;
  32. int needsSampling;
  33. REAL cpts[MAXORDER*MAXCOORDS];
  34. REAL spts[MAXORDER*MAXCOORDS];
  35. REAL stepsize;
  36. REAL minstepsize;
  37. REAL range[3];
  38. void clamp( void );
  39. void setstepsize( REAL );
  40. void getstepsize( void );
  41. int cullCheck( void );
  42. int needsSamplingSubdivision( void );
  43. };
  44. #endif /* __glucurve_h_ */