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.

5009 lines
166 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. /* GENERATED FILE: DO NOT EDIT */
  18. #include "glslib.h"
  19. #include <stdlib.h>
  20. #include <string.h>
  21. // DrewB - All functions changed to use passed in context
  22. // DrewB - Added optimized vector functions missing in original
  23. // DrewB - Removed size externs
  24. void __gls_decode_bin_glsBeginGLS(__GLScontext *ctx, GLubyte *inoutPtr) {
  25. typedef void (*__GLSdispatch)(GLint, GLint);
  26. ((__GLSdispatch)ctx->dispatchCall[16])(
  27. *(GLint *)(inoutPtr + 0),
  28. *(GLint *)(inoutPtr + 4)
  29. );
  30. }
  31. void __gls_decode_bin_glsBlock(__GLScontext *ctx, GLubyte *inoutPtr) {
  32. typedef void (*__GLSdispatch)(GLSenum);
  33. ((__GLSdispatch)ctx->dispatchCall[17])(
  34. *(GLSenum *)(inoutPtr + 0)
  35. );
  36. }
  37. void __gls_decode_bin_glsError(__GLScontext *ctx, GLubyte *inoutPtr) {
  38. typedef void (*__GLSdispatch)(GLSopcode, GLSenum);
  39. ((__GLSdispatch)ctx->dispatchCall[20])(
  40. *(GLSopcode *)(inoutPtr + 0),
  41. *(GLSenum *)(inoutPtr + 4)
  42. );
  43. }
  44. void __gls_decode_bin_glsGLRC(__GLScontext *ctx, GLubyte *inoutPtr) {
  45. typedef void (*__GLSdispatch)(GLuint);
  46. ((__GLSdispatch)ctx->dispatchCall[21])(
  47. *(GLuint *)(inoutPtr + 0)
  48. );
  49. }
  50. void __gls_decode_bin_glsGLRCLayer(__GLScontext *ctx, GLubyte *inoutPtr) {
  51. typedef void (*__GLSdispatch)(GLuint, GLuint, GLuint);
  52. ((__GLSdispatch)ctx->dispatchCall[22])(
  53. *(GLuint *)(inoutPtr + 0),
  54. *(GLuint *)(inoutPtr + 4),
  55. *(GLuint *)(inoutPtr + 8)
  56. );
  57. }
  58. void __gls_decode_bin_glsHeaderGLRCi(__GLScontext *ctx, GLubyte *inoutPtr) {
  59. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLint);
  60. ((__GLSdispatch)ctx->dispatchCall[23])(
  61. *(GLuint *)(inoutPtr + 0),
  62. *(GLSenum *)(inoutPtr + 4),
  63. *(GLint *)(inoutPtr + 8)
  64. );
  65. }
  66. void __gls_decode_bin_glsHeaderLayerf(__GLScontext *ctx, GLubyte *inoutPtr) {
  67. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLfloat);
  68. ((__GLSdispatch)ctx->dispatchCall[24])(
  69. *(GLuint *)(inoutPtr + 0),
  70. *(GLSenum *)(inoutPtr + 4),
  71. *(GLfloat *)(inoutPtr + 8)
  72. );
  73. }
  74. void __gls_decode_bin_glsHeaderLayeri(__GLScontext *ctx, GLubyte *inoutPtr) {
  75. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLint);
  76. ((__GLSdispatch)ctx->dispatchCall[25])(
  77. *(GLuint *)(inoutPtr + 0),
  78. *(GLSenum *)(inoutPtr + 4),
  79. *(GLint *)(inoutPtr + 8)
  80. );
  81. }
  82. void __gls_decode_bin_glsHeaderf(__GLScontext *ctx, GLubyte *inoutPtr) {
  83. typedef void (*__GLSdispatch)(GLSenum, GLfloat);
  84. ((__GLSdispatch)ctx->dispatchCall[26])(
  85. *(GLSenum *)(inoutPtr + 0),
  86. *(GLfloat *)(inoutPtr + 4)
  87. );
  88. }
  89. void __gls_decode_bin_glsHeaderfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  90. typedef void (*__GLSdispatch)(GLSenum, const GLfloat *);
  91. ((__GLSdispatch)ctx->dispatchCall[27])(
  92. *(GLSenum *)(inoutPtr + 0),
  93. (GLfloat *)(inoutPtr + 4)
  94. );
  95. }
  96. void __gls_decode_bin_glsHeaderi(__GLScontext *ctx, GLubyte *inoutPtr) {
  97. typedef void (*__GLSdispatch)(GLSenum, GLint);
  98. ((__GLSdispatch)ctx->dispatchCall[28])(
  99. *(GLSenum *)(inoutPtr + 0),
  100. *(GLint *)(inoutPtr + 4)
  101. );
  102. }
  103. void __gls_decode_bin_glsHeaderiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  104. typedef void (*__GLSdispatch)(GLSenum, const GLint *);
  105. ((__GLSdispatch)ctx->dispatchCall[29])(
  106. *(GLSenum *)(inoutPtr + 0),
  107. (GLint *)(inoutPtr + 4)
  108. );
  109. }
  110. void __gls_decode_bin_glsHeaderubz(__GLScontext *ctx, GLubyte *inoutPtr) {
  111. typedef void (*__GLSdispatch)(GLSenum, const GLubyte *);
  112. ((__GLSdispatch)ctx->dispatchCall[30])(
  113. *(GLSenum *)(inoutPtr + 0),
  114. (GLubyte *)(inoutPtr + 4)
  115. );
  116. }
  117. void __gls_decode_bin_glsAppRef(__GLScontext *ctx, GLubyte *inoutPtr) {
  118. typedef void (*__GLSdispatch)(GLulong, GLuint);
  119. ((__GLSdispatch)ctx->dispatchCall[33])(
  120. *(GLulong *)(inoutPtr + 0),
  121. *(GLuint *)(inoutPtr + 8)
  122. );
  123. }
  124. void __gls_decode_bin_glsCharubz(__GLScontext *ctx, GLubyte *inoutPtr) {
  125. typedef void (*__GLSdispatch)(const GLubyte *, const GLubyte *);
  126. GLint inTag_count;
  127. inTag_count = (GLint)strlen((const char *)(inoutPtr + 0)) + 1;
  128. ((__GLSdispatch)ctx->dispatchCall[35])(
  129. (GLubyte *)(inoutPtr + 0),
  130. (GLubyte *)(inoutPtr + 0 + inTag_count)
  131. );
  132. }
  133. void __gls_decode_bin_glsDisplayMapfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  134. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLuint, const GLfloat *);
  135. ((__GLSdispatch)ctx->dispatchCall[37])(
  136. *(GLuint *)(inoutPtr + 4),
  137. *(GLSenum *)(inoutPtr + 8),
  138. *(GLuint *)(inoutPtr + 0),
  139. (GLfloat *)(inoutPtr + 12)
  140. );
  141. }
  142. void __gls_decode_bin_glsNumb(__GLScontext *ctx, GLubyte *inoutPtr) {
  143. typedef void (*__GLSdispatch)(const GLubyte *, GLbyte);
  144. ((__GLSdispatch)ctx->dispatchCall[39])(
  145. (GLubyte *)(inoutPtr + 1),
  146. *(GLbyte *)(inoutPtr + 0)
  147. );
  148. }
  149. void __gls_decode_bin_glsNumbv(__GLScontext *ctx, GLubyte *inoutPtr) {
  150. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLbyte *);
  151. GLuint inCount;
  152. inCount = *(GLuint *)(inoutPtr + 0);
  153. ((__GLSdispatch)ctx->dispatchCall[40])(
  154. (GLubyte *)(inoutPtr + 4 + 1 * __GLS_MAX(inCount, 0)),
  155. *(GLuint *)(inoutPtr + 0),
  156. (GLbyte *)(inoutPtr + 4)
  157. );
  158. }
  159. void __gls_decode_bin_glsNumd(__GLScontext *ctx, GLubyte *inoutPtr) {
  160. typedef void (*__GLSdispatch)(const GLubyte *, GLdouble);
  161. ((__GLSdispatch)ctx->dispatchCall[41])(
  162. (GLubyte *)(inoutPtr + 8),
  163. *(GLdouble *)(inoutPtr + 0)
  164. );
  165. }
  166. void __gls_decode_bin_glsNumdv(__GLScontext *ctx, GLubyte *inoutPtr) {
  167. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLdouble *);
  168. GLuint inCount;
  169. inCount = *(GLuint *)(inoutPtr + 0);
  170. ((__GLSdispatch)ctx->dispatchCall[42])(
  171. (GLubyte *)(inoutPtr + 4 + 8 * __GLS_MAX(inCount, 0)),
  172. *(GLuint *)(inoutPtr + 0),
  173. (GLdouble *)(inoutPtr + 4)
  174. );
  175. }
  176. void __gls_decode_bin_glsNumf(__GLScontext *ctx, GLubyte *inoutPtr) {
  177. typedef void (*__GLSdispatch)(const GLubyte *, GLfloat);
  178. ((__GLSdispatch)ctx->dispatchCall[43])(
  179. (GLubyte *)(inoutPtr + 4),
  180. *(GLfloat *)(inoutPtr + 0)
  181. );
  182. }
  183. void __gls_decode_bin_glsNumfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  184. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLfloat *);
  185. GLuint inCount;
  186. inCount = *(GLuint *)(inoutPtr + 0);
  187. ((__GLSdispatch)ctx->dispatchCall[44])(
  188. (GLubyte *)(inoutPtr + 4 + 4 * __GLS_MAX(inCount, 0)),
  189. *(GLuint *)(inoutPtr + 0),
  190. (GLfloat *)(inoutPtr + 4)
  191. );
  192. }
  193. void __gls_decode_bin_glsNumi(__GLScontext *ctx, GLubyte *inoutPtr) {
  194. typedef void (*__GLSdispatch)(const GLubyte *, GLint);
  195. ((__GLSdispatch)ctx->dispatchCall[45])(
  196. (GLubyte *)(inoutPtr + 4),
  197. *(GLint *)(inoutPtr + 0)
  198. );
  199. }
  200. void __gls_decode_bin_glsNumiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  201. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLint *);
  202. GLuint inCount;
  203. inCount = *(GLuint *)(inoutPtr + 0);
  204. ((__GLSdispatch)ctx->dispatchCall[46])(
  205. (GLubyte *)(inoutPtr + 4 + 4 * __GLS_MAX(inCount, 0)),
  206. *(GLuint *)(inoutPtr + 0),
  207. (GLint *)(inoutPtr + 4)
  208. );
  209. }
  210. void __gls_decode_bin_glsNuml(__GLScontext *ctx, GLubyte *inoutPtr) {
  211. typedef void (*__GLSdispatch)(const GLubyte *, GLlong);
  212. ((__GLSdispatch)ctx->dispatchCall[47])(
  213. (GLubyte *)(inoutPtr + 8),
  214. *(GLlong *)(inoutPtr + 0)
  215. );
  216. }
  217. void __gls_decode_bin_glsNumlv(__GLScontext *ctx, GLubyte *inoutPtr) {
  218. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLlong *);
  219. GLuint inCount;
  220. inCount = *(GLuint *)(inoutPtr + 0);
  221. ((__GLSdispatch)ctx->dispatchCall[48])(
  222. (GLubyte *)(inoutPtr + 4 + 8 * __GLS_MAX(inCount, 0)),
  223. *(GLuint *)(inoutPtr + 0),
  224. (GLlong *)(inoutPtr + 4)
  225. );
  226. }
  227. void __gls_decode_bin_glsNums(__GLScontext *ctx, GLubyte *inoutPtr) {
  228. typedef void (*__GLSdispatch)(const GLubyte *, GLshort);
  229. ((__GLSdispatch)ctx->dispatchCall[49])(
  230. (GLubyte *)(inoutPtr + 2),
  231. *(GLshort *)(inoutPtr + 0)
  232. );
  233. }
  234. void __gls_decode_bin_glsNumsv(__GLScontext *ctx, GLubyte *inoutPtr) {
  235. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLshort *);
  236. GLuint inCount;
  237. inCount = *(GLuint *)(inoutPtr + 0);
  238. ((__GLSdispatch)ctx->dispatchCall[50])(
  239. (GLubyte *)(inoutPtr + 4 + 2 * __GLS_MAX(inCount, 0)),
  240. *(GLuint *)(inoutPtr + 0),
  241. (GLshort *)(inoutPtr + 4)
  242. );
  243. }
  244. void __gls_decode_bin_glsNumub(__GLScontext *ctx, GLubyte *inoutPtr) {
  245. typedef void (*__GLSdispatch)(const GLubyte *, GLubyte);
  246. ((__GLSdispatch)ctx->dispatchCall[51])(
  247. (GLubyte *)(inoutPtr + 1),
  248. *(GLubyte *)(inoutPtr + 0)
  249. );
  250. }
  251. void __gls_decode_bin_glsNumubv(__GLScontext *ctx, GLubyte *inoutPtr) {
  252. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLubyte *);
  253. GLuint inCount;
  254. inCount = *(GLuint *)(inoutPtr + 0);
  255. ((__GLSdispatch)ctx->dispatchCall[52])(
  256. (GLubyte *)(inoutPtr + 4 + 1 * __GLS_MAX(inCount, 0)),
  257. *(GLuint *)(inoutPtr + 0),
  258. (GLubyte *)(inoutPtr + 4)
  259. );
  260. }
  261. void __gls_decode_bin_glsNumui(__GLScontext *ctx, GLubyte *inoutPtr) {
  262. typedef void (*__GLSdispatch)(const GLubyte *, GLuint);
  263. ((__GLSdispatch)ctx->dispatchCall[53])(
  264. (GLubyte *)(inoutPtr + 4),
  265. *(GLuint *)(inoutPtr + 0)
  266. );
  267. }
  268. void __gls_decode_bin_glsNumuiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  269. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLuint *);
  270. GLuint inCount;
  271. inCount = *(GLuint *)(inoutPtr + 0);
  272. ((__GLSdispatch)ctx->dispatchCall[54])(
  273. (GLubyte *)(inoutPtr + 4 + 4 * __GLS_MAX(inCount, 0)),
  274. *(GLuint *)(inoutPtr + 0),
  275. (GLuint *)(inoutPtr + 4)
  276. );
  277. }
  278. void __gls_decode_bin_glsNumul(__GLScontext *ctx, GLubyte *inoutPtr) {
  279. typedef void (*__GLSdispatch)(const GLubyte *, GLulong);
  280. ((__GLSdispatch)ctx->dispatchCall[55])(
  281. (GLubyte *)(inoutPtr + 8),
  282. *(GLulong *)(inoutPtr + 0)
  283. );
  284. }
  285. void __gls_decode_bin_glsNumulv(__GLScontext *ctx, GLubyte *inoutPtr) {
  286. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLulong *);
  287. GLuint inCount;
  288. inCount = *(GLuint *)(inoutPtr + 0);
  289. ((__GLSdispatch)ctx->dispatchCall[56])(
  290. (GLubyte *)(inoutPtr + 4 + 8 * __GLS_MAX(inCount, 0)),
  291. *(GLuint *)(inoutPtr + 0),
  292. (GLulong *)(inoutPtr + 4)
  293. );
  294. }
  295. void __gls_decode_bin_glsNumus(__GLScontext *ctx, GLubyte *inoutPtr) {
  296. typedef void (*__GLSdispatch)(const GLubyte *, GLushort);
  297. ((__GLSdispatch)ctx->dispatchCall[57])(
  298. (GLubyte *)(inoutPtr + 2),
  299. *(GLushort *)(inoutPtr + 0)
  300. );
  301. }
  302. void __gls_decode_bin_glsNumusv(__GLScontext *ctx, GLubyte *inoutPtr) {
  303. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLushort *);
  304. GLuint inCount;
  305. inCount = *(GLuint *)(inoutPtr + 0);
  306. ((__GLSdispatch)ctx->dispatchCall[58])(
  307. (GLubyte *)(inoutPtr + 4 + 2 * __GLS_MAX(inCount, 0)),
  308. *(GLuint *)(inoutPtr + 0),
  309. (GLushort *)(inoutPtr + 4)
  310. );
  311. }
  312. void __gls_decode_bin_glsSwapBuffers(__GLScontext *ctx, GLubyte *inoutPtr) {
  313. typedef void (*__GLSdispatch)(GLuint);
  314. ((__GLSdispatch)ctx->dispatchCall[60])(
  315. *(GLuint *)(inoutPtr + 0)
  316. );
  317. }
  318. void __gls_decode_bin_glNewList(__GLScontext *ctx, GLubyte *inoutPtr) {
  319. typedef void (*__GLSdispatch)(GLuint, GLenum);
  320. ((__GLSdispatch)ctx->dispatchCall[64])(
  321. *(GLuint *)(inoutPtr + 0),
  322. *(GLenum *)(inoutPtr + 4)
  323. );
  324. }
  325. void __gls_decode_bin_glCallList(__GLScontext *ctx, GLubyte *inoutPtr) {
  326. typedef void (*__GLSdispatch)(GLuint);
  327. ((__GLSdispatch)ctx->dispatchCall[66])(
  328. *(GLuint *)(inoutPtr + 0)
  329. );
  330. }
  331. void __gls_decode_bin_glCallLists(__GLScontext *ctx, GLubyte *inoutPtr) {
  332. typedef void (*__GLSdispatch)(GLsizei, GLenum, const GLvoid *);
  333. ((__GLSdispatch)ctx->dispatchCall[67])(
  334. *(GLsizei *)(inoutPtr + 0),
  335. *(GLenum *)(inoutPtr + 4),
  336. (GLvoid *)(inoutPtr + 8)
  337. );
  338. }
  339. void __gls_decode_bin_glDeleteLists(__GLScontext *ctx, GLubyte *inoutPtr) {
  340. typedef void (*__GLSdispatch)(GLuint, GLsizei);
  341. ((__GLSdispatch)ctx->dispatchCall[68])(
  342. *(GLuint *)(inoutPtr + 0),
  343. *(GLsizei *)(inoutPtr + 4)
  344. );
  345. }
  346. void __gls_decode_bin_glGenLists(__GLScontext *ctx, GLubyte *inoutPtr) {
  347. typedef void (*__GLSdispatch)(GLsizei);
  348. ((__GLSdispatch)ctx->dispatchCall[69])(
  349. *(GLsizei *)(inoutPtr + 0)
  350. );
  351. }
  352. void __gls_decode_bin_glListBase(__GLScontext *ctx, GLubyte *inoutPtr) {
  353. typedef void (*__GLSdispatch)(GLuint);
  354. ((__GLSdispatch)ctx->dispatchCall[70])(
  355. *(GLuint *)(inoutPtr + 0)
  356. );
  357. }
  358. void __gls_decode_bin_glBegin(__GLScontext *ctx, GLubyte *inoutPtr) {
  359. typedef void (*__GLSdispatch)(GLenum);
  360. ((__GLSdispatch)ctx->dispatchCall[71])(
  361. *(GLenum *)(inoutPtr + 0)
  362. );
  363. }
  364. void __gls_decode_bin_glBitmap(__GLScontext *ctx, GLubyte *inoutPtr) {
  365. typedef void (*__GLSdispatch)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *);
  366. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  367. ((__GLSdispatch)ctx->dispatchCall[72])(
  368. *(GLsizei *)(inoutPtr + 4),
  369. *(GLsizei *)(inoutPtr + 8),
  370. *(GLfloat *)(inoutPtr + 12),
  371. *(GLfloat *)(inoutPtr + 16),
  372. *(GLfloat *)(inoutPtr + 20),
  373. *(GLfloat *)(inoutPtr + 24),
  374. (GLubyte *)(inoutPtr + 28)
  375. );
  376. }
  377. void __gls_decode_bin_glColor3b(__GLScontext *ctx, GLubyte *inoutPtr) {
  378. typedef void (*__GLSdispatch)(GLbyte, GLbyte, GLbyte);
  379. ((__GLSdispatch)ctx->dispatchCall[73])(
  380. *(GLbyte *)(inoutPtr + 0),
  381. *(GLbyte *)(inoutPtr + 1),
  382. *(GLbyte *)(inoutPtr + 2)
  383. );
  384. }
  385. void __gls_decode_bin_glColor3d(__GLScontext *ctx, GLubyte *inoutPtr) {
  386. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  387. ((__GLSdispatch)ctx->dispatchCall[75])(
  388. *(GLdouble *)(inoutPtr + 0),
  389. *(GLdouble *)(inoutPtr + 8),
  390. *(GLdouble *)(inoutPtr + 16)
  391. );
  392. }
  393. void __gls_decode_bin_glColor3f(__GLScontext *ctx, GLubyte *inoutPtr) {
  394. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  395. ((__GLSdispatch)ctx->dispatchCall[77])(
  396. *(GLfloat *)(inoutPtr + 0),
  397. *(GLfloat *)(inoutPtr + 4),
  398. *(GLfloat *)(inoutPtr + 8)
  399. );
  400. }
  401. void __gls_decode_bin_glColor3i(__GLScontext *ctx, GLubyte *inoutPtr) {
  402. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  403. ((__GLSdispatch)ctx->dispatchCall[79])(
  404. *(GLint *)(inoutPtr + 0),
  405. *(GLint *)(inoutPtr + 4),
  406. *(GLint *)(inoutPtr + 8)
  407. );
  408. }
  409. void __gls_decode_bin_glColor3s(__GLScontext *ctx, GLubyte *inoutPtr) {
  410. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  411. ((__GLSdispatch)ctx->dispatchCall[81])(
  412. *(GLshort *)(inoutPtr + 0),
  413. *(GLshort *)(inoutPtr + 2),
  414. *(GLshort *)(inoutPtr + 4)
  415. );
  416. }
  417. void __gls_decode_bin_glColor3ub(__GLScontext *ctx, GLubyte *inoutPtr) {
  418. typedef void (*__GLSdispatch)(GLubyte, GLubyte, GLubyte);
  419. ((__GLSdispatch)ctx->dispatchCall[83])(
  420. *(GLubyte *)(inoutPtr + 0),
  421. *(GLubyte *)(inoutPtr + 1),
  422. *(GLubyte *)(inoutPtr + 2)
  423. );
  424. }
  425. void __gls_decode_bin_glColor3ui(__GLScontext *ctx, GLubyte *inoutPtr) {
  426. typedef void (*__GLSdispatch)(GLuint, GLuint, GLuint);
  427. ((__GLSdispatch)ctx->dispatchCall[85])(
  428. *(GLuint *)(inoutPtr + 0),
  429. *(GLuint *)(inoutPtr + 4),
  430. *(GLuint *)(inoutPtr + 8)
  431. );
  432. }
  433. void __gls_decode_bin_glColor3us(__GLScontext *ctx, GLubyte *inoutPtr) {
  434. typedef void (*__GLSdispatch)(GLushort, GLushort, GLushort);
  435. ((__GLSdispatch)ctx->dispatchCall[87])(
  436. *(GLushort *)(inoutPtr + 0),
  437. *(GLushort *)(inoutPtr + 2),
  438. *(GLushort *)(inoutPtr + 4)
  439. );
  440. }
  441. void __gls_decode_bin_glColor4b(__GLScontext *ctx, GLubyte *inoutPtr) {
  442. typedef void (*__GLSdispatch)(GLbyte, GLbyte, GLbyte, GLbyte);
  443. ((__GLSdispatch)ctx->dispatchCall[89])(
  444. *(GLbyte *)(inoutPtr + 0),
  445. *(GLbyte *)(inoutPtr + 1),
  446. *(GLbyte *)(inoutPtr + 2),
  447. *(GLbyte *)(inoutPtr + 3)
  448. );
  449. }
  450. void __gls_decode_bin_glColor4d(__GLScontext *ctx, GLubyte *inoutPtr) {
  451. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  452. ((__GLSdispatch)ctx->dispatchCall[91])(
  453. *(GLdouble *)(inoutPtr + 0),
  454. *(GLdouble *)(inoutPtr + 8),
  455. *(GLdouble *)(inoutPtr + 16),
  456. *(GLdouble *)(inoutPtr + 24)
  457. );
  458. }
  459. void __gls_decode_bin_glColor4f(__GLScontext *ctx, GLubyte *inoutPtr) {
  460. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  461. ((__GLSdispatch)ctx->dispatchCall[93])(
  462. *(GLfloat *)(inoutPtr + 0),
  463. *(GLfloat *)(inoutPtr + 4),
  464. *(GLfloat *)(inoutPtr + 8),
  465. *(GLfloat *)(inoutPtr + 12)
  466. );
  467. }
  468. void __gls_decode_bin_glColor4i(__GLScontext *ctx, GLubyte *inoutPtr) {
  469. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  470. ((__GLSdispatch)ctx->dispatchCall[95])(
  471. *(GLint *)(inoutPtr + 0),
  472. *(GLint *)(inoutPtr + 4),
  473. *(GLint *)(inoutPtr + 8),
  474. *(GLint *)(inoutPtr + 12)
  475. );
  476. }
  477. void __gls_decode_bin_glColor4s(__GLScontext *ctx, GLubyte *inoutPtr) {
  478. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  479. ((__GLSdispatch)ctx->dispatchCall[97])(
  480. *(GLshort *)(inoutPtr + 0),
  481. *(GLshort *)(inoutPtr + 2),
  482. *(GLshort *)(inoutPtr + 4),
  483. *(GLshort *)(inoutPtr + 6)
  484. );
  485. }
  486. void __gls_decode_bin_glColor4ub(__GLScontext *ctx, GLubyte *inoutPtr) {
  487. typedef void (*__GLSdispatch)(GLubyte, GLubyte, GLubyte, GLubyte);
  488. ((__GLSdispatch)ctx->dispatchCall[99])(
  489. *(GLubyte *)(inoutPtr + 0),
  490. *(GLubyte *)(inoutPtr + 1),
  491. *(GLubyte *)(inoutPtr + 2),
  492. *(GLubyte *)(inoutPtr + 3)
  493. );
  494. }
  495. void __gls_decode_bin_glColor4ui(__GLScontext *ctx, GLubyte *inoutPtr) {
  496. typedef void (*__GLSdispatch)(GLuint, GLuint, GLuint, GLuint);
  497. ((__GLSdispatch)ctx->dispatchCall[101])(
  498. *(GLuint *)(inoutPtr + 0),
  499. *(GLuint *)(inoutPtr + 4),
  500. *(GLuint *)(inoutPtr + 8),
  501. *(GLuint *)(inoutPtr + 12)
  502. );
  503. }
  504. void __gls_decode_bin_glColor4us(__GLScontext *ctx, GLubyte *inoutPtr) {
  505. typedef void (*__GLSdispatch)(GLushort, GLushort, GLushort, GLushort);
  506. ((__GLSdispatch)ctx->dispatchCall[103])(
  507. *(GLushort *)(inoutPtr + 0),
  508. *(GLushort *)(inoutPtr + 2),
  509. *(GLushort *)(inoutPtr + 4),
  510. *(GLushort *)(inoutPtr + 6)
  511. );
  512. }
  513. void __gls_decode_bin_glEdgeFlag(__GLScontext *ctx, GLubyte *inoutPtr) {
  514. typedef void (*__GLSdispatch)(GLboolean);
  515. ((__GLSdispatch)ctx->dispatchCall[105])(
  516. *(GLboolean *)(inoutPtr + 0)
  517. );
  518. }
  519. void __gls_decode_bin_glIndexd(__GLScontext *ctx, GLubyte *inoutPtr) {
  520. typedef void (*__GLSdispatch)(GLdouble);
  521. ((__GLSdispatch)ctx->dispatchCall[108])(
  522. *(GLdouble *)(inoutPtr + 0)
  523. );
  524. }
  525. void __gls_decode_bin_glIndexf(__GLScontext *ctx, GLubyte *inoutPtr) {
  526. typedef void (*__GLSdispatch)(GLfloat);
  527. ((__GLSdispatch)ctx->dispatchCall[110])(
  528. *(GLfloat *)(inoutPtr + 0)
  529. );
  530. }
  531. void __gls_decode_bin_glIndexi(__GLScontext *ctx, GLubyte *inoutPtr) {
  532. typedef void (*__GLSdispatch)(GLint);
  533. ((__GLSdispatch)ctx->dispatchCall[112])(
  534. *(GLint *)(inoutPtr + 0)
  535. );
  536. }
  537. void __gls_decode_bin_glIndexs(__GLScontext *ctx, GLubyte *inoutPtr) {
  538. typedef void (*__GLSdispatch)(GLshort);
  539. ((__GLSdispatch)ctx->dispatchCall[114])(
  540. *(GLshort *)(inoutPtr + 0)
  541. );
  542. }
  543. void __gls_decode_bin_glIndexub(__GLScontext *ctx, GLubyte *inoutPtr) {
  544. typedef void (*__GLSdispatch)(GLshort);
  545. ((__GLSdispatch)ctx->dispatchCall[379])(
  546. *(GLubyte *)(inoutPtr + 0)
  547. );
  548. }
  549. void __gls_decode_bin_glNormal3b(__GLScontext *ctx, GLubyte *inoutPtr) {
  550. typedef void (*__GLSdispatch)(GLbyte, GLbyte, GLbyte);
  551. ((__GLSdispatch)ctx->dispatchCall[116])(
  552. *(GLbyte *)(inoutPtr + 0),
  553. *(GLbyte *)(inoutPtr + 1),
  554. *(GLbyte *)(inoutPtr + 2)
  555. );
  556. }
  557. void __gls_decode_bin_glNormal3d(__GLScontext *ctx, GLubyte *inoutPtr) {
  558. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  559. ((__GLSdispatch)ctx->dispatchCall[118])(
  560. *(GLdouble *)(inoutPtr + 0),
  561. *(GLdouble *)(inoutPtr + 8),
  562. *(GLdouble *)(inoutPtr + 16)
  563. );
  564. }
  565. void __gls_decode_bin_glNormal3f(__GLScontext *ctx, GLubyte *inoutPtr) {
  566. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  567. ((__GLSdispatch)ctx->dispatchCall[120])(
  568. *(GLfloat *)(inoutPtr + 0),
  569. *(GLfloat *)(inoutPtr + 4),
  570. *(GLfloat *)(inoutPtr + 8)
  571. );
  572. }
  573. void __gls_decode_bin_glNormal3i(__GLScontext *ctx, GLubyte *inoutPtr) {
  574. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  575. ((__GLSdispatch)ctx->dispatchCall[122])(
  576. *(GLint *)(inoutPtr + 0),
  577. *(GLint *)(inoutPtr + 4),
  578. *(GLint *)(inoutPtr + 8)
  579. );
  580. }
  581. void __gls_decode_bin_glNormal3s(__GLScontext *ctx, GLubyte *inoutPtr) {
  582. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  583. ((__GLSdispatch)ctx->dispatchCall[124])(
  584. *(GLshort *)(inoutPtr + 0),
  585. *(GLshort *)(inoutPtr + 2),
  586. *(GLshort *)(inoutPtr + 4)
  587. );
  588. }
  589. void __gls_decode_bin_glRasterPos2d(__GLScontext *ctx, GLubyte *inoutPtr) {
  590. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  591. ((__GLSdispatch)ctx->dispatchCall[126])(
  592. *(GLdouble *)(inoutPtr + 0),
  593. *(GLdouble *)(inoutPtr + 8)
  594. );
  595. }
  596. void __gls_decode_bin_glRasterPos2f(__GLScontext *ctx, GLubyte *inoutPtr) {
  597. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  598. ((__GLSdispatch)ctx->dispatchCall[128])(
  599. *(GLfloat *)(inoutPtr + 0),
  600. *(GLfloat *)(inoutPtr + 4)
  601. );
  602. }
  603. void __gls_decode_bin_glRasterPos2i(__GLScontext *ctx, GLubyte *inoutPtr) {
  604. typedef void (*__GLSdispatch)(GLint, GLint);
  605. ((__GLSdispatch)ctx->dispatchCall[130])(
  606. *(GLint *)(inoutPtr + 0),
  607. *(GLint *)(inoutPtr + 4)
  608. );
  609. }
  610. void __gls_decode_bin_glRasterPos2s(__GLScontext *ctx, GLubyte *inoutPtr) {
  611. typedef void (*__GLSdispatch)(GLshort, GLshort);
  612. ((__GLSdispatch)ctx->dispatchCall[132])(
  613. *(GLshort *)(inoutPtr + 0),
  614. *(GLshort *)(inoutPtr + 2)
  615. );
  616. }
  617. void __gls_decode_bin_glRasterPos3d(__GLScontext *ctx, GLubyte *inoutPtr) {
  618. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  619. ((__GLSdispatch)ctx->dispatchCall[134])(
  620. *(GLdouble *)(inoutPtr + 0),
  621. *(GLdouble *)(inoutPtr + 8),
  622. *(GLdouble *)(inoutPtr + 16)
  623. );
  624. }
  625. void __gls_decode_bin_glRasterPos3f(__GLScontext *ctx, GLubyte *inoutPtr) {
  626. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  627. ((__GLSdispatch)ctx->dispatchCall[136])(
  628. *(GLfloat *)(inoutPtr + 0),
  629. *(GLfloat *)(inoutPtr + 4),
  630. *(GLfloat *)(inoutPtr + 8)
  631. );
  632. }
  633. void __gls_decode_bin_glRasterPos3i(__GLScontext *ctx, GLubyte *inoutPtr) {
  634. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  635. ((__GLSdispatch)ctx->dispatchCall[138])(
  636. *(GLint *)(inoutPtr + 0),
  637. *(GLint *)(inoutPtr + 4),
  638. *(GLint *)(inoutPtr + 8)
  639. );
  640. }
  641. void __gls_decode_bin_glRasterPos3s(__GLScontext *ctx, GLubyte *inoutPtr) {
  642. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  643. ((__GLSdispatch)ctx->dispatchCall[140])(
  644. *(GLshort *)(inoutPtr + 0),
  645. *(GLshort *)(inoutPtr + 2),
  646. *(GLshort *)(inoutPtr + 4)
  647. );
  648. }
  649. void __gls_decode_bin_glRasterPos4d(__GLScontext *ctx, GLubyte *inoutPtr) {
  650. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  651. ((__GLSdispatch)ctx->dispatchCall[142])(
  652. *(GLdouble *)(inoutPtr + 0),
  653. *(GLdouble *)(inoutPtr + 8),
  654. *(GLdouble *)(inoutPtr + 16),
  655. *(GLdouble *)(inoutPtr + 24)
  656. );
  657. }
  658. void __gls_decode_bin_glRasterPos4f(__GLScontext *ctx, GLubyte *inoutPtr) {
  659. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  660. ((__GLSdispatch)ctx->dispatchCall[144])(
  661. *(GLfloat *)(inoutPtr + 0),
  662. *(GLfloat *)(inoutPtr + 4),
  663. *(GLfloat *)(inoutPtr + 8),
  664. *(GLfloat *)(inoutPtr + 12)
  665. );
  666. }
  667. void __gls_decode_bin_glRasterPos4i(__GLScontext *ctx, GLubyte *inoutPtr) {
  668. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  669. ((__GLSdispatch)ctx->dispatchCall[146])(
  670. *(GLint *)(inoutPtr + 0),
  671. *(GLint *)(inoutPtr + 4),
  672. *(GLint *)(inoutPtr + 8),
  673. *(GLint *)(inoutPtr + 12)
  674. );
  675. }
  676. void __gls_decode_bin_glRasterPos4s(__GLScontext *ctx, GLubyte *inoutPtr) {
  677. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  678. ((__GLSdispatch)ctx->dispatchCall[148])(
  679. *(GLshort *)(inoutPtr + 0),
  680. *(GLshort *)(inoutPtr + 2),
  681. *(GLshort *)(inoutPtr + 4),
  682. *(GLshort *)(inoutPtr + 6)
  683. );
  684. }
  685. void __gls_decode_bin_glRectd(__GLScontext *ctx, GLubyte *inoutPtr) {
  686. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  687. ((__GLSdispatch)ctx->dispatchCall[150])(
  688. *(GLdouble *)(inoutPtr + 0),
  689. *(GLdouble *)(inoutPtr + 8),
  690. *(GLdouble *)(inoutPtr + 16),
  691. *(GLdouble *)(inoutPtr + 24)
  692. );
  693. }
  694. void __gls_decode_bin_glRectdv(__GLScontext *ctx, GLubyte *inoutPtr) {
  695. typedef void (*__GLSdispatch)(const GLdouble *, const GLdouble *);
  696. ((__GLSdispatch)ctx->dispatchCall[151])(
  697. (GLdouble *)(inoutPtr + 0),
  698. (GLdouble *)(inoutPtr + 16)
  699. );
  700. }
  701. void __gls_decode_bin_glRectf(__GLScontext *ctx, GLubyte *inoutPtr) {
  702. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  703. ((__GLSdispatch)ctx->dispatchCall[152])(
  704. *(GLfloat *)(inoutPtr + 0),
  705. *(GLfloat *)(inoutPtr + 4),
  706. *(GLfloat *)(inoutPtr + 8),
  707. *(GLfloat *)(inoutPtr + 12)
  708. );
  709. }
  710. void __gls_decode_bin_glRectfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  711. typedef void (*__GLSdispatch)(const GLfloat *, const GLfloat *);
  712. ((__GLSdispatch)ctx->dispatchCall[153])(
  713. (GLfloat *)(inoutPtr + 0),
  714. (GLfloat *)(inoutPtr + 8)
  715. );
  716. }
  717. void __gls_decode_bin_glRecti(__GLScontext *ctx, GLubyte *inoutPtr) {
  718. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  719. ((__GLSdispatch)ctx->dispatchCall[154])(
  720. *(GLint *)(inoutPtr + 0),
  721. *(GLint *)(inoutPtr + 4),
  722. *(GLint *)(inoutPtr + 8),
  723. *(GLint *)(inoutPtr + 12)
  724. );
  725. }
  726. void __gls_decode_bin_glRectiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  727. typedef void (*__GLSdispatch)(const GLint *, const GLint *);
  728. ((__GLSdispatch)ctx->dispatchCall[155])(
  729. (GLint *)(inoutPtr + 0),
  730. (GLint *)(inoutPtr + 8)
  731. );
  732. }
  733. void __gls_decode_bin_glRects(__GLScontext *ctx, GLubyte *inoutPtr) {
  734. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  735. ((__GLSdispatch)ctx->dispatchCall[156])(
  736. *(GLshort *)(inoutPtr + 0),
  737. *(GLshort *)(inoutPtr + 2),
  738. *(GLshort *)(inoutPtr + 4),
  739. *(GLshort *)(inoutPtr + 6)
  740. );
  741. }
  742. void __gls_decode_bin_glRectsv(__GLScontext *ctx, GLubyte *inoutPtr) {
  743. typedef void (*__GLSdispatch)(const GLshort *, const GLshort *);
  744. ((__GLSdispatch)ctx->dispatchCall[157])(
  745. (GLshort *)(inoutPtr + 0),
  746. (GLshort *)(inoutPtr + 4)
  747. );
  748. }
  749. void __gls_decode_bin_glTexCoord1d(__GLScontext *ctx, GLubyte *inoutPtr) {
  750. typedef void (*__GLSdispatch)(GLdouble);
  751. ((__GLSdispatch)ctx->dispatchCall[158])(
  752. *(GLdouble *)(inoutPtr + 0)
  753. );
  754. }
  755. void __gls_decode_bin_glTexCoord1f(__GLScontext *ctx, GLubyte *inoutPtr) {
  756. typedef void (*__GLSdispatch)(GLfloat);
  757. ((__GLSdispatch)ctx->dispatchCall[160])(
  758. *(GLfloat *)(inoutPtr + 0)
  759. );
  760. }
  761. void __gls_decode_bin_glTexCoord1i(__GLScontext *ctx, GLubyte *inoutPtr) {
  762. typedef void (*__GLSdispatch)(GLint);
  763. ((__GLSdispatch)ctx->dispatchCall[162])(
  764. *(GLint *)(inoutPtr + 0)
  765. );
  766. }
  767. void __gls_decode_bin_glTexCoord1s(__GLScontext *ctx, GLubyte *inoutPtr) {
  768. typedef void (*__GLSdispatch)(GLshort);
  769. ((__GLSdispatch)ctx->dispatchCall[164])(
  770. *(GLshort *)(inoutPtr + 0)
  771. );
  772. }
  773. void __gls_decode_bin_glTexCoord2d(__GLScontext *ctx, GLubyte *inoutPtr) {
  774. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  775. ((__GLSdispatch)ctx->dispatchCall[166])(
  776. *(GLdouble *)(inoutPtr + 0),
  777. *(GLdouble *)(inoutPtr + 8)
  778. );
  779. }
  780. void __gls_decode_bin_glTexCoord2f(__GLScontext *ctx, GLubyte *inoutPtr) {
  781. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  782. ((__GLSdispatch)ctx->dispatchCall[168])(
  783. *(GLfloat *)(inoutPtr + 0),
  784. *(GLfloat *)(inoutPtr + 4)
  785. );
  786. }
  787. void __gls_decode_bin_glTexCoord2i(__GLScontext *ctx, GLubyte *inoutPtr) {
  788. typedef void (*__GLSdispatch)(GLint, GLint);
  789. ((__GLSdispatch)ctx->dispatchCall[170])(
  790. *(GLint *)(inoutPtr + 0),
  791. *(GLint *)(inoutPtr + 4)
  792. );
  793. }
  794. void __gls_decode_bin_glTexCoord2s(__GLScontext *ctx, GLubyte *inoutPtr) {
  795. typedef void (*__GLSdispatch)(GLshort, GLshort);
  796. ((__GLSdispatch)ctx->dispatchCall[172])(
  797. *(GLshort *)(inoutPtr + 0),
  798. *(GLshort *)(inoutPtr + 2)
  799. );
  800. }
  801. void __gls_decode_bin_glTexCoord3d(__GLScontext *ctx, GLubyte *inoutPtr) {
  802. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  803. ((__GLSdispatch)ctx->dispatchCall[174])(
  804. *(GLdouble *)(inoutPtr + 0),
  805. *(GLdouble *)(inoutPtr + 8),
  806. *(GLdouble *)(inoutPtr + 16)
  807. );
  808. }
  809. void __gls_decode_bin_glTexCoord3f(__GLScontext *ctx, GLubyte *inoutPtr) {
  810. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  811. ((__GLSdispatch)ctx->dispatchCall[176])(
  812. *(GLfloat *)(inoutPtr + 0),
  813. *(GLfloat *)(inoutPtr + 4),
  814. *(GLfloat *)(inoutPtr + 8)
  815. );
  816. }
  817. void __gls_decode_bin_glTexCoord3i(__GLScontext *ctx, GLubyte *inoutPtr) {
  818. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  819. ((__GLSdispatch)ctx->dispatchCall[178])(
  820. *(GLint *)(inoutPtr + 0),
  821. *(GLint *)(inoutPtr + 4),
  822. *(GLint *)(inoutPtr + 8)
  823. );
  824. }
  825. void __gls_decode_bin_glTexCoord3s(__GLScontext *ctx, GLubyte *inoutPtr) {
  826. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  827. ((__GLSdispatch)ctx->dispatchCall[180])(
  828. *(GLshort *)(inoutPtr + 0),
  829. *(GLshort *)(inoutPtr + 2),
  830. *(GLshort *)(inoutPtr + 4)
  831. );
  832. }
  833. void __gls_decode_bin_glTexCoord4d(__GLScontext *ctx, GLubyte *inoutPtr) {
  834. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  835. ((__GLSdispatch)ctx->dispatchCall[182])(
  836. *(GLdouble *)(inoutPtr + 0),
  837. *(GLdouble *)(inoutPtr + 8),
  838. *(GLdouble *)(inoutPtr + 16),
  839. *(GLdouble *)(inoutPtr + 24)
  840. );
  841. }
  842. void __gls_decode_bin_glTexCoord4f(__GLScontext *ctx, GLubyte *inoutPtr) {
  843. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  844. ((__GLSdispatch)ctx->dispatchCall[184])(
  845. *(GLfloat *)(inoutPtr + 0),
  846. *(GLfloat *)(inoutPtr + 4),
  847. *(GLfloat *)(inoutPtr + 8),
  848. *(GLfloat *)(inoutPtr + 12)
  849. );
  850. }
  851. void __gls_decode_bin_glTexCoord4i(__GLScontext *ctx, GLubyte *inoutPtr) {
  852. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  853. ((__GLSdispatch)ctx->dispatchCall[186])(
  854. *(GLint *)(inoutPtr + 0),
  855. *(GLint *)(inoutPtr + 4),
  856. *(GLint *)(inoutPtr + 8),
  857. *(GLint *)(inoutPtr + 12)
  858. );
  859. }
  860. void __gls_decode_bin_glTexCoord4s(__GLScontext *ctx, GLubyte *inoutPtr) {
  861. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  862. ((__GLSdispatch)ctx->dispatchCall[188])(
  863. *(GLshort *)(inoutPtr + 0),
  864. *(GLshort *)(inoutPtr + 2),
  865. *(GLshort *)(inoutPtr + 4),
  866. *(GLshort *)(inoutPtr + 6)
  867. );
  868. }
  869. void __gls_decode_bin_glVertex2d(__GLScontext *ctx, GLubyte *inoutPtr) {
  870. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  871. ((__GLSdispatch)ctx->dispatchCall[190])(
  872. *(GLdouble *)(inoutPtr + 0),
  873. *(GLdouble *)(inoutPtr + 8)
  874. );
  875. }
  876. void __gls_decode_bin_glVertex2f(__GLScontext *ctx, GLubyte *inoutPtr) {
  877. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  878. ((__GLSdispatch)ctx->dispatchCall[192])(
  879. *(GLfloat *)(inoutPtr + 0),
  880. *(GLfloat *)(inoutPtr + 4)
  881. );
  882. }
  883. void __gls_decode_bin_glVertex2i(__GLScontext *ctx, GLubyte *inoutPtr) {
  884. typedef void (*__GLSdispatch)(GLint, GLint);
  885. ((__GLSdispatch)ctx->dispatchCall[194])(
  886. *(GLint *)(inoutPtr + 0),
  887. *(GLint *)(inoutPtr + 4)
  888. );
  889. }
  890. void __gls_decode_bin_glVertex2s(__GLScontext *ctx, GLubyte *inoutPtr) {
  891. typedef void (*__GLSdispatch)(GLshort, GLshort);
  892. ((__GLSdispatch)ctx->dispatchCall[196])(
  893. *(GLshort *)(inoutPtr + 0),
  894. *(GLshort *)(inoutPtr + 2)
  895. );
  896. }
  897. void __gls_decode_bin_glVertex3d(__GLScontext *ctx, GLubyte *inoutPtr) {
  898. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  899. ((__GLSdispatch)ctx->dispatchCall[198])(
  900. *(GLdouble *)(inoutPtr + 0),
  901. *(GLdouble *)(inoutPtr + 8),
  902. *(GLdouble *)(inoutPtr + 16)
  903. );
  904. }
  905. void __gls_decode_bin_glVertex3f(__GLScontext *ctx, GLubyte *inoutPtr) {
  906. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  907. ((__GLSdispatch)ctx->dispatchCall[200])(
  908. *(GLfloat *)(inoutPtr + 0),
  909. *(GLfloat *)(inoutPtr + 4),
  910. *(GLfloat *)(inoutPtr + 8)
  911. );
  912. }
  913. void __gls_decode_bin_glVertex3i(__GLScontext *ctx, GLubyte *inoutPtr) {
  914. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  915. ((__GLSdispatch)ctx->dispatchCall[202])(
  916. *(GLint *)(inoutPtr + 0),
  917. *(GLint *)(inoutPtr + 4),
  918. *(GLint *)(inoutPtr + 8)
  919. );
  920. }
  921. void __gls_decode_bin_glVertex3s(__GLScontext *ctx, GLubyte *inoutPtr) {
  922. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  923. ((__GLSdispatch)ctx->dispatchCall[204])(
  924. *(GLshort *)(inoutPtr + 0),
  925. *(GLshort *)(inoutPtr + 2),
  926. *(GLshort *)(inoutPtr + 4)
  927. );
  928. }
  929. void __gls_decode_bin_glVertex4d(__GLScontext *ctx, GLubyte *inoutPtr) {
  930. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  931. ((__GLSdispatch)ctx->dispatchCall[206])(
  932. *(GLdouble *)(inoutPtr + 0),
  933. *(GLdouble *)(inoutPtr + 8),
  934. *(GLdouble *)(inoutPtr + 16),
  935. *(GLdouble *)(inoutPtr + 24)
  936. );
  937. }
  938. void __gls_decode_bin_glVertex4f(__GLScontext *ctx, GLubyte *inoutPtr) {
  939. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  940. ((__GLSdispatch)ctx->dispatchCall[208])(
  941. *(GLfloat *)(inoutPtr + 0),
  942. *(GLfloat *)(inoutPtr + 4),
  943. *(GLfloat *)(inoutPtr + 8),
  944. *(GLfloat *)(inoutPtr + 12)
  945. );
  946. }
  947. void __gls_decode_bin_glVertex4i(__GLScontext *ctx, GLubyte *inoutPtr) {
  948. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  949. ((__GLSdispatch)ctx->dispatchCall[210])(
  950. *(GLint *)(inoutPtr + 0),
  951. *(GLint *)(inoutPtr + 4),
  952. *(GLint *)(inoutPtr + 8),
  953. *(GLint *)(inoutPtr + 12)
  954. );
  955. }
  956. void __gls_decode_bin_glVertex4s(__GLScontext *ctx, GLubyte *inoutPtr) {
  957. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  958. ((__GLSdispatch)ctx->dispatchCall[212])(
  959. *(GLshort *)(inoutPtr + 0),
  960. *(GLshort *)(inoutPtr + 2),
  961. *(GLshort *)(inoutPtr + 4),
  962. *(GLshort *)(inoutPtr + 6)
  963. );
  964. }
  965. void __gls_decode_bin_glClipPlane(__GLScontext *ctx, GLubyte *inoutPtr) {
  966. typedef void (*__GLSdispatch)(GLenum, const GLdouble *);
  967. ((__GLSdispatch)ctx->dispatchCall[214])(
  968. *(GLenum *)(inoutPtr + 32),
  969. (GLdouble *)(inoutPtr + 0)
  970. );
  971. }
  972. void __gls_decode_bin_glColorMaterial(__GLScontext *ctx, GLubyte *inoutPtr) {
  973. typedef void (*__GLSdispatch)(GLenum, GLenum);
  974. ((__GLSdispatch)ctx->dispatchCall[215])(
  975. *(GLenum *)(inoutPtr + 0),
  976. *(GLenum *)(inoutPtr + 4)
  977. );
  978. }
  979. void __gls_decode_bin_glCullFace(__GLScontext *ctx, GLubyte *inoutPtr) {
  980. typedef void (*__GLSdispatch)(GLenum);
  981. ((__GLSdispatch)ctx->dispatchCall[216])(
  982. *(GLenum *)(inoutPtr + 0)
  983. );
  984. }
  985. void __gls_decode_bin_glFogf(__GLScontext *ctx, GLubyte *inoutPtr) {
  986. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  987. ((__GLSdispatch)ctx->dispatchCall[217])(
  988. *(GLenum *)(inoutPtr + 0),
  989. *(GLfloat *)(inoutPtr + 4)
  990. );
  991. }
  992. void __gls_decode_bin_glFogfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  993. typedef void (*__GLSdispatch)(GLenum, const GLfloat *);
  994. ((__GLSdispatch)ctx->dispatchCall[218])(
  995. *(GLenum *)(inoutPtr + 0),
  996. (GLfloat *)(inoutPtr + 4)
  997. );
  998. }
  999. void __gls_decode_bin_glFogi(__GLScontext *ctx, GLubyte *inoutPtr) {
  1000. typedef void (*__GLSdispatch)(GLenum, GLint);
  1001. ((__GLSdispatch)ctx->dispatchCall[219])(
  1002. *(GLenum *)(inoutPtr + 0),
  1003. *(GLint *)(inoutPtr + 4)
  1004. );
  1005. }
  1006. void __gls_decode_bin_glFogiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1007. typedef void (*__GLSdispatch)(GLenum, const GLint *);
  1008. ((__GLSdispatch)ctx->dispatchCall[220])(
  1009. *(GLenum *)(inoutPtr + 0),
  1010. (GLint *)(inoutPtr + 4)
  1011. );
  1012. }
  1013. void __gls_decode_bin_glFrontFace(__GLScontext *ctx, GLubyte *inoutPtr) {
  1014. typedef void (*__GLSdispatch)(GLenum);
  1015. ((__GLSdispatch)ctx->dispatchCall[221])(
  1016. *(GLenum *)(inoutPtr + 0)
  1017. );
  1018. }
  1019. void __gls_decode_bin_glHint(__GLScontext *ctx, GLubyte *inoutPtr) {
  1020. typedef void (*__GLSdispatch)(GLenum, GLenum);
  1021. ((__GLSdispatch)ctx->dispatchCall[222])(
  1022. *(GLenum *)(inoutPtr + 0),
  1023. *(GLenum *)(inoutPtr + 4)
  1024. );
  1025. }
  1026. void __gls_decode_bin_glLightf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1027. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  1028. ((__GLSdispatch)ctx->dispatchCall[223])(
  1029. *(GLenum *)(inoutPtr + 0),
  1030. *(GLenum *)(inoutPtr + 4),
  1031. *(GLfloat *)(inoutPtr + 8)
  1032. );
  1033. }
  1034. void __gls_decode_bin_glLightfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1035. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  1036. ((__GLSdispatch)ctx->dispatchCall[224])(
  1037. *(GLenum *)(inoutPtr + 4),
  1038. *(GLenum *)(inoutPtr + 0),
  1039. (GLfloat *)(inoutPtr + 8)
  1040. );
  1041. }
  1042. void __gls_decode_bin_glLighti(__GLScontext *ctx, GLubyte *inoutPtr) {
  1043. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  1044. ((__GLSdispatch)ctx->dispatchCall[225])(
  1045. *(GLenum *)(inoutPtr + 0),
  1046. *(GLenum *)(inoutPtr + 4),
  1047. *(GLint *)(inoutPtr + 8)
  1048. );
  1049. }
  1050. void __gls_decode_bin_glLightiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1051. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  1052. ((__GLSdispatch)ctx->dispatchCall[226])(
  1053. *(GLenum *)(inoutPtr + 4),
  1054. *(GLenum *)(inoutPtr + 0),
  1055. (GLint *)(inoutPtr + 8)
  1056. );
  1057. }
  1058. void __gls_decode_bin_glLightModelf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1059. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  1060. ((__GLSdispatch)ctx->dispatchCall[227])(
  1061. *(GLenum *)(inoutPtr + 0),
  1062. *(GLfloat *)(inoutPtr + 4)
  1063. );
  1064. }
  1065. void __gls_decode_bin_glLightModelfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1066. typedef void (*__GLSdispatch)(GLenum, const GLfloat *);
  1067. ((__GLSdispatch)ctx->dispatchCall[228])(
  1068. *(GLenum *)(inoutPtr + 0),
  1069. (GLfloat *)(inoutPtr + 4)
  1070. );
  1071. }
  1072. void __gls_decode_bin_glLightModeli(__GLScontext *ctx, GLubyte *inoutPtr) {
  1073. typedef void (*__GLSdispatch)(GLenum, GLint);
  1074. ((__GLSdispatch)ctx->dispatchCall[229])(
  1075. *(GLenum *)(inoutPtr + 0),
  1076. *(GLint *)(inoutPtr + 4)
  1077. );
  1078. }
  1079. void __gls_decode_bin_glLightModeliv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1080. typedef void (*__GLSdispatch)(GLenum, const GLint *);
  1081. ((__GLSdispatch)ctx->dispatchCall[230])(
  1082. *(GLenum *)(inoutPtr + 0),
  1083. (GLint *)(inoutPtr + 4)
  1084. );
  1085. }
  1086. void __gls_decode_bin_glLineStipple(__GLScontext *ctx, GLubyte *inoutPtr) {
  1087. typedef void (*__GLSdispatch)(GLint, GLushort);
  1088. ((__GLSdispatch)ctx->dispatchCall[231])(
  1089. *(GLint *)(inoutPtr + 0),
  1090. *(GLushort *)(inoutPtr + 4)
  1091. );
  1092. }
  1093. void __gls_decode_bin_glLineWidth(__GLScontext *ctx, GLubyte *inoutPtr) {
  1094. typedef void (*__GLSdispatch)(GLfloat);
  1095. ((__GLSdispatch)ctx->dispatchCall[232])(
  1096. *(GLfloat *)(inoutPtr + 0)
  1097. );
  1098. }
  1099. void __gls_decode_bin_glMaterialf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1100. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  1101. ((__GLSdispatch)ctx->dispatchCall[233])(
  1102. *(GLenum *)(inoutPtr + 0),
  1103. *(GLenum *)(inoutPtr + 4),
  1104. *(GLfloat *)(inoutPtr + 8)
  1105. );
  1106. }
  1107. void __gls_decode_bin_glMaterialfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1108. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  1109. ((__GLSdispatch)ctx->dispatchCall[234])(
  1110. *(GLenum *)(inoutPtr + 4),
  1111. *(GLenum *)(inoutPtr + 0),
  1112. (GLfloat *)(inoutPtr + 8)
  1113. );
  1114. }
  1115. void __gls_decode_bin_glMateriali(__GLScontext *ctx, GLubyte *inoutPtr) {
  1116. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  1117. ((__GLSdispatch)ctx->dispatchCall[235])(
  1118. *(GLenum *)(inoutPtr + 0),
  1119. *(GLenum *)(inoutPtr + 4),
  1120. *(GLint *)(inoutPtr + 8)
  1121. );
  1122. }
  1123. void __gls_decode_bin_glMaterialiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1124. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  1125. ((__GLSdispatch)ctx->dispatchCall[236])(
  1126. *(GLenum *)(inoutPtr + 4),
  1127. *(GLenum *)(inoutPtr + 0),
  1128. (GLint *)(inoutPtr + 8)
  1129. );
  1130. }
  1131. void __gls_decode_bin_glPointSize(__GLScontext *ctx, GLubyte *inoutPtr) {
  1132. typedef void (*__GLSdispatch)(GLfloat);
  1133. ((__GLSdispatch)ctx->dispatchCall[237])(
  1134. *(GLfloat *)(inoutPtr + 0)
  1135. );
  1136. }
  1137. void __gls_decode_bin_glPolygonMode(__GLScontext *ctx, GLubyte *inoutPtr) {
  1138. typedef void (*__GLSdispatch)(GLenum, GLenum);
  1139. ((__GLSdispatch)ctx->dispatchCall[238])(
  1140. *(GLenum *)(inoutPtr + 0),
  1141. *(GLenum *)(inoutPtr + 4)
  1142. );
  1143. }
  1144. void __gls_decode_bin_glPolygonStipple(__GLScontext *ctx, GLubyte *inoutPtr) {
  1145. typedef void (*__GLSdispatch)(const GLubyte *);
  1146. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  1147. ((__GLSdispatch)ctx->dispatchCall[239])(
  1148. (GLubyte *)(inoutPtr + 4)
  1149. );
  1150. }
  1151. void __gls_decode_bin_glScissor(__GLScontext *ctx, GLubyte *inoutPtr) {
  1152. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei);
  1153. ((__GLSdispatch)ctx->dispatchCall[240])(
  1154. *(GLint *)(inoutPtr + 0),
  1155. *(GLint *)(inoutPtr + 4),
  1156. *(GLsizei *)(inoutPtr + 8),
  1157. *(GLsizei *)(inoutPtr + 12)
  1158. );
  1159. }
  1160. void __gls_decode_bin_glShadeModel(__GLScontext *ctx, GLubyte *inoutPtr) {
  1161. typedef void (*__GLSdispatch)(GLenum);
  1162. ((__GLSdispatch)ctx->dispatchCall[241])(
  1163. *(GLenum *)(inoutPtr + 0)
  1164. );
  1165. }
  1166. void __gls_decode_bin_glTexParameterf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1167. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  1168. ((__GLSdispatch)ctx->dispatchCall[242])(
  1169. *(GLenum *)(inoutPtr + 0),
  1170. *(GLenum *)(inoutPtr + 4),
  1171. *(GLfloat *)(inoutPtr + 8)
  1172. );
  1173. }
  1174. void __gls_decode_bin_glTexParameterfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1175. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  1176. ((__GLSdispatch)ctx->dispatchCall[243])(
  1177. *(GLenum *)(inoutPtr + 4),
  1178. *(GLenum *)(inoutPtr + 0),
  1179. (GLfloat *)(inoutPtr + 8)
  1180. );
  1181. }
  1182. void __gls_decode_bin_glTexParameteri(__GLScontext *ctx, GLubyte *inoutPtr) {
  1183. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  1184. ((__GLSdispatch)ctx->dispatchCall[244])(
  1185. *(GLenum *)(inoutPtr + 0),
  1186. *(GLenum *)(inoutPtr + 4),
  1187. *(GLint *)(inoutPtr + 8)
  1188. );
  1189. }
  1190. void __gls_decode_bin_glTexParameteriv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1191. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  1192. ((__GLSdispatch)ctx->dispatchCall[245])(
  1193. *(GLenum *)(inoutPtr + 4),
  1194. *(GLenum *)(inoutPtr + 0),
  1195. (GLint *)(inoutPtr + 8)
  1196. );
  1197. }
  1198. void __gls_decode_bin_glTexImage1D(__GLScontext *ctx, GLubyte *inoutPtr) {
  1199. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  1200. GLbitfield imageFlags;
  1201. imageFlags = *(GLint *)(inoutPtr + 0);
  1202. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  1203. ((__GLSdispatch)ctx->dispatchCall[246])(
  1204. *(GLenum *)(inoutPtr + 16),
  1205. *(GLint *)(inoutPtr + 20),
  1206. *(GLint *)(inoutPtr + 24),
  1207. *(GLsizei *)(inoutPtr + 4),
  1208. *(GLint *)(inoutPtr + 28),
  1209. *(GLenum *)(inoutPtr + 8),
  1210. *(GLenum *)(inoutPtr + 12),
  1211. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : (GLvoid *)(inoutPtr + 32)
  1212. );
  1213. }
  1214. void __gls_decode_bin_glTexImage2D(__GLScontext *ctx, GLubyte *inoutPtr) {
  1215. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  1216. GLbitfield imageFlags;
  1217. imageFlags = *(GLint *)(inoutPtr + 0);
  1218. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  1219. ((__GLSdispatch)ctx->dispatchCall[247])(
  1220. *(GLenum *)(inoutPtr + 20),
  1221. *(GLint *)(inoutPtr + 24),
  1222. *(GLint *)(inoutPtr + 28),
  1223. *(GLsizei *)(inoutPtr + 4),
  1224. *(GLsizei *)(inoutPtr + 8),
  1225. *(GLint *)(inoutPtr + 32),
  1226. *(GLenum *)(inoutPtr + 12),
  1227. *(GLenum *)(inoutPtr + 16),
  1228. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : (GLvoid *)(inoutPtr + 36)
  1229. );
  1230. }
  1231. void __gls_decode_bin_glTexEnvf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1232. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  1233. ((__GLSdispatch)ctx->dispatchCall[248])(
  1234. *(GLenum *)(inoutPtr + 0),
  1235. *(GLenum *)(inoutPtr + 4),
  1236. *(GLfloat *)(inoutPtr + 8)
  1237. );
  1238. }
  1239. void __gls_decode_bin_glTexEnvfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1240. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  1241. ((__GLSdispatch)ctx->dispatchCall[249])(
  1242. *(GLenum *)(inoutPtr + 4),
  1243. *(GLenum *)(inoutPtr + 0),
  1244. (GLfloat *)(inoutPtr + 8)
  1245. );
  1246. }
  1247. void __gls_decode_bin_glTexEnvi(__GLScontext *ctx, GLubyte *inoutPtr) {
  1248. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  1249. ((__GLSdispatch)ctx->dispatchCall[250])(
  1250. *(GLenum *)(inoutPtr + 0),
  1251. *(GLenum *)(inoutPtr + 4),
  1252. *(GLint *)(inoutPtr + 8)
  1253. );
  1254. }
  1255. void __gls_decode_bin_glTexEnviv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1256. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  1257. ((__GLSdispatch)ctx->dispatchCall[251])(
  1258. *(GLenum *)(inoutPtr + 4),
  1259. *(GLenum *)(inoutPtr + 0),
  1260. (GLint *)(inoutPtr + 8)
  1261. );
  1262. }
  1263. void __gls_decode_bin_glTexGend(__GLScontext *ctx, GLubyte *inoutPtr) {
  1264. typedef void (*__GLSdispatch)(GLenum, GLenum, GLdouble);
  1265. ((__GLSdispatch)ctx->dispatchCall[252])(
  1266. *(GLenum *)(inoutPtr + 8),
  1267. *(GLenum *)(inoutPtr + 12),
  1268. *(GLdouble *)(inoutPtr + 0)
  1269. );
  1270. }
  1271. void __gls_decode_bin_glTexGendv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1272. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLdouble *);
  1273. GLenum pname;
  1274. GLint params_count;
  1275. pname = *(GLenum *)(inoutPtr + 0);
  1276. params_count = __gls_glTexGendv_params_size(pname);
  1277. ((__GLSdispatch)ctx->dispatchCall[253])(
  1278. *(GLenum *)(inoutPtr + 4 + 8 * params_count),
  1279. *(GLenum *)(inoutPtr + 0),
  1280. (GLdouble *)(inoutPtr + 4)
  1281. );
  1282. }
  1283. void __gls_decode_bin_glTexGenf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1284. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  1285. ((__GLSdispatch)ctx->dispatchCall[254])(
  1286. *(GLenum *)(inoutPtr + 0),
  1287. *(GLenum *)(inoutPtr + 4),
  1288. *(GLfloat *)(inoutPtr + 8)
  1289. );
  1290. }
  1291. void __gls_decode_bin_glTexGenfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1292. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  1293. ((__GLSdispatch)ctx->dispatchCall[255])(
  1294. *(GLenum *)(inoutPtr + 4),
  1295. *(GLenum *)(inoutPtr + 0),
  1296. (GLfloat *)(inoutPtr + 8)
  1297. );
  1298. }
  1299. void __gls_decode_bin_glTexGeni(__GLScontext *ctx, GLubyte *inoutPtr) {
  1300. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  1301. ((__GLSdispatch)ctx->dispatchCall[256])(
  1302. *(GLenum *)(inoutPtr + 0),
  1303. *(GLenum *)(inoutPtr + 4),
  1304. *(GLint *)(inoutPtr + 8)
  1305. );
  1306. }
  1307. void __gls_decode_bin_glTexGeniv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1308. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  1309. ((__GLSdispatch)ctx->dispatchCall[257])(
  1310. *(GLenum *)(inoutPtr + 4),
  1311. *(GLenum *)(inoutPtr + 0),
  1312. (GLint *)(inoutPtr + 8)
  1313. );
  1314. }
  1315. void __gls_decode_bin_glFeedbackBuffer(__GLScontext *ctx, GLubyte *inoutPtr) {
  1316. typedef void (*__GLSdispatch)(GLsizei, GLenum, GLfloat *);
  1317. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1318. GLsizei size;
  1319. GLfloat *buffer = GLS_NONE;
  1320. size = *(GLsizei *)(inoutPtr + 0);
  1321. buffer = (GLfloat *)__glsContext_allocFeedbackBuf(ctx, 4 * __GLS_MAX(size, 0));
  1322. if (!buffer) {
  1323. __GLS_CALL_ERROR(ctx, 258, GLS_OUT_OF_MEMORY);
  1324. goto end;
  1325. }
  1326. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1327. ctx->outArgs.count = 1;
  1328. ((__GLSdispatch)ctx->dispatchCall[258])(
  1329. *(GLsizei *)(inoutPtr + 0),
  1330. *(GLenum *)(inoutPtr + 12),
  1331. (GLfloat *)buffer
  1332. );
  1333. end:
  1334. ctx->outArgs = __outArgsSave;
  1335. }
  1336. void __gls_decode_bin_glSelectBuffer(__GLScontext *ctx, GLubyte *inoutPtr) {
  1337. typedef void (*__GLSdispatch)(GLsizei, GLuint *);
  1338. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1339. GLsizei size;
  1340. GLuint *buffer = GLS_NONE;
  1341. size = *(GLsizei *)(inoutPtr + 0);
  1342. buffer = (GLuint *)__glsContext_allocSelectBuf(ctx, 4 * __GLS_MAX(size, 0));
  1343. if (!buffer) {
  1344. __GLS_CALL_ERROR(ctx, 259, GLS_OUT_OF_MEMORY);
  1345. goto end;
  1346. }
  1347. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1348. ctx->outArgs.count = 1;
  1349. ((__GLSdispatch)ctx->dispatchCall[259])(
  1350. *(GLsizei *)(inoutPtr + 0),
  1351. (GLuint *)buffer
  1352. );
  1353. end:
  1354. ctx->outArgs = __outArgsSave;
  1355. }
  1356. void __gls_decode_bin_glRenderMode(__GLScontext *ctx, GLubyte *inoutPtr) {
  1357. typedef void (*__GLSdispatch)(GLenum);
  1358. ((__GLSdispatch)ctx->dispatchCall[260])(
  1359. *(GLenum *)(inoutPtr + 0)
  1360. );
  1361. }
  1362. void __gls_decode_bin_glLoadName(__GLScontext *ctx, GLubyte *inoutPtr) {
  1363. typedef void (*__GLSdispatch)(GLuint);
  1364. ((__GLSdispatch)ctx->dispatchCall[262])(
  1365. *(GLuint *)(inoutPtr + 0)
  1366. );
  1367. }
  1368. void __gls_decode_bin_glPassThrough(__GLScontext *ctx, GLubyte *inoutPtr) {
  1369. typedef void (*__GLSdispatch)(GLfloat);
  1370. ((__GLSdispatch)ctx->dispatchCall[263])(
  1371. *(GLfloat *)(inoutPtr + 0)
  1372. );
  1373. }
  1374. void __gls_decode_bin_glPushName(__GLScontext *ctx, GLubyte *inoutPtr) {
  1375. typedef void (*__GLSdispatch)(GLuint);
  1376. ((__GLSdispatch)ctx->dispatchCall[265])(
  1377. *(GLuint *)(inoutPtr + 0)
  1378. );
  1379. }
  1380. void __gls_decode_bin_glDrawBuffer(__GLScontext *ctx, GLubyte *inoutPtr) {
  1381. typedef void (*__GLSdispatch)(GLenum);
  1382. ((__GLSdispatch)ctx->dispatchCall[266])(
  1383. *(GLenum *)(inoutPtr + 0)
  1384. );
  1385. }
  1386. void __gls_decode_bin_glClear(__GLScontext *ctx, GLubyte *inoutPtr) {
  1387. typedef void (*__GLSdispatch)(GLbitfield);
  1388. ((__GLSdispatch)ctx->dispatchCall[267])(
  1389. *(GLbitfield *)(inoutPtr + 0)
  1390. );
  1391. }
  1392. void __gls_decode_bin_glClearAccum(__GLScontext *ctx, GLubyte *inoutPtr) {
  1393. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  1394. ((__GLSdispatch)ctx->dispatchCall[268])(
  1395. *(GLfloat *)(inoutPtr + 0),
  1396. *(GLfloat *)(inoutPtr + 4),
  1397. *(GLfloat *)(inoutPtr + 8),
  1398. *(GLfloat *)(inoutPtr + 12)
  1399. );
  1400. }
  1401. void __gls_decode_bin_glClearIndex(__GLScontext *ctx, GLubyte *inoutPtr) {
  1402. typedef void (*__GLSdispatch)(GLfloat);
  1403. ((__GLSdispatch)ctx->dispatchCall[269])(
  1404. *(GLfloat *)(inoutPtr + 0)
  1405. );
  1406. }
  1407. void __gls_decode_bin_glClearColor(__GLScontext *ctx, GLubyte *inoutPtr) {
  1408. typedef void (*__GLSdispatch)(GLclampf, GLclampf, GLclampf, GLclampf);
  1409. ((__GLSdispatch)ctx->dispatchCall[270])(
  1410. *(GLclampf *)(inoutPtr + 0),
  1411. *(GLclampf *)(inoutPtr + 4),
  1412. *(GLclampf *)(inoutPtr + 8),
  1413. *(GLclampf *)(inoutPtr + 12)
  1414. );
  1415. }
  1416. void __gls_decode_bin_glClearStencil(__GLScontext *ctx, GLubyte *inoutPtr) {
  1417. typedef void (*__GLSdispatch)(GLint);
  1418. ((__GLSdispatch)ctx->dispatchCall[271])(
  1419. *(GLint *)(inoutPtr + 0)
  1420. );
  1421. }
  1422. void __gls_decode_bin_glClearDepth(__GLScontext *ctx, GLubyte *inoutPtr) {
  1423. typedef void (*__GLSdispatch)(GLclampd);
  1424. ((__GLSdispatch)ctx->dispatchCall[272])(
  1425. *(GLclampd *)(inoutPtr + 0)
  1426. );
  1427. }
  1428. void __gls_decode_bin_glStencilMask(__GLScontext *ctx, GLubyte *inoutPtr) {
  1429. typedef void (*__GLSdispatch)(GLuint);
  1430. ((__GLSdispatch)ctx->dispatchCall[273])(
  1431. *(GLuint *)(inoutPtr + 0)
  1432. );
  1433. }
  1434. void __gls_decode_bin_glColorMask(__GLScontext *ctx, GLubyte *inoutPtr) {
  1435. typedef void (*__GLSdispatch)(GLboolean, GLboolean, GLboolean, GLboolean);
  1436. ((__GLSdispatch)ctx->dispatchCall[274])(
  1437. *(GLboolean *)(inoutPtr + 0),
  1438. *(GLboolean *)(inoutPtr + 1),
  1439. *(GLboolean *)(inoutPtr + 2),
  1440. *(GLboolean *)(inoutPtr + 3)
  1441. );
  1442. }
  1443. void __gls_decode_bin_glDepthMask(__GLScontext *ctx, GLubyte *inoutPtr) {
  1444. typedef void (*__GLSdispatch)(GLboolean);
  1445. ((__GLSdispatch)ctx->dispatchCall[275])(
  1446. *(GLboolean *)(inoutPtr + 0)
  1447. );
  1448. }
  1449. void __gls_decode_bin_glIndexMask(__GLScontext *ctx, GLubyte *inoutPtr) {
  1450. typedef void (*__GLSdispatch)(GLuint);
  1451. ((__GLSdispatch)ctx->dispatchCall[276])(
  1452. *(GLuint *)(inoutPtr + 0)
  1453. );
  1454. }
  1455. void __gls_decode_bin_glAccum(__GLScontext *ctx, GLubyte *inoutPtr) {
  1456. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  1457. ((__GLSdispatch)ctx->dispatchCall[277])(
  1458. *(GLenum *)(inoutPtr + 0),
  1459. *(GLfloat *)(inoutPtr + 4)
  1460. );
  1461. }
  1462. void __gls_decode_bin_glDisable(__GLScontext *ctx, GLubyte *inoutPtr) {
  1463. typedef void (*__GLSdispatch)(GLenum);
  1464. ((__GLSdispatch)ctx->dispatchCall[278])(
  1465. *(GLenum *)(inoutPtr + 0)
  1466. );
  1467. }
  1468. void __gls_decode_bin_glEnable(__GLScontext *ctx, GLubyte *inoutPtr) {
  1469. typedef void (*__GLSdispatch)(GLenum);
  1470. ((__GLSdispatch)ctx->dispatchCall[279])(
  1471. *(GLenum *)(inoutPtr + 0)
  1472. );
  1473. }
  1474. void __gls_decode_bin_glPushAttrib(__GLScontext *ctx, GLubyte *inoutPtr) {
  1475. typedef void (*__GLSdispatch)(GLbitfield);
  1476. ((__GLSdispatch)ctx->dispatchCall[283])(
  1477. *(GLbitfield *)(inoutPtr + 0)
  1478. );
  1479. }
  1480. void __gls_decode_bin_glMap1d(__GLScontext *ctx, GLubyte *inoutPtr) {
  1481. typedef void (*__GLSdispatch)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
  1482. ((__GLSdispatch)ctx->dispatchCall[284])(
  1483. *(GLenum *)(inoutPtr + 0),
  1484. *(GLdouble *)(inoutPtr + 12),
  1485. *(GLdouble *)(inoutPtr + 20),
  1486. *(GLint *)(inoutPtr + 4),
  1487. *(GLint *)(inoutPtr + 8),
  1488. (GLdouble *)(inoutPtr + 28)
  1489. );
  1490. }
  1491. void __gls_decode_bin_glMap1f(__GLScontext *ctx, GLubyte *inoutPtr) {
  1492. typedef void (*__GLSdispatch)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
  1493. ((__GLSdispatch)ctx->dispatchCall[285])(
  1494. *(GLenum *)(inoutPtr + 0),
  1495. *(GLfloat *)(inoutPtr + 12),
  1496. *(GLfloat *)(inoutPtr + 16),
  1497. *(GLint *)(inoutPtr + 4),
  1498. *(GLint *)(inoutPtr + 8),
  1499. (GLfloat *)(inoutPtr + 20)
  1500. );
  1501. }
  1502. void __gls_decode_bin_glMap2d(__GLScontext *ctx, GLubyte *inoutPtr) {
  1503. typedef void (*__GLSdispatch)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
  1504. ((__GLSdispatch)ctx->dispatchCall[286])(
  1505. *(GLenum *)(inoutPtr + 0),
  1506. *(GLdouble *)(inoutPtr + 20),
  1507. *(GLdouble *)(inoutPtr + 28),
  1508. *(GLint *)(inoutPtr + 4),
  1509. *(GLint *)(inoutPtr + 8),
  1510. *(GLdouble *)(inoutPtr + 36),
  1511. *(GLdouble *)(inoutPtr + 44),
  1512. *(GLint *)(inoutPtr + 12),
  1513. *(GLint *)(inoutPtr + 16),
  1514. (GLdouble *)(inoutPtr + 52)
  1515. );
  1516. }
  1517. void __gls_decode_bin_glMap2f(__GLScontext *ctx, GLubyte *inoutPtr) {
  1518. typedef void (*__GLSdispatch)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
  1519. ((__GLSdispatch)ctx->dispatchCall[287])(
  1520. *(GLenum *)(inoutPtr + 0),
  1521. *(GLfloat *)(inoutPtr + 20),
  1522. *(GLfloat *)(inoutPtr + 24),
  1523. *(GLint *)(inoutPtr + 4),
  1524. *(GLint *)(inoutPtr + 8),
  1525. *(GLfloat *)(inoutPtr + 28),
  1526. *(GLfloat *)(inoutPtr + 32),
  1527. *(GLint *)(inoutPtr + 12),
  1528. *(GLint *)(inoutPtr + 16),
  1529. (GLfloat *)(inoutPtr + 36)
  1530. );
  1531. }
  1532. void __gls_decode_bin_glMapGrid1d(__GLScontext *ctx, GLubyte *inoutPtr) {
  1533. typedef void (*__GLSdispatch)(GLint, GLdouble, GLdouble);
  1534. ((__GLSdispatch)ctx->dispatchCall[288])(
  1535. *(GLint *)(inoutPtr + 16),
  1536. *(GLdouble *)(inoutPtr + 0),
  1537. *(GLdouble *)(inoutPtr + 8)
  1538. );
  1539. }
  1540. void __gls_decode_bin_glMapGrid1f(__GLScontext *ctx, GLubyte *inoutPtr) {
  1541. typedef void (*__GLSdispatch)(GLint, GLfloat, GLfloat);
  1542. ((__GLSdispatch)ctx->dispatchCall[289])(
  1543. *(GLint *)(inoutPtr + 0),
  1544. *(GLfloat *)(inoutPtr + 4),
  1545. *(GLfloat *)(inoutPtr + 8)
  1546. );
  1547. }
  1548. void __gls_decode_bin_glMapGrid2d(__GLScontext *ctx, GLubyte *inoutPtr) {
  1549. typedef void (*__GLSdispatch)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble);
  1550. ((__GLSdispatch)ctx->dispatchCall[290])(
  1551. *(GLint *)(inoutPtr + 32),
  1552. *(GLdouble *)(inoutPtr + 0),
  1553. *(GLdouble *)(inoutPtr + 8),
  1554. *(GLint *)(inoutPtr + 36),
  1555. *(GLdouble *)(inoutPtr + 16),
  1556. *(GLdouble *)(inoutPtr + 24)
  1557. );
  1558. }
  1559. void __gls_decode_bin_glMapGrid2f(__GLScontext *ctx, GLubyte *inoutPtr) {
  1560. typedef void (*__GLSdispatch)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat);
  1561. ((__GLSdispatch)ctx->dispatchCall[291])(
  1562. *(GLint *)(inoutPtr + 0),
  1563. *(GLfloat *)(inoutPtr + 4),
  1564. *(GLfloat *)(inoutPtr + 8),
  1565. *(GLint *)(inoutPtr + 12),
  1566. *(GLfloat *)(inoutPtr + 16),
  1567. *(GLfloat *)(inoutPtr + 20)
  1568. );
  1569. }
  1570. void __gls_decode_bin_glEvalCoord1d(__GLScontext *ctx, GLubyte *inoutPtr) {
  1571. typedef void (*__GLSdispatch)(GLdouble);
  1572. ((__GLSdispatch)ctx->dispatchCall[292])(
  1573. *(GLdouble *)(inoutPtr + 0)
  1574. );
  1575. }
  1576. void __gls_decode_bin_glEvalCoord1f(__GLScontext *ctx, GLubyte *inoutPtr) {
  1577. typedef void (*__GLSdispatch)(GLfloat);
  1578. ((__GLSdispatch)ctx->dispatchCall[294])(
  1579. *(GLfloat *)(inoutPtr + 0)
  1580. );
  1581. }
  1582. void __gls_decode_bin_glEvalCoord2d(__GLScontext *ctx, GLubyte *inoutPtr) {
  1583. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  1584. ((__GLSdispatch)ctx->dispatchCall[296])(
  1585. *(GLdouble *)(inoutPtr + 0),
  1586. *(GLdouble *)(inoutPtr + 8)
  1587. );
  1588. }
  1589. void __gls_decode_bin_glEvalCoord2f(__GLScontext *ctx, GLubyte *inoutPtr) {
  1590. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  1591. ((__GLSdispatch)ctx->dispatchCall[298])(
  1592. *(GLfloat *)(inoutPtr + 0),
  1593. *(GLfloat *)(inoutPtr + 4)
  1594. );
  1595. }
  1596. void __gls_decode_bin_glEvalMesh1(__GLScontext *ctx, GLubyte *inoutPtr) {
  1597. typedef void (*__GLSdispatch)(GLenum, GLint, GLint);
  1598. ((__GLSdispatch)ctx->dispatchCall[300])(
  1599. *(GLenum *)(inoutPtr + 0),
  1600. *(GLint *)(inoutPtr + 4),
  1601. *(GLint *)(inoutPtr + 8)
  1602. );
  1603. }
  1604. void __gls_decode_bin_glEvalPoint1(__GLScontext *ctx, GLubyte *inoutPtr) {
  1605. typedef void (*__GLSdispatch)(GLint);
  1606. ((__GLSdispatch)ctx->dispatchCall[301])(
  1607. *(GLint *)(inoutPtr + 0)
  1608. );
  1609. }
  1610. void __gls_decode_bin_glEvalMesh2(__GLScontext *ctx, GLubyte *inoutPtr) {
  1611. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint);
  1612. ((__GLSdispatch)ctx->dispatchCall[302])(
  1613. *(GLenum *)(inoutPtr + 0),
  1614. *(GLint *)(inoutPtr + 4),
  1615. *(GLint *)(inoutPtr + 8),
  1616. *(GLint *)(inoutPtr + 12),
  1617. *(GLint *)(inoutPtr + 16)
  1618. );
  1619. }
  1620. void __gls_decode_bin_glEvalPoint2(__GLScontext *ctx, GLubyte *inoutPtr) {
  1621. typedef void (*__GLSdispatch)(GLint, GLint);
  1622. ((__GLSdispatch)ctx->dispatchCall[303])(
  1623. *(GLint *)(inoutPtr + 0),
  1624. *(GLint *)(inoutPtr + 4)
  1625. );
  1626. }
  1627. void __gls_decode_bin_glAlphaFunc(__GLScontext *ctx, GLubyte *inoutPtr) {
  1628. typedef void (*__GLSdispatch)(GLenum, GLclampf);
  1629. ((__GLSdispatch)ctx->dispatchCall[304])(
  1630. *(GLenum *)(inoutPtr + 0),
  1631. *(GLclampf *)(inoutPtr + 4)
  1632. );
  1633. }
  1634. void __gls_decode_bin_glBlendFunc(__GLScontext *ctx, GLubyte *inoutPtr) {
  1635. typedef void (*__GLSdispatch)(GLenum, GLenum);
  1636. ((__GLSdispatch)ctx->dispatchCall[305])(
  1637. *(GLenum *)(inoutPtr + 0),
  1638. *(GLenum *)(inoutPtr + 4)
  1639. );
  1640. }
  1641. void __gls_decode_bin_glLogicOp(__GLScontext *ctx, GLubyte *inoutPtr) {
  1642. typedef void (*__GLSdispatch)(GLenum);
  1643. ((__GLSdispatch)ctx->dispatchCall[306])(
  1644. *(GLenum *)(inoutPtr + 0)
  1645. );
  1646. }
  1647. void __gls_decode_bin_glStencilFunc(__GLScontext *ctx, GLubyte *inoutPtr) {
  1648. typedef void (*__GLSdispatch)(GLenum, GLint, GLuint);
  1649. ((__GLSdispatch)ctx->dispatchCall[307])(
  1650. *(GLenum *)(inoutPtr + 0),
  1651. *(GLint *)(inoutPtr + 4),
  1652. *(GLuint *)(inoutPtr + 8)
  1653. );
  1654. }
  1655. void __gls_decode_bin_glStencilOp(__GLScontext *ctx, GLubyte *inoutPtr) {
  1656. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum);
  1657. ((__GLSdispatch)ctx->dispatchCall[308])(
  1658. *(GLenum *)(inoutPtr + 0),
  1659. *(GLenum *)(inoutPtr + 4),
  1660. *(GLenum *)(inoutPtr + 8)
  1661. );
  1662. }
  1663. void __gls_decode_bin_glDepthFunc(__GLScontext *ctx, GLubyte *inoutPtr) {
  1664. typedef void (*__GLSdispatch)(GLenum);
  1665. ((__GLSdispatch)ctx->dispatchCall[309])(
  1666. *(GLenum *)(inoutPtr + 0)
  1667. );
  1668. }
  1669. void __gls_decode_bin_glPixelZoom(__GLScontext *ctx, GLubyte *inoutPtr) {
  1670. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  1671. ((__GLSdispatch)ctx->dispatchCall[310])(
  1672. *(GLfloat *)(inoutPtr + 0),
  1673. *(GLfloat *)(inoutPtr + 4)
  1674. );
  1675. }
  1676. void __gls_decode_bin_glPixelTransferf(__GLScontext *ctx, GLubyte *inoutPtr) {
  1677. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  1678. ((__GLSdispatch)ctx->dispatchCall[311])(
  1679. *(GLenum *)(inoutPtr + 0),
  1680. *(GLfloat *)(inoutPtr + 4)
  1681. );
  1682. }
  1683. void __gls_decode_bin_glPixelTransferi(__GLScontext *ctx, GLubyte *inoutPtr) {
  1684. typedef void (*__GLSdispatch)(GLenum, GLint);
  1685. ((__GLSdispatch)ctx->dispatchCall[312])(
  1686. *(GLenum *)(inoutPtr + 0),
  1687. *(GLint *)(inoutPtr + 4)
  1688. );
  1689. }
  1690. void __gls_decode_bin_glPixelStoref(__GLScontext *ctx, GLubyte *inoutPtr) {
  1691. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  1692. ((__GLSdispatch)ctx->dispatchCall[313])(
  1693. *(GLenum *)(inoutPtr + 0),
  1694. *(GLfloat *)(inoutPtr + 4)
  1695. );
  1696. }
  1697. void __gls_decode_bin_glPixelStorei(__GLScontext *ctx, GLubyte *inoutPtr) {
  1698. typedef void (*__GLSdispatch)(GLenum, GLint);
  1699. ((__GLSdispatch)ctx->dispatchCall[314])(
  1700. *(GLenum *)(inoutPtr + 0),
  1701. *(GLint *)(inoutPtr + 4)
  1702. );
  1703. }
  1704. void __gls_decode_bin_glPixelMapfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1705. typedef void (*__GLSdispatch)(GLenum, GLint, const GLfloat *);
  1706. ((__GLSdispatch)ctx->dispatchCall[315])(
  1707. *(GLenum *)(inoutPtr + 4),
  1708. *(GLint *)(inoutPtr + 0),
  1709. (GLfloat *)(inoutPtr + 8)
  1710. );
  1711. }
  1712. void __gls_decode_bin_glPixelMapuiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1713. typedef void (*__GLSdispatch)(GLenum, GLint, const GLuint *);
  1714. ((__GLSdispatch)ctx->dispatchCall[316])(
  1715. *(GLenum *)(inoutPtr + 4),
  1716. *(GLint *)(inoutPtr + 0),
  1717. (GLuint *)(inoutPtr + 8)
  1718. );
  1719. }
  1720. void __gls_decode_bin_glPixelMapusv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1721. typedef void (*__GLSdispatch)(GLenum, GLint, const GLushort *);
  1722. ((__GLSdispatch)ctx->dispatchCall[317])(
  1723. *(GLenum *)(inoutPtr + 4),
  1724. *(GLint *)(inoutPtr + 0),
  1725. (GLushort *)(inoutPtr + 8)
  1726. );
  1727. }
  1728. void __gls_decode_bin_glReadBuffer(__GLScontext *ctx, GLubyte *inoutPtr) {
  1729. typedef void (*__GLSdispatch)(GLenum);
  1730. ((__GLSdispatch)ctx->dispatchCall[318])(
  1731. *(GLenum *)(inoutPtr + 0)
  1732. );
  1733. }
  1734. void __gls_decode_bin_glCopyPixels(__GLScontext *ctx, GLubyte *inoutPtr) {
  1735. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei, GLenum);
  1736. ((__GLSdispatch)ctx->dispatchCall[319])(
  1737. *(GLint *)(inoutPtr + 0),
  1738. *(GLint *)(inoutPtr + 4),
  1739. *(GLsizei *)(inoutPtr + 8),
  1740. *(GLsizei *)(inoutPtr + 12),
  1741. *(GLenum *)(inoutPtr + 16)
  1742. );
  1743. }
  1744. void __gls_decode_bin_glReadPixels(__GLScontext *ctx, GLubyte *inoutPtr) {
  1745. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);
  1746. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1747. GLsizei width;
  1748. GLsizei height;
  1749. GLenum format;
  1750. GLenum type;
  1751. GLint pixels_count;
  1752. GLvoid *pixels = GLS_NONE;
  1753. __GLS_DEC_ALLOC_DECLARE(pixels)
  1754. width = *(GLsizei *)(inoutPtr + 0);
  1755. height = *(GLsizei *)(inoutPtr + 4);
  1756. format = *(GLenum *)(inoutPtr + 8);
  1757. type = *(GLenum *)(inoutPtr + 12);
  1758. pixels_count = __gls_glReadPixels_pixels_size(format, type, width, height);
  1759. __GLS_DEC_ALLOC_BIN(pixels, GLvoid, 1 * pixels_count);
  1760. if (!pixels) {
  1761. __GLS_CALL_ERROR(ctx, 320, GLS_OUT_OF_MEMORY);
  1762. goto end;
  1763. }
  1764. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 16);
  1765. ctx->outArgs.count = 1;
  1766. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  1767. ((__GLSdispatch)ctx->dispatchCall[320])(
  1768. *(GLint *)(inoutPtr + 24),
  1769. *(GLint *)(inoutPtr + 28),
  1770. *(GLsizei *)(inoutPtr + 0),
  1771. *(GLsizei *)(inoutPtr + 4),
  1772. *(GLenum *)(inoutPtr + 8),
  1773. *(GLenum *)(inoutPtr + 12),
  1774. (GLvoid *)pixels
  1775. );
  1776. end:
  1777. ctx->outArgs = __outArgsSave;
  1778. __GLS_DEC_FREE(pixels);
  1779. }
  1780. void __gls_decode_bin_glDrawPixels(__GLScontext *ctx, GLubyte *inoutPtr) {
  1781. typedef void (*__GLSdispatch)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  1782. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  1783. ((__GLSdispatch)ctx->dispatchCall[321])(
  1784. *(GLsizei *)(inoutPtr + 4),
  1785. *(GLsizei *)(inoutPtr + 8),
  1786. *(GLenum *)(inoutPtr + 12),
  1787. *(GLenum *)(inoutPtr + 16),
  1788. (GLvoid *)(inoutPtr + 20)
  1789. );
  1790. }
  1791. void __gls_decode_bin_glGetBooleanv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1792. typedef void (*__GLSdispatch)(GLenum, GLboolean *);
  1793. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1794. GLenum pname;
  1795. GLint params_count;
  1796. GLboolean *params = GLS_NONE;
  1797. __GLS_DEC_ALLOC_DECLARE(params)
  1798. pname = *(GLenum *)(inoutPtr + 0);
  1799. params_count = __gls_glGetBooleanv_params_size(pname);
  1800. __GLS_DEC_ALLOC_BIN(params, GLboolean, 1 * params_count);
  1801. if (!params) {
  1802. __GLS_CALL_ERROR(ctx, 322, GLS_OUT_OF_MEMORY);
  1803. goto end;
  1804. }
  1805. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1806. ctx->outArgs.count = 1;
  1807. ((__GLSdispatch)ctx->dispatchCall[322])(
  1808. *(GLenum *)(inoutPtr + 0),
  1809. (GLboolean *)params
  1810. );
  1811. end:
  1812. ctx->outArgs = __outArgsSave;
  1813. __GLS_DEC_FREE(params);
  1814. }
  1815. void __gls_decode_bin_glGetClipPlane(__GLScontext *ctx, GLubyte *inoutPtr) {
  1816. typedef void (*__GLSdispatch)(GLenum, GLdouble *);
  1817. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1818. GLdouble equation[4];
  1819. ctx->outArgs.count = 1;
  1820. ((__GLSdispatch)ctx->dispatchCall[323])(
  1821. *(GLenum *)(inoutPtr + 8),
  1822. equation
  1823. );
  1824. ctx->outArgs = __outArgsSave;
  1825. }
  1826. void __gls_decode_bin_glGetDoublev(__GLScontext *ctx, GLubyte *inoutPtr) {
  1827. typedef void (*__GLSdispatch)(GLenum, GLdouble *);
  1828. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1829. GLenum pname;
  1830. GLint params_count;
  1831. GLdouble *params = GLS_NONE;
  1832. __GLS_DEC_ALLOC_DECLARE(params)
  1833. pname = *(GLenum *)(inoutPtr + 0);
  1834. params_count = __gls_glGetDoublev_params_size(pname);
  1835. __GLS_DEC_ALLOC_BIN(params, GLdouble, 8 * params_count);
  1836. if (!params) {
  1837. __GLS_CALL_ERROR(ctx, 324, GLS_OUT_OF_MEMORY);
  1838. goto end;
  1839. }
  1840. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1841. ctx->outArgs.count = 1;
  1842. ((__GLSdispatch)ctx->dispatchCall[324])(
  1843. *(GLenum *)(inoutPtr + 0),
  1844. (GLdouble *)params
  1845. );
  1846. end:
  1847. ctx->outArgs = __outArgsSave;
  1848. __GLS_DEC_FREE(params);
  1849. }
  1850. void __gls_decode_bin_glGetFloatv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1851. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  1852. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1853. GLenum pname;
  1854. GLint params_count;
  1855. GLfloat *params = GLS_NONE;
  1856. __GLS_DEC_ALLOC_DECLARE(params)
  1857. pname = *(GLenum *)(inoutPtr + 0);
  1858. params_count = __gls_glGetFloatv_params_size(pname);
  1859. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  1860. if (!params) {
  1861. __GLS_CALL_ERROR(ctx, 326, GLS_OUT_OF_MEMORY);
  1862. goto end;
  1863. }
  1864. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1865. ctx->outArgs.count = 1;
  1866. ((__GLSdispatch)ctx->dispatchCall[326])(
  1867. *(GLenum *)(inoutPtr + 0),
  1868. (GLfloat *)params
  1869. );
  1870. end:
  1871. ctx->outArgs = __outArgsSave;
  1872. __GLS_DEC_FREE(params);
  1873. }
  1874. void __gls_decode_bin_glGetIntegerv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1875. typedef void (*__GLSdispatch)(GLenum, GLint *);
  1876. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1877. GLenum pname;
  1878. GLint params_count;
  1879. GLint *params = GLS_NONE;
  1880. __GLS_DEC_ALLOC_DECLARE(params)
  1881. pname = *(GLenum *)(inoutPtr + 0);
  1882. params_count = __gls_glGetIntegerv_params_size(pname);
  1883. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  1884. if (!params) {
  1885. __GLS_CALL_ERROR(ctx, 327, GLS_OUT_OF_MEMORY);
  1886. goto end;
  1887. }
  1888. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1889. ctx->outArgs.count = 1;
  1890. ((__GLSdispatch)ctx->dispatchCall[327])(
  1891. *(GLenum *)(inoutPtr + 0),
  1892. (GLint *)params
  1893. );
  1894. end:
  1895. ctx->outArgs = __outArgsSave;
  1896. __GLS_DEC_FREE(params);
  1897. }
  1898. void __gls_decode_bin_glGetLightfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1899. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  1900. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1901. GLenum pname;
  1902. GLint params_count;
  1903. GLfloat *params = GLS_NONE;
  1904. __GLS_DEC_ALLOC_DECLARE(params)
  1905. pname = *(GLenum *)(inoutPtr + 0);
  1906. params_count = __gls_glGetLightfv_params_size(pname);
  1907. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  1908. if (!params) {
  1909. __GLS_CALL_ERROR(ctx, 328, GLS_OUT_OF_MEMORY);
  1910. goto end;
  1911. }
  1912. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1913. ctx->outArgs.count = 1;
  1914. ((__GLSdispatch)ctx->dispatchCall[328])(
  1915. *(GLenum *)(inoutPtr + 12),
  1916. *(GLenum *)(inoutPtr + 0),
  1917. (GLfloat *)params
  1918. );
  1919. end:
  1920. ctx->outArgs = __outArgsSave;
  1921. __GLS_DEC_FREE(params);
  1922. }
  1923. void __gls_decode_bin_glGetLightiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1924. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  1925. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1926. GLenum pname;
  1927. GLint params_count;
  1928. GLint *params = GLS_NONE;
  1929. __GLS_DEC_ALLOC_DECLARE(params)
  1930. pname = *(GLenum *)(inoutPtr + 0);
  1931. params_count = __gls_glGetLightiv_params_size(pname);
  1932. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  1933. if (!params) {
  1934. __GLS_CALL_ERROR(ctx, 329, GLS_OUT_OF_MEMORY);
  1935. goto end;
  1936. }
  1937. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  1938. ctx->outArgs.count = 1;
  1939. ((__GLSdispatch)ctx->dispatchCall[329])(
  1940. *(GLenum *)(inoutPtr + 12),
  1941. *(GLenum *)(inoutPtr + 0),
  1942. (GLint *)params
  1943. );
  1944. end:
  1945. ctx->outArgs = __outArgsSave;
  1946. __GLS_DEC_FREE(params);
  1947. }
  1948. void __gls_decode_bin_glGetMapdv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1949. typedef void (*__GLSdispatch)(GLenum, GLenum, GLdouble *);
  1950. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1951. GLenum target;
  1952. GLenum query;
  1953. GLint v_count;
  1954. GLdouble *v = GLS_NONE;
  1955. __GLS_DEC_ALLOC_DECLARE(v)
  1956. target = *(GLenum *)(inoutPtr + 0);
  1957. query = *(GLenum *)(inoutPtr + 4);
  1958. v_count = __gls_glGetMapdv_v_size(ctx, target, query);
  1959. __GLS_DEC_ALLOC_BIN(v, GLdouble, 8 * v_count);
  1960. if (!v) {
  1961. __GLS_CALL_ERROR(ctx, 330, GLS_OUT_OF_MEMORY);
  1962. goto end;
  1963. }
  1964. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 8);
  1965. ctx->outArgs.count = 1;
  1966. ((__GLSdispatch)ctx->dispatchCall[330])(
  1967. *(GLenum *)(inoutPtr + 0),
  1968. *(GLenum *)(inoutPtr + 4),
  1969. (GLdouble *)v
  1970. );
  1971. end:
  1972. ctx->outArgs = __outArgsSave;
  1973. __GLS_DEC_FREE(v);
  1974. }
  1975. void __gls_decode_bin_glGetMapfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  1976. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  1977. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  1978. GLenum target;
  1979. GLenum query;
  1980. GLint v_count;
  1981. GLfloat *v = GLS_NONE;
  1982. __GLS_DEC_ALLOC_DECLARE(v)
  1983. target = *(GLenum *)(inoutPtr + 0);
  1984. query = *(GLenum *)(inoutPtr + 4);
  1985. v_count = __gls_glGetMapfv_v_size(ctx, target, query);
  1986. __GLS_DEC_ALLOC_BIN(v, GLfloat, 4 * v_count);
  1987. if (!v) {
  1988. __GLS_CALL_ERROR(ctx, 331, GLS_OUT_OF_MEMORY);
  1989. goto end;
  1990. }
  1991. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 8);
  1992. ctx->outArgs.count = 1;
  1993. ((__GLSdispatch)ctx->dispatchCall[331])(
  1994. *(GLenum *)(inoutPtr + 0),
  1995. *(GLenum *)(inoutPtr + 4),
  1996. (GLfloat *)v
  1997. );
  1998. end:
  1999. ctx->outArgs = __outArgsSave;
  2000. __GLS_DEC_FREE(v);
  2001. }
  2002. void __gls_decode_bin_glGetMapiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2003. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2004. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2005. GLenum target;
  2006. GLenum query;
  2007. GLint v_count;
  2008. GLint *v = GLS_NONE;
  2009. __GLS_DEC_ALLOC_DECLARE(v)
  2010. target = *(GLenum *)(inoutPtr + 0);
  2011. query = *(GLenum *)(inoutPtr + 4);
  2012. v_count = __gls_glGetMapiv_v_size(ctx, target, query);
  2013. __GLS_DEC_ALLOC_BIN(v, GLint, 4 * v_count);
  2014. if (!v) {
  2015. __GLS_CALL_ERROR(ctx, 332, GLS_OUT_OF_MEMORY);
  2016. goto end;
  2017. }
  2018. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 8);
  2019. ctx->outArgs.count = 1;
  2020. ((__GLSdispatch)ctx->dispatchCall[332])(
  2021. *(GLenum *)(inoutPtr + 0),
  2022. *(GLenum *)(inoutPtr + 4),
  2023. (GLint *)v
  2024. );
  2025. end:
  2026. ctx->outArgs = __outArgsSave;
  2027. __GLS_DEC_FREE(v);
  2028. }
  2029. void __gls_decode_bin_glGetMaterialfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2030. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  2031. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2032. GLenum pname;
  2033. GLint params_count;
  2034. GLfloat *params = GLS_NONE;
  2035. __GLS_DEC_ALLOC_DECLARE(params)
  2036. pname = *(GLenum *)(inoutPtr + 0);
  2037. params_count = __gls_glGetMaterialfv_params_size(pname);
  2038. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2039. if (!params) {
  2040. __GLS_CALL_ERROR(ctx, 333, GLS_OUT_OF_MEMORY);
  2041. goto end;
  2042. }
  2043. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2044. ctx->outArgs.count = 1;
  2045. ((__GLSdispatch)ctx->dispatchCall[333])(
  2046. *(GLenum *)(inoutPtr + 12),
  2047. *(GLenum *)(inoutPtr + 0),
  2048. (GLfloat *)params
  2049. );
  2050. end:
  2051. ctx->outArgs = __outArgsSave;
  2052. __GLS_DEC_FREE(params);
  2053. }
  2054. void __gls_decode_bin_glGetMaterialiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2055. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2056. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2057. GLenum pname;
  2058. GLint params_count;
  2059. GLint *params = GLS_NONE;
  2060. __GLS_DEC_ALLOC_DECLARE(params)
  2061. pname = *(GLenum *)(inoutPtr + 0);
  2062. params_count = __gls_glGetMaterialiv_params_size(pname);
  2063. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2064. if (!params) {
  2065. __GLS_CALL_ERROR(ctx, 334, GLS_OUT_OF_MEMORY);
  2066. goto end;
  2067. }
  2068. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2069. ctx->outArgs.count = 1;
  2070. ((__GLSdispatch)ctx->dispatchCall[334])(
  2071. *(GLenum *)(inoutPtr + 12),
  2072. *(GLenum *)(inoutPtr + 0),
  2073. (GLint *)params
  2074. );
  2075. end:
  2076. ctx->outArgs = __outArgsSave;
  2077. __GLS_DEC_FREE(params);
  2078. }
  2079. void __gls_decode_bin_glGetPixelMapfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2080. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  2081. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2082. GLenum map;
  2083. GLint values_count;
  2084. GLfloat *values = GLS_NONE;
  2085. __GLS_DEC_ALLOC_DECLARE(values)
  2086. map = *(GLenum *)(inoutPtr + 0);
  2087. values_count = __gls_glGetPixelMapfv_values_size(ctx, map);
  2088. __GLS_DEC_ALLOC_BIN(values, GLfloat, 4 * values_count);
  2089. if (!values) {
  2090. __GLS_CALL_ERROR(ctx, 335, GLS_OUT_OF_MEMORY);
  2091. goto end;
  2092. }
  2093. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2094. ctx->outArgs.count = 1;
  2095. ((__GLSdispatch)ctx->dispatchCall[335])(
  2096. *(GLenum *)(inoutPtr + 0),
  2097. (GLfloat *)values
  2098. );
  2099. end:
  2100. ctx->outArgs = __outArgsSave;
  2101. __GLS_DEC_FREE(values);
  2102. }
  2103. void __gls_decode_bin_glGetPixelMapuiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2104. typedef void (*__GLSdispatch)(GLenum, GLuint *);
  2105. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2106. GLenum map;
  2107. GLint values_count;
  2108. GLuint *values = GLS_NONE;
  2109. __GLS_DEC_ALLOC_DECLARE(values)
  2110. map = *(GLenum *)(inoutPtr + 0);
  2111. values_count = __gls_glGetPixelMapuiv_values_size(ctx, map);
  2112. __GLS_DEC_ALLOC_BIN(values, GLuint, 4 * values_count);
  2113. if (!values) {
  2114. __GLS_CALL_ERROR(ctx, 336, GLS_OUT_OF_MEMORY);
  2115. goto end;
  2116. }
  2117. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2118. ctx->outArgs.count = 1;
  2119. ((__GLSdispatch)ctx->dispatchCall[336])(
  2120. *(GLenum *)(inoutPtr + 0),
  2121. (GLuint *)values
  2122. );
  2123. end:
  2124. ctx->outArgs = __outArgsSave;
  2125. __GLS_DEC_FREE(values);
  2126. }
  2127. void __gls_decode_bin_glGetPixelMapusv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2128. typedef void (*__GLSdispatch)(GLenum, GLushort *);
  2129. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2130. GLenum map;
  2131. GLint values_count;
  2132. GLushort *values = GLS_NONE;
  2133. __GLS_DEC_ALLOC_DECLARE(values)
  2134. map = *(GLenum *)(inoutPtr + 0);
  2135. values_count = __gls_glGetPixelMapusv_values_size(ctx, map);
  2136. __GLS_DEC_ALLOC_BIN(values, GLushort, 2 * values_count);
  2137. if (!values) {
  2138. __GLS_CALL_ERROR(ctx, 337, GLS_OUT_OF_MEMORY);
  2139. goto end;
  2140. }
  2141. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2142. ctx->outArgs.count = 1;
  2143. ((__GLSdispatch)ctx->dispatchCall[337])(
  2144. *(GLenum *)(inoutPtr + 0),
  2145. (GLushort *)values
  2146. );
  2147. end:
  2148. ctx->outArgs = __outArgsSave;
  2149. __GLS_DEC_FREE(values);
  2150. }
  2151. void __gls_decode_bin_glGetPolygonStipple(__GLScontext *ctx, GLubyte *inoutPtr) {
  2152. typedef void (*__GLSdispatch)(GLubyte *);
  2153. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2154. GLint mask_count;
  2155. GLubyte *mask = GLS_NONE;
  2156. __GLS_DEC_ALLOC_DECLARE(mask)
  2157. mask_count = __gls_glGetPolygonStipple_mask_size();
  2158. __GLS_DEC_ALLOC_BIN(mask, GLubyte, 1 * mask_count);
  2159. if (!mask) {
  2160. __GLS_CALL_ERROR(ctx, 338, GLS_OUT_OF_MEMORY);
  2161. goto end;
  2162. }
  2163. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 0);
  2164. ctx->outArgs.count = 1;
  2165. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  2166. ((__GLSdispatch)ctx->dispatchCall[338])(
  2167. (GLubyte *)mask
  2168. );
  2169. end:
  2170. ctx->outArgs = __outArgsSave;
  2171. __GLS_DEC_FREE(mask);
  2172. }
  2173. void __gls_decode_bin_glGetString(__GLScontext *ctx, GLubyte *inoutPtr) {
  2174. typedef void (*__GLSdispatch)(GLenum);
  2175. ((__GLSdispatch)ctx->dispatchCall[339])(
  2176. *(GLenum *)(inoutPtr + 0)
  2177. );
  2178. }
  2179. void __gls_decode_bin_glGetTexEnvfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2180. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  2181. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2182. GLenum pname;
  2183. GLint params_count;
  2184. GLfloat *params = GLS_NONE;
  2185. __GLS_DEC_ALLOC_DECLARE(params)
  2186. pname = *(GLenum *)(inoutPtr + 0);
  2187. params_count = __gls_glGetTexEnvfv_params_size(pname);
  2188. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2189. if (!params) {
  2190. __GLS_CALL_ERROR(ctx, 340, GLS_OUT_OF_MEMORY);
  2191. goto end;
  2192. }
  2193. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2194. ctx->outArgs.count = 1;
  2195. ((__GLSdispatch)ctx->dispatchCall[340])(
  2196. *(GLenum *)(inoutPtr + 12),
  2197. *(GLenum *)(inoutPtr + 0),
  2198. (GLfloat *)params
  2199. );
  2200. end:
  2201. ctx->outArgs = __outArgsSave;
  2202. __GLS_DEC_FREE(params);
  2203. }
  2204. void __gls_decode_bin_glGetTexEnviv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2205. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2206. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2207. GLenum pname;
  2208. GLint params_count;
  2209. GLint *params = GLS_NONE;
  2210. __GLS_DEC_ALLOC_DECLARE(params)
  2211. pname = *(GLenum *)(inoutPtr + 0);
  2212. params_count = __gls_glGetTexEnviv_params_size(pname);
  2213. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2214. if (!params) {
  2215. __GLS_CALL_ERROR(ctx, 341, GLS_OUT_OF_MEMORY);
  2216. goto end;
  2217. }
  2218. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2219. ctx->outArgs.count = 1;
  2220. ((__GLSdispatch)ctx->dispatchCall[341])(
  2221. *(GLenum *)(inoutPtr + 12),
  2222. *(GLenum *)(inoutPtr + 0),
  2223. (GLint *)params
  2224. );
  2225. end:
  2226. ctx->outArgs = __outArgsSave;
  2227. __GLS_DEC_FREE(params);
  2228. }
  2229. void __gls_decode_bin_glGetTexGendv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2230. typedef void (*__GLSdispatch)(GLenum, GLenum, GLdouble *);
  2231. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2232. GLenum pname;
  2233. GLint params_count;
  2234. GLdouble *params = GLS_NONE;
  2235. __GLS_DEC_ALLOC_DECLARE(params)
  2236. pname = *(GLenum *)(inoutPtr + 0);
  2237. params_count = __gls_glGetTexGendv_params_size(pname);
  2238. __GLS_DEC_ALLOC_BIN(params, GLdouble, 8 * params_count);
  2239. if (!params) {
  2240. __GLS_CALL_ERROR(ctx, 342, GLS_OUT_OF_MEMORY);
  2241. goto end;
  2242. }
  2243. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2244. ctx->outArgs.count = 1;
  2245. ((__GLSdispatch)ctx->dispatchCall[342])(
  2246. *(GLenum *)(inoutPtr + 12),
  2247. *(GLenum *)(inoutPtr + 0),
  2248. (GLdouble *)params
  2249. );
  2250. end:
  2251. ctx->outArgs = __outArgsSave;
  2252. __GLS_DEC_FREE(params);
  2253. }
  2254. void __gls_decode_bin_glGetTexGenfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2255. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  2256. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2257. GLenum pname;
  2258. GLint params_count;
  2259. GLfloat *params = GLS_NONE;
  2260. __GLS_DEC_ALLOC_DECLARE(params)
  2261. pname = *(GLenum *)(inoutPtr + 0);
  2262. params_count = __gls_glGetTexGenfv_params_size(pname);
  2263. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2264. if (!params) {
  2265. __GLS_CALL_ERROR(ctx, 343, GLS_OUT_OF_MEMORY);
  2266. goto end;
  2267. }
  2268. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2269. ctx->outArgs.count = 1;
  2270. ((__GLSdispatch)ctx->dispatchCall[343])(
  2271. *(GLenum *)(inoutPtr + 12),
  2272. *(GLenum *)(inoutPtr + 0),
  2273. (GLfloat *)params
  2274. );
  2275. end:
  2276. ctx->outArgs = __outArgsSave;
  2277. __GLS_DEC_FREE(params);
  2278. }
  2279. void __gls_decode_bin_glGetTexGeniv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2280. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2281. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2282. GLenum pname;
  2283. GLint params_count;
  2284. GLint *params = GLS_NONE;
  2285. __GLS_DEC_ALLOC_DECLARE(params)
  2286. pname = *(GLenum *)(inoutPtr + 0);
  2287. params_count = __gls_glGetTexGeniv_params_size(pname);
  2288. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2289. if (!params) {
  2290. __GLS_CALL_ERROR(ctx, 344, GLS_OUT_OF_MEMORY);
  2291. goto end;
  2292. }
  2293. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2294. ctx->outArgs.count = 1;
  2295. ((__GLSdispatch)ctx->dispatchCall[344])(
  2296. *(GLenum *)(inoutPtr + 12),
  2297. *(GLenum *)(inoutPtr + 0),
  2298. (GLint *)params
  2299. );
  2300. end:
  2301. ctx->outArgs = __outArgsSave;
  2302. __GLS_DEC_FREE(params);
  2303. }
  2304. void __gls_decode_bin_glGetTexImage(__GLScontext *ctx, GLubyte *inoutPtr) {
  2305. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLenum, GLvoid *);
  2306. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2307. GLenum target;
  2308. GLint level;
  2309. GLenum format;
  2310. GLenum type;
  2311. GLint pixels_count;
  2312. GLvoid *pixels = GLS_NONE;
  2313. __GLS_DEC_ALLOC_DECLARE(pixels)
  2314. target = *(GLenum *)(inoutPtr + 0);
  2315. level = *(GLint *)(inoutPtr + 4);
  2316. format = *(GLenum *)(inoutPtr + 8);
  2317. type = *(GLenum *)(inoutPtr + 12);
  2318. pixels_count = __gls_glGetTexImage_pixels_size(ctx, target, level, format, type);
  2319. __GLS_DEC_ALLOC_BIN(pixels, GLvoid, 1 * pixels_count);
  2320. if (!pixels) {
  2321. __GLS_CALL_ERROR(ctx, 345, GLS_OUT_OF_MEMORY);
  2322. goto end;
  2323. }
  2324. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 16);
  2325. ctx->outArgs.count = 1;
  2326. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  2327. ((__GLSdispatch)ctx->dispatchCall[345])(
  2328. *(GLenum *)(inoutPtr + 0),
  2329. *(GLint *)(inoutPtr + 4),
  2330. *(GLenum *)(inoutPtr + 8),
  2331. *(GLenum *)(inoutPtr + 12),
  2332. (GLvoid *)pixels
  2333. );
  2334. end:
  2335. ctx->outArgs = __outArgsSave;
  2336. __GLS_DEC_FREE(pixels);
  2337. }
  2338. void __gls_decode_bin_glGetTexParameterfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2339. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  2340. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2341. GLenum pname;
  2342. GLint params_count;
  2343. GLfloat *params = GLS_NONE;
  2344. __GLS_DEC_ALLOC_DECLARE(params)
  2345. pname = *(GLenum *)(inoutPtr + 0);
  2346. params_count = __gls_glGetTexParameterfv_params_size(pname);
  2347. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2348. if (!params) {
  2349. __GLS_CALL_ERROR(ctx, 346, GLS_OUT_OF_MEMORY);
  2350. goto end;
  2351. }
  2352. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2353. ctx->outArgs.count = 1;
  2354. ((__GLSdispatch)ctx->dispatchCall[346])(
  2355. *(GLenum *)(inoutPtr + 12),
  2356. *(GLenum *)(inoutPtr + 0),
  2357. (GLfloat *)params
  2358. );
  2359. end:
  2360. ctx->outArgs = __outArgsSave;
  2361. __GLS_DEC_FREE(params);
  2362. }
  2363. void __gls_decode_bin_glGetTexParameteriv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2364. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2365. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2366. GLenum pname;
  2367. GLint params_count;
  2368. GLint *params = GLS_NONE;
  2369. __GLS_DEC_ALLOC_DECLARE(params)
  2370. pname = *(GLenum *)(inoutPtr + 0);
  2371. params_count = __gls_glGetTexParameteriv_params_size(pname);
  2372. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2373. if (!params) {
  2374. __GLS_CALL_ERROR(ctx, 347, GLS_OUT_OF_MEMORY);
  2375. goto end;
  2376. }
  2377. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2378. ctx->outArgs.count = 1;
  2379. ((__GLSdispatch)ctx->dispatchCall[347])(
  2380. *(GLenum *)(inoutPtr + 12),
  2381. *(GLenum *)(inoutPtr + 0),
  2382. (GLint *)params
  2383. );
  2384. end:
  2385. ctx->outArgs = __outArgsSave;
  2386. __GLS_DEC_FREE(params);
  2387. }
  2388. void __gls_decode_bin_glGetTexLevelParameterfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2389. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLfloat *);
  2390. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2391. GLenum pname;
  2392. GLint params_count;
  2393. GLfloat *params = GLS_NONE;
  2394. __GLS_DEC_ALLOC_DECLARE(params)
  2395. pname = *(GLenum *)(inoutPtr + 0);
  2396. params_count = __gls_glGetTexLevelParameterfv_params_size(pname);
  2397. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2398. if (!params) {
  2399. __GLS_CALL_ERROR(ctx, 348, GLS_OUT_OF_MEMORY);
  2400. goto end;
  2401. }
  2402. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2403. ctx->outArgs.count = 1;
  2404. ((__GLSdispatch)ctx->dispatchCall[348])(
  2405. *(GLenum *)(inoutPtr + 12),
  2406. *(GLint *)(inoutPtr + 16),
  2407. *(GLenum *)(inoutPtr + 0),
  2408. (GLfloat *)params
  2409. );
  2410. end:
  2411. ctx->outArgs = __outArgsSave;
  2412. __GLS_DEC_FREE(params);
  2413. }
  2414. void __gls_decode_bin_glGetTexLevelParameteriv(__GLScontext *ctx, GLubyte *inoutPtr) {
  2415. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint *);
  2416. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2417. GLenum pname;
  2418. GLint params_count;
  2419. GLint *params = GLS_NONE;
  2420. __GLS_DEC_ALLOC_DECLARE(params)
  2421. pname = *(GLenum *)(inoutPtr + 0);
  2422. params_count = __gls_glGetTexLevelParameteriv_params_size(pname);
  2423. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2424. if (!params) {
  2425. __GLS_CALL_ERROR(ctx, 349, GLS_OUT_OF_MEMORY);
  2426. goto end;
  2427. }
  2428. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2429. ctx->outArgs.count = 1;
  2430. ((__GLSdispatch)ctx->dispatchCall[349])(
  2431. *(GLenum *)(inoutPtr + 12),
  2432. *(GLint *)(inoutPtr + 16),
  2433. *(GLenum *)(inoutPtr + 0),
  2434. (GLint *)params
  2435. );
  2436. end:
  2437. ctx->outArgs = __outArgsSave;
  2438. __GLS_DEC_FREE(params);
  2439. }
  2440. void __gls_decode_bin_glIsEnabled(__GLScontext *ctx, GLubyte *inoutPtr) {
  2441. typedef void (*__GLSdispatch)(GLenum);
  2442. ((__GLSdispatch)ctx->dispatchCall[350])(
  2443. *(GLenum *)(inoutPtr + 0)
  2444. );
  2445. }
  2446. void __gls_decode_bin_glIsList(__GLScontext *ctx, GLubyte *inoutPtr) {
  2447. typedef void (*__GLSdispatch)(GLuint);
  2448. ((__GLSdispatch)ctx->dispatchCall[351])(
  2449. *(GLuint *)(inoutPtr + 0)
  2450. );
  2451. }
  2452. void __gls_decode_bin_glDepthRange(__GLScontext *ctx, GLubyte *inoutPtr) {
  2453. typedef void (*__GLSdispatch)(GLclampd, GLclampd);
  2454. ((__GLSdispatch)ctx->dispatchCall[352])(
  2455. *(GLclampd *)(inoutPtr + 0),
  2456. *(GLclampd *)(inoutPtr + 8)
  2457. );
  2458. }
  2459. void __gls_decode_bin_glFrustum(__GLScontext *ctx, GLubyte *inoutPtr) {
  2460. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
  2461. ((__GLSdispatch)ctx->dispatchCall[353])(
  2462. *(GLdouble *)(inoutPtr + 0),
  2463. *(GLdouble *)(inoutPtr + 8),
  2464. *(GLdouble *)(inoutPtr + 16),
  2465. *(GLdouble *)(inoutPtr + 24),
  2466. *(GLdouble *)(inoutPtr + 32),
  2467. *(GLdouble *)(inoutPtr + 40)
  2468. );
  2469. }
  2470. void __gls_decode_bin_glMatrixMode(__GLScontext *ctx, GLubyte *inoutPtr) {
  2471. typedef void (*__GLSdispatch)(GLenum);
  2472. ((__GLSdispatch)ctx->dispatchCall[357])(
  2473. *(GLenum *)(inoutPtr + 0)
  2474. );
  2475. }
  2476. void __gls_decode_bin_glOrtho(__GLScontext *ctx, GLubyte *inoutPtr) {
  2477. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
  2478. ((__GLSdispatch)ctx->dispatchCall[360])(
  2479. *(GLdouble *)(inoutPtr + 0),
  2480. *(GLdouble *)(inoutPtr + 8),
  2481. *(GLdouble *)(inoutPtr + 16),
  2482. *(GLdouble *)(inoutPtr + 24),
  2483. *(GLdouble *)(inoutPtr + 32),
  2484. *(GLdouble *)(inoutPtr + 40)
  2485. );
  2486. }
  2487. void __gls_decode_bin_glRotated(__GLScontext *ctx, GLubyte *inoutPtr) {
  2488. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  2489. ((__GLSdispatch)ctx->dispatchCall[363])(
  2490. *(GLdouble *)(inoutPtr + 0),
  2491. *(GLdouble *)(inoutPtr + 8),
  2492. *(GLdouble *)(inoutPtr + 16),
  2493. *(GLdouble *)(inoutPtr + 24)
  2494. );
  2495. }
  2496. void __gls_decode_bin_glRotatef(__GLScontext *ctx, GLubyte *inoutPtr) {
  2497. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  2498. ((__GLSdispatch)ctx->dispatchCall[364])(
  2499. *(GLfloat *)(inoutPtr + 0),
  2500. *(GLfloat *)(inoutPtr + 4),
  2501. *(GLfloat *)(inoutPtr + 8),
  2502. *(GLfloat *)(inoutPtr + 12)
  2503. );
  2504. }
  2505. void __gls_decode_bin_glScaled(__GLScontext *ctx, GLubyte *inoutPtr) {
  2506. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  2507. ((__GLSdispatch)ctx->dispatchCall[365])(
  2508. *(GLdouble *)(inoutPtr + 0),
  2509. *(GLdouble *)(inoutPtr + 8),
  2510. *(GLdouble *)(inoutPtr + 16)
  2511. );
  2512. }
  2513. void __gls_decode_bin_glScalef(__GLScontext *ctx, GLubyte *inoutPtr) {
  2514. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  2515. ((__GLSdispatch)ctx->dispatchCall[366])(
  2516. *(GLfloat *)(inoutPtr + 0),
  2517. *(GLfloat *)(inoutPtr + 4),
  2518. *(GLfloat *)(inoutPtr + 8)
  2519. );
  2520. }
  2521. void __gls_decode_bin_glTranslated(__GLScontext *ctx, GLubyte *inoutPtr) {
  2522. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  2523. ((__GLSdispatch)ctx->dispatchCall[367])(
  2524. *(GLdouble *)(inoutPtr + 0),
  2525. *(GLdouble *)(inoutPtr + 8),
  2526. *(GLdouble *)(inoutPtr + 16)
  2527. );
  2528. }
  2529. void __gls_decode_bin_glTranslatef(__GLScontext *ctx, GLubyte *inoutPtr) {
  2530. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  2531. ((__GLSdispatch)ctx->dispatchCall[368])(
  2532. *(GLfloat *)(inoutPtr + 0),
  2533. *(GLfloat *)(inoutPtr + 4),
  2534. *(GLfloat *)(inoutPtr + 8)
  2535. );
  2536. }
  2537. void __gls_decode_bin_glViewport(__GLScontext *ctx, GLubyte *inoutPtr) {
  2538. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei);
  2539. ((__GLSdispatch)ctx->dispatchCall[369])(
  2540. *(GLint *)(inoutPtr + 0),
  2541. *(GLint *)(inoutPtr + 4),
  2542. *(GLsizei *)(inoutPtr + 8),
  2543. *(GLsizei *)(inoutPtr + 12)
  2544. );
  2545. }
  2546. #if __GL_EXT_blend_color
  2547. void __gls_decode_bin_glBlendColorEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2548. typedef void (*__GLSdispatch)(GLclampf, GLclampf, GLclampf, GLclampf);
  2549. ((__GLSdispatch)ctx->dispatchCall[384])(
  2550. *(GLclampf *)(inoutPtr + 0),
  2551. *(GLclampf *)(inoutPtr + 4),
  2552. *(GLclampf *)(inoutPtr + 8),
  2553. *(GLclampf *)(inoutPtr + 12)
  2554. );
  2555. }
  2556. #endif /* __GL_EXT_blend_color */
  2557. #if __GL_EXT_blend_minmax
  2558. void __gls_decode_bin_glBlendEquationEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2559. typedef void (*__GLSdispatch)(GLenum);
  2560. ((__GLSdispatch)ctx->dispatchCall[385])(
  2561. *(GLenum *)(inoutPtr + 0)
  2562. );
  2563. }
  2564. #endif /* __GL_EXT_blend_minmax */
  2565. #if __GL_EXT_polygon_offset
  2566. void __gls_decode_bin_glPolygonOffsetEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2567. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  2568. ((__GLSdispatch)ctx->dispatchCall[386])(
  2569. *(GLfloat *)(inoutPtr + 0),
  2570. *(GLfloat *)(inoutPtr + 4)
  2571. );
  2572. }
  2573. #endif /* __GL_EXT_polygon_offset */
  2574. void __gls_decode_bin_glPolygonOffset(__GLScontext *ctx, GLubyte *inoutPtr) {
  2575. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  2576. ((__GLSdispatch)ctx->dispatchCall[383])(
  2577. *(GLfloat *)(inoutPtr + 0),
  2578. *(GLfloat *)(inoutPtr + 4)
  2579. );
  2580. }
  2581. #if __GL_EXT_subtexture
  2582. void __gls_decode_bin_glTexSubImage1DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2583. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
  2584. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2585. ((__GLSdispatch)ctx->dispatchCall[387])(
  2586. *(GLenum *)(inoutPtr + 16),
  2587. *(GLint *)(inoutPtr + 20),
  2588. *(GLint *)(inoutPtr + 24),
  2589. *(GLsizei *)(inoutPtr + 4),
  2590. *(GLenum *)(inoutPtr + 8),
  2591. *(GLenum *)(inoutPtr + 12),
  2592. (GLvoid *)(inoutPtr + 28)
  2593. );
  2594. }
  2595. #endif /* __GL_EXT_subtexture */
  2596. void __gls_decode_bin_glTexSubImage1D(__GLScontext *ctx, GLubyte *inoutPtr) {
  2597. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
  2598. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2599. ((__GLSdispatch)ctx->dispatchCall[396])(
  2600. *(GLenum *)(inoutPtr + 16),
  2601. *(GLint *)(inoutPtr + 20),
  2602. *(GLint *)(inoutPtr + 24),
  2603. *(GLsizei *)(inoutPtr + 4),
  2604. *(GLenum *)(inoutPtr + 8),
  2605. *(GLenum *)(inoutPtr + 12),
  2606. (GLvoid *)(inoutPtr + 28)
  2607. );
  2608. }
  2609. #if __GL_EXT_subtexture
  2610. void __gls_decode_bin_glTexSubImage2DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2611. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  2612. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2613. ((__GLSdispatch)ctx->dispatchCall[388])(
  2614. *(GLenum *)(inoutPtr + 20),
  2615. *(GLint *)(inoutPtr + 24),
  2616. *(GLint *)(inoutPtr + 28),
  2617. *(GLint *)(inoutPtr + 32),
  2618. *(GLsizei *)(inoutPtr + 4),
  2619. *(GLsizei *)(inoutPtr + 8),
  2620. *(GLenum *)(inoutPtr + 12),
  2621. *(GLenum *)(inoutPtr + 16),
  2622. (GLvoid *)(inoutPtr + 36)
  2623. );
  2624. }
  2625. #endif /* __GL_EXT_subtexture */
  2626. void __gls_decode_bin_glTexSubImage2D(__GLScontext *ctx, GLubyte *inoutPtr) {
  2627. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  2628. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2629. ((__GLSdispatch)ctx->dispatchCall[397])(
  2630. *(GLenum *)(inoutPtr + 20),
  2631. *(GLint *)(inoutPtr + 24),
  2632. *(GLint *)(inoutPtr + 28),
  2633. *(GLint *)(inoutPtr + 32),
  2634. *(GLsizei *)(inoutPtr + 4),
  2635. *(GLsizei *)(inoutPtr + 8),
  2636. *(GLenum *)(inoutPtr + 12),
  2637. *(GLenum *)(inoutPtr + 16),
  2638. (GLvoid *)(inoutPtr + 36)
  2639. );
  2640. }
  2641. #if __GL_SGIS_multisample
  2642. void __gls_decode_bin_glSampleMaskSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  2643. typedef void (*__GLSdispatch)(GLclampf, GLboolean);
  2644. ((__GLSdispatch)ctx->dispatchCall[389])(
  2645. *(GLclampf *)(inoutPtr + 0),
  2646. *(GLboolean *)(inoutPtr + 4)
  2647. );
  2648. }
  2649. #endif /* __GL_SGIS_multisample */
  2650. #if __GL_SGIS_multisample
  2651. void __gls_decode_bin_glSamplePatternSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  2652. typedef void (*__GLSdispatch)(GLenum);
  2653. ((__GLSdispatch)ctx->dispatchCall[390])(
  2654. *(GLenum *)(inoutPtr + 0)
  2655. );
  2656. }
  2657. #endif /* __GL_SGIS_multisample */
  2658. #if __GL_EXT_convolution
  2659. void __gls_decode_bin_glConvolutionFilter1DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2660. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
  2661. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2662. ((__GLSdispatch)ctx->dispatchCall[392])(
  2663. *(GLenum *)(inoutPtr + 16),
  2664. *(GLenum *)(inoutPtr + 20),
  2665. *(GLsizei *)(inoutPtr + 4),
  2666. *(GLenum *)(inoutPtr + 8),
  2667. *(GLenum *)(inoutPtr + 12),
  2668. (GLvoid *)(inoutPtr + 24)
  2669. );
  2670. }
  2671. #endif /* __GL_EXT_convolution */
  2672. #if __GL_EXT_convolution
  2673. void __gls_decode_bin_glConvolutionFilter2DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2674. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  2675. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2676. ((__GLSdispatch)ctx->dispatchCall[393])(
  2677. *(GLenum *)(inoutPtr + 20),
  2678. *(GLenum *)(inoutPtr + 24),
  2679. *(GLsizei *)(inoutPtr + 4),
  2680. *(GLsizei *)(inoutPtr + 8),
  2681. *(GLenum *)(inoutPtr + 12),
  2682. *(GLenum *)(inoutPtr + 16),
  2683. (GLvoid *)(inoutPtr + 28)
  2684. );
  2685. }
  2686. #endif /* __GL_EXT_convolution */
  2687. #if __GL_EXT_convolution
  2688. void __gls_decode_bin_glConvolutionParameterfEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2689. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  2690. ((__GLSdispatch)ctx->dispatchCall[394])(
  2691. *(GLenum *)(inoutPtr + 0),
  2692. *(GLenum *)(inoutPtr + 4),
  2693. *(GLfloat *)(inoutPtr + 8)
  2694. );
  2695. }
  2696. #endif /* __GL_EXT_convolution */
  2697. #if __GL_EXT_convolution
  2698. void __gls_decode_bin_glConvolutionParameterfvEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2699. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  2700. ((__GLSdispatch)ctx->dispatchCall[395])(
  2701. *(GLenum *)(inoutPtr + 4),
  2702. *(GLenum *)(inoutPtr + 0),
  2703. (GLfloat *)(inoutPtr + 8)
  2704. );
  2705. }
  2706. #endif /* __GL_EXT_convolution */
  2707. #if __GL_EXT_convolution
  2708. void __gls_decode_bin_glConvolutionParameteriEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2709. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  2710. ((__GLSdispatch)ctx->dispatchCall[396])(
  2711. *(GLenum *)(inoutPtr + 0),
  2712. *(GLenum *)(inoutPtr + 4),
  2713. *(GLint *)(inoutPtr + 8)
  2714. );
  2715. }
  2716. #endif /* __GL_EXT_convolution */
  2717. #if __GL_EXT_convolution
  2718. void __gls_decode_bin_glConvolutionParameterivEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2719. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  2720. ((__GLSdispatch)ctx->dispatchCall[397])(
  2721. *(GLenum *)(inoutPtr + 4),
  2722. *(GLenum *)(inoutPtr + 0),
  2723. (GLint *)(inoutPtr + 8)
  2724. );
  2725. }
  2726. #endif /* __GL_EXT_convolution */
  2727. #if __GL_EXT_convolution
  2728. void __gls_decode_bin_glCopyConvolutionFilter1DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2729. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint, GLint, GLsizei);
  2730. ((__GLSdispatch)ctx->dispatchCall[398])(
  2731. *(GLenum *)(inoutPtr + 0),
  2732. *(GLenum *)(inoutPtr + 4),
  2733. *(GLint *)(inoutPtr + 8),
  2734. *(GLint *)(inoutPtr + 12),
  2735. *(GLsizei *)(inoutPtr + 16)
  2736. );
  2737. }
  2738. #endif /* __GL_EXT_convolution */
  2739. #if __GL_EXT_convolution
  2740. void __gls_decode_bin_glCopyConvolutionFilter2DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2741. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei);
  2742. ((__GLSdispatch)ctx->dispatchCall[399])(
  2743. *(GLenum *)(inoutPtr + 0),
  2744. *(GLenum *)(inoutPtr + 4),
  2745. *(GLint *)(inoutPtr + 8),
  2746. *(GLint *)(inoutPtr + 12),
  2747. *(GLsizei *)(inoutPtr + 16),
  2748. *(GLsizei *)(inoutPtr + 20)
  2749. );
  2750. }
  2751. #endif /* __GL_EXT_convolution */
  2752. #if __GL_EXT_convolution
  2753. void __gls_decode_bin_glGetConvolutionFilterEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2754. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum, GLvoid *);
  2755. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2756. GLenum target;
  2757. GLenum format;
  2758. GLenum type;
  2759. GLint image_count;
  2760. GLvoid *image = GLS_NONE;
  2761. __GLS_DEC_ALLOC_DECLARE(image)
  2762. target = *(GLenum *)(inoutPtr + 0);
  2763. format = *(GLenum *)(inoutPtr + 4);
  2764. type = *(GLenum *)(inoutPtr + 8);
  2765. image_count = __gls_glGetConvolutionFilterEXT_image_size(target, format, type);
  2766. __GLS_DEC_ALLOC_BIN(image, GLvoid, 1 * image_count);
  2767. if (!image) {
  2768. __GLS_CALL_ERROR(ctx, 65504, GLS_OUT_OF_MEMORY);
  2769. goto end;
  2770. }
  2771. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 12);
  2772. ctx->outArgs.count = 1;
  2773. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  2774. ((__GLSdispatch)ctx->dispatchCall[400])(
  2775. *(GLenum *)(inoutPtr + 0),
  2776. *(GLenum *)(inoutPtr + 4),
  2777. *(GLenum *)(inoutPtr + 8),
  2778. (GLvoid *)image
  2779. );
  2780. end:
  2781. ctx->outArgs = __outArgsSave;
  2782. __GLS_DEC_FREE(image);
  2783. }
  2784. #endif /* __GL_EXT_convolution */
  2785. #if __GL_EXT_convolution
  2786. void __gls_decode_bin_glGetConvolutionParameterfvEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2787. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  2788. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2789. GLenum pname;
  2790. GLint params_count;
  2791. GLfloat *params = GLS_NONE;
  2792. __GLS_DEC_ALLOC_DECLARE(params)
  2793. pname = *(GLenum *)(inoutPtr + 0);
  2794. params_count = __gls_glGetConvolutionParameterfvEXT_params_size(pname);
  2795. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2796. if (!params) {
  2797. __GLS_CALL_ERROR(ctx, 65505, GLS_OUT_OF_MEMORY);
  2798. goto end;
  2799. }
  2800. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2801. ctx->outArgs.count = 1;
  2802. ((__GLSdispatch)ctx->dispatchCall[401])(
  2803. *(GLenum *)(inoutPtr + 12),
  2804. *(GLenum *)(inoutPtr + 0),
  2805. (GLfloat *)params
  2806. );
  2807. end:
  2808. ctx->outArgs = __outArgsSave;
  2809. __GLS_DEC_FREE(params);
  2810. }
  2811. #endif /* __GL_EXT_convolution */
  2812. #if __GL_EXT_convolution
  2813. void __gls_decode_bin_glGetConvolutionParameterivEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2814. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2815. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2816. GLenum pname;
  2817. GLint params_count;
  2818. GLint *params = GLS_NONE;
  2819. __GLS_DEC_ALLOC_DECLARE(params)
  2820. pname = *(GLenum *)(inoutPtr + 0);
  2821. params_count = __gls_glGetConvolutionParameterivEXT_params_size(pname);
  2822. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2823. if (!params) {
  2824. __GLS_CALL_ERROR(ctx, 65506, GLS_OUT_OF_MEMORY);
  2825. goto end;
  2826. }
  2827. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2828. ctx->outArgs.count = 1;
  2829. ((__GLSdispatch)ctx->dispatchCall[402])(
  2830. *(GLenum *)(inoutPtr + 12),
  2831. *(GLenum *)(inoutPtr + 0),
  2832. (GLint *)params
  2833. );
  2834. end:
  2835. ctx->outArgs = __outArgsSave;
  2836. __GLS_DEC_FREE(params);
  2837. }
  2838. #endif /* __GL_EXT_convolution */
  2839. #if __GL_EXT_convolution
  2840. void __gls_decode_bin_glGetSeparableFilterEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2841. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *);
  2842. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2843. GLenum target;
  2844. GLenum format;
  2845. GLenum type;
  2846. GLint row_count;
  2847. GLint column_count;
  2848. GLint span_count;
  2849. GLvoid *row = GLS_NONE;
  2850. __GLS_DEC_ALLOC_DECLARE(row)
  2851. GLvoid *column = GLS_NONE;
  2852. __GLS_DEC_ALLOC_DECLARE(column)
  2853. GLvoid *span = GLS_NONE;
  2854. __GLS_DEC_ALLOC_DECLARE(span)
  2855. target = *(GLenum *)(inoutPtr + 0);
  2856. format = *(GLenum *)(inoutPtr + 4);
  2857. type = *(GLenum *)(inoutPtr + 8);
  2858. row_count = __gls_glGetSeparableFilterEXT_row_size(target, format, type);
  2859. __GLS_DEC_ALLOC_BIN(row, GLvoid, 1 * row_count);
  2860. if (!row) {
  2861. __GLS_CALL_ERROR(ctx, 65507, GLS_OUT_OF_MEMORY);
  2862. goto end;
  2863. }
  2864. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 12);
  2865. column_count = __gls_glGetSeparableFilterEXT_column_size(target, format, type);
  2866. __GLS_DEC_ALLOC_BIN(column, GLvoid, 1 * column_count);
  2867. if (!column) {
  2868. __GLS_CALL_ERROR(ctx, 65507, GLS_OUT_OF_MEMORY);
  2869. goto end;
  2870. }
  2871. ctx->outArgs.vals[1] = *(GLulong*)(inoutPtr + 20);
  2872. span_count = __gls_glGetSeparableFilterEXT_span_size(target, format, type);
  2873. __GLS_DEC_ALLOC_BIN(span, GLvoid, 1 * span_count);
  2874. if (!span) {
  2875. __GLS_CALL_ERROR(ctx, 65507, GLS_OUT_OF_MEMORY);
  2876. goto end;
  2877. }
  2878. ctx->outArgs.vals[2] = *(GLulong*)(inoutPtr + 28);
  2879. ctx->outArgs.count = 3;
  2880. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  2881. ((__GLSdispatch)ctx->dispatchCall[403])(
  2882. *(GLenum *)(inoutPtr + 0),
  2883. *(GLenum *)(inoutPtr + 4),
  2884. *(GLenum *)(inoutPtr + 8),
  2885. (GLvoid *)row,
  2886. (GLvoid *)column,
  2887. (GLvoid *)span
  2888. );
  2889. end:
  2890. ctx->outArgs = __outArgsSave;
  2891. __GLS_DEC_FREE(row);
  2892. __GLS_DEC_FREE(column);
  2893. __GLS_DEC_FREE(span);
  2894. }
  2895. #endif /* __GL_EXT_convolution */
  2896. #if __GL_EXT_convolution
  2897. void __gls_decode_bin_glSeparableFilter2DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2898. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *);
  2899. GLenum target;
  2900. GLsizei width;
  2901. GLenum format;
  2902. GLenum type;
  2903. GLint row_count;
  2904. target = *(GLenum *)(inoutPtr + 4);
  2905. width = *(GLsizei *)(inoutPtr + 8);
  2906. format = *(GLenum *)(inoutPtr + 16);
  2907. type = *(GLenum *)(inoutPtr + 20);
  2908. row_count = __gls_glSeparableFilter2DEXT_row_size(target, format, type, width);
  2909. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  2910. ((__GLSdispatch)ctx->dispatchCall[404])(
  2911. *(GLenum *)(inoutPtr + 4),
  2912. *(GLenum *)(inoutPtr + 24),
  2913. *(GLsizei *)(inoutPtr + 8),
  2914. *(GLsizei *)(inoutPtr + 12),
  2915. *(GLenum *)(inoutPtr + 16),
  2916. *(GLenum *)(inoutPtr + 20),
  2917. (GLvoid *)(inoutPtr + 28),
  2918. (GLvoid *)(inoutPtr + 28 + 1 * row_count)
  2919. );
  2920. }
  2921. #endif /* __GL_EXT_convolution */
  2922. #if __GL_EXT_histogram
  2923. void __gls_decode_bin_glGetHistogramEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2924. typedef void (*__GLSdispatch)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
  2925. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2926. GLenum target;
  2927. GLenum format;
  2928. GLenum type;
  2929. GLint values_count;
  2930. GLvoid *values = GLS_NONE;
  2931. __GLS_DEC_ALLOC_DECLARE(values)
  2932. target = *(GLenum *)(inoutPtr + 0);
  2933. format = *(GLenum *)(inoutPtr + 4);
  2934. type = *(GLenum *)(inoutPtr + 8);
  2935. values_count = __gls_glGetHistogramEXT_values_size(target, format, type);
  2936. __GLS_DEC_ALLOC_BIN(values, GLvoid, 1 * values_count);
  2937. if (!values) {
  2938. __GLS_CALL_ERROR(ctx, 65509, GLS_OUT_OF_MEMORY);
  2939. goto end;
  2940. }
  2941. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 12);
  2942. ctx->outArgs.count = 1;
  2943. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  2944. ((__GLSdispatch)ctx->dispatchCall[405])(
  2945. *(GLenum *)(inoutPtr + 0),
  2946. *(GLboolean *)(inoutPtr + 20),
  2947. *(GLenum *)(inoutPtr + 4),
  2948. *(GLenum *)(inoutPtr + 8),
  2949. (GLvoid *)values
  2950. );
  2951. end:
  2952. ctx->outArgs = __outArgsSave;
  2953. __GLS_DEC_FREE(values);
  2954. }
  2955. #endif /* __GL_EXT_histogram */
  2956. #if __GL_EXT_histogram
  2957. void __gls_decode_bin_glGetHistogramParameterfvEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2958. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  2959. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2960. GLenum pname;
  2961. GLint params_count;
  2962. GLfloat *params = GLS_NONE;
  2963. __GLS_DEC_ALLOC_DECLARE(params)
  2964. pname = *(GLenum *)(inoutPtr + 0);
  2965. params_count = __gls_glGetHistogramParameterfvEXT_params_size(pname);
  2966. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  2967. if (!params) {
  2968. __GLS_CALL_ERROR(ctx, 65510, GLS_OUT_OF_MEMORY);
  2969. goto end;
  2970. }
  2971. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2972. ctx->outArgs.count = 1;
  2973. ((__GLSdispatch)ctx->dispatchCall[406])(
  2974. *(GLenum *)(inoutPtr + 12),
  2975. *(GLenum *)(inoutPtr + 0),
  2976. (GLfloat *)params
  2977. );
  2978. end:
  2979. ctx->outArgs = __outArgsSave;
  2980. __GLS_DEC_FREE(params);
  2981. }
  2982. #endif /* __GL_EXT_histogram */
  2983. #if __GL_EXT_histogram
  2984. void __gls_decode_bin_glGetHistogramParameterivEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  2985. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  2986. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  2987. GLenum pname;
  2988. GLint params_count;
  2989. GLint *params = GLS_NONE;
  2990. __GLS_DEC_ALLOC_DECLARE(params)
  2991. pname = *(GLenum *)(inoutPtr + 0);
  2992. params_count = __gls_glGetHistogramParameterivEXT_params_size(pname);
  2993. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  2994. if (!params) {
  2995. __GLS_CALL_ERROR(ctx, 65511, GLS_OUT_OF_MEMORY);
  2996. goto end;
  2997. }
  2998. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  2999. ctx->outArgs.count = 1;
  3000. ((__GLSdispatch)ctx->dispatchCall[407])(
  3001. *(GLenum *)(inoutPtr + 12),
  3002. *(GLenum *)(inoutPtr + 0),
  3003. (GLint *)params
  3004. );
  3005. end:
  3006. ctx->outArgs = __outArgsSave;
  3007. __GLS_DEC_FREE(params);
  3008. }
  3009. #endif /* __GL_EXT_histogram */
  3010. #if __GL_EXT_histogram
  3011. void __gls_decode_bin_glGetMinmaxEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3012. typedef void (*__GLSdispatch)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
  3013. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3014. GLenum target;
  3015. GLenum format;
  3016. GLenum type;
  3017. GLint values_count;
  3018. GLvoid *values = GLS_NONE;
  3019. __GLS_DEC_ALLOC_DECLARE(values)
  3020. target = *(GLenum *)(inoutPtr + 0);
  3021. format = *(GLenum *)(inoutPtr + 4);
  3022. type = *(GLenum *)(inoutPtr + 8);
  3023. values_count = __gls_glGetMinmaxEXT_values_size(target, format, type);
  3024. __GLS_DEC_ALLOC_BIN(values, GLvoid, 1 * values_count);
  3025. if (!values) {
  3026. __GLS_CALL_ERROR(ctx, 65512, GLS_OUT_OF_MEMORY);
  3027. goto end;
  3028. }
  3029. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 12);
  3030. ctx->outArgs.count = 1;
  3031. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  3032. ((__GLSdispatch)ctx->dispatchCall[408])(
  3033. *(GLenum *)(inoutPtr + 0),
  3034. *(GLboolean *)(inoutPtr + 20),
  3035. *(GLenum *)(inoutPtr + 4),
  3036. *(GLenum *)(inoutPtr + 8),
  3037. (GLvoid *)values
  3038. );
  3039. end:
  3040. ctx->outArgs = __outArgsSave;
  3041. __GLS_DEC_FREE(values);
  3042. }
  3043. #endif /* __GL_EXT_histogram */
  3044. #if __GL_EXT_histogram
  3045. void __gls_decode_bin_glGetMinmaxParameterfvEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3046. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  3047. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3048. GLenum pname;
  3049. GLint params_count;
  3050. GLfloat *params = GLS_NONE;
  3051. __GLS_DEC_ALLOC_DECLARE(params)
  3052. pname = *(GLenum *)(inoutPtr + 0);
  3053. params_count = __gls_glGetMinmaxParameterfvEXT_params_size(pname);
  3054. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  3055. if (!params) {
  3056. __GLS_CALL_ERROR(ctx, 65513, GLS_OUT_OF_MEMORY);
  3057. goto end;
  3058. }
  3059. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3060. ctx->outArgs.count = 1;
  3061. ((__GLSdispatch)ctx->dispatchCall[409])(
  3062. *(GLenum *)(inoutPtr + 12),
  3063. *(GLenum *)(inoutPtr + 0),
  3064. (GLfloat *)params
  3065. );
  3066. end:
  3067. ctx->outArgs = __outArgsSave;
  3068. __GLS_DEC_FREE(params);
  3069. }
  3070. #endif /* __GL_EXT_histogram */
  3071. #if __GL_EXT_histogram
  3072. void __gls_decode_bin_glGetMinmaxParameterivEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3073. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  3074. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3075. GLenum pname;
  3076. GLint params_count;
  3077. GLint *params = GLS_NONE;
  3078. __GLS_DEC_ALLOC_DECLARE(params)
  3079. pname = *(GLenum *)(inoutPtr + 0);
  3080. params_count = __gls_glGetMinmaxParameterivEXT_params_size(pname);
  3081. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  3082. if (!params) {
  3083. __GLS_CALL_ERROR(ctx, 65514, GLS_OUT_OF_MEMORY);
  3084. goto end;
  3085. }
  3086. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3087. ctx->outArgs.count = 1;
  3088. ((__GLSdispatch)ctx->dispatchCall[410])(
  3089. *(GLenum *)(inoutPtr + 12),
  3090. *(GLenum *)(inoutPtr + 0),
  3091. (GLint *)params
  3092. );
  3093. end:
  3094. ctx->outArgs = __outArgsSave;
  3095. __GLS_DEC_FREE(params);
  3096. }
  3097. #endif /* __GL_EXT_histogram */
  3098. #if __GL_EXT_histogram
  3099. void __gls_decode_bin_glHistogramEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3100. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLenum, GLboolean);
  3101. ((__GLSdispatch)ctx->dispatchCall[411])(
  3102. *(GLenum *)(inoutPtr + 0),
  3103. *(GLsizei *)(inoutPtr + 4),
  3104. *(GLenum *)(inoutPtr + 8),
  3105. *(GLboolean *)(inoutPtr + 12)
  3106. );
  3107. }
  3108. #endif /* __GL_EXT_histogram */
  3109. #if __GL_EXT_histogram
  3110. void __gls_decode_bin_glMinmaxEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3111. typedef void (*__GLSdispatch)(GLenum, GLenum, GLboolean);
  3112. ((__GLSdispatch)ctx->dispatchCall[412])(
  3113. *(GLenum *)(inoutPtr + 0),
  3114. *(GLenum *)(inoutPtr + 4),
  3115. *(GLboolean *)(inoutPtr + 8)
  3116. );
  3117. }
  3118. #endif /* __GL_EXT_histogram */
  3119. #if __GL_EXT_histogram
  3120. void __gls_decode_bin_glResetHistogramEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3121. typedef void (*__GLSdispatch)(GLenum);
  3122. ((__GLSdispatch)ctx->dispatchCall[413])(
  3123. *(GLenum *)(inoutPtr + 0)
  3124. );
  3125. }
  3126. #endif /* __GL_EXT_histogram */
  3127. #if __GL_EXT_histogram
  3128. void __gls_decode_bin_glResetMinmaxEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3129. typedef void (*__GLSdispatch)(GLenum);
  3130. ((__GLSdispatch)ctx->dispatchCall[414])(
  3131. *(GLenum *)(inoutPtr + 0)
  3132. );
  3133. }
  3134. #endif /* __GL_EXT_histogram */
  3135. #if __GL_EXT_texture3D
  3136. void __gls_decode_bin_glTexImage3DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3137. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  3138. GLbitfield imageFlags;
  3139. imageFlags = *(GLint *)(inoutPtr + 0);
  3140. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  3141. ((__GLSdispatch)ctx->dispatchCall[415])(
  3142. *(GLenum *)(inoutPtr + 24),
  3143. *(GLint *)(inoutPtr + 28),
  3144. *(GLenum *)(inoutPtr + 32),
  3145. *(GLsizei *)(inoutPtr + 4),
  3146. *(GLsizei *)(inoutPtr + 8),
  3147. *(GLsizei *)(inoutPtr + 12),
  3148. *(GLint *)(inoutPtr + 36),
  3149. *(GLenum *)(inoutPtr + 16),
  3150. *(GLenum *)(inoutPtr + 20),
  3151. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : (GLvoid *)(inoutPtr + 40)
  3152. );
  3153. }
  3154. #endif /* __GL_EXT_texture3D */
  3155. #if __GL_EXT_subtexture
  3156. void __gls_decode_bin_glTexSubImage3DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3157. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  3158. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  3159. ((__GLSdispatch)ctx->dispatchCall[416])(
  3160. *(GLenum *)(inoutPtr + 24),
  3161. *(GLint *)(inoutPtr + 28),
  3162. *(GLint *)(inoutPtr + 32),
  3163. *(GLint *)(inoutPtr + 36),
  3164. *(GLint *)(inoutPtr + 40),
  3165. *(GLsizei *)(inoutPtr + 4),
  3166. *(GLsizei *)(inoutPtr + 8),
  3167. *(GLsizei *)(inoutPtr + 12),
  3168. *(GLenum *)(inoutPtr + 16),
  3169. *(GLenum *)(inoutPtr + 20),
  3170. (GLvoid *)(inoutPtr + 44)
  3171. );
  3172. }
  3173. #endif /* __GL_EXT_subtexture */
  3174. #if __GL_SGIS_detail_texture
  3175. void __gls_decode_bin_glDetailTexFuncSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  3176. typedef void (*__GLSdispatch)(GLenum, GLsizei, const GLfloat *);
  3177. ((__GLSdispatch)ctx->dispatchCall[417])(
  3178. *(GLenum *)(inoutPtr + 4),
  3179. *(GLsizei *)(inoutPtr + 0),
  3180. (GLfloat *)(inoutPtr + 8)
  3181. );
  3182. }
  3183. #endif /* __GL_SGIS_detail_texture */
  3184. #if __GL_SGIS_detail_texture
  3185. void __gls_decode_bin_glGetDetailTexFuncSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  3186. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  3187. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3188. GLenum target;
  3189. GLint points_count;
  3190. GLfloat *points = GLS_NONE;
  3191. __GLS_DEC_ALLOC_DECLARE(points)
  3192. target = *(GLenum *)(inoutPtr + 0);
  3193. points_count = __gls_glGetDetailTexFuncSGIS_points_size(target);
  3194. __GLS_DEC_ALLOC_BIN(points, GLfloat, 4 * points_count);
  3195. if (!points) {
  3196. __GLS_CALL_ERROR(ctx, 65490, GLS_OUT_OF_MEMORY);
  3197. goto end;
  3198. }
  3199. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3200. ctx->outArgs.count = 1;
  3201. ((__GLSdispatch)ctx->dispatchCall[418])(
  3202. *(GLenum *)(inoutPtr + 0),
  3203. (GLfloat *)points
  3204. );
  3205. end:
  3206. ctx->outArgs = __outArgsSave;
  3207. __GLS_DEC_FREE(points);
  3208. }
  3209. #endif /* __GL_SGIS_detail_texture */
  3210. #if __GL_SGIS_sharpen_texture
  3211. void __gls_decode_bin_glSharpenTexFuncSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  3212. typedef void (*__GLSdispatch)(GLenum, GLsizei, const GLfloat *);
  3213. ((__GLSdispatch)ctx->dispatchCall[419])(
  3214. *(GLenum *)(inoutPtr + 4),
  3215. *(GLsizei *)(inoutPtr + 0),
  3216. (GLfloat *)(inoutPtr + 8)
  3217. );
  3218. }
  3219. #endif /* __GL_SGIS_sharpen_texture */
  3220. #if __GL_SGIS_sharpen_texture
  3221. void __gls_decode_bin_glGetSharpenTexFuncSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  3222. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  3223. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3224. GLenum target;
  3225. GLint points_count;
  3226. GLfloat *points = GLS_NONE;
  3227. __GLS_DEC_ALLOC_DECLARE(points)
  3228. target = *(GLenum *)(inoutPtr + 0);
  3229. points_count = __gls_glGetSharpenTexFuncSGIS_points_size(target);
  3230. __GLS_DEC_ALLOC_BIN(points, GLfloat, 4 * points_count);
  3231. if (!points) {
  3232. __GLS_CALL_ERROR(ctx, 65492, GLS_OUT_OF_MEMORY);
  3233. goto end;
  3234. }
  3235. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3236. ctx->outArgs.count = 1;
  3237. ((__GLSdispatch)ctx->dispatchCall[420])(
  3238. *(GLenum *)(inoutPtr + 0),
  3239. (GLfloat *)points
  3240. );
  3241. end:
  3242. ctx->outArgs = __outArgsSave;
  3243. __GLS_DEC_FREE(points);
  3244. }
  3245. #endif /* __GL_SGIS_sharpen_texture */
  3246. #if __GL_EXT_vertex_array
  3247. void __gls_decode_bin_glArrayElementEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3248. typedef void (*__GLSdispatch)(GLint);
  3249. ((__GLSdispatch)ctx->dispatchCall[437])(
  3250. *(GLint *)(inoutPtr + 0)
  3251. );
  3252. }
  3253. #endif /* __GL_EXT_vertex_array */
  3254. void __gls_decode_bin_glArrayElement(__GLScontext *ctx, GLubyte *inoutPtr) {
  3255. typedef void (*__GLSdispatch)(GLint);
  3256. __glsSetArrayState(ctx, inoutPtr);
  3257. ((__GLSdispatch)ctx->dispatchCall[370])(
  3258. 0
  3259. );
  3260. __glsDisableArrayState(ctx, *(GLuint *)inoutPtr);
  3261. }
  3262. #if __GL_EXT_vertex_array
  3263. void __gls_decode_bin_glColorPointerEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3264. typedef void (*__GLSdispatch)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
  3265. GLint size;
  3266. GLenum type;
  3267. GLsizei stride;
  3268. GLsizei count;
  3269. GLint pointer_count;
  3270. GLvoid *pointer = GLS_NONE;
  3271. if (ctx->contextCall) goto ctxTest;
  3272. size = *(GLint *)(inoutPtr + 0);
  3273. type = *(GLenum *)(inoutPtr + 4);
  3274. stride = *(GLsizei *)(inoutPtr + 8);
  3275. count = *(GLsizei *)(inoutPtr + 12);
  3276. pointer_count = __gls_glColorPointerEXT_pointer_size(size, type, stride, count);
  3277. pointer = __glsContext_allocVertexArrayBuf(ctx, 65494, pointer_count);
  3278. if (!pointer) {
  3279. __GLS_CALL_ERROR(ctx, 65494, GLS_OUT_OF_MEMORY);
  3280. return;
  3281. }
  3282. memcpy(pointer, inoutPtr + 16, pointer_count);
  3283. ctxTest:
  3284. if (ctx->contextCall) pointer = inoutPtr + 16;
  3285. ((__GLSdispatch)ctx->dispatchCall[438])(
  3286. *(GLint *)(inoutPtr + 0),
  3287. *(GLenum *)(inoutPtr + 4),
  3288. *(GLsizei *)(inoutPtr + 8),
  3289. *(GLsizei *)(inoutPtr + 12),
  3290. (GLvoid *)pointer
  3291. );
  3292. }
  3293. #endif /* __GL_EXT_vertex_array */
  3294. void __gls_decode_bin_glColorPointer(__GLScontext *ctx, GLubyte *inoutPtr) {
  3295. // This should never be called because ColorPointer isn't captured
  3296. }
  3297. #if __GL_EXT_vertex_array
  3298. void __gls_decode_bin_glDrawArraysEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3299. typedef void (*__GLSdispatch)(GLenum, GLint, GLsizei);
  3300. ((__GLSdispatch)ctx->dispatchCall[439])(
  3301. *(GLenum *)(inoutPtr + 0),
  3302. *(GLint *)(inoutPtr + 4),
  3303. *(GLsizei *)(inoutPtr + 8)
  3304. );
  3305. }
  3306. #endif /* __GL_EXT_vertex_array */
  3307. void __gls_decode_bin_glDrawArrays(__GLScontext *ctx, GLubyte *inoutPtr) {
  3308. typedef void (*__GLSdispatch)(GLenum, GLint, GLsizei);
  3309. __glsSetArrayState(ctx, inoutPtr+4);
  3310. ((__GLSdispatch)ctx->dispatchCall[374])(
  3311. *(GLenum *)(inoutPtr + 0),
  3312. 0,
  3313. *(GLint *)(inoutPtr + 8)
  3314. );
  3315. __glsDisableArrayState(ctx, *(GLuint *)(inoutPtr+12));
  3316. }
  3317. void __gls_decode_bin_glDrawElements(__GLScontext *ctx, GLubyte *inoutPtr) {
  3318. GLsizei count;
  3319. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLenum, const GLvoid *);
  3320. __glsSetArrayState(ctx, inoutPtr+8);
  3321. count = *(GLsizei *)(inoutPtr+4);
  3322. ((__GLSdispatch)ctx->dispatchCall[375])(
  3323. *(GLenum *)(inoutPtr+0),
  3324. count,
  3325. GL_UNSIGNED_INT,
  3326. inoutPtr + *(GLint *)(inoutPtr+8) + 8 - count*sizeof(GLuint)
  3327. );
  3328. __glsDisableArrayState(ctx, *(GLuint *)(inoutPtr+16));
  3329. }
  3330. #if __GL_EXT_vertex_array
  3331. void __gls_decode_bin_glEdgeFlagPointerEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3332. typedef void (*__GLSdispatch)(GLsizei, GLsizei, const GLboolean *);
  3333. GLsizei stride;
  3334. GLsizei count;
  3335. GLint pointer_count;
  3336. GLboolean *pointer = GLS_NONE;
  3337. if (ctx->contextCall) goto ctxTest;
  3338. stride = *(GLsizei *)(inoutPtr + 0);
  3339. count = *(GLsizei *)(inoutPtr + 4);
  3340. pointer_count = __gls_glEdgeFlagPointerEXT_pointer_size(stride, count);
  3341. pointer = __glsContext_allocVertexArrayBuf(ctx, 65496, pointer_count);
  3342. if (!pointer) {
  3343. __GLS_CALL_ERROR(ctx, 65496, GLS_OUT_OF_MEMORY);
  3344. return;
  3345. }
  3346. memcpy(pointer, inoutPtr + 8, pointer_count);
  3347. ctxTest:
  3348. if (ctx->contextCall) pointer = inoutPtr + 8;
  3349. ((__GLSdispatch)ctx->dispatchCall[440])(
  3350. *(GLsizei *)(inoutPtr + 0),
  3351. *(GLsizei *)(inoutPtr + 4),
  3352. (GLboolean *)pointer
  3353. );
  3354. }
  3355. #endif /* __GL_EXT_vertex_array */
  3356. void __gls_decode_bin_glEdgeFlagPointer(__GLScontext *ctx, GLubyte *inoutPtr) {
  3357. // This should never be called because EdgeFlagPointer isn't captured
  3358. }
  3359. #if __GL_EXT_vertex_array
  3360. void __gls_decode_bin_glGetPointervEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3361. typedef void (*__GLSdispatch)(GLenum, GLvoid* *);
  3362. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3363. GLvoid* params[1];
  3364. ctx->outArgs.count = 1;
  3365. ((__GLSdispatch)ctx->dispatchCall[441])(
  3366. *(GLenum *)(inoutPtr + 8),
  3367. params
  3368. );
  3369. ctx->outArgs = __outArgsSave;
  3370. }
  3371. #endif /* __GL_EXT_vertex_array */
  3372. void __gls_decode_bin_glGetPointerv(__GLScontext *ctx, GLubyte *inoutPtr) {
  3373. typedef void (*__GLSdispatch)(GLenum, GLvoid* *);
  3374. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3375. GLvoid* params[1];
  3376. ctx->outArgs.count = 1;
  3377. ((__GLSdispatch)ctx->dispatchCall[393])(
  3378. *(GLenum *)(inoutPtr + 8),
  3379. params
  3380. );
  3381. ctx->outArgs = __outArgsSave;
  3382. }
  3383. #if __GL_EXT_vertex_array
  3384. void __gls_decode_bin_glIndexPointerEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3385. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLsizei, const GLvoid *);
  3386. GLenum type;
  3387. GLsizei stride;
  3388. GLsizei count;
  3389. GLint pointer_count;
  3390. GLvoid *pointer = GLS_NONE;
  3391. if (ctx->contextCall) goto ctxTest;
  3392. type = *(GLenum *)(inoutPtr + 0);
  3393. stride = *(GLsizei *)(inoutPtr + 4);
  3394. count = *(GLsizei *)(inoutPtr + 8);
  3395. pointer_count = __gls_glIndexPointerEXT_pointer_size(type, stride, count);
  3396. pointer = __glsContext_allocVertexArrayBuf(ctx, 65498, pointer_count);
  3397. if (!pointer) {
  3398. __GLS_CALL_ERROR(ctx, 65498, GLS_OUT_OF_MEMORY);
  3399. return;
  3400. }
  3401. memcpy(pointer, inoutPtr + 12, pointer_count);
  3402. ctxTest:
  3403. if (ctx->contextCall) pointer = inoutPtr + 12;
  3404. ((__GLSdispatch)ctx->dispatchCall[442])(
  3405. *(GLenum *)(inoutPtr + 0),
  3406. *(GLsizei *)(inoutPtr + 4),
  3407. *(GLsizei *)(inoutPtr + 8),
  3408. (GLvoid *)pointer
  3409. );
  3410. }
  3411. #endif /* __GL_EXT_vertex_array */
  3412. void __gls_decode_bin_glIndexPointer(__GLScontext *ctx, GLubyte *inoutPtr) {
  3413. // This should never be called because IndexPointer isn't captured
  3414. }
  3415. #if __GL_EXT_vertex_array
  3416. void __gls_decode_bin_glNormalPointerEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3417. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLsizei, const GLvoid *);
  3418. GLenum type;
  3419. GLsizei stride;
  3420. GLsizei count;
  3421. GLint pointer_count;
  3422. GLvoid *pointer = GLS_NONE;
  3423. if (ctx->contextCall) goto ctxTest;
  3424. type = *(GLenum *)(inoutPtr + 0);
  3425. stride = *(GLsizei *)(inoutPtr + 4);
  3426. count = *(GLsizei *)(inoutPtr + 8);
  3427. pointer_count = __gls_glNormalPointerEXT_pointer_size(type, stride, count);
  3428. pointer = __glsContext_allocVertexArrayBuf(ctx, 65499, pointer_count);
  3429. if (!pointer) {
  3430. __GLS_CALL_ERROR(ctx, 65499, GLS_OUT_OF_MEMORY);
  3431. return;
  3432. }
  3433. memcpy(pointer, inoutPtr + 12, pointer_count);
  3434. ctxTest:
  3435. if (ctx->contextCall) pointer = inoutPtr + 12;
  3436. ((__GLSdispatch)ctx->dispatchCall[443])(
  3437. *(GLenum *)(inoutPtr + 0),
  3438. *(GLsizei *)(inoutPtr + 4),
  3439. *(GLsizei *)(inoutPtr + 8),
  3440. (GLvoid *)pointer
  3441. );
  3442. }
  3443. #endif /* __GL_EXT_vertex_array */
  3444. void __gls_decode_bin_glNormalPointer(__GLScontext *ctx, GLubyte *inoutPtr) {
  3445. // This should never be called because NormalPointer isn't captured
  3446. }
  3447. #if __GL_EXT_vertex_array
  3448. void __gls_decode_bin_glTexCoordPointerEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3449. typedef void (*__GLSdispatch)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
  3450. GLint size;
  3451. GLenum type;
  3452. GLsizei stride;
  3453. GLsizei count;
  3454. GLint pointer_count;
  3455. GLvoid *pointer = GLS_NONE;
  3456. if (ctx->contextCall) goto ctxTest;
  3457. size = *(GLint *)(inoutPtr + 0);
  3458. type = *(GLenum *)(inoutPtr + 4);
  3459. stride = *(GLsizei *)(inoutPtr + 8);
  3460. count = *(GLsizei *)(inoutPtr + 12);
  3461. pointer_count = __gls_glTexCoordPointerEXT_pointer_size(size, type, stride, count);
  3462. pointer = __glsContext_allocVertexArrayBuf(ctx, 65500, pointer_count);
  3463. if (!pointer) {
  3464. __GLS_CALL_ERROR(ctx, 65500, GLS_OUT_OF_MEMORY);
  3465. return;
  3466. }
  3467. memcpy(pointer, inoutPtr + 16, pointer_count);
  3468. ctxTest:
  3469. if (ctx->contextCall) pointer = inoutPtr + 16;
  3470. ((__GLSdispatch)ctx->dispatchCall[444])(
  3471. *(GLint *)(inoutPtr + 0),
  3472. *(GLenum *)(inoutPtr + 4),
  3473. *(GLsizei *)(inoutPtr + 8),
  3474. *(GLsizei *)(inoutPtr + 12),
  3475. (GLvoid *)pointer
  3476. );
  3477. }
  3478. #endif /* __GL_EXT_vertex_array */
  3479. void __gls_decode_bin_glTexCoordPointer(__GLScontext *ctx, GLubyte *inoutPtr) {
  3480. // This should never be called because TexCoordPointer isn't captured
  3481. }
  3482. #if __GL_EXT_vertex_array
  3483. void __gls_decode_bin_glVertexPointerEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3484. typedef void (*__GLSdispatch)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
  3485. GLint size;
  3486. GLenum type;
  3487. GLsizei stride;
  3488. GLsizei count;
  3489. GLint pointer_count;
  3490. GLvoid *pointer = GLS_NONE;
  3491. if (ctx->contextCall) goto ctxTest;
  3492. size = *(GLint *)(inoutPtr + 0);
  3493. type = *(GLenum *)(inoutPtr + 4);
  3494. stride = *(GLsizei *)(inoutPtr + 8);
  3495. count = *(GLsizei *)(inoutPtr + 12);
  3496. pointer_count = __gls_glVertexPointerEXT_pointer_size(size, type, stride, count);
  3497. pointer = __glsContext_allocVertexArrayBuf(ctx, 65501, pointer_count);
  3498. if (!pointer) {
  3499. __GLS_CALL_ERROR(ctx, 65501, GLS_OUT_OF_MEMORY);
  3500. return;
  3501. }
  3502. memcpy(pointer, inoutPtr + 16, pointer_count);
  3503. ctxTest:
  3504. if (ctx->contextCall) pointer = inoutPtr + 16;
  3505. ((__GLSdispatch)ctx->dispatchCall[445])(
  3506. *(GLint *)(inoutPtr + 0),
  3507. *(GLenum *)(inoutPtr + 4),
  3508. *(GLsizei *)(inoutPtr + 8),
  3509. *(GLsizei *)(inoutPtr + 12),
  3510. (GLvoid *)pointer
  3511. );
  3512. }
  3513. #endif /* __GL_EXT_vertex_array */
  3514. void __gls_decode_bin_glVertexPointer(__GLScontext *ctx, GLubyte *inoutPtr) {
  3515. // This should never be called because VertexPointer isn't captured
  3516. }
  3517. #if __GL_EXT_texture_object
  3518. void __gls_decode_bin_glAreTexturesResidentEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3519. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, GLboolean *);
  3520. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3521. GLsizei n;
  3522. GLboolean *residences = GLS_NONE;
  3523. __GLS_DEC_ALLOC_DECLARE(residences)
  3524. n = *(GLsizei *)(inoutPtr + 0);
  3525. __GLS_DEC_ALLOC_BIN(residences, GLboolean, 1 * __GLS_MAX(n, 0));
  3526. if (!residences) {
  3527. __GLS_CALL_ERROR(ctx, 65502, GLS_OUT_OF_MEMORY);
  3528. goto end;
  3529. }
  3530. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3531. ctx->outArgs.count = 1;
  3532. ((__GLSdispatch)ctx->dispatchCall[430])(
  3533. *(GLsizei *)(inoutPtr + 0),
  3534. (GLuint *)(inoutPtr + 12),
  3535. (GLboolean *)residences
  3536. );
  3537. end:
  3538. ctx->outArgs = __outArgsSave;
  3539. __GLS_DEC_FREE(residences);
  3540. }
  3541. #endif /* __GL_EXT_texture_object */
  3542. void __gls_decode_bin_glAreTexturesResident(__GLScontext *ctx, GLubyte *inoutPtr) {
  3543. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, GLboolean *);
  3544. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3545. GLsizei n;
  3546. GLboolean *residences = GLS_NONE;
  3547. __GLS_DEC_ALLOC_DECLARE(residences)
  3548. n = *(GLsizei *)(inoutPtr + 0);
  3549. __GLS_DEC_ALLOC_BIN(residences, GLboolean, 1 * __GLS_MAX(n, 0));
  3550. if (!residences) {
  3551. __GLS_CALL_ERROR(ctx, 65502, GLS_OUT_OF_MEMORY);
  3552. goto end;
  3553. }
  3554. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3555. ctx->outArgs.count = 1;
  3556. ((__GLSdispatch)ctx->dispatchCall[386])(
  3557. *(GLsizei *)(inoutPtr + 0),
  3558. (GLuint *)(inoutPtr + 12),
  3559. (GLboolean *)residences
  3560. );
  3561. end:
  3562. ctx->outArgs = __outArgsSave;
  3563. __GLS_DEC_FREE(residences);
  3564. }
  3565. #if __GL_EXT_texture_object
  3566. void __gls_decode_bin_glBindTextureEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3567. typedef void (*__GLSdispatch)(GLenum, GLuint);
  3568. ((__GLSdispatch)ctx->dispatchCall[431])(
  3569. *(GLenum *)(inoutPtr + 0),
  3570. *(GLuint *)(inoutPtr + 4)
  3571. );
  3572. }
  3573. #endif /* __GL_EXT_texture_object */
  3574. void __gls_decode_bin_glBindTexture(__GLScontext *ctx, GLubyte *inoutPtr) {
  3575. typedef void (*__GLSdispatch)(GLenum, GLuint);
  3576. ((__GLSdispatch)ctx->dispatchCall[371])(
  3577. *(GLenum *)(inoutPtr + 0),
  3578. *(GLuint *)(inoutPtr + 4)
  3579. );
  3580. }
  3581. #if __GL_EXT_texture_object
  3582. void __gls_decode_bin_glDeleteTexturesEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3583. typedef void (*__GLSdispatch)(GLsizei, const GLuint *);
  3584. ((__GLSdispatch)ctx->dispatchCall[432])(
  3585. *(GLsizei *)(inoutPtr + 0),
  3586. (GLuint *)(inoutPtr + 4)
  3587. );
  3588. }
  3589. #endif /* __GL_EXT_texture_object */
  3590. void __gls_decode_bin_glDeleteTextures(__GLScontext *ctx, GLubyte *inoutPtr) {
  3591. typedef void (*__GLSdispatch)(GLsizei, const GLuint *);
  3592. ((__GLSdispatch)ctx->dispatchCall[391])(
  3593. *(GLsizei *)(inoutPtr + 0),
  3594. (GLuint *)(inoutPtr + 4)
  3595. );
  3596. }
  3597. #if __GL_EXT_texture_object
  3598. void __gls_decode_bin_glGenTextures(__GLScontext *ctx, GLubyte *inoutPtr) {
  3599. typedef void (*__GLSdispatch)(GLsizei, GLuint *);
  3600. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3601. GLsizei n;
  3602. GLuint *textures = GLS_NONE;
  3603. __GLS_DEC_ALLOC_DECLARE(textures)
  3604. n = *(GLsizei *)(inoutPtr + 0);
  3605. __GLS_DEC_ALLOC_BIN(textures, GLuint, 4 * __GLS_MAX(n, 0));
  3606. if (!textures) {
  3607. __GLS_CALL_ERROR(ctx, 65473, GLS_OUT_OF_MEMORY);
  3608. goto end;
  3609. }
  3610. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3611. ctx->outArgs.count = 1;
  3612. ((__GLSdispatch)ctx->dispatchCall[433])(
  3613. *(GLsizei *)(inoutPtr + 0),
  3614. (GLuint *)textures
  3615. );
  3616. end:
  3617. ctx->outArgs = __outArgsSave;
  3618. __GLS_DEC_FREE(textures);
  3619. }
  3620. #endif /* __GL_EXT_texture_object */
  3621. void __gls_decode_bin_glGenTextures(__GLScontext *ctx, GLubyte *inoutPtr) {
  3622. typedef void (*__GLSdispatch)(GLsizei, GLuint *);
  3623. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3624. GLsizei n;
  3625. GLuint *textures = GLS_NONE;
  3626. __GLS_DEC_ALLOC_DECLARE(textures)
  3627. n = *(GLsizei *)(inoutPtr + 0);
  3628. __GLS_DEC_ALLOC_BIN(textures, GLuint, 4 * __GLS_MAX(n, 0));
  3629. if (!textures) {
  3630. __GLS_CALL_ERROR(ctx, 65473, GLS_OUT_OF_MEMORY);
  3631. goto end;
  3632. }
  3633. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3634. ctx->outArgs.count = 1;
  3635. ((__GLSdispatch)ctx->dispatchCall[392])(
  3636. *(GLsizei *)(inoutPtr + 0),
  3637. (GLuint *)textures
  3638. );
  3639. end:
  3640. ctx->outArgs = __outArgsSave;
  3641. __GLS_DEC_FREE(textures);
  3642. }
  3643. #if __GL_EXT_texture_object
  3644. void __gls_decode_bin_glIsTextureEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3645. typedef void (*__GLSdispatch)(GLuint);
  3646. ((__GLSdispatch)ctx->dispatchCall[434])(
  3647. *(GLuint *)(inoutPtr + 0)
  3648. );
  3649. }
  3650. #endif /* __GL_EXT_texture_object */
  3651. void __gls_decode_bin_glIsTexture(__GLScontext *ctx, GLubyte *inoutPtr) {
  3652. typedef void (*__GLSdispatch)(GLuint);
  3653. ((__GLSdispatch)ctx->dispatchCall[394])(
  3654. *(GLuint *)(inoutPtr + 0)
  3655. );
  3656. }
  3657. #if __GL_EXT_texture_object
  3658. void __gls_decode_bin_glPrioritizeTexturesEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3659. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, const GLclampf *);
  3660. GLsizei n;
  3661. n = *(GLsizei *)(inoutPtr + 0);
  3662. ((__GLSdispatch)ctx->dispatchCall[435])(
  3663. *(GLsizei *)(inoutPtr + 0),
  3664. (GLuint *)(inoutPtr + 4),
  3665. (GLclampf *)(inoutPtr + 4 + 4 * __GLS_MAX(n, 0))
  3666. );
  3667. }
  3668. #endif /* __GL_EXT_texture_object */
  3669. void __gls_decode_bin_glPrioritizeTextures(__GLScontext *ctx, GLubyte *inoutPtr) {
  3670. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, const GLclampf *);
  3671. GLsizei n;
  3672. n = *(GLsizei *)(inoutPtr + 0);
  3673. ((__GLSdispatch)ctx->dispatchCall[395])(
  3674. *(GLsizei *)(inoutPtr + 0),
  3675. (GLuint *)(inoutPtr + 4),
  3676. (GLclampf *)(inoutPtr + 4 + 4 * __GLS_MAX(n, 0))
  3677. );
  3678. }
  3679. #if __GL_EXT_paletted_texture
  3680. void __gls_decode_bin_glColorTableEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3681. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
  3682. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  3683. ((__GLSdispatch)ctx->dispatchCall[452])(
  3684. *(GLenum *)(inoutPtr + 16),
  3685. *(GLenum *)(inoutPtr + 20),
  3686. *(GLsizei *)(inoutPtr + 4),
  3687. *(GLenum *)(inoutPtr + 8),
  3688. *(GLenum *)(inoutPtr + 12),
  3689. (GLvoid *)(inoutPtr + 24)
  3690. );
  3691. }
  3692. #endif /* __GL_EXT_paletted_texture */
  3693. #if __GL_SGI_color_table
  3694. void __gls_decode_bin_glColorTableParameterfvSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3695. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3696. ((__GLSdispatch)ctx->dispatchCall[437])(
  3697. *(GLenum *)(inoutPtr + 4),
  3698. *(GLenum *)(inoutPtr + 0),
  3699. (GLfloat *)(inoutPtr + 8)
  3700. );
  3701. }
  3702. #endif /* __GL_SGI_color_table */
  3703. #if __GL_SGI_color_table
  3704. void __gls_decode_bin_glColorTableParameterivSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3705. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3706. ((__GLSdispatch)ctx->dispatchCall[438])(
  3707. *(GLenum *)(inoutPtr + 4),
  3708. *(GLenum *)(inoutPtr + 0),
  3709. (GLint *)(inoutPtr + 8)
  3710. );
  3711. }
  3712. #endif /* __GL_SGI_color_table */
  3713. #if __GL_SGI_color_table
  3714. void __gls_decode_bin_glCopyColorTableSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3715. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint, GLint, GLsizei);
  3716. ((__GLSdispatch)ctx->dispatchCall[439])(
  3717. *(GLenum *)(inoutPtr + 0),
  3718. *(GLenum *)(inoutPtr + 4),
  3719. *(GLint *)(inoutPtr + 8),
  3720. *(GLint *)(inoutPtr + 12),
  3721. *(GLsizei *)(inoutPtr + 16)
  3722. );
  3723. }
  3724. #endif /* __GL_SGI_color_table */
  3725. #if __GL_EXT_paletted_texture
  3726. void __gls_decode_bin_glGetColorTableEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3727. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum, GLvoid *);
  3728. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3729. GLenum target;
  3730. GLenum format;
  3731. GLenum type;
  3732. GLint table_count;
  3733. GLvoid *table = GLS_NONE;
  3734. __GLS_DEC_ALLOC_DECLARE(table)
  3735. target = *(GLenum *)(inoutPtr + 0);
  3736. format = *(GLenum *)(inoutPtr + 4);
  3737. type = *(GLenum *)(inoutPtr + 8);
  3738. table_count = __gls_glGetColorTableEXT_table_size(ctx, target, format, type);
  3739. __GLS_DEC_ALLOC_BIN(table, GLvoid, 1 * table_count);
  3740. if (!table) {
  3741. __GLS_CALL_ERROR(ctx, 65480, GLS_OUT_OF_MEMORY);
  3742. goto end;
  3743. }
  3744. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 12);
  3745. ctx->outArgs.count = 1;
  3746. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  3747. ((__GLSdispatch)ctx->dispatchCall[456])(
  3748. *(GLenum *)(inoutPtr + 0),
  3749. *(GLenum *)(inoutPtr + 4),
  3750. *(GLenum *)(inoutPtr + 8),
  3751. (GLvoid *)table
  3752. );
  3753. end:
  3754. ctx->outArgs = __outArgsSave;
  3755. __GLS_DEC_FREE(table);
  3756. }
  3757. #endif /* __GL_EXT_paletted_texture */
  3758. #if __GL_EXT_paletted_texture
  3759. void __gls_decode_bin_glGetColorTableParameterfvEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3760. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  3761. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3762. GLenum pname;
  3763. GLint params_count;
  3764. GLfloat *params = GLS_NONE;
  3765. __GLS_DEC_ALLOC_DECLARE(params)
  3766. pname = *(GLenum *)(inoutPtr + 0);
  3767. params_count = __gls_glGetColorTableParameterfvEXT_params_size(pname);
  3768. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  3769. if (!params) {
  3770. __GLS_CALL_ERROR(ctx, 65481, GLS_OUT_OF_MEMORY);
  3771. goto end;
  3772. }
  3773. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3774. ctx->outArgs.count = 1;
  3775. ((__GLSdispatch)ctx->dispatchCall[457])(
  3776. *(GLenum *)(inoutPtr + 12),
  3777. *(GLenum *)(inoutPtr + 0),
  3778. (GLfloat *)params
  3779. );
  3780. end:
  3781. ctx->outArgs = __outArgsSave;
  3782. __GLS_DEC_FREE(params);
  3783. }
  3784. #endif /* __GL_EXT_paletted_texture */
  3785. #if __GL_EXT_paletted_texture
  3786. void __gls_decode_bin_glGetColorTableParameterivEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3787. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  3788. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3789. GLenum pname;
  3790. GLint params_count;
  3791. GLint *params = GLS_NONE;
  3792. __GLS_DEC_ALLOC_DECLARE(params)
  3793. pname = *(GLenum *)(inoutPtr + 0);
  3794. params_count = __gls_glGetColorTableParameterivEXT_params_size(pname);
  3795. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  3796. if (!params) {
  3797. __GLS_CALL_ERROR(ctx, 65482, GLS_OUT_OF_MEMORY);
  3798. goto end;
  3799. }
  3800. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3801. ctx->outArgs.count = 1;
  3802. ((__GLSdispatch)ctx->dispatchCall[458])(
  3803. *(GLenum *)(inoutPtr + 12),
  3804. *(GLenum *)(inoutPtr + 0),
  3805. (GLint *)params
  3806. );
  3807. end:
  3808. ctx->outArgs = __outArgsSave;
  3809. __GLS_DEC_FREE(params);
  3810. }
  3811. #endif /* __GL_EXT_paletted_texture */
  3812. #if __GL_SGI_texture_color_table
  3813. void __gls_decode_bin_glGetTexColorTableParameterfvSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3814. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  3815. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3816. GLenum pname;
  3817. GLint params_count;
  3818. GLfloat *params = GLS_NONE;
  3819. __GLS_DEC_ALLOC_DECLARE(params)
  3820. pname = *(GLenum *)(inoutPtr + 0);
  3821. params_count = __gls_glGetTexColorTableParameterfvSGI_params_size(pname);
  3822. __GLS_DEC_ALLOC_BIN(params, GLfloat, 4 * params_count);
  3823. if (!params) {
  3824. __GLS_CALL_ERROR(ctx, 65483, GLS_OUT_OF_MEMORY);
  3825. goto end;
  3826. }
  3827. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3828. ctx->outArgs.count = 1;
  3829. ((__GLSdispatch)ctx->dispatchCall[443])(
  3830. *(GLenum *)(inoutPtr + 12),
  3831. *(GLenum *)(inoutPtr + 0),
  3832. (GLfloat *)params
  3833. );
  3834. end:
  3835. ctx->outArgs = __outArgsSave;
  3836. __GLS_DEC_FREE(params);
  3837. }
  3838. #endif /* __GL_SGI_texture_color_table */
  3839. #if __GL_SGI_texture_color_table
  3840. void __gls_decode_bin_glGetTexColorTableParameterivSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3841. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  3842. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3843. GLenum pname;
  3844. GLint params_count;
  3845. GLint *params = GLS_NONE;
  3846. __GLS_DEC_ALLOC_DECLARE(params)
  3847. pname = *(GLenum *)(inoutPtr + 0);
  3848. params_count = __gls_glGetTexColorTableParameterivSGI_params_size(pname);
  3849. __GLS_DEC_ALLOC_BIN(params, GLint, 4 * params_count);
  3850. if (!params) {
  3851. __GLS_CALL_ERROR(ctx, 65484, GLS_OUT_OF_MEMORY);
  3852. goto end;
  3853. }
  3854. ctx->outArgs.vals[0] = *(GLulong*)(inoutPtr + 4);
  3855. ctx->outArgs.count = 1;
  3856. ((__GLSdispatch)ctx->dispatchCall[444])(
  3857. *(GLenum *)(inoutPtr + 12),
  3858. *(GLenum *)(inoutPtr + 0),
  3859. (GLint *)params
  3860. );
  3861. end:
  3862. ctx->outArgs = __outArgsSave;
  3863. __GLS_DEC_FREE(params);
  3864. }
  3865. #endif /* __GL_SGI_texture_color_table */
  3866. #if __GL_SGI_texture_color_table
  3867. void __gls_decode_bin_glTexColorTableParameterfvSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3868. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3869. ((__GLSdispatch)ctx->dispatchCall[445])(
  3870. *(GLenum *)(inoutPtr + 4),
  3871. *(GLenum *)(inoutPtr + 0),
  3872. (GLfloat *)(inoutPtr + 8)
  3873. );
  3874. }
  3875. #endif /* __GL_SGI_texture_color_table */
  3876. #if __GL_SGI_texture_color_table
  3877. void __gls_decode_bin_glTexColorTableParameterivSGI(__GLScontext *ctx, GLubyte *inoutPtr) {
  3878. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3879. ((__GLSdispatch)ctx->dispatchCall[446])(
  3880. *(GLenum *)(inoutPtr + 4),
  3881. *(GLenum *)(inoutPtr + 0),
  3882. (GLint *)(inoutPtr + 8)
  3883. );
  3884. }
  3885. #endif /* __GL_SGI_texture_color_table */
  3886. #if __GL_EXT_copy_texture
  3887. void __gls_decode_bin_glCopyTexImage1DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3888. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  3889. ((__GLSdispatch)ctx->dispatchCall[447])(
  3890. *(GLenum *)(inoutPtr + 0),
  3891. *(GLint *)(inoutPtr + 4),
  3892. *(GLenum *)(inoutPtr + 8),
  3893. *(GLint *)(inoutPtr + 12),
  3894. *(GLint *)(inoutPtr + 16),
  3895. *(GLsizei *)(inoutPtr + 20),
  3896. *(GLint *)(inoutPtr + 24)
  3897. );
  3898. }
  3899. #endif /* __GL_EXT_copy_texture */
  3900. void __gls_decode_bin_glCopyTexImage1D(__GLScontext *ctx, GLubyte *inoutPtr) {
  3901. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  3902. ((__GLSdispatch)ctx->dispatchCall[387])(
  3903. *(GLenum *)(inoutPtr + 0),
  3904. *(GLint *)(inoutPtr + 4),
  3905. *(GLenum *)(inoutPtr + 8),
  3906. *(GLint *)(inoutPtr + 12),
  3907. *(GLint *)(inoutPtr + 16),
  3908. *(GLsizei *)(inoutPtr + 20),
  3909. *(GLint *)(inoutPtr + 24)
  3910. );
  3911. }
  3912. #if __GL_EXT_copy_texture
  3913. void __gls_decode_bin_glCopyTexImage2DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3914. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  3915. ((__GLSdispatch)ctx->dispatchCall[448])(
  3916. *(GLenum *)(inoutPtr + 0),
  3917. *(GLint *)(inoutPtr + 4),
  3918. *(GLenum *)(inoutPtr + 8),
  3919. *(GLint *)(inoutPtr + 12),
  3920. *(GLint *)(inoutPtr + 16),
  3921. *(GLsizei *)(inoutPtr + 20),
  3922. *(GLsizei *)(inoutPtr + 24),
  3923. *(GLint *)(inoutPtr + 28)
  3924. );
  3925. }
  3926. #endif /* __GL_EXT_copy_texture */
  3927. void __gls_decode_bin_glCopyTexImage2D(__GLScontext *ctx, GLubyte *inoutPtr) {
  3928. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  3929. ((__GLSdispatch)ctx->dispatchCall[388])(
  3930. *(GLenum *)(inoutPtr + 0),
  3931. *(GLint *)(inoutPtr + 4),
  3932. *(GLenum *)(inoutPtr + 8),
  3933. *(GLint *)(inoutPtr + 12),
  3934. *(GLint *)(inoutPtr + 16),
  3935. *(GLsizei *)(inoutPtr + 20),
  3936. *(GLsizei *)(inoutPtr + 24),
  3937. *(GLint *)(inoutPtr + 28)
  3938. );
  3939. }
  3940. #if __GL_EXT_copy_texture
  3941. void __gls_decode_bin_glCopyTexSubImage1DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3942. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
  3943. ((__GLSdispatch)ctx->dispatchCall[449])(
  3944. *(GLenum *)(inoutPtr + 0),
  3945. *(GLint *)(inoutPtr + 4),
  3946. *(GLint *)(inoutPtr + 8),
  3947. *(GLint *)(inoutPtr + 12),
  3948. *(GLint *)(inoutPtr + 16),
  3949. *(GLsizei *)(inoutPtr + 20)
  3950. );
  3951. }
  3952. #endif /* __GL_EXT_copy_texture */
  3953. void __gls_decode_bin_glCopyTexSubImage1D(__GLScontext *ctx, GLubyte *inoutPtr) {
  3954. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
  3955. ((__GLSdispatch)ctx->dispatchCall[389])(
  3956. *(GLenum *)(inoutPtr + 0),
  3957. *(GLint *)(inoutPtr + 4),
  3958. *(GLint *)(inoutPtr + 8),
  3959. *(GLint *)(inoutPtr + 12),
  3960. *(GLint *)(inoutPtr + 16),
  3961. *(GLsizei *)(inoutPtr + 20)
  3962. );
  3963. }
  3964. #if __GL_EXT_copy_texture
  3965. void __gls_decode_bin_glCopyTexSubImage2DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3966. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  3967. ((__GLSdispatch)ctx->dispatchCall[450])(
  3968. *(GLenum *)(inoutPtr + 0),
  3969. *(GLint *)(inoutPtr + 4),
  3970. *(GLint *)(inoutPtr + 8),
  3971. *(GLint *)(inoutPtr + 12),
  3972. *(GLint *)(inoutPtr + 16),
  3973. *(GLint *)(inoutPtr + 20),
  3974. *(GLsizei *)(inoutPtr + 24),
  3975. *(GLsizei *)(inoutPtr + 28)
  3976. );
  3977. }
  3978. #endif /* __GL_EXT_copy_texture */
  3979. void __gls_decode_bin_glCopyTexSubImage2D(__GLScontext *ctx, GLubyte *inoutPtr) {
  3980. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  3981. ((__GLSdispatch)ctx->dispatchCall[390])(
  3982. *(GLenum *)(inoutPtr + 0),
  3983. *(GLint *)(inoutPtr + 4),
  3984. *(GLint *)(inoutPtr + 8),
  3985. *(GLint *)(inoutPtr + 12),
  3986. *(GLint *)(inoutPtr + 16),
  3987. *(GLint *)(inoutPtr + 20),
  3988. *(GLsizei *)(inoutPtr + 24),
  3989. *(GLsizei *)(inoutPtr + 28)
  3990. );
  3991. }
  3992. #if __GL_EXT_copy_texture
  3993. void __gls_decode_bin_glCopyTexSubImage3DEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  3994. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  3995. ((__GLSdispatch)ctx->dispatchCall[451])(
  3996. *(GLenum *)(inoutPtr + 0),
  3997. *(GLint *)(inoutPtr + 4),
  3998. *(GLint *)(inoutPtr + 8),
  3999. *(GLint *)(inoutPtr + 12),
  4000. *(GLint *)(inoutPtr + 16),
  4001. *(GLint *)(inoutPtr + 20),
  4002. *(GLint *)(inoutPtr + 24),
  4003. *(GLsizei *)(inoutPtr + 28),
  4004. *(GLsizei *)(inoutPtr + 32)
  4005. );
  4006. }
  4007. #endif /* __GL_EXT_copy_texture */
  4008. #if __GL_SGIS_texture4D
  4009. void __gls_decode_bin_glTexImage4DSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  4010. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  4011. GLbitfield imageFlags;
  4012. imageFlags = *(GLint *)(inoutPtr + 0);
  4013. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  4014. ((__GLSdispatch)ctx->dispatchCall[452])(
  4015. *(GLenum *)(inoutPtr + 28),
  4016. *(GLint *)(inoutPtr + 32),
  4017. *(GLenum *)(inoutPtr + 36),
  4018. *(GLsizei *)(inoutPtr + 4),
  4019. *(GLsizei *)(inoutPtr + 8),
  4020. *(GLsizei *)(inoutPtr + 12),
  4021. *(GLsizei *)(inoutPtr + 16),
  4022. *(GLint *)(inoutPtr + 40),
  4023. *(GLenum *)(inoutPtr + 20),
  4024. *(GLenum *)(inoutPtr + 24),
  4025. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : (GLvoid *)(inoutPtr + 44)
  4026. );
  4027. }
  4028. #endif /* __GL_SGIS_texture4D */
  4029. #if __GL_SGIS_texture4D
  4030. void __gls_decode_bin_glTexSubImage4DSGIS(__GLScontext *ctx, GLubyte *inoutPtr) {
  4031. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  4032. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  4033. ((__GLSdispatch)ctx->dispatchCall[453])(
  4034. *(GLenum *)(inoutPtr + 28),
  4035. *(GLint *)(inoutPtr + 32),
  4036. *(GLint *)(inoutPtr + 36),
  4037. *(GLint *)(inoutPtr + 40),
  4038. *(GLint *)(inoutPtr + 44),
  4039. *(GLint *)(inoutPtr + 48),
  4040. *(GLsizei *)(inoutPtr + 4),
  4041. *(GLsizei *)(inoutPtr + 8),
  4042. *(GLsizei *)(inoutPtr + 12),
  4043. *(GLsizei *)(inoutPtr + 16),
  4044. *(GLenum *)(inoutPtr + 20),
  4045. *(GLenum *)(inoutPtr + 24),
  4046. (GLvoid *)(inoutPtr + 52)
  4047. );
  4048. }
  4049. #endif /* __GL_SGIS_texture4D */
  4050. #if __GL_SGIX_pixel_texture
  4051. void __gls_decode_bin_glPixelTexGenSGIX(__GLScontext *ctx, GLubyte *inoutPtr) {
  4052. typedef void (*__GLSdispatch)(GLenum);
  4053. ((__GLSdispatch)ctx->dispatchCall[454])(
  4054. *(GLenum *)(inoutPtr + 0)
  4055. );
  4056. }
  4057. #endif /* __GL_SGIX_pixel_texture */
  4058. #ifdef __GLS_PLATFORM_WIN32
  4059. void __gls_decode_bin_glsCallStream(__GLScontext *ctx, GLubyte *inoutPtr) {
  4060. typedef void (*__GLSdispatch)(void *);
  4061. ((__GLSdispatch)ctx->dispatchCall[18])(
  4062. inoutPtr
  4063. );
  4064. }
  4065. void __gls_decode_bin_glsRequireExtension(__GLScontext *ctx, GLubyte *inoutPtr) {
  4066. typedef void (*__GLSdispatch)(void *);
  4067. ((__GLSdispatch)ctx->dispatchCall[31])(
  4068. inoutPtr
  4069. );
  4070. }
  4071. void __gls_decode_bin_glsBeginObj(__GLScontext *ctx, GLubyte *inoutPtr) {
  4072. typedef void (*__GLSdispatch)(void *);
  4073. ((__GLSdispatch)ctx->dispatchCall[34])(
  4074. inoutPtr
  4075. );
  4076. }
  4077. void __gls_decode_bin_glsComment(__GLScontext *ctx, GLubyte *inoutPtr) {
  4078. typedef void (*__GLSdispatch)(void *);
  4079. ((__GLSdispatch)ctx->dispatchCall[36])(
  4080. inoutPtr
  4081. );
  4082. }
  4083. void __gls_decode_bin_glColor3bv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4084. typedef void (*__GLSdispatch)(void *);
  4085. ((__GLSdispatch)ctx->dispatchCall[74])(
  4086. inoutPtr
  4087. );
  4088. }
  4089. void __gls_decode_bin_glColor3dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4090. typedef void (*__GLSdispatch)(void *);
  4091. ((__GLSdispatch)ctx->dispatchCall[76])(
  4092. inoutPtr
  4093. );
  4094. }
  4095. void __gls_decode_bin_glColor3fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4096. typedef void (*__GLSdispatch)(void *);
  4097. ((__GLSdispatch)ctx->dispatchCall[78])(
  4098. inoutPtr
  4099. );
  4100. }
  4101. void __gls_decode_bin_glColor3iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4102. typedef void (*__GLSdispatch)(void *);
  4103. ((__GLSdispatch)ctx->dispatchCall[80])(
  4104. inoutPtr
  4105. );
  4106. }
  4107. void __gls_decode_bin_glColor3sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4108. typedef void (*__GLSdispatch)(void *);
  4109. ((__GLSdispatch)ctx->dispatchCall[82])(
  4110. inoutPtr
  4111. );
  4112. }
  4113. void __gls_decode_bin_glColor3ubv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4114. typedef void (*__GLSdispatch)(void *);
  4115. ((__GLSdispatch)ctx->dispatchCall[84])(
  4116. inoutPtr
  4117. );
  4118. }
  4119. void __gls_decode_bin_glColor3uiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4120. typedef void (*__GLSdispatch)(void *);
  4121. ((__GLSdispatch)ctx->dispatchCall[86])(
  4122. inoutPtr
  4123. );
  4124. }
  4125. void __gls_decode_bin_glColor3usv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4126. typedef void (*__GLSdispatch)(void *);
  4127. ((__GLSdispatch)ctx->dispatchCall[88])(
  4128. inoutPtr
  4129. );
  4130. }
  4131. void __gls_decode_bin_glColor4bv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4132. typedef void (*__GLSdispatch)(void *);
  4133. ((__GLSdispatch)ctx->dispatchCall[90])(
  4134. inoutPtr
  4135. );
  4136. }
  4137. void __gls_decode_bin_glColor4dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4138. typedef void (*__GLSdispatch)(void *);
  4139. ((__GLSdispatch)ctx->dispatchCall[92])(
  4140. inoutPtr
  4141. );
  4142. }
  4143. void __gls_decode_bin_glColor4fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4144. typedef void (*__GLSdispatch)(void *);
  4145. ((__GLSdispatch)ctx->dispatchCall[94])(
  4146. inoutPtr
  4147. );
  4148. }
  4149. void __gls_decode_bin_glColor4iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4150. typedef void (*__GLSdispatch)(void *);
  4151. ((__GLSdispatch)ctx->dispatchCall[96])(
  4152. inoutPtr
  4153. );
  4154. }
  4155. void __gls_decode_bin_glColor4sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4156. typedef void (*__GLSdispatch)(void *);
  4157. ((__GLSdispatch)ctx->dispatchCall[98])(
  4158. inoutPtr
  4159. );
  4160. }
  4161. void __gls_decode_bin_glColor4ubv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4162. typedef void (*__GLSdispatch)(void *);
  4163. ((__GLSdispatch)ctx->dispatchCall[100])(
  4164. inoutPtr
  4165. );
  4166. }
  4167. void __gls_decode_bin_glColor4uiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4168. typedef void (*__GLSdispatch)(void *);
  4169. ((__GLSdispatch)ctx->dispatchCall[102])(
  4170. inoutPtr
  4171. );
  4172. }
  4173. void __gls_decode_bin_glColor4usv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4174. typedef void (*__GLSdispatch)(void *);
  4175. ((__GLSdispatch)ctx->dispatchCall[104])(
  4176. inoutPtr
  4177. );
  4178. }
  4179. void __gls_decode_bin_glEdgeFlagv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4180. typedef void (*__GLSdispatch)(void *);
  4181. ((__GLSdispatch)ctx->dispatchCall[106])(
  4182. inoutPtr
  4183. );
  4184. }
  4185. void __gls_decode_bin_glIndexdv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4186. typedef void (*__GLSdispatch)(void *);
  4187. ((__GLSdispatch)ctx->dispatchCall[109])(
  4188. inoutPtr
  4189. );
  4190. }
  4191. void __gls_decode_bin_glIndexfv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4192. typedef void (*__GLSdispatch)(void *);
  4193. ((__GLSdispatch)ctx->dispatchCall[111])(
  4194. inoutPtr
  4195. );
  4196. }
  4197. void __gls_decode_bin_glIndexiv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4198. typedef void (*__GLSdispatch)(void *);
  4199. ((__GLSdispatch)ctx->dispatchCall[113])(
  4200. inoutPtr
  4201. );
  4202. }
  4203. void __gls_decode_bin_glIndexsv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4204. typedef void (*__GLSdispatch)(void *);
  4205. ((__GLSdispatch)ctx->dispatchCall[115])(
  4206. inoutPtr
  4207. );
  4208. }
  4209. void __gls_decode_bin_glIndexubv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4210. typedef void (*__GLSdispatch)(void *);
  4211. ((__GLSdispatch)ctx->dispatchCall[380])(
  4212. inoutPtr
  4213. );
  4214. }
  4215. void __gls_decode_bin_glNormal3bv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4216. typedef void (*__GLSdispatch)(void *);
  4217. ((__GLSdispatch)ctx->dispatchCall[117])(
  4218. inoutPtr
  4219. );
  4220. }
  4221. void __gls_decode_bin_glNormal3dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4222. typedef void (*__GLSdispatch)(void *);
  4223. ((__GLSdispatch)ctx->dispatchCall[119])(
  4224. inoutPtr
  4225. );
  4226. }
  4227. void __gls_decode_bin_glNormal3fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4228. typedef void (*__GLSdispatch)(void *);
  4229. ((__GLSdispatch)ctx->dispatchCall[121])(
  4230. inoutPtr
  4231. );
  4232. }
  4233. void __gls_decode_bin_glNormal3iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4234. typedef void (*__GLSdispatch)(void *);
  4235. ((__GLSdispatch)ctx->dispatchCall[123])(
  4236. inoutPtr
  4237. );
  4238. }
  4239. void __gls_decode_bin_glNormal3sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4240. typedef void (*__GLSdispatch)(void *);
  4241. ((__GLSdispatch)ctx->dispatchCall[125])(
  4242. inoutPtr
  4243. );
  4244. }
  4245. void __gls_decode_bin_glRasterPos2dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4246. typedef void (*__GLSdispatch)(void *);
  4247. ((__GLSdispatch)ctx->dispatchCall[127])(
  4248. inoutPtr
  4249. );
  4250. }
  4251. void __gls_decode_bin_glRasterPos2fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4252. typedef void (*__GLSdispatch)(void *);
  4253. ((__GLSdispatch)ctx->dispatchCall[129])(
  4254. inoutPtr
  4255. );
  4256. }
  4257. void __gls_decode_bin_glRasterPos2iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4258. typedef void (*__GLSdispatch)(void *);
  4259. ((__GLSdispatch)ctx->dispatchCall[131])(
  4260. inoutPtr
  4261. );
  4262. }
  4263. void __gls_decode_bin_glRasterPos2sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4264. typedef void (*__GLSdispatch)(void *);
  4265. ((__GLSdispatch)ctx->dispatchCall[133])(
  4266. inoutPtr
  4267. );
  4268. }
  4269. void __gls_decode_bin_glRasterPos3dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4270. typedef void (*__GLSdispatch)(void *);
  4271. ((__GLSdispatch)ctx->dispatchCall[135])(
  4272. inoutPtr
  4273. );
  4274. }
  4275. void __gls_decode_bin_glRasterPos3fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4276. typedef void (*__GLSdispatch)(void *);
  4277. ((__GLSdispatch)ctx->dispatchCall[137])(
  4278. inoutPtr
  4279. );
  4280. }
  4281. void __gls_decode_bin_glRasterPos3iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4282. typedef void (*__GLSdispatch)(void *);
  4283. ((__GLSdispatch)ctx->dispatchCall[139])(
  4284. inoutPtr
  4285. );
  4286. }
  4287. void __gls_decode_bin_glRasterPos3sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4288. typedef void (*__GLSdispatch)(void *);
  4289. ((__GLSdispatch)ctx->dispatchCall[141])(
  4290. inoutPtr
  4291. );
  4292. }
  4293. void __gls_decode_bin_glRasterPos4dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4294. typedef void (*__GLSdispatch)(void *);
  4295. ((__GLSdispatch)ctx->dispatchCall[143])(
  4296. inoutPtr
  4297. );
  4298. }
  4299. void __gls_decode_bin_glRasterPos4fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4300. typedef void (*__GLSdispatch)(void *);
  4301. ((__GLSdispatch)ctx->dispatchCall[145])(
  4302. inoutPtr
  4303. );
  4304. }
  4305. void __gls_decode_bin_glRasterPos4iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4306. typedef void (*__GLSdispatch)(void *);
  4307. ((__GLSdispatch)ctx->dispatchCall[147])(
  4308. inoutPtr
  4309. );
  4310. }
  4311. void __gls_decode_bin_glRasterPos4sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4312. typedef void (*__GLSdispatch)(void *);
  4313. ((__GLSdispatch)ctx->dispatchCall[149])(
  4314. inoutPtr
  4315. );
  4316. }
  4317. void __gls_decode_bin_glTexCoord1dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4318. typedef void (*__GLSdispatch)(void *);
  4319. ((__GLSdispatch)ctx->dispatchCall[159])(
  4320. inoutPtr
  4321. );
  4322. }
  4323. void __gls_decode_bin_glTexCoord1fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4324. typedef void (*__GLSdispatch)(void *);
  4325. ((__GLSdispatch)ctx->dispatchCall[161])(
  4326. inoutPtr
  4327. );
  4328. }
  4329. void __gls_decode_bin_glTexCoord1iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4330. typedef void (*__GLSdispatch)(void *);
  4331. ((__GLSdispatch)ctx->dispatchCall[163])(
  4332. inoutPtr
  4333. );
  4334. }
  4335. void __gls_decode_bin_glTexCoord1sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4336. typedef void (*__GLSdispatch)(void *);
  4337. ((__GLSdispatch)ctx->dispatchCall[165])(
  4338. inoutPtr
  4339. );
  4340. }
  4341. void __gls_decode_bin_glTexCoord2dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4342. typedef void (*__GLSdispatch)(void *);
  4343. ((__GLSdispatch)ctx->dispatchCall[167])(
  4344. inoutPtr
  4345. );
  4346. }
  4347. void __gls_decode_bin_glTexCoord2fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4348. typedef void (*__GLSdispatch)(void *);
  4349. ((__GLSdispatch)ctx->dispatchCall[169])(
  4350. inoutPtr
  4351. );
  4352. }
  4353. void __gls_decode_bin_glTexCoord2iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4354. typedef void (*__GLSdispatch)(void *);
  4355. ((__GLSdispatch)ctx->dispatchCall[171])(
  4356. inoutPtr
  4357. );
  4358. }
  4359. void __gls_decode_bin_glTexCoord2sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4360. typedef void (*__GLSdispatch)(void *);
  4361. ((__GLSdispatch)ctx->dispatchCall[173])(
  4362. inoutPtr
  4363. );
  4364. }
  4365. void __gls_decode_bin_glTexCoord3dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4366. typedef void (*__GLSdispatch)(void *);
  4367. ((__GLSdispatch)ctx->dispatchCall[175])(
  4368. inoutPtr
  4369. );
  4370. }
  4371. void __gls_decode_bin_glTexCoord3fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4372. typedef void (*__GLSdispatch)(void *);
  4373. ((__GLSdispatch)ctx->dispatchCall[177])(
  4374. inoutPtr
  4375. );
  4376. }
  4377. void __gls_decode_bin_glTexCoord3iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4378. typedef void (*__GLSdispatch)(void *);
  4379. ((__GLSdispatch)ctx->dispatchCall[179])(
  4380. inoutPtr
  4381. );
  4382. }
  4383. void __gls_decode_bin_glTexCoord3sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4384. typedef void (*__GLSdispatch)(void *);
  4385. ((__GLSdispatch)ctx->dispatchCall[181])(
  4386. inoutPtr
  4387. );
  4388. }
  4389. void __gls_decode_bin_glTexCoord4dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4390. typedef void (*__GLSdispatch)(void *);
  4391. ((__GLSdispatch)ctx->dispatchCall[183])(
  4392. inoutPtr
  4393. );
  4394. }
  4395. void __gls_decode_bin_glTexCoord4fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4396. typedef void (*__GLSdispatch)(void *);
  4397. ((__GLSdispatch)ctx->dispatchCall[185])(
  4398. inoutPtr
  4399. );
  4400. }
  4401. void __gls_decode_bin_glTexCoord4iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4402. typedef void (*__GLSdispatch)(void *);
  4403. ((__GLSdispatch)ctx->dispatchCall[187])(
  4404. inoutPtr
  4405. );
  4406. }
  4407. void __gls_decode_bin_glTexCoord4sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4408. typedef void (*__GLSdispatch)(void *);
  4409. ((__GLSdispatch)ctx->dispatchCall[189])(
  4410. inoutPtr
  4411. );
  4412. }
  4413. void __gls_decode_bin_glVertex2dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4414. typedef void (*__GLSdispatch)(void *);
  4415. ((__GLSdispatch)ctx->dispatchCall[191])(
  4416. inoutPtr
  4417. );
  4418. }
  4419. void __gls_decode_bin_glVertex2fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4420. typedef void (*__GLSdispatch)(void *);
  4421. ((__GLSdispatch)ctx->dispatchCall[193])(
  4422. inoutPtr
  4423. );
  4424. }
  4425. void __gls_decode_bin_glVertex2iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4426. typedef void (*__GLSdispatch)(void *);
  4427. ((__GLSdispatch)ctx->dispatchCall[195])(
  4428. inoutPtr
  4429. );
  4430. }
  4431. void __gls_decode_bin_glVertex2sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4432. typedef void (*__GLSdispatch)(void *);
  4433. ((__GLSdispatch)ctx->dispatchCall[197])(
  4434. inoutPtr
  4435. );
  4436. }
  4437. void __gls_decode_bin_glVertex3dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4438. typedef void (*__GLSdispatch)(void *);
  4439. ((__GLSdispatch)ctx->dispatchCall[199])(
  4440. inoutPtr
  4441. );
  4442. }
  4443. void __gls_decode_bin_glVertex3fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4444. typedef void (*__GLSdispatch)(void *);
  4445. ((__GLSdispatch)ctx->dispatchCall[201])(
  4446. inoutPtr
  4447. );
  4448. }
  4449. void __gls_decode_bin_glVertex3iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4450. typedef void (*__GLSdispatch)(void *);
  4451. ((__GLSdispatch)ctx->dispatchCall[203])(
  4452. inoutPtr
  4453. );
  4454. }
  4455. void __gls_decode_bin_glVertex3sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4456. typedef void (*__GLSdispatch)(void *);
  4457. ((__GLSdispatch)ctx->dispatchCall[205])(
  4458. inoutPtr
  4459. );
  4460. }
  4461. void __gls_decode_bin_glVertex4dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4462. typedef void (*__GLSdispatch)(void *);
  4463. ((__GLSdispatch)ctx->dispatchCall[207])(
  4464. inoutPtr
  4465. );
  4466. }
  4467. void __gls_decode_bin_glVertex4fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4468. typedef void (*__GLSdispatch)(void *);
  4469. ((__GLSdispatch)ctx->dispatchCall[209])(
  4470. inoutPtr
  4471. );
  4472. }
  4473. void __gls_decode_bin_glVertex4iv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4474. typedef void (*__GLSdispatch)(void *);
  4475. ((__GLSdispatch)ctx->dispatchCall[211])(
  4476. inoutPtr
  4477. );
  4478. }
  4479. void __gls_decode_bin_glVertex4sv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4480. typedef void (*__GLSdispatch)(void *);
  4481. ((__GLSdispatch)ctx->dispatchCall[213])(
  4482. inoutPtr
  4483. );
  4484. }
  4485. void __gls_decode_bin_glEvalCoord1dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4486. typedef void (*__GLSdispatch)(void *);
  4487. ((__GLSdispatch)ctx->dispatchCall[293])(
  4488. inoutPtr
  4489. );
  4490. }
  4491. void __gls_decode_bin_glEvalCoord1fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4492. typedef void (*__GLSdispatch)(void *);
  4493. ((__GLSdispatch)ctx->dispatchCall[295])(
  4494. inoutPtr
  4495. );
  4496. }
  4497. void __gls_decode_bin_glEvalCoord2dv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4498. typedef void (*__GLSdispatch)(void *);
  4499. ((__GLSdispatch)ctx->dispatchCall[297])(
  4500. inoutPtr
  4501. );
  4502. }
  4503. void __gls_decode_bin_glEvalCoord2fv(__GLScontext *ctx, GLubyte *inoutPtr) {
  4504. typedef void (*__GLSdispatch)(void *);
  4505. ((__GLSdispatch)ctx->dispatchCall[299])(
  4506. inoutPtr
  4507. );
  4508. }
  4509. void __gls_decode_bin_glLoadMatrixf(__GLScontext *ctx, GLubyte *inoutPtr) {
  4510. typedef void (*__GLSdispatch)(void *);
  4511. ((__GLSdispatch)ctx->dispatchCall[355])(
  4512. inoutPtr
  4513. );
  4514. }
  4515. void __gls_decode_bin_glLoadMatrixd(__GLScontext *ctx, GLubyte *inoutPtr) {
  4516. typedef void (*__GLSdispatch)(void *);
  4517. ((__GLSdispatch)ctx->dispatchCall[356])(
  4518. inoutPtr
  4519. );
  4520. }
  4521. void __gls_decode_bin_glMultMatrixf(__GLScontext *ctx, GLubyte *inoutPtr) {
  4522. typedef void (*__GLSdispatch)(void *);
  4523. ((__GLSdispatch)ctx->dispatchCall[358])(
  4524. inoutPtr
  4525. );
  4526. }
  4527. void __gls_decode_bin_glMultMatrixd(__GLScontext *ctx, GLubyte *inoutPtr) {
  4528. typedef void (*__GLSdispatch)(void *);
  4529. ((__GLSdispatch)ctx->dispatchCall[359])(
  4530. inoutPtr
  4531. );
  4532. }
  4533. #endif
  4534. #if __GL_EXT_paletted_texture
  4535. void __gls_decode_bin_glColorSubTableEXT(__GLScontext *ctx, GLubyte *inoutPtr) {
  4536. typedef void (*__GLSdispatch)(GLenum, GLuint, GLsizei, GLenum, GLenum, const GLvoid *);
  4537. GLbitfield imageFlags;
  4538. imageFlags = *(GLint *)(inoutPtr + 0);
  4539. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  4540. ((__GLSdispatch)ctx->dispatchCall[496])(
  4541. *(GLenum *)(inoutPtr + 4),
  4542. *(GLuint *)(inoutPtr + 8),
  4543. *(GLsizei *)(inoutPtr + 12),
  4544. *(GLenum *)(inoutPtr + 16),
  4545. *(GLenum *)(inoutPtr + 20),
  4546. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : (GLvoid *)(inoutPtr + 24)
  4547. );
  4548. }
  4549. #endif // __GL_EXT_paletted_texture
  4550. void __gls_decode_bin_glDisableClientState(__GLScontext *ctx, GLubyte *inoutPtr) {
  4551. typedef void (*__GLSdispatch)(GLenum);
  4552. ((__GLSdispatch)ctx->dispatchCall[373])(
  4553. *(GLenum *)(inoutPtr + 0)
  4554. );
  4555. }
  4556. void __gls_decode_bin_glEnableClientState(__GLScontext *ctx, GLubyte *inoutPtr) {
  4557. typedef void (*__GLSdispatch)(GLenum);
  4558. ((__GLSdispatch)ctx->dispatchCall[377])(
  4559. *(GLenum *)(inoutPtr + 0)
  4560. );
  4561. }
  4562. void __gls_decode_bin_glInterleavedArrays(__GLScontext *ctx, GLubyte *inoutPtr) {
  4563. // This should never be called because InterleavedArrays isn't captured
  4564. }
  4565. void __gls_decode_bin_glPushClientAttrib(__GLScontext *ctx, GLubyte *inoutPtr) {
  4566. typedef void (*__GLSdispatch)(GLbitfield);
  4567. ((__GLSdispatch)ctx->dispatchCall[398])(
  4568. *(GLbitfield *)(inoutPtr + 0)
  4569. );
  4570. }