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.

96 lines
1.7 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 CallIndex(void)
  21. {
  22. float ci;
  23. ci = 255.0;
  24. Output("glIndexs, ");
  25. Output("glIndexsv, ");
  26. Output("glIndexi, ");
  27. Output("glIndexiv, ");
  28. Output("glIndexf, ");
  29. Output("glIndexfv, ");
  30. Output("glIndexd, ");
  31. Output("glIndexdv\n");
  32. glIndexs((GLshort)ci);
  33. {
  34. short buf[1];
  35. buf[0] = (short)ci;
  36. glIndexsv(buf);
  37. }
  38. glIndexi((GLint)ci);
  39. {
  40. GLint buf[1];
  41. buf[0] = (GLint)ci;
  42. glIndexiv(buf);
  43. }
  44. glIndexf((GLfloat)ci);
  45. {
  46. GLfloat buf[1];
  47. buf[0] = (GLfloat)ci;
  48. glIndexfv(buf);
  49. }
  50. glIndexd((GLdouble)ci);
  51. {
  52. GLdouble buf[1];
  53. buf[0] = (GLdouble)ci;
  54. glIndexdv(buf);
  55. }
  56. Output("\n");
  57. }
  58. void CallIndexMask(void)
  59. {
  60. Output("glIndexMask\n");
  61. glIndexMask(0xFFFFFFFF);
  62. Output("\n");
  63. }
  64. void CallInitNames(void)
  65. {
  66. Output("glInitNames\n");
  67. glInitNames();
  68. Output("\n");
  69. }
  70. void CallIsList(void)
  71. {
  72. GLubyte x;
  73. Output("glIsList\n");
  74. x = glIsList(1);
  75. Output("\n");
  76. }