Windows NT 4.0 source code leak
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.

59 lines
1.6 KiB

5 years ago
  1. #ifndef __tesselator_h_
  2. #define __tesselator_h_
  3. /*
  4. ** Copyright 1994, Silicon Graphics, Inc.
  5. ** All Rights Reserved.
  6. **
  7. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  8. ** the contents of this file may not be disclosed to third parties, copied or
  9. ** duplicated in any form, in whole or in part, without the prior written
  10. ** permission of Silicon Graphics, Inc.
  11. **
  12. ** RESTRICTED RIGHTS LEGEND:
  13. ** Use, duplication or disclosure by the Government is subject to restrictions
  14. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  15. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  16. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  17. ** rights reserved under the Copyright Laws of the United States.
  18. **
  19. ** Author: Eric Veach, July 1994.
  20. */
  21. /* General polygon tesselation.
  22. *
  23. * Tesselates polygons consisting of one or more contours, which can
  24. * be concave, self-intersecting, or degenerate.
  25. */
  26. #include <stddef.h>
  27. #ifdef NT
  28. #include <glos.h>
  29. #include <GL/gl.h>
  30. #include <GL/glu.h>
  31. #else
  32. #include "GL/gl.h"
  33. #endif
  34. /* GLU_TESS_MAX_COORD must be small enough that we can multiply
  35. * and add coordinates without overflow.
  36. */
  37. #ifdef GLU_TESS_API_FLOAT
  38. typedef float GLUcoord;
  39. #define GLU_TESS_MAX_COORD 1.0e18
  40. #define GLU_TESS_DEFAULT_TOLERANCE 0.0
  41. #else
  42. typedef GLdouble GLUcoord;
  43. #define GLU_TESS_MAX_COORD 1.0e150
  44. #define GLU_TESS_DEFAULT_TOLERANCE 0.0
  45. #endif
  46. // mesh stuff that is not included in glu.h:
  47. typedef struct GLUmesh GLUmesh;
  48. // void gluTessDeleteMesh( GLUmesh *mesh );
  49. // #define GLU_TESS_MESH 100106 /* void (*)(GLUmesh *mesh) */
  50. #endif