Source code of Windows XP (NT5)
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.

90 lines
2.8 KiB

  1. /*
  2. ** Copyright 1995-2095, 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 "glslib.h"
  18. // DrewB - All functions changed to use passed in context
  19. void __gls_decode_bin_glsBeginPoints(__GLScontext *ctx, GLubyte *inoutPtr) {
  20. typedef void (*__GLSdispatch)(GLenum);
  21. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  22. GL_POINTS
  23. );
  24. }
  25. void __gls_decode_bin_glsBeginLines(__GLScontext *ctx, GLubyte *inoutPtr) {
  26. typedef void (*__GLSdispatch)(GLenum);
  27. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  28. GL_LINES
  29. );
  30. }
  31. void __gls_decode_bin_glsBeginLineLoop(__GLScontext *ctx, GLubyte *inoutPtr) {
  32. typedef void (*__GLSdispatch)(GLenum);
  33. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  34. GL_LINE_LOOP
  35. );
  36. }
  37. void __gls_decode_bin_glsBeginLineStrip(__GLScontext *ctx, GLubyte *inoutPtr) {
  38. typedef void (*__GLSdispatch)(GLenum);
  39. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  40. GL_LINE_STRIP
  41. );
  42. }
  43. void __gls_decode_bin_glsBeginTriangles(__GLScontext *ctx, GLubyte *inoutPtr) {
  44. typedef void (*__GLSdispatch)(GLenum);
  45. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  46. GL_TRIANGLES
  47. );
  48. }
  49. void __gls_decode_bin_glsBeginTriangleStrip(__GLScontext *ctx, GLubyte *inoutPtr) {
  50. typedef void (*__GLSdispatch)(GLenum);
  51. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  52. GL_TRIANGLE_STRIP
  53. );
  54. }
  55. void __gls_decode_bin_glsBeginTriangleFan(__GLScontext *ctx, GLubyte *inoutPtr) {
  56. typedef void (*__GLSdispatch)(GLenum);
  57. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  58. GL_TRIANGLE_FAN
  59. );
  60. }
  61. void __gls_decode_bin_glsBeginQuads(__GLScontext *ctx, GLubyte *inoutPtr) {
  62. typedef void (*__GLSdispatch)(GLenum);
  63. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  64. GL_QUADS
  65. );
  66. }
  67. void __gls_decode_bin_glsBeginQuadStrip(__GLScontext *ctx, GLubyte *inoutPtr) {
  68. typedef void (*__GLSdispatch)(GLenum);
  69. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  70. GL_QUAD_STRIP
  71. );
  72. }
  73. void __gls_decode_bin_glsBeginPolygon(__GLScontext *ctx, GLubyte *inoutPtr) {
  74. typedef void (*__GLSdispatch)(GLenum);
  75. ((__GLSdispatch)ctx->dispatchCall[GLS_OP_glBegin])(
  76. GL_POLYGON
  77. );
  78. }