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.

178 lines
3.5 KiB

5 years ago
  1. /*
  2. ** Copyright 1992, Silicon Graphics, Inc.
  3. ** All Rights Reserved.
  4. **
  5. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. ** the contents of this file may not be disclosed to third parties, copied or
  7. ** duplicated in any form, in whole or in part, without the prior written
  8. ** permission of Silicon Graphics, Inc.
  9. **
  10. ** RESTRICTED RIGHTS LEGEND:
  11. ** Use, duplication or disclosure by the Government is subject to restrictions
  12. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15. ** rights reserved under the Copyright Laws of the United States.
  16. */
  17. #include <windows.h>
  18. #include <GL/gl.h>
  19. #include "shell.h"
  20. void CallPassThrough(void)
  21. {
  22. Output("glPassThrough\n");
  23. glPassThrough(0.0);
  24. Output("\n");
  25. }
  26. void CallPixelMap(void)
  27. {
  28. long i;
  29. Output("glPixelMapus, ");
  30. Output("glPixelMapui, ");
  31. Output("glPixelMapf\n");
  32. for (i = 0; enum_PixelMap[i].value != -1; i++) {
  33. Output("\t%s\n", enum_PixelMap[i].name);
  34. {
  35. GLushort buf[1];
  36. buf[0] = 0;
  37. glPixelMapusv(enum_PixelMap[i].value, 1, buf);
  38. }
  39. {
  40. GLuint buf[1];
  41. buf[0] = 0;
  42. glPixelMapuiv(enum_PixelMap[i].value, 1, buf);
  43. }
  44. {
  45. GLfloat buf[1];
  46. buf[0] = 0.0;
  47. glPixelMapfv(enum_PixelMap[i].value, 1, buf);
  48. }
  49. ProbeEnum();
  50. }
  51. Output("\n");
  52. }
  53. void CallPixelStore(void)
  54. {
  55. long i;
  56. Output("glPixelStorei, ");
  57. Output("glPixelStoref\n");
  58. for (i = 0; enum_PixelStore[i].value != -1; i++) {
  59. Output("\t%s\n", enum_PixelStore[i].name);
  60. glPixelStorei(enum_PixelStore[i].value, 1);
  61. glPixelStoref(enum_PixelStore[i].value, 1.0);
  62. ProbeEnum();
  63. }
  64. Output("\n");
  65. }
  66. void CallPixelTransfer(void)
  67. {
  68. long i;
  69. Output("glPixelTransferi, ");
  70. Output("glPixelTransferf\n");
  71. for (i = 0; enum_PixelTransfer[i].value != -1; i++) {
  72. Output("\t%s\n", enum_PixelTransfer[i].name);
  73. glPixelTransferi(enum_PixelTransfer[i].value, 1);
  74. glPixelTransferf(enum_PixelTransfer[i].value, 1.0);
  75. ProbeEnum();
  76. }
  77. Output("\n");
  78. }
  79. void CallPixelZoom(void)
  80. {
  81. Output("glPixelZoom\n");
  82. glPixelZoom(1.0, 1.0);
  83. Output("\n");
  84. }
  85. void CallPointSize(void)
  86. {
  87. Output("glPointSize\n");
  88. glPointSize(1.0);
  89. Output("\n");
  90. }
  91. void CallPolygonMode(void)
  92. {
  93. long i, j;
  94. Output("glPolygonMode\n");
  95. for (i = 0; enum_MaterialFace[i].value != -1; i++) {
  96. for (j = 0; enum_PolygonMode[j].value != -1; j++) {
  97. Output("\t%s, %s\n", enum_MaterialFace[i].name, enum_PolygonMode[j].name);
  98. glPolygonMode(enum_MaterialFace[i].value, enum_PolygonMode[j].value);
  99. ProbeEnum();
  100. }
  101. }
  102. Output("\n");
  103. }
  104. void CallPolygonStipple(void)
  105. {
  106. GLubyte buf[128];
  107. ZeroBuf(GL_UNSIGNED_BYTE, 128, (void *)buf);
  108. Output("glPolygonStipple\n");
  109. glPolygonStipple(buf);
  110. Output("\n");
  111. }
  112. void CallPopMatrix(void)
  113. {
  114. Output("glPopMatrix\n");
  115. glPopMatrix();
  116. Output("\n");
  117. }
  118. void CallPopName(void)
  119. {
  120. Output("glPopName\n");
  121. glPopName();
  122. Output("\n");
  123. }
  124. void CallPushPopAttrib(void)
  125. {
  126. long i;
  127. Output("glPushAttrib, ");
  128. Output("glPopAttrib\n");
  129. for (i = 0; enum_AttribMask[i].value != -1; i++) {
  130. Output("\t%s\n", enum_AttribMask[i].name);
  131. glPushAttrib(enum_AttribMask[i].value);
  132. glPopAttrib();
  133. ProbeEnum();
  134. }
  135. Output("\n");
  136. }
  137. void CallPushMatrix(void)
  138. {
  139. Output("glPushMatrix\n");
  140. glPushMatrix();
  141. Output("\n");
  142. }
  143. void CallPushName(void)
  144. {
  145. Output("glPushName\n");
  146. glPushName(1);
  147. Output("\n");
  148. }