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.

162 lines
5.4 KiB

  1. ;---------------------------Module-Header------------------------------;
  2. ; Module Name: dl_pdata.inc
  3. ;
  4. ; OpenGL display-list macros/equates for i386.
  5. ;
  6. ; Created: 09/20/1996
  7. ; Author: Otto Berkes [ottob]
  8. ;
  9. ; Copyright (c) 1996 Microsoft Corporation
  10. ;----------------------------------------------------------------------;
  11. if __GLLE_POLYDATA_C3F_V3F
  12. ;; __DL_PDATA_NAME = __glle_PolyData_C3F_V3F
  13. __DL_PDATA_T2F = 0
  14. __DL_PDATA_C3F = 1
  15. __DL_PDATA_C4F = 0
  16. __DL_PDATA_N3F = 0
  17. __DL_PDATA_V2F = 0
  18. __DL_PDATA_V3F = 1
  19. endif
  20. if __GLLE_POLYDATA_N3F_V3F
  21. ;; __DL_PDATA_NAME = __glle_PolyData_N3F_V3F
  22. __DL_PDATA_T2F = 0
  23. __DL_PDATA_C3F = 0
  24. __DL_PDATA_C4F = 0
  25. __DL_PDATA_N3F = 1
  26. __DL_PDATA_V2F = 0
  27. __DL_PDATA_V3F = 1
  28. endif
  29. if __GLLE_POLYDATA_C3F_N3F_V3F
  30. ;; __DL_PDATA_NAME = __glle_PolyData_C3F_N3F_V3F
  31. __DL_PDATA_T2F = 0
  32. __DL_PDATA_C3F = 1
  33. __DL_PDATA_C4F = 0
  34. __DL_PDATA_N3F = 1
  35. __DL_PDATA_V2F = 0
  36. __DL_PDATA_V3F = 1
  37. endif
  38. if __GLLE_POLYDATA_C4F_N3F_V3F
  39. ;; __DL_PDATA_NAME = __glle_PolyData_C4F_N3F_V3F
  40. __DL_PDATA_T2F = 0
  41. __DL_PDATA_C3F = 0
  42. __DL_PDATA_C4F = 1
  43. __DL_PDATA_N3F = 1
  44. __DL_PDATA_V2F = 0
  45. __DL_PDATA_V3F = 1
  46. endif
  47. if __GLLE_POLYDATA_T2F_V3F
  48. ;; __DL_PDATA_NAME = __glle_PolyData_T2F_V3F
  49. __DL_PDATA_T2F = 1
  50. __DL_PDATA_C3F = 0
  51. __DL_PDATA_C4F = 0
  52. __DL_PDATA_N3F = 0
  53. __DL_PDATA_V2F = 0
  54. __DL_PDATA_V3F = 1
  55. endif
  56. if __GLLE_POLYDATA_T2F_C3F_V3F
  57. ;; __DL_PDATA_NAME = __glle_PolyData_T2F_C3F_V3F
  58. __DL_PDATA_T2F = 1
  59. __DL_PDATA_C3F = 1
  60. __DL_PDATA_C4F = 0
  61. __DL_PDATA_N3F = 0
  62. __DL_PDATA_V2F = 0
  63. __DL_PDATA_V3F = 1
  64. endif
  65. if __GLLE_POLYDATA_T2F_N3F_V3F
  66. ;; __DL_PDATA_NAME = __glle_PolyData_T2F_N3F_V3F
  67. __DL_PDATA_T2F = 1
  68. __DL_PDATA_C3F = 0
  69. __DL_PDATA_C4F = 0
  70. __DL_PDATA_N3F = 1
  71. __DL_PDATA_V2F = 0
  72. __DL_PDATA_V3F = 1
  73. endif
  74. if __GLLE_POLYDATA_T2F_C3F_N3F_V3F
  75. ;; __DL_PDATA_NAME = __glle_PolyData_T2F_C3F_N3F_V3F
  76. __DL_PDATA_T2F = 1
  77. __DL_PDATA_C3F = 1
  78. __DL_PDATA_C4F = 0
  79. __DL_PDATA_N3F = 1
  80. __DL_PDATA_V2F = 0
  81. __DL_PDATA_V3F = 1
  82. endif
  83. if __GLLE_POLYDATA_T2F_C4F_N3F_V3F
  84. ;; __DL_PDATA_NAME = __glle_PolyData_T2F_C4F_N3F_V3F
  85. __DL_PDATA_T2F = 1
  86. __DL_PDATA_C3F = 0
  87. __DL_PDATA_C4F = 1
  88. __DL_PDATA_N3F = 1
  89. __DL_PDATA_V2F = 0
  90. __DL_PDATA_V3F = 1
  91. endif
  92. ;; Compute record size, pd flags and pa flags
  93. if __DL_PDATA_T2F
  94. __DL_PDATA_SIZE_T = __PDATA_SIZE_T2F
  95. __DL_PDATA_PD_FLAGS_T = __PDATA_PD_FLAGS_T2F
  96. __DL_PDATA_PA_FLAGS_T = __PDATA_PA_FLAGS_T2F
  97. else
  98. __DL_PDATA_SIZE_T = 0
  99. __DL_PDATA_PD_FLAGS_T = 0
  100. __DL_PDATA_PA_FLAGS_T = 0
  101. endif
  102. if __DL_PDATA_C3F
  103. __DL_PDATA_SIZE_C = __PDATA_SIZE_C3F
  104. __DL_PDATA_PD_FLAGS_C = __PDATA_PD_FLAGS_C3F
  105. __DL_PDATA_PA_FLAGS_C = __PDATA_PA_FLAGS_C3F
  106. elseif __DL_PDATA_C4F
  107. __DL_PDATA_SIZE_C = __PDATA_SIZE_C4F
  108. __DL_PDATA_PD_FLAGS_C = __PDATA_PD_FLAGS_C4F
  109. __DL_PDATA_PA_FLAGS_C = __PDATA_PA_FLAGS_C4F
  110. else
  111. __DL_PDATA_SIZE_C = 0
  112. __DL_PDATA_PD_FLAGS_C = 0
  113. __DL_PDATA_PA_FLAGS_C = 0
  114. endif
  115. if __DL_PDATA_N3F
  116. __DL_PDATA_SIZE_N = __PDATA_SIZE_N3F
  117. __DL_PDATA_PD_FLAGS_N = __PDATA_PD_FLAGS_N3F
  118. __DL_PDATA_PA_FLAGS_N = __PDATA_PA_FLAGS_N3F
  119. else
  120. __DL_PDATA_SIZE_N = 0
  121. __DL_PDATA_PD_FLAGS_N = 0
  122. __DL_PDATA_PA_FLAGS_N = 0
  123. endif
  124. if __DL_PDATA_V2F
  125. __DL_PDATA_SIZE_V = __PDATA_SIZE_V2F
  126. __DL_PDATA_PD_FLAGS_V = __PDATA_PD_FLAGS_V2F
  127. __DL_PDATA_PA_FLAGS_V = __PDATA_PA_FLAGS_V2F
  128. elseif __DL_PDATA_V3F
  129. __DL_PDATA_SIZE_V = __PDATA_SIZE_V3F
  130. __DL_PDATA_PD_FLAGS_V = __PDATA_PD_FLAGS_V3F
  131. __DL_PDATA_PA_FLAGS_V = __PDATA_PA_FLAGS_V3F
  132. else
  133. __DL_PDATA_SIZE_V = 0
  134. __DL_PDATA_PD_FLAGS_V = 0
  135. __DL_PDATA_PA_FLAGS_V = 0
  136. endif
  137. __DL_PDATA_SIZE = (__DL_PDATA_SIZE_T+__DL_PDATA_SIZE_C+__DL_PDATA_SIZE_N+__DL_PDATA_SIZE_V)
  138. __DL_PDATA_PD_FLAGS = (__DL_PDATA_PD_FLAGS_T OR __DL_PDATA_PD_FLAGS_C OR __DL_PDATA_PD_FLAGS_N OR __DL_PDATA_PD_FLAGS_V)
  139. __DL_PDATA_PA_FLAGS = (__DL_PDATA_PA_FLAGS_T OR __DL_PDATA_PA_FLAGS_C OR __DL_PDATA_PA_FLAGS_N OR __DL_PDATA_PA_FLAGS_V)
  140. __DL_PDATA_TEXTURE_OFFSET = (0)
  141. __DL_PDATA_COLOR_OFFSET = (__DL_PDATA_SIZE_T)
  142. __DL_PDATA_NORMAL_OFFSET = (__DL_PDATA_SIZE_T+__DL_PDATA_SIZE_C)
  143. __DL_PDATA_VERTEX_OFFSET = (__DL_PDATA_SIZE_T+__DL_PDATA_SIZE_C+__DL_PDATA_SIZE_N)