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.

98 lines
2.8 KiB

  1. #ifndef __glunurbsconsts_h_
  2. #define __glunurbsconsts_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. * nurbsconsts.h - $Revision: 1.1 $
  16. */
  17. /* NURBS Properties - one set per map,
  18. each takes a single INREAL arg */
  19. #define N_SAMPLING_TOLERANCE 1
  20. #define N_S_RATE 6
  21. #define N_T_RATE 7
  22. #define N_CLAMPFACTOR 13
  23. #define N_NOCLAMPING 0.0
  24. #define N_MINSAVINGS 14
  25. #define N_NOSAVINGSSUBDIVISION 0.0
  26. /* NURBS Properties - one set per map,
  27. each takes an enumerated value */
  28. #define N_CULLING 2
  29. #define N_NOCULLING 0.0
  30. #define N_CULLINGON 1.0
  31. #define N_SAMPLINGMETHOD 10
  32. #define N_NOSAMPLING 0.0
  33. #define N_FIXEDRATE 3.0
  34. #define N_DOMAINDISTANCE 2.0
  35. #define N_PARAMETRICDISTANCE 5.0
  36. #define N_PATHLENGTH 6.0
  37. #define N_SURFACEAREA 7.0
  38. #define N_BBOX_SUBDIVIDING 17
  39. #define N_NOBBOXSUBDIVISION 0.0
  40. #define N_BBOXTIGHT 1.0
  41. #define N_BBOXROUND 2.0
  42. /* NURBS Rendering Properties - one set per renderer
  43. each takes an enumerated value */
  44. #define N_DISPLAY 3
  45. #define N_FILL 1.0
  46. #define N_OUTLINE_POLY 2.0
  47. #define N_OUTLINE_TRI 3.0
  48. #define N_OUTLINE_QUAD 4.0
  49. #define N_OUTLINE_PATCH 5.0
  50. #define N_OUTLINE_PARAM 6.0
  51. #define N_OUTLINE_PARAM_S 7.0
  52. #define N_OUTLINE_PARAM_ST 8.0
  53. #define N_OUTLINE_SUBDIV 9.0
  54. #define N_OUTLINE_SUBDIV_S 10.0
  55. #define N_OUTLINE_SUBDIV_ST 11.0
  56. #define N_ISOLINE_S 12.0
  57. #define N_ERRORCHECKING 4
  58. #define N_NOMSG 0.0
  59. #define N_MSG 1.0
  60. /* GL 4.0 propeties not defined above */
  61. #ifndef N_PIXEL_TOLERANCE
  62. #define N_PIXEL_TOLERANCE N_SAMPLING_TOLERANCE
  63. #define N_ERROR_TOLERANCE 20
  64. #define N_SUBDIVISIONS 5
  65. #define N_TILES 8
  66. #define N_TMP1 9
  67. #define N_TMP2 N_SAMPLINGMETHOD
  68. #define N_TMP3 11
  69. #define N_TMP4 12
  70. #define N_TMP5 N_CLAMPFACTOR
  71. #define N_TMP6 N_MINSAVINGS
  72. #define N_S_STEPS N_S_RATE
  73. #define N_T_STEPS N_T_RATE
  74. #endif
  75. /* NURBS Rendering Properties - one set per map,
  76. each takes an INREAL matrix argument */
  77. #define N_CULLINGMATRIX 1
  78. #define N_SAMPLINGMATRIX 2
  79. #define N_BBOXMATRIX 3
  80. /* NURBS Rendering Properties - one set per map,
  81. each takes an INREAL vector argument */
  82. #define N_BBOXSIZE 4
  83. /* type argument for trimming curves */
  84. #ifndef N_P2D
  85. #define N_P2D 0x8
  86. #define N_P2DR 0xd
  87. #endif
  88. #endif /* __glunurbsconsts_h_ */