Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8669 lines
260 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. void __gls_decode_text_glsBeginGLS(__GLScontext *ctx, __GLSreader *inoutReader) {
  21. typedef void (*__GLSdispatch)(GLint, GLint);
  22. GLint inVersionMajor;
  23. GLint inVersionMinor;
  24. __glsReader_getGLint_text(inoutReader, &inVersionMajor);
  25. __glsReader_getGLint_text(inoutReader, &inVersionMinor);
  26. if (inoutReader->error) goto end;
  27. ((__GLSdispatch)ctx->dispatchCall[16])(
  28. inVersionMajor,
  29. inVersionMinor
  30. );
  31. end:
  32. return;
  33. }
  34. void __gls_decode_text_glsBlock(__GLScontext *ctx, __GLSreader *inoutReader) {
  35. typedef void (*__GLSdispatch)(GLSenum);
  36. GLSenum inBlockType;
  37. __glsReader_getGLSenum_text(inoutReader, &inBlockType);
  38. if (inoutReader->error) goto end;
  39. ((__GLSdispatch)ctx->dispatchCall[17])(
  40. inBlockType
  41. );
  42. end:
  43. return;
  44. }
  45. void __gls_decode_text_glsCallStream(__GLScontext *ctx, __GLSreader *inoutReader) {
  46. typedef void (*__GLSdispatch)(const GLubyte *);
  47. __GLSstring inName;
  48. __glsString_init(&inName);
  49. __glsReader_getGLcharv_text(inoutReader, &inName);
  50. if (inoutReader->error) goto end;
  51. ((__GLSdispatch)ctx->dispatchCall[18])(
  52. inName.head
  53. );
  54. end:
  55. __glsString_final(&inName);
  56. return;
  57. }
  58. void __gls_decode_text_glsEndGLS(__GLScontext *ctx, __GLSreader *inoutReader) {
  59. typedef void (*__GLSdispatch)(void);
  60. if (inoutReader->error) goto end;
  61. ((__GLSdispatch)ctx->dispatchCall[19])(
  62. );
  63. end:
  64. return;
  65. }
  66. void __gls_decode_text_glsError(__GLScontext *ctx, __GLSreader *inoutReader) {
  67. typedef void (*__GLSdispatch)(GLSopcode, GLSenum);
  68. GLSopcode inOpcode;
  69. GLSenum inError;
  70. __glsReader_getGLSopcode_text(inoutReader, &inOpcode);
  71. __glsReader_getGLSenum_text(inoutReader, &inError);
  72. if (inoutReader->error) goto end;
  73. ((__GLSdispatch)ctx->dispatchCall[20])(
  74. inOpcode,
  75. inError
  76. );
  77. end:
  78. return;
  79. }
  80. void __gls_decode_text_glsGLRC(__GLScontext *ctx, __GLSreader *inoutReader) {
  81. typedef void (*__GLSdispatch)(GLuint);
  82. GLuint inGLRC;
  83. __glsReader_getGLuint_text(inoutReader, &inGLRC);
  84. if (inoutReader->error) goto end;
  85. ((__GLSdispatch)ctx->dispatchCall[21])(
  86. inGLRC
  87. );
  88. end:
  89. return;
  90. }
  91. void __gls_decode_text_glsGLRCLayer(__GLScontext *ctx, __GLSreader *inoutReader) {
  92. typedef void (*__GLSdispatch)(GLuint, GLuint, GLuint);
  93. GLuint inGLRC;
  94. GLuint inLayer;
  95. GLuint inReadLayer;
  96. __glsReader_getGLuint_text(inoutReader, &inGLRC);
  97. __glsReader_getGLuint_text(inoutReader, &inLayer);
  98. __glsReader_getGLuint_text(inoutReader, &inReadLayer);
  99. if (inoutReader->error) goto end;
  100. ((__GLSdispatch)ctx->dispatchCall[22])(
  101. inGLRC,
  102. inLayer,
  103. inReadLayer
  104. );
  105. end:
  106. return;
  107. }
  108. void __gls_decode_text_glsHeaderGLRCi(__GLScontext *ctx, __GLSreader *inoutReader) {
  109. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLint);
  110. GLuint inGLRC;
  111. GLSenum inAttrib;
  112. GLint inVal;
  113. __glsReader_getGLuint_text(inoutReader, &inGLRC);
  114. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  115. __glsReader_getGLint_text(inoutReader, &inVal);
  116. if (inoutReader->error) goto end;
  117. ((__GLSdispatch)ctx->dispatchCall[23])(
  118. inGLRC,
  119. inAttrib,
  120. inVal
  121. );
  122. end:
  123. return;
  124. }
  125. void __gls_decode_text_glsHeaderLayerf(__GLScontext *ctx, __GLSreader *inoutReader) {
  126. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLfloat);
  127. GLuint inLayer;
  128. GLSenum inAttrib;
  129. GLfloat inVal;
  130. __glsReader_getGLuint_text(inoutReader, &inLayer);
  131. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  132. __glsReader_getGLfloat_text(inoutReader, &inVal);
  133. if (inoutReader->error) goto end;
  134. ((__GLSdispatch)ctx->dispatchCall[24])(
  135. inLayer,
  136. inAttrib,
  137. inVal
  138. );
  139. end:
  140. return;
  141. }
  142. void __gls_decode_text_glsHeaderLayeri(__GLScontext *ctx, __GLSreader *inoutReader) {
  143. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLint);
  144. GLuint inLayer;
  145. GLSenum inAttrib;
  146. GLint inVal;
  147. __glsReader_getGLuint_text(inoutReader, &inLayer);
  148. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  149. __glsReader_getGLint_text(inoutReader, &inVal);
  150. if (inoutReader->error) goto end;
  151. ((__GLSdispatch)ctx->dispatchCall[25])(
  152. inLayer,
  153. inAttrib,
  154. inVal
  155. );
  156. end:
  157. return;
  158. }
  159. void __gls_decode_text_glsHeaderf(__GLScontext *ctx, __GLSreader *inoutReader) {
  160. typedef void (*__GLSdispatch)(GLSenum, GLfloat);
  161. GLSenum inAttrib;
  162. GLfloat inVal;
  163. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  164. __glsReader_getGLfloat_text(inoutReader, &inVal);
  165. if (inoutReader->error) goto end;
  166. ((__GLSdispatch)ctx->dispatchCall[26])(
  167. inAttrib,
  168. inVal
  169. );
  170. end:
  171. return;
  172. }
  173. void __gls_decode_text_glsHeaderfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  174. typedef void (*__GLSdispatch)(GLSenum, const GLfloat *);
  175. GLSenum inAttrib;
  176. GLint inVec_count;
  177. GLfloat *inVec = GLS_NONE;
  178. __GLS_DEC_ALLOC_DECLARE(inVec)
  179. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  180. inVec_count = __gls_glsHeaderfv_inVec_size(inAttrib);
  181. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLfloat, 4 * inVec_count);
  182. if (!inVec) goto end;
  183. __glsReader_getGLfloatv_text(inoutReader, inVec_count, inVec);
  184. if (inoutReader->error) goto end;
  185. ((__GLSdispatch)ctx->dispatchCall[27])(
  186. inAttrib,
  187. inVec
  188. );
  189. end:
  190. __GLS_DEC_FREE(inVec);
  191. return;
  192. }
  193. void __gls_decode_text_glsHeaderi(__GLScontext *ctx, __GLSreader *inoutReader) {
  194. typedef void (*__GLSdispatch)(GLSenum, GLint);
  195. GLSenum inAttrib;
  196. GLint inVal;
  197. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  198. __glsReader_getGLint_text(inoutReader, &inVal);
  199. if (inoutReader->error) goto end;
  200. ((__GLSdispatch)ctx->dispatchCall[28])(
  201. inAttrib,
  202. inVal
  203. );
  204. end:
  205. return;
  206. }
  207. void __gls_decode_text_glsHeaderiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  208. typedef void (*__GLSdispatch)(GLSenum, const GLint *);
  209. GLSenum inAttrib;
  210. GLint inVec_count;
  211. GLint *inVec = GLS_NONE;
  212. __GLS_DEC_ALLOC_DECLARE(inVec)
  213. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  214. inVec_count = __gls_glsHeaderiv_inVec_size(inAttrib);
  215. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLint, 4 * inVec_count);
  216. if (!inVec) goto end;
  217. __glsReader_getGLintv_text(inoutReader, inVec_count, inVec);
  218. if (inoutReader->error) goto end;
  219. ((__GLSdispatch)ctx->dispatchCall[29])(
  220. inAttrib,
  221. inVec
  222. );
  223. end:
  224. __GLS_DEC_FREE(inVec);
  225. return;
  226. }
  227. void __gls_decode_text_glsHeaderubz(__GLScontext *ctx, __GLSreader *inoutReader) {
  228. typedef void (*__GLSdispatch)(GLSenum, const GLubyte *);
  229. GLSenum inAttrib;
  230. __GLSstring inString;
  231. __glsReader_getGLSenum_text(inoutReader, &inAttrib);
  232. __glsString_init(&inString);
  233. __glsReader_getGLcharv_text(inoutReader, &inString);
  234. if (inoutReader->error) goto end;
  235. ((__GLSdispatch)ctx->dispatchCall[30])(
  236. inAttrib,
  237. inString.head
  238. );
  239. end:
  240. __glsString_final(&inString);
  241. return;
  242. }
  243. void __gls_decode_text_glsRequireExtension(__GLScontext *ctx, __GLSreader *inoutReader) {
  244. typedef void (*__GLSdispatch)(const GLubyte *);
  245. __GLSstring inExtension;
  246. __glsString_init(&inExtension);
  247. __glsReader_getGLcharv_text(inoutReader, &inExtension);
  248. if (inoutReader->error) goto end;
  249. ((__GLSdispatch)ctx->dispatchCall[31])(
  250. inExtension.head
  251. );
  252. end:
  253. __glsString_final(&inExtension);
  254. return;
  255. }
  256. void __gls_decode_text_glsUnsupportedCommand(__GLScontext *ctx, __GLSreader *inoutReader) {
  257. typedef void (*__GLSdispatch)(void);
  258. if (inoutReader->error) goto end;
  259. ((__GLSdispatch)ctx->dispatchCall[32])(
  260. );
  261. end:
  262. return;
  263. }
  264. void __gls_decode_text_glsAppRef(__GLScontext *ctx, __GLSreader *inoutReader) {
  265. typedef void (*__GLSdispatch)(GLulong, GLuint);
  266. GLulong inAddress;
  267. GLuint inCount;
  268. __glsReader_getGLulong_text(inoutReader, &inAddress);
  269. __glsReader_getGLuint_text(inoutReader, &inCount);
  270. if (inoutReader->error) goto end;
  271. ((__GLSdispatch)ctx->dispatchCall[33])(
  272. inAddress,
  273. inCount
  274. );
  275. end:
  276. return;
  277. }
  278. void __gls_decode_text_glsBeginObj(__GLScontext *ctx, __GLSreader *inoutReader) {
  279. typedef void (*__GLSdispatch)(const GLubyte *);
  280. __GLSstring inTag;
  281. __glsString_init(&inTag);
  282. __glsReader_getGLcharv_text(inoutReader, &inTag);
  283. if (inoutReader->error) goto end;
  284. ((__GLSdispatch)ctx->dispatchCall[34])(
  285. inTag.head
  286. );
  287. end:
  288. __glsString_final(&inTag);
  289. return;
  290. }
  291. void __gls_decode_text_glsCharubz(__GLScontext *ctx, __GLSreader *inoutReader) {
  292. typedef void (*__GLSdispatch)(const GLubyte *, const GLubyte *);
  293. __GLSstring inTag;
  294. __GLSstring inString;
  295. __glsString_init(&inTag);
  296. __glsReader_getGLcharv_text(inoutReader, &inTag);
  297. __glsString_init(&inString);
  298. __glsReader_getGLcharv_text(inoutReader, &inString);
  299. if (inoutReader->error) goto end;
  300. ((__GLSdispatch)ctx->dispatchCall[35])(
  301. inTag.head,
  302. inString.head
  303. );
  304. end:
  305. __glsString_final(&inTag);
  306. __glsString_final(&inString);
  307. return;
  308. }
  309. void __gls_decode_text_glsComment(__GLScontext *ctx, __GLSreader *inoutReader) {
  310. typedef void (*__GLSdispatch)(const GLubyte *);
  311. __GLSstring inComment;
  312. __glsString_init(&inComment);
  313. __glsReader_getGLcharv_text(inoutReader, &inComment);
  314. if (inoutReader->error) goto end;
  315. ((__GLSdispatch)ctx->dispatchCall[36])(
  316. inComment.head
  317. );
  318. end:
  319. __glsString_final(&inComment);
  320. return;
  321. }
  322. void __gls_decode_text_glsDisplayMapfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  323. typedef void (*__GLSdispatch)(GLuint, GLSenum, GLuint, const GLfloat *);
  324. GLuint inLayer;
  325. GLSenum inMap;
  326. GLuint inCount;
  327. GLfloat *inVec = GLS_NONE;
  328. __GLS_DEC_ALLOC_DECLARE(inVec)
  329. __glsReader_getGLuint_text(inoutReader, &inLayer);
  330. __glsReader_getGLSenum_text(inoutReader, &inMap);
  331. __glsReader_getGLuint_text(inoutReader, &inCount);
  332. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLfloat, 4 * __GLS_MAX(inCount, 0));
  333. if (!inVec) goto end;
  334. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  335. if (inoutReader->error) goto end;
  336. ((__GLSdispatch)ctx->dispatchCall[37])(
  337. inLayer,
  338. inMap,
  339. inCount,
  340. inVec
  341. );
  342. end:
  343. __GLS_DEC_FREE(inVec);
  344. return;
  345. }
  346. void __gls_decode_text_glsEndObj(__GLScontext *ctx, __GLSreader *inoutReader) {
  347. typedef void (*__GLSdispatch)(void);
  348. if (inoutReader->error) goto end;
  349. ((__GLSdispatch)ctx->dispatchCall[38])(
  350. );
  351. end:
  352. return;
  353. }
  354. void __gls_decode_text_glsNumb(__GLScontext *ctx, __GLSreader *inoutReader) {
  355. typedef void (*__GLSdispatch)(const GLubyte *, GLbyte);
  356. __GLSstring inTag;
  357. GLbyte inVal;
  358. __glsString_init(&inTag);
  359. __glsReader_getGLcharv_text(inoutReader, &inTag);
  360. __glsReader_getGLbyte_text(inoutReader, &inVal);
  361. if (inoutReader->error) goto end;
  362. ((__GLSdispatch)ctx->dispatchCall[39])(
  363. inTag.head,
  364. inVal
  365. );
  366. end:
  367. __glsString_final(&inTag);
  368. return;
  369. }
  370. void __gls_decode_text_glsNumbv(__GLScontext *ctx, __GLSreader *inoutReader) {
  371. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLbyte *);
  372. __GLSstring inTag;
  373. GLuint inCount;
  374. GLbyte *inVec = GLS_NONE;
  375. __GLS_DEC_ALLOC_DECLARE(inVec)
  376. __glsString_init(&inTag);
  377. __glsReader_getGLcharv_text(inoutReader, &inTag);
  378. __glsReader_getGLuint_text(inoutReader, &inCount);
  379. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLbyte, 1 * __GLS_MAX(inCount, 0));
  380. if (!inVec) goto end;
  381. __glsReader_getGLbytev_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  382. if (inoutReader->error) goto end;
  383. ((__GLSdispatch)ctx->dispatchCall[40])(
  384. inTag.head,
  385. inCount,
  386. inVec
  387. );
  388. end:
  389. __glsString_final(&inTag);
  390. __GLS_DEC_FREE(inVec);
  391. return;
  392. }
  393. void __gls_decode_text_glsNumd(__GLScontext *ctx, __GLSreader *inoutReader) {
  394. typedef void (*__GLSdispatch)(const GLubyte *, GLdouble);
  395. __GLSstring inTag;
  396. GLdouble inVal;
  397. __glsString_init(&inTag);
  398. __glsReader_getGLcharv_text(inoutReader, &inTag);
  399. __glsReader_getGLdouble_text(inoutReader, &inVal);
  400. if (inoutReader->error) goto end;
  401. ((__GLSdispatch)ctx->dispatchCall[41])(
  402. inTag.head,
  403. inVal
  404. );
  405. end:
  406. __glsString_final(&inTag);
  407. return;
  408. }
  409. void __gls_decode_text_glsNumdv(__GLScontext *ctx, __GLSreader *inoutReader) {
  410. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLdouble *);
  411. __GLSstring inTag;
  412. GLuint inCount;
  413. GLdouble *inVec = GLS_NONE;
  414. __GLS_DEC_ALLOC_DECLARE(inVec)
  415. __glsString_init(&inTag);
  416. __glsReader_getGLcharv_text(inoutReader, &inTag);
  417. __glsReader_getGLuint_text(inoutReader, &inCount);
  418. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLdouble, 8 * __GLS_MAX(inCount, 0));
  419. if (!inVec) goto end;
  420. __glsReader_getGLdoublev_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  421. if (inoutReader->error) goto end;
  422. ((__GLSdispatch)ctx->dispatchCall[42])(
  423. inTag.head,
  424. inCount,
  425. inVec
  426. );
  427. end:
  428. __glsString_final(&inTag);
  429. __GLS_DEC_FREE(inVec);
  430. return;
  431. }
  432. void __gls_decode_text_glsNumf(__GLScontext *ctx, __GLSreader *inoutReader) {
  433. typedef void (*__GLSdispatch)(const GLubyte *, GLfloat);
  434. __GLSstring inTag;
  435. GLfloat inVal;
  436. __glsString_init(&inTag);
  437. __glsReader_getGLcharv_text(inoutReader, &inTag);
  438. __glsReader_getGLfloat_text(inoutReader, &inVal);
  439. if (inoutReader->error) goto end;
  440. ((__GLSdispatch)ctx->dispatchCall[43])(
  441. inTag.head,
  442. inVal
  443. );
  444. end:
  445. __glsString_final(&inTag);
  446. return;
  447. }
  448. void __gls_decode_text_glsNumfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  449. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLfloat *);
  450. __GLSstring inTag;
  451. GLuint inCount;
  452. GLfloat *inVec = GLS_NONE;
  453. __GLS_DEC_ALLOC_DECLARE(inVec)
  454. __glsString_init(&inTag);
  455. __glsReader_getGLcharv_text(inoutReader, &inTag);
  456. __glsReader_getGLuint_text(inoutReader, &inCount);
  457. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLfloat, 4 * __GLS_MAX(inCount, 0));
  458. if (!inVec) goto end;
  459. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  460. if (inoutReader->error) goto end;
  461. ((__GLSdispatch)ctx->dispatchCall[44])(
  462. inTag.head,
  463. inCount,
  464. inVec
  465. );
  466. end:
  467. __glsString_final(&inTag);
  468. __GLS_DEC_FREE(inVec);
  469. return;
  470. }
  471. void __gls_decode_text_glsNumi(__GLScontext *ctx, __GLSreader *inoutReader) {
  472. typedef void (*__GLSdispatch)(const GLubyte *, GLint);
  473. __GLSstring inTag;
  474. GLint inVal;
  475. __glsString_init(&inTag);
  476. __glsReader_getGLcharv_text(inoutReader, &inTag);
  477. __glsReader_getGLint_text(inoutReader, &inVal);
  478. if (inoutReader->error) goto end;
  479. ((__GLSdispatch)ctx->dispatchCall[45])(
  480. inTag.head,
  481. inVal
  482. );
  483. end:
  484. __glsString_final(&inTag);
  485. return;
  486. }
  487. void __gls_decode_text_glsNumiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  488. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLint *);
  489. __GLSstring inTag;
  490. GLuint inCount;
  491. GLint *inVec = GLS_NONE;
  492. __GLS_DEC_ALLOC_DECLARE(inVec)
  493. __glsString_init(&inTag);
  494. __glsReader_getGLcharv_text(inoutReader, &inTag);
  495. __glsReader_getGLuint_text(inoutReader, &inCount);
  496. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLint, 4 * __GLS_MAX(inCount, 0));
  497. if (!inVec) goto end;
  498. __glsReader_getGLintv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  499. if (inoutReader->error) goto end;
  500. ((__GLSdispatch)ctx->dispatchCall[46])(
  501. inTag.head,
  502. inCount,
  503. inVec
  504. );
  505. end:
  506. __glsString_final(&inTag);
  507. __GLS_DEC_FREE(inVec);
  508. return;
  509. }
  510. void __gls_decode_text_glsNuml(__GLScontext *ctx, __GLSreader *inoutReader) {
  511. typedef void (*__GLSdispatch)(const GLubyte *, GLlong);
  512. __GLSstring inTag;
  513. GLlong inVal;
  514. __glsString_init(&inTag);
  515. __glsReader_getGLcharv_text(inoutReader, &inTag);
  516. __glsReader_getGLlong_text(inoutReader, &inVal);
  517. if (inoutReader->error) goto end;
  518. ((__GLSdispatch)ctx->dispatchCall[47])(
  519. inTag.head,
  520. inVal
  521. );
  522. end:
  523. __glsString_final(&inTag);
  524. return;
  525. }
  526. void __gls_decode_text_glsNumlv(__GLScontext *ctx, __GLSreader *inoutReader) {
  527. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLlong *);
  528. __GLSstring inTag;
  529. GLuint inCount;
  530. GLlong *inVec = GLS_NONE;
  531. __GLS_DEC_ALLOC_DECLARE(inVec)
  532. __glsString_init(&inTag);
  533. __glsReader_getGLcharv_text(inoutReader, &inTag);
  534. __glsReader_getGLuint_text(inoutReader, &inCount);
  535. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLlong, 8 * __GLS_MAX(inCount, 0));
  536. if (!inVec) goto end;
  537. __glsReader_getGLlongv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  538. if (inoutReader->error) goto end;
  539. ((__GLSdispatch)ctx->dispatchCall[48])(
  540. inTag.head,
  541. inCount,
  542. inVec
  543. );
  544. end:
  545. __glsString_final(&inTag);
  546. __GLS_DEC_FREE(inVec);
  547. return;
  548. }
  549. void __gls_decode_text_glsNums(__GLScontext *ctx, __GLSreader *inoutReader) {
  550. typedef void (*__GLSdispatch)(const GLubyte *, GLshort);
  551. __GLSstring inTag;
  552. GLshort inVal;
  553. __glsString_init(&inTag);
  554. __glsReader_getGLcharv_text(inoutReader, &inTag);
  555. __glsReader_getGLshort_text(inoutReader, &inVal);
  556. if (inoutReader->error) goto end;
  557. ((__GLSdispatch)ctx->dispatchCall[49])(
  558. inTag.head,
  559. inVal
  560. );
  561. end:
  562. __glsString_final(&inTag);
  563. return;
  564. }
  565. void __gls_decode_text_glsNumsv(__GLScontext *ctx, __GLSreader *inoutReader) {
  566. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLshort *);
  567. __GLSstring inTag;
  568. GLuint inCount;
  569. GLshort *inVec = GLS_NONE;
  570. __GLS_DEC_ALLOC_DECLARE(inVec)
  571. __glsString_init(&inTag);
  572. __glsReader_getGLcharv_text(inoutReader, &inTag);
  573. __glsReader_getGLuint_text(inoutReader, &inCount);
  574. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLshort, 2 * __GLS_MAX(inCount, 0));
  575. if (!inVec) goto end;
  576. __glsReader_getGLshortv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  577. if (inoutReader->error) goto end;
  578. ((__GLSdispatch)ctx->dispatchCall[50])(
  579. inTag.head,
  580. inCount,
  581. inVec
  582. );
  583. end:
  584. __glsString_final(&inTag);
  585. __GLS_DEC_FREE(inVec);
  586. return;
  587. }
  588. void __gls_decode_text_glsNumub(__GLScontext *ctx, __GLSreader *inoutReader) {
  589. typedef void (*__GLSdispatch)(const GLubyte *, GLubyte);
  590. __GLSstring inTag;
  591. GLubyte inVal;
  592. __glsString_init(&inTag);
  593. __glsReader_getGLcharv_text(inoutReader, &inTag);
  594. __glsReader_getGLubyte_text(inoutReader, &inVal);
  595. if (inoutReader->error) goto end;
  596. ((__GLSdispatch)ctx->dispatchCall[51])(
  597. inTag.head,
  598. inVal
  599. );
  600. end:
  601. __glsString_final(&inTag);
  602. return;
  603. }
  604. void __gls_decode_text_glsNumubv(__GLScontext *ctx, __GLSreader *inoutReader) {
  605. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLubyte *);
  606. __GLSstring inTag;
  607. GLuint inCount;
  608. GLubyte *inVec = GLS_NONE;
  609. __GLS_DEC_ALLOC_DECLARE(inVec)
  610. __glsString_init(&inTag);
  611. __glsReader_getGLcharv_text(inoutReader, &inTag);
  612. __glsReader_getGLuint_text(inoutReader, &inCount);
  613. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLubyte, 1 * __GLS_MAX(inCount, 0));
  614. if (!inVec) goto end;
  615. __glsReader_getGLubytev_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  616. if (inoutReader->error) goto end;
  617. ((__GLSdispatch)ctx->dispatchCall[52])(
  618. inTag.head,
  619. inCount,
  620. inVec
  621. );
  622. end:
  623. __glsString_final(&inTag);
  624. __GLS_DEC_FREE(inVec);
  625. return;
  626. }
  627. void __gls_decode_text_glsNumui(__GLScontext *ctx, __GLSreader *inoutReader) {
  628. typedef void (*__GLSdispatch)(const GLubyte *, GLuint);
  629. __GLSstring inTag;
  630. GLuint inVal;
  631. __glsString_init(&inTag);
  632. __glsReader_getGLcharv_text(inoutReader, &inTag);
  633. __glsReader_getGLuint_text(inoutReader, &inVal);
  634. if (inoutReader->error) goto end;
  635. ((__GLSdispatch)ctx->dispatchCall[53])(
  636. inTag.head,
  637. inVal
  638. );
  639. end:
  640. __glsString_final(&inTag);
  641. return;
  642. }
  643. void __gls_decode_text_glsNumuiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  644. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLuint *);
  645. __GLSstring inTag;
  646. GLuint inCount;
  647. GLuint *inVec = GLS_NONE;
  648. __GLS_DEC_ALLOC_DECLARE(inVec)
  649. __glsString_init(&inTag);
  650. __glsReader_getGLcharv_text(inoutReader, &inTag);
  651. __glsReader_getGLuint_text(inoutReader, &inCount);
  652. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLuint, 4 * __GLS_MAX(inCount, 0));
  653. if (!inVec) goto end;
  654. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  655. if (inoutReader->error) goto end;
  656. ((__GLSdispatch)ctx->dispatchCall[54])(
  657. inTag.head,
  658. inCount,
  659. inVec
  660. );
  661. end:
  662. __glsString_final(&inTag);
  663. __GLS_DEC_FREE(inVec);
  664. return;
  665. }
  666. void __gls_decode_text_glsNumul(__GLScontext *ctx, __GLSreader *inoutReader) {
  667. typedef void (*__GLSdispatch)(const GLubyte *, GLulong);
  668. __GLSstring inTag;
  669. GLulong inVal;
  670. __glsString_init(&inTag);
  671. __glsReader_getGLcharv_text(inoutReader, &inTag);
  672. __glsReader_getGLulong_text(inoutReader, &inVal);
  673. if (inoutReader->error) goto end;
  674. ((__GLSdispatch)ctx->dispatchCall[55])(
  675. inTag.head,
  676. inVal
  677. );
  678. end:
  679. __glsString_final(&inTag);
  680. return;
  681. }
  682. void __gls_decode_text_glsNumulv(__GLScontext *ctx, __GLSreader *inoutReader) {
  683. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLulong *);
  684. __GLSstring inTag;
  685. GLuint inCount;
  686. GLulong *inVec = GLS_NONE;
  687. __GLS_DEC_ALLOC_DECLARE(inVec)
  688. __glsString_init(&inTag);
  689. __glsReader_getGLcharv_text(inoutReader, &inTag);
  690. __glsReader_getGLuint_text(inoutReader, &inCount);
  691. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLulong, 8 * __GLS_MAX(inCount, 0));
  692. if (!inVec) goto end;
  693. __glsReader_getGLulongv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  694. if (inoutReader->error) goto end;
  695. ((__GLSdispatch)ctx->dispatchCall[56])(
  696. inTag.head,
  697. inCount,
  698. inVec
  699. );
  700. end:
  701. __glsString_final(&inTag);
  702. __GLS_DEC_FREE(inVec);
  703. return;
  704. }
  705. void __gls_decode_text_glsNumus(__GLScontext *ctx, __GLSreader *inoutReader) {
  706. typedef void (*__GLSdispatch)(const GLubyte *, GLushort);
  707. __GLSstring inTag;
  708. GLushort inVal;
  709. __glsString_init(&inTag);
  710. __glsReader_getGLcharv_text(inoutReader, &inTag);
  711. __glsReader_getGLushort_text(inoutReader, &inVal);
  712. if (inoutReader->error) goto end;
  713. ((__GLSdispatch)ctx->dispatchCall[57])(
  714. inTag.head,
  715. inVal
  716. );
  717. end:
  718. __glsString_final(&inTag);
  719. return;
  720. }
  721. void __gls_decode_text_glsNumusv(__GLScontext *ctx, __GLSreader *inoutReader) {
  722. typedef void (*__GLSdispatch)(const GLubyte *, GLuint, const GLushort *);
  723. __GLSstring inTag;
  724. GLuint inCount;
  725. GLushort *inVec = GLS_NONE;
  726. __GLS_DEC_ALLOC_DECLARE(inVec)
  727. __glsString_init(&inTag);
  728. __glsReader_getGLcharv_text(inoutReader, &inTag);
  729. __glsReader_getGLuint_text(inoutReader, &inCount);
  730. __GLS_DEC_ALLOC_TEXT(inoutReader, inVec, GLushort, 2 * __GLS_MAX(inCount, 0));
  731. if (!inVec) goto end;
  732. __glsReader_getGLushortv_text(inoutReader, __GLS_MAX(inCount, 0), inVec);
  733. if (inoutReader->error) goto end;
  734. ((__GLSdispatch)ctx->dispatchCall[58])(
  735. inTag.head,
  736. inCount,
  737. inVec
  738. );
  739. end:
  740. __glsString_final(&inTag);
  741. __GLS_DEC_FREE(inVec);
  742. return;
  743. }
  744. void __gls_decode_text_glsPad(__GLScontext *ctx, __GLSreader *inoutReader) {
  745. typedef void (*__GLSdispatch)(void);
  746. if (inoutReader->error) goto end;
  747. ((__GLSdispatch)ctx->dispatchCall[59])(
  748. );
  749. end:
  750. return;
  751. }
  752. void __gls_decode_text_glsSwapBuffers(__GLScontext *ctx, __GLSreader *inoutReader) {
  753. typedef void (*__GLSdispatch)(GLuint);
  754. GLuint inLayer;
  755. __glsReader_getGLuint_text(inoutReader, &inLayer);
  756. if (inoutReader->error) goto end;
  757. ((__GLSdispatch)ctx->dispatchCall[60])(
  758. inLayer
  759. );
  760. end:
  761. return;
  762. }
  763. void __gls_decode_text_glNewList(__GLScontext *ctx, __GLSreader *inoutReader) {
  764. typedef void (*__GLSdispatch)(GLuint, GLenum);
  765. GLuint list;
  766. GLenum mode;
  767. __glsReader_getGLuint_text(inoutReader, &list);
  768. __glsReader_getGLenum_text(inoutReader, &mode);
  769. if (inoutReader->error) goto end;
  770. ((__GLSdispatch)ctx->dispatchCall[64])(
  771. list,
  772. mode
  773. );
  774. end:
  775. return;
  776. }
  777. void __gls_decode_text_glEndList(__GLScontext *ctx, __GLSreader *inoutReader) {
  778. typedef void (*__GLSdispatch)(void);
  779. if (inoutReader->error) goto end;
  780. ((__GLSdispatch)ctx->dispatchCall[65])(
  781. );
  782. end:
  783. return;
  784. }
  785. void __gls_decode_text_glCallList(__GLScontext *ctx, __GLSreader *inoutReader) {
  786. typedef void (*__GLSdispatch)(GLuint);
  787. GLuint list;
  788. __glsReader_getGLuint_text(inoutReader, &list);
  789. if (inoutReader->error) goto end;
  790. ((__GLSdispatch)ctx->dispatchCall[66])(
  791. list
  792. );
  793. end:
  794. return;
  795. }
  796. void __gls_decode_text_glCallLists(__GLScontext *ctx, __GLSreader *inoutReader) {
  797. typedef void (*__GLSdispatch)(GLsizei, GLenum, const GLvoid *);
  798. GLsizei n;
  799. GLenum type;
  800. GLint lists_count;
  801. GLvoid *lists = GLS_NONE;
  802. __GLS_DEC_ALLOC_DECLARE(lists)
  803. __glsReader_getGLint_text(inoutReader, &n);
  804. __glsReader_getGLenum_text(inoutReader, &type);
  805. lists_count = __gls_glCallLists_lists_size(n, type);
  806. __GLS_DEC_ALLOC_TEXT(inoutReader, lists, GLvoid, 1 * lists_count);
  807. if (!lists) goto end;
  808. __glsReader_getGLcompv_text(inoutReader, type, lists_count, lists);
  809. if (inoutReader->error) goto end;
  810. ((__GLSdispatch)ctx->dispatchCall[67])(
  811. n,
  812. type,
  813. lists
  814. );
  815. end:
  816. __GLS_DEC_FREE(lists);
  817. return;
  818. }
  819. void __gls_decode_text_glDeleteLists(__GLScontext *ctx, __GLSreader *inoutReader) {
  820. typedef void (*__GLSdispatch)(GLuint, GLsizei);
  821. GLuint list;
  822. GLsizei range;
  823. __glsReader_getGLuint_text(inoutReader, &list);
  824. __glsReader_getGLint_text(inoutReader, &range);
  825. if (inoutReader->error) goto end;
  826. ((__GLSdispatch)ctx->dispatchCall[68])(
  827. list,
  828. range
  829. );
  830. end:
  831. return;
  832. }
  833. void __gls_decode_text_glGenLists(__GLScontext *ctx, __GLSreader *inoutReader) {
  834. typedef void (*__GLSdispatch)(GLsizei);
  835. GLsizei range;
  836. __glsReader_getGLint_text(inoutReader, &range);
  837. if (inoutReader->error) goto end;
  838. ((__GLSdispatch)ctx->dispatchCall[69])(
  839. range
  840. );
  841. end:
  842. return;
  843. }
  844. void __gls_decode_text_glListBase(__GLScontext *ctx, __GLSreader *inoutReader) {
  845. typedef void (*__GLSdispatch)(GLuint);
  846. GLuint base;
  847. __glsReader_getGLuint_text(inoutReader, &base);
  848. if (inoutReader->error) goto end;
  849. ((__GLSdispatch)ctx->dispatchCall[70])(
  850. base
  851. );
  852. end:
  853. return;
  854. }
  855. void __gls_decode_text_glBegin(__GLScontext *ctx, __GLSreader *inoutReader) {
  856. typedef void (*__GLSdispatch)(GLenum);
  857. GLenum mode;
  858. __glsReader_getGLenum_text(inoutReader, &mode);
  859. if (inoutReader->error) goto end;
  860. ((__GLSdispatch)ctx->dispatchCall[71])(
  861. mode
  862. );
  863. end:
  864. return;
  865. }
  866. void __gls_decode_text_glBitmap(__GLScontext *ctx, __GLSreader *inoutReader) {
  867. typedef void (*__GLSdispatch)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *);
  868. GLsizei width;
  869. GLsizei height;
  870. GLfloat xorig;
  871. GLfloat yorig;
  872. GLfloat xmove;
  873. GLfloat ymove;
  874. GLint bitmap_count;
  875. GLubyte *bitmap = GLS_NONE;
  876. __GLS_DEC_ALLOC_DECLARE(bitmap)
  877. GLbitfield imageFlags = GLS_NONE;
  878. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  879. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  880. __glsReader_nextList_text(inoutReader);
  881. __glsReader_getGLint_text(inoutReader, &width);
  882. __glsReader_getGLint_text(inoutReader, &height);
  883. __glsReader_getGLfloat_text(inoutReader, &xorig);
  884. __glsReader_getGLfloat_text(inoutReader, &yorig);
  885. __glsReader_getGLfloat_text(inoutReader, &xmove);
  886. __glsReader_getGLfloat_text(inoutReader, &ymove);
  887. bitmap_count = __gls_glBitmap_bitmap_size(width, height);
  888. __GLS_DEC_ALLOC_TEXT(inoutReader, bitmap, GLubyte, 1 * bitmap_count);
  889. if (!bitmap) goto end;
  890. __glsReader_getGLubytev_text(inoutReader, bitmap_count, bitmap);
  891. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  892. if (inoutReader->error) goto end;
  893. ((__GLSdispatch)ctx->dispatchCall[72])(
  894. width,
  895. height,
  896. xorig,
  897. yorig,
  898. xmove,
  899. ymove,
  900. bitmap
  901. );
  902. end:
  903. __GLS_DEC_FREE(bitmap);
  904. return;
  905. }
  906. void __gls_decode_text_glColor3b(__GLScontext *ctx, __GLSreader *inoutReader) {
  907. typedef void (*__GLSdispatch)(GLbyte, GLbyte, GLbyte);
  908. GLbyte red;
  909. GLbyte green;
  910. GLbyte blue;
  911. __glsReader_getGLbyte_text(inoutReader, &red);
  912. __glsReader_getGLbyte_text(inoutReader, &green);
  913. __glsReader_getGLbyte_text(inoutReader, &blue);
  914. if (inoutReader->error) goto end;
  915. ((__GLSdispatch)ctx->dispatchCall[73])(
  916. red,
  917. green,
  918. blue
  919. );
  920. end:
  921. return;
  922. }
  923. void __gls_decode_text_glColor3bv(__GLScontext *ctx, __GLSreader *inoutReader) {
  924. typedef void (*__GLSdispatch)(const GLbyte *);
  925. GLbyte v[3];
  926. __glsReader_getGLbytev_text(inoutReader, 3, v);
  927. if (inoutReader->error) goto end;
  928. ((__GLSdispatch)ctx->dispatchCall[74])(
  929. v
  930. );
  931. end:
  932. return;
  933. }
  934. void __gls_decode_text_glColor3d(__GLScontext *ctx, __GLSreader *inoutReader) {
  935. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  936. GLdouble red;
  937. GLdouble green;
  938. GLdouble blue;
  939. __glsReader_getGLdouble_text(inoutReader, &red);
  940. __glsReader_getGLdouble_text(inoutReader, &green);
  941. __glsReader_getGLdouble_text(inoutReader, &blue);
  942. if (inoutReader->error) goto end;
  943. ((__GLSdispatch)ctx->dispatchCall[75])(
  944. red,
  945. green,
  946. blue
  947. );
  948. end:
  949. return;
  950. }
  951. void __gls_decode_text_glColor3dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  952. typedef void (*__GLSdispatch)(const GLdouble *);
  953. GLdouble v[3];
  954. __glsReader_getGLdoublev_text(inoutReader, 3, v);
  955. if (inoutReader->error) goto end;
  956. ((__GLSdispatch)ctx->dispatchCall[76])(
  957. v
  958. );
  959. end:
  960. return;
  961. }
  962. void __gls_decode_text_glColor3f(__GLScontext *ctx, __GLSreader *inoutReader) {
  963. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  964. GLfloat red;
  965. GLfloat green;
  966. GLfloat blue;
  967. __glsReader_getGLfloat_text(inoutReader, &red);
  968. __glsReader_getGLfloat_text(inoutReader, &green);
  969. __glsReader_getGLfloat_text(inoutReader, &blue);
  970. if (inoutReader->error) goto end;
  971. ((__GLSdispatch)ctx->dispatchCall[77])(
  972. red,
  973. green,
  974. blue
  975. );
  976. end:
  977. return;
  978. }
  979. void __gls_decode_text_glColor3fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  980. typedef void (*__GLSdispatch)(const GLfloat *);
  981. GLfloat v[3];
  982. __glsReader_getGLfloatv_text(inoutReader, 3, v);
  983. if (inoutReader->error) goto end;
  984. ((__GLSdispatch)ctx->dispatchCall[78])(
  985. v
  986. );
  987. end:
  988. return;
  989. }
  990. void __gls_decode_text_glColor3i(__GLScontext *ctx, __GLSreader *inoutReader) {
  991. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  992. GLint red;
  993. GLint green;
  994. GLint blue;
  995. __glsReader_getGLint_text(inoutReader, &red);
  996. __glsReader_getGLint_text(inoutReader, &green);
  997. __glsReader_getGLint_text(inoutReader, &blue);
  998. if (inoutReader->error) goto end;
  999. ((__GLSdispatch)ctx->dispatchCall[79])(
  1000. red,
  1001. green,
  1002. blue
  1003. );
  1004. end:
  1005. return;
  1006. }
  1007. void __gls_decode_text_glColor3iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1008. typedef void (*__GLSdispatch)(const GLint *);
  1009. GLint v[3];
  1010. __glsReader_getGLintv_text(inoutReader, 3, v);
  1011. if (inoutReader->error) goto end;
  1012. ((__GLSdispatch)ctx->dispatchCall[80])(
  1013. v
  1014. );
  1015. end:
  1016. return;
  1017. }
  1018. void __gls_decode_text_glColor3s(__GLScontext *ctx, __GLSreader *inoutReader) {
  1019. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  1020. GLshort red;
  1021. GLshort green;
  1022. GLshort blue;
  1023. __glsReader_getGLshort_text(inoutReader, &red);
  1024. __glsReader_getGLshort_text(inoutReader, &green);
  1025. __glsReader_getGLshort_text(inoutReader, &blue);
  1026. if (inoutReader->error) goto end;
  1027. ((__GLSdispatch)ctx->dispatchCall[81])(
  1028. red,
  1029. green,
  1030. blue
  1031. );
  1032. end:
  1033. return;
  1034. }
  1035. void __gls_decode_text_glColor3sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1036. typedef void (*__GLSdispatch)(const GLshort *);
  1037. GLshort v[3];
  1038. __glsReader_getGLshortv_text(inoutReader, 3, v);
  1039. if (inoutReader->error) goto end;
  1040. ((__GLSdispatch)ctx->dispatchCall[82])(
  1041. v
  1042. );
  1043. end:
  1044. return;
  1045. }
  1046. void __gls_decode_text_glColor3ub(__GLScontext *ctx, __GLSreader *inoutReader) {
  1047. typedef void (*__GLSdispatch)(GLubyte, GLubyte, GLubyte);
  1048. GLubyte red;
  1049. GLubyte green;
  1050. GLubyte blue;
  1051. __glsReader_getGLubyte_text(inoutReader, &red);
  1052. __glsReader_getGLubyte_text(inoutReader, &green);
  1053. __glsReader_getGLubyte_text(inoutReader, &blue);
  1054. if (inoutReader->error) goto end;
  1055. ((__GLSdispatch)ctx->dispatchCall[83])(
  1056. red,
  1057. green,
  1058. blue
  1059. );
  1060. end:
  1061. return;
  1062. }
  1063. void __gls_decode_text_glColor3ubv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1064. typedef void (*__GLSdispatch)(const GLubyte *);
  1065. GLubyte v[3];
  1066. __glsReader_getGLubytev_text(inoutReader, 3, v);
  1067. if (inoutReader->error) goto end;
  1068. ((__GLSdispatch)ctx->dispatchCall[84])(
  1069. v
  1070. );
  1071. end:
  1072. return;
  1073. }
  1074. void __gls_decode_text_glColor3ui(__GLScontext *ctx, __GLSreader *inoutReader) {
  1075. typedef void (*__GLSdispatch)(GLuint, GLuint, GLuint);
  1076. GLuint red;
  1077. GLuint green;
  1078. GLuint blue;
  1079. __glsReader_getGLuint_text(inoutReader, &red);
  1080. __glsReader_getGLuint_text(inoutReader, &green);
  1081. __glsReader_getGLuint_text(inoutReader, &blue);
  1082. if (inoutReader->error) goto end;
  1083. ((__GLSdispatch)ctx->dispatchCall[85])(
  1084. red,
  1085. green,
  1086. blue
  1087. );
  1088. end:
  1089. return;
  1090. }
  1091. void __gls_decode_text_glColor3uiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1092. typedef void (*__GLSdispatch)(const GLuint *);
  1093. GLuint v[3];
  1094. __glsReader_getGLuintv_text(inoutReader, 3, v);
  1095. if (inoutReader->error) goto end;
  1096. ((__GLSdispatch)ctx->dispatchCall[86])(
  1097. v
  1098. );
  1099. end:
  1100. return;
  1101. }
  1102. void __gls_decode_text_glColor3us(__GLScontext *ctx, __GLSreader *inoutReader) {
  1103. typedef void (*__GLSdispatch)(GLushort, GLushort, GLushort);
  1104. GLushort red;
  1105. GLushort green;
  1106. GLushort blue;
  1107. __glsReader_getGLushort_text(inoutReader, &red);
  1108. __glsReader_getGLushort_text(inoutReader, &green);
  1109. __glsReader_getGLushort_text(inoutReader, &blue);
  1110. if (inoutReader->error) goto end;
  1111. ((__GLSdispatch)ctx->dispatchCall[87])(
  1112. red,
  1113. green,
  1114. blue
  1115. );
  1116. end:
  1117. return;
  1118. }
  1119. void __gls_decode_text_glColor3usv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1120. typedef void (*__GLSdispatch)(const GLushort *);
  1121. GLushort v[3];
  1122. __glsReader_getGLushortv_text(inoutReader, 3, v);
  1123. if (inoutReader->error) goto end;
  1124. ((__GLSdispatch)ctx->dispatchCall[88])(
  1125. v
  1126. );
  1127. end:
  1128. return;
  1129. }
  1130. void __gls_decode_text_glColor4b(__GLScontext *ctx, __GLSreader *inoutReader) {
  1131. typedef void (*__GLSdispatch)(GLbyte, GLbyte, GLbyte, GLbyte);
  1132. GLbyte red;
  1133. GLbyte green;
  1134. GLbyte blue;
  1135. GLbyte alpha;
  1136. __glsReader_getGLbyte_text(inoutReader, &red);
  1137. __glsReader_getGLbyte_text(inoutReader, &green);
  1138. __glsReader_getGLbyte_text(inoutReader, &blue);
  1139. __glsReader_getGLbyte_text(inoutReader, &alpha);
  1140. if (inoutReader->error) goto end;
  1141. ((__GLSdispatch)ctx->dispatchCall[89])(
  1142. red,
  1143. green,
  1144. blue,
  1145. alpha
  1146. );
  1147. end:
  1148. return;
  1149. }
  1150. void __gls_decode_text_glColor4bv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1151. typedef void (*__GLSdispatch)(const GLbyte *);
  1152. GLbyte v[4];
  1153. __glsReader_getGLbytev_text(inoutReader, 4, v);
  1154. if (inoutReader->error) goto end;
  1155. ((__GLSdispatch)ctx->dispatchCall[90])(
  1156. v
  1157. );
  1158. end:
  1159. return;
  1160. }
  1161. void __gls_decode_text_glColor4d(__GLScontext *ctx, __GLSreader *inoutReader) {
  1162. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  1163. GLdouble red;
  1164. GLdouble green;
  1165. GLdouble blue;
  1166. GLdouble alpha;
  1167. __glsReader_getGLdouble_text(inoutReader, &red);
  1168. __glsReader_getGLdouble_text(inoutReader, &green);
  1169. __glsReader_getGLdouble_text(inoutReader, &blue);
  1170. __glsReader_getGLdouble_text(inoutReader, &alpha);
  1171. if (inoutReader->error) goto end;
  1172. ((__GLSdispatch)ctx->dispatchCall[91])(
  1173. red,
  1174. green,
  1175. blue,
  1176. alpha
  1177. );
  1178. end:
  1179. return;
  1180. }
  1181. void __gls_decode_text_glColor4dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1182. typedef void (*__GLSdispatch)(const GLdouble *);
  1183. GLdouble v[4];
  1184. __glsReader_getGLdoublev_text(inoutReader, 4, v);
  1185. if (inoutReader->error) goto end;
  1186. ((__GLSdispatch)ctx->dispatchCall[92])(
  1187. v
  1188. );
  1189. end:
  1190. return;
  1191. }
  1192. void __gls_decode_text_glColor4f(__GLScontext *ctx, __GLSreader *inoutReader) {
  1193. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  1194. GLfloat red;
  1195. GLfloat green;
  1196. GLfloat blue;
  1197. GLfloat alpha;
  1198. __glsReader_getGLfloat_text(inoutReader, &red);
  1199. __glsReader_getGLfloat_text(inoutReader, &green);
  1200. __glsReader_getGLfloat_text(inoutReader, &blue);
  1201. __glsReader_getGLfloat_text(inoutReader, &alpha);
  1202. if (inoutReader->error) goto end;
  1203. ((__GLSdispatch)ctx->dispatchCall[93])(
  1204. red,
  1205. green,
  1206. blue,
  1207. alpha
  1208. );
  1209. end:
  1210. return;
  1211. }
  1212. void __gls_decode_text_glColor4fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1213. typedef void (*__GLSdispatch)(const GLfloat *);
  1214. GLfloat v[4];
  1215. __glsReader_getGLfloatv_text(inoutReader, 4, v);
  1216. if (inoutReader->error) goto end;
  1217. ((__GLSdispatch)ctx->dispatchCall[94])(
  1218. v
  1219. );
  1220. end:
  1221. return;
  1222. }
  1223. void __gls_decode_text_glColor4i(__GLScontext *ctx, __GLSreader *inoutReader) {
  1224. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  1225. GLint red;
  1226. GLint green;
  1227. GLint blue;
  1228. GLint alpha;
  1229. __glsReader_getGLint_text(inoutReader, &red);
  1230. __glsReader_getGLint_text(inoutReader, &green);
  1231. __glsReader_getGLint_text(inoutReader, &blue);
  1232. __glsReader_getGLint_text(inoutReader, &alpha);
  1233. if (inoutReader->error) goto end;
  1234. ((__GLSdispatch)ctx->dispatchCall[95])(
  1235. red,
  1236. green,
  1237. blue,
  1238. alpha
  1239. );
  1240. end:
  1241. return;
  1242. }
  1243. void __gls_decode_text_glColor4iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1244. typedef void (*__GLSdispatch)(const GLint *);
  1245. GLint v[4];
  1246. __glsReader_getGLintv_text(inoutReader, 4, v);
  1247. if (inoutReader->error) goto end;
  1248. ((__GLSdispatch)ctx->dispatchCall[96])(
  1249. v
  1250. );
  1251. end:
  1252. return;
  1253. }
  1254. void __gls_decode_text_glColor4s(__GLScontext *ctx, __GLSreader *inoutReader) {
  1255. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  1256. GLshort red;
  1257. GLshort green;
  1258. GLshort blue;
  1259. GLshort alpha;
  1260. __glsReader_getGLshort_text(inoutReader, &red);
  1261. __glsReader_getGLshort_text(inoutReader, &green);
  1262. __glsReader_getGLshort_text(inoutReader, &blue);
  1263. __glsReader_getGLshort_text(inoutReader, &alpha);
  1264. if (inoutReader->error) goto end;
  1265. ((__GLSdispatch)ctx->dispatchCall[97])(
  1266. red,
  1267. green,
  1268. blue,
  1269. alpha
  1270. );
  1271. end:
  1272. return;
  1273. }
  1274. void __gls_decode_text_glColor4sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1275. typedef void (*__GLSdispatch)(const GLshort *);
  1276. GLshort v[4];
  1277. __glsReader_getGLshortv_text(inoutReader, 4, v);
  1278. if (inoutReader->error) goto end;
  1279. ((__GLSdispatch)ctx->dispatchCall[98])(
  1280. v
  1281. );
  1282. end:
  1283. return;
  1284. }
  1285. void __gls_decode_text_glColor4ub(__GLScontext *ctx, __GLSreader *inoutReader) {
  1286. typedef void (*__GLSdispatch)(GLubyte, GLubyte, GLubyte, GLubyte);
  1287. GLubyte red;
  1288. GLubyte green;
  1289. GLubyte blue;
  1290. GLubyte alpha;
  1291. __glsReader_getGLubyte_text(inoutReader, &red);
  1292. __glsReader_getGLubyte_text(inoutReader, &green);
  1293. __glsReader_getGLubyte_text(inoutReader, &blue);
  1294. __glsReader_getGLubyte_text(inoutReader, &alpha);
  1295. if (inoutReader->error) goto end;
  1296. ((__GLSdispatch)ctx->dispatchCall[99])(
  1297. red,
  1298. green,
  1299. blue,
  1300. alpha
  1301. );
  1302. end:
  1303. return;
  1304. }
  1305. void __gls_decode_text_glColor4ubv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1306. typedef void (*__GLSdispatch)(const GLubyte *);
  1307. GLubyte v[4];
  1308. __glsReader_getGLubytev_text(inoutReader, 4, v);
  1309. if (inoutReader->error) goto end;
  1310. ((__GLSdispatch)ctx->dispatchCall[100])(
  1311. v
  1312. );
  1313. end:
  1314. return;
  1315. }
  1316. void __gls_decode_text_glColor4ui(__GLScontext *ctx, __GLSreader *inoutReader) {
  1317. typedef void (*__GLSdispatch)(GLuint, GLuint, GLuint, GLuint);
  1318. GLuint red;
  1319. GLuint green;
  1320. GLuint blue;
  1321. GLuint alpha;
  1322. __glsReader_getGLuint_text(inoutReader, &red);
  1323. __glsReader_getGLuint_text(inoutReader, &green);
  1324. __glsReader_getGLuint_text(inoutReader, &blue);
  1325. __glsReader_getGLuint_text(inoutReader, &alpha);
  1326. if (inoutReader->error) goto end;
  1327. ((__GLSdispatch)ctx->dispatchCall[101])(
  1328. red,
  1329. green,
  1330. blue,
  1331. alpha
  1332. );
  1333. end:
  1334. return;
  1335. }
  1336. void __gls_decode_text_glColor4uiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1337. typedef void (*__GLSdispatch)(const GLuint *);
  1338. GLuint v[4];
  1339. __glsReader_getGLuintv_text(inoutReader, 4, v);
  1340. if (inoutReader->error) goto end;
  1341. ((__GLSdispatch)ctx->dispatchCall[102])(
  1342. v
  1343. );
  1344. end:
  1345. return;
  1346. }
  1347. void __gls_decode_text_glColor4us(__GLScontext *ctx, __GLSreader *inoutReader) {
  1348. typedef void (*__GLSdispatch)(GLushort, GLushort, GLushort, GLushort);
  1349. GLushort red;
  1350. GLushort green;
  1351. GLushort blue;
  1352. GLushort alpha;
  1353. __glsReader_getGLushort_text(inoutReader, &red);
  1354. __glsReader_getGLushort_text(inoutReader, &green);
  1355. __glsReader_getGLushort_text(inoutReader, &blue);
  1356. __glsReader_getGLushort_text(inoutReader, &alpha);
  1357. if (inoutReader->error) goto end;
  1358. ((__GLSdispatch)ctx->dispatchCall[103])(
  1359. red,
  1360. green,
  1361. blue,
  1362. alpha
  1363. );
  1364. end:
  1365. return;
  1366. }
  1367. void __gls_decode_text_glColor4usv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1368. typedef void (*__GLSdispatch)(const GLushort *);
  1369. GLushort v[4];
  1370. __glsReader_getGLushortv_text(inoutReader, 4, v);
  1371. if (inoutReader->error) goto end;
  1372. ((__GLSdispatch)ctx->dispatchCall[104])(
  1373. v
  1374. );
  1375. end:
  1376. return;
  1377. }
  1378. void __gls_decode_text_glEdgeFlag(__GLScontext *ctx, __GLSreader *inoutReader) {
  1379. typedef void (*__GLSdispatch)(GLboolean);
  1380. GLboolean flag;
  1381. __glsReader_getGLboolean_text(inoutReader, &flag);
  1382. if (inoutReader->error) goto end;
  1383. ((__GLSdispatch)ctx->dispatchCall[105])(
  1384. flag
  1385. );
  1386. end:
  1387. return;
  1388. }
  1389. void __gls_decode_text_glEdgeFlagv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1390. typedef void (*__GLSdispatch)(const GLboolean *);
  1391. GLboolean flag[1];
  1392. __glsReader_getGLbooleanv_text(inoutReader, 1, flag);
  1393. if (inoutReader->error) goto end;
  1394. ((__GLSdispatch)ctx->dispatchCall[106])(
  1395. flag
  1396. );
  1397. end:
  1398. return;
  1399. }
  1400. void __gls_decode_text_glEnd(__GLScontext *ctx, __GLSreader *inoutReader) {
  1401. typedef void (*__GLSdispatch)(void);
  1402. if (inoutReader->error) goto end;
  1403. ((__GLSdispatch)ctx->dispatchCall[107])(
  1404. );
  1405. end:
  1406. return;
  1407. }
  1408. void __gls_decode_text_glIndexd(__GLScontext *ctx, __GLSreader *inoutReader) {
  1409. typedef void (*__GLSdispatch)(GLdouble);
  1410. GLdouble c;
  1411. __glsReader_getGLdouble_text(inoutReader, &c);
  1412. if (inoutReader->error) goto end;
  1413. ((__GLSdispatch)ctx->dispatchCall[108])(
  1414. c
  1415. );
  1416. end:
  1417. return;
  1418. }
  1419. void __gls_decode_text_glIndexdv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1420. typedef void (*__GLSdispatch)(const GLdouble *);
  1421. GLdouble c[1];
  1422. __glsReader_getGLdoublev_text(inoutReader, 1, c);
  1423. if (inoutReader->error) goto end;
  1424. ((__GLSdispatch)ctx->dispatchCall[109])(
  1425. c
  1426. );
  1427. end:
  1428. return;
  1429. }
  1430. void __gls_decode_text_glIndexf(__GLScontext *ctx, __GLSreader *inoutReader) {
  1431. typedef void (*__GLSdispatch)(GLfloat);
  1432. GLfloat c;
  1433. __glsReader_getGLfloat_text(inoutReader, &c);
  1434. if (inoutReader->error) goto end;
  1435. ((__GLSdispatch)ctx->dispatchCall[110])(
  1436. c
  1437. );
  1438. end:
  1439. return;
  1440. }
  1441. void __gls_decode_text_glIndexfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1442. typedef void (*__GLSdispatch)(const GLfloat *);
  1443. GLfloat c[1];
  1444. __glsReader_getGLfloatv_text(inoutReader, 1, c);
  1445. if (inoutReader->error) goto end;
  1446. ((__GLSdispatch)ctx->dispatchCall[111])(
  1447. c
  1448. );
  1449. end:
  1450. return;
  1451. }
  1452. void __gls_decode_text_glIndexi(__GLScontext *ctx, __GLSreader *inoutReader) {
  1453. typedef void (*__GLSdispatch)(GLint);
  1454. GLint c;
  1455. __glsReader_getGLint_text(inoutReader, &c);
  1456. if (inoutReader->error) goto end;
  1457. ((__GLSdispatch)ctx->dispatchCall[112])(
  1458. c
  1459. );
  1460. end:
  1461. return;
  1462. }
  1463. void __gls_decode_text_glIndexiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1464. typedef void (*__GLSdispatch)(const GLint *);
  1465. GLint c[1];
  1466. __glsReader_getGLintv_text(inoutReader, 1, c);
  1467. if (inoutReader->error) goto end;
  1468. ((__GLSdispatch)ctx->dispatchCall[113])(
  1469. c
  1470. );
  1471. end:
  1472. return;
  1473. }
  1474. void __gls_decode_text_glIndexs(__GLScontext *ctx, __GLSreader *inoutReader) {
  1475. typedef void (*__GLSdispatch)(GLshort);
  1476. GLshort c;
  1477. __glsReader_getGLshort_text(inoutReader, &c);
  1478. if (inoutReader->error) goto end;
  1479. ((__GLSdispatch)ctx->dispatchCall[114])(
  1480. c
  1481. );
  1482. end:
  1483. return;
  1484. }
  1485. void __gls_decode_text_glIndexsv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1486. typedef void (*__GLSdispatch)(const GLshort *);
  1487. GLshort c[1];
  1488. __glsReader_getGLshortv_text(inoutReader, 1, c);
  1489. if (inoutReader->error) goto end;
  1490. ((__GLSdispatch)ctx->dispatchCall[115])(
  1491. c
  1492. );
  1493. end:
  1494. return;
  1495. }
  1496. void __gls_decode_text_glIndexub(__GLScontext *ctx, __GLSreader *inoutReader) {
  1497. typedef void (*__GLSdispatch)(GLubyte);
  1498. GLubyte c;
  1499. __glsReader_getGLubyte_text(inoutReader, &c);
  1500. if (inoutReader->error) goto end;
  1501. ((__GLSdispatch)ctx->dispatchCall[379])(
  1502. c
  1503. );
  1504. end:
  1505. return;
  1506. }
  1507. void __gls_decode_text_glIndexubv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1508. typedef void (*__GLSdispatch)(const GLubyte *);
  1509. GLubyte c[1];
  1510. __glsReader_getGLubytev_text(inoutReader, 1, c);
  1511. if (inoutReader->error) goto end;
  1512. ((__GLSdispatch)ctx->dispatchCall[380])(
  1513. c
  1514. );
  1515. end:
  1516. return;
  1517. }
  1518. void __gls_decode_text_glNormal3b(__GLScontext *ctx, __GLSreader *inoutReader) {
  1519. typedef void (*__GLSdispatch)(GLbyte, GLbyte, GLbyte);
  1520. GLbyte nx;
  1521. GLbyte ny;
  1522. GLbyte nz;
  1523. __glsReader_getGLbyte_text(inoutReader, &nx);
  1524. __glsReader_getGLbyte_text(inoutReader, &ny);
  1525. __glsReader_getGLbyte_text(inoutReader, &nz);
  1526. if (inoutReader->error) goto end;
  1527. ((__GLSdispatch)ctx->dispatchCall[116])(
  1528. nx,
  1529. ny,
  1530. nz
  1531. );
  1532. end:
  1533. return;
  1534. }
  1535. void __gls_decode_text_glNormal3bv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1536. typedef void (*__GLSdispatch)(const GLbyte *);
  1537. GLbyte v[3];
  1538. __glsReader_getGLbytev_text(inoutReader, 3, v);
  1539. if (inoutReader->error) goto end;
  1540. ((__GLSdispatch)ctx->dispatchCall[117])(
  1541. v
  1542. );
  1543. end:
  1544. return;
  1545. }
  1546. void __gls_decode_text_glNormal3d(__GLScontext *ctx, __GLSreader *inoutReader) {
  1547. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  1548. GLdouble nx;
  1549. GLdouble ny;
  1550. GLdouble nz;
  1551. __glsReader_getGLdouble_text(inoutReader, &nx);
  1552. __glsReader_getGLdouble_text(inoutReader, &ny);
  1553. __glsReader_getGLdouble_text(inoutReader, &nz);
  1554. if (inoutReader->error) goto end;
  1555. ((__GLSdispatch)ctx->dispatchCall[118])(
  1556. nx,
  1557. ny,
  1558. nz
  1559. );
  1560. end:
  1561. return;
  1562. }
  1563. void __gls_decode_text_glNormal3dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1564. typedef void (*__GLSdispatch)(const GLdouble *);
  1565. GLdouble v[3];
  1566. __glsReader_getGLdoublev_text(inoutReader, 3, v);
  1567. if (inoutReader->error) goto end;
  1568. ((__GLSdispatch)ctx->dispatchCall[119])(
  1569. v
  1570. );
  1571. end:
  1572. return;
  1573. }
  1574. void __gls_decode_text_glNormal3f(__GLScontext *ctx, __GLSreader *inoutReader) {
  1575. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  1576. GLfloat nx;
  1577. GLfloat ny;
  1578. GLfloat nz;
  1579. __glsReader_getGLfloat_text(inoutReader, &nx);
  1580. __glsReader_getGLfloat_text(inoutReader, &ny);
  1581. __glsReader_getGLfloat_text(inoutReader, &nz);
  1582. if (inoutReader->error) goto end;
  1583. ((__GLSdispatch)ctx->dispatchCall[120])(
  1584. nx,
  1585. ny,
  1586. nz
  1587. );
  1588. end:
  1589. return;
  1590. }
  1591. void __gls_decode_text_glNormal3fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1592. typedef void (*__GLSdispatch)(const GLfloat *);
  1593. GLfloat v[3];
  1594. __glsReader_getGLfloatv_text(inoutReader, 3, v);
  1595. if (inoutReader->error) goto end;
  1596. ((__GLSdispatch)ctx->dispatchCall[121])(
  1597. v
  1598. );
  1599. end:
  1600. return;
  1601. }
  1602. void __gls_decode_text_glNormal3i(__GLScontext *ctx, __GLSreader *inoutReader) {
  1603. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  1604. GLint nx;
  1605. GLint ny;
  1606. GLint nz;
  1607. __glsReader_getGLint_text(inoutReader, &nx);
  1608. __glsReader_getGLint_text(inoutReader, &ny);
  1609. __glsReader_getGLint_text(inoutReader, &nz);
  1610. if (inoutReader->error) goto end;
  1611. ((__GLSdispatch)ctx->dispatchCall[122])(
  1612. nx,
  1613. ny,
  1614. nz
  1615. );
  1616. end:
  1617. return;
  1618. }
  1619. void __gls_decode_text_glNormal3iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1620. typedef void (*__GLSdispatch)(const GLint *);
  1621. GLint v[3];
  1622. __glsReader_getGLintv_text(inoutReader, 3, v);
  1623. if (inoutReader->error) goto end;
  1624. ((__GLSdispatch)ctx->dispatchCall[123])(
  1625. v
  1626. );
  1627. end:
  1628. return;
  1629. }
  1630. void __gls_decode_text_glNormal3s(__GLScontext *ctx, __GLSreader *inoutReader) {
  1631. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  1632. GLshort nx;
  1633. GLshort ny;
  1634. GLshort nz;
  1635. __glsReader_getGLshort_text(inoutReader, &nx);
  1636. __glsReader_getGLshort_text(inoutReader, &ny);
  1637. __glsReader_getGLshort_text(inoutReader, &nz);
  1638. if (inoutReader->error) goto end;
  1639. ((__GLSdispatch)ctx->dispatchCall[124])(
  1640. nx,
  1641. ny,
  1642. nz
  1643. );
  1644. end:
  1645. return;
  1646. }
  1647. void __gls_decode_text_glNormal3sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1648. typedef void (*__GLSdispatch)(const GLshort *);
  1649. GLshort v[3];
  1650. __glsReader_getGLshortv_text(inoutReader, 3, v);
  1651. if (inoutReader->error) goto end;
  1652. ((__GLSdispatch)ctx->dispatchCall[125])(
  1653. v
  1654. );
  1655. end:
  1656. return;
  1657. }
  1658. void __gls_decode_text_glRasterPos2d(__GLScontext *ctx, __GLSreader *inoutReader) {
  1659. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  1660. GLdouble x;
  1661. GLdouble y;
  1662. __glsReader_getGLdouble_text(inoutReader, &x);
  1663. __glsReader_getGLdouble_text(inoutReader, &y);
  1664. if (inoutReader->error) goto end;
  1665. ((__GLSdispatch)ctx->dispatchCall[126])(
  1666. x,
  1667. y
  1668. );
  1669. end:
  1670. return;
  1671. }
  1672. void __gls_decode_text_glRasterPos2dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1673. typedef void (*__GLSdispatch)(const GLdouble *);
  1674. GLdouble v[2];
  1675. __glsReader_getGLdoublev_text(inoutReader, 2, v);
  1676. if (inoutReader->error) goto end;
  1677. ((__GLSdispatch)ctx->dispatchCall[127])(
  1678. v
  1679. );
  1680. end:
  1681. return;
  1682. }
  1683. void __gls_decode_text_glRasterPos2f(__GLScontext *ctx, __GLSreader *inoutReader) {
  1684. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  1685. GLfloat x;
  1686. GLfloat y;
  1687. __glsReader_getGLfloat_text(inoutReader, &x);
  1688. __glsReader_getGLfloat_text(inoutReader, &y);
  1689. if (inoutReader->error) goto end;
  1690. ((__GLSdispatch)ctx->dispatchCall[128])(
  1691. x,
  1692. y
  1693. );
  1694. end:
  1695. return;
  1696. }
  1697. void __gls_decode_text_glRasterPos2fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1698. typedef void (*__GLSdispatch)(const GLfloat *);
  1699. GLfloat v[2];
  1700. __glsReader_getGLfloatv_text(inoutReader, 2, v);
  1701. if (inoutReader->error) goto end;
  1702. ((__GLSdispatch)ctx->dispatchCall[129])(
  1703. v
  1704. );
  1705. end:
  1706. return;
  1707. }
  1708. void __gls_decode_text_glRasterPos2i(__GLScontext *ctx, __GLSreader *inoutReader) {
  1709. typedef void (*__GLSdispatch)(GLint, GLint);
  1710. GLint x;
  1711. GLint y;
  1712. __glsReader_getGLint_text(inoutReader, &x);
  1713. __glsReader_getGLint_text(inoutReader, &y);
  1714. if (inoutReader->error) goto end;
  1715. ((__GLSdispatch)ctx->dispatchCall[130])(
  1716. x,
  1717. y
  1718. );
  1719. end:
  1720. return;
  1721. }
  1722. void __gls_decode_text_glRasterPos2iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1723. typedef void (*__GLSdispatch)(const GLint *);
  1724. GLint v[2];
  1725. __glsReader_getGLintv_text(inoutReader, 2, v);
  1726. if (inoutReader->error) goto end;
  1727. ((__GLSdispatch)ctx->dispatchCall[131])(
  1728. v
  1729. );
  1730. end:
  1731. return;
  1732. }
  1733. void __gls_decode_text_glRasterPos2s(__GLScontext *ctx, __GLSreader *inoutReader) {
  1734. typedef void (*__GLSdispatch)(GLshort, GLshort);
  1735. GLshort x;
  1736. GLshort y;
  1737. __glsReader_getGLshort_text(inoutReader, &x);
  1738. __glsReader_getGLshort_text(inoutReader, &y);
  1739. if (inoutReader->error) goto end;
  1740. ((__GLSdispatch)ctx->dispatchCall[132])(
  1741. x,
  1742. y
  1743. );
  1744. end:
  1745. return;
  1746. }
  1747. void __gls_decode_text_glRasterPos2sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1748. typedef void (*__GLSdispatch)(const GLshort *);
  1749. GLshort v[2];
  1750. __glsReader_getGLshortv_text(inoutReader, 2, v);
  1751. if (inoutReader->error) goto end;
  1752. ((__GLSdispatch)ctx->dispatchCall[133])(
  1753. v
  1754. );
  1755. end:
  1756. return;
  1757. }
  1758. void __gls_decode_text_glRasterPos3d(__GLScontext *ctx, __GLSreader *inoutReader) {
  1759. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  1760. GLdouble x;
  1761. GLdouble y;
  1762. GLdouble z;
  1763. __glsReader_getGLdouble_text(inoutReader, &x);
  1764. __glsReader_getGLdouble_text(inoutReader, &y);
  1765. __glsReader_getGLdouble_text(inoutReader, &z);
  1766. if (inoutReader->error) goto end;
  1767. ((__GLSdispatch)ctx->dispatchCall[134])(
  1768. x,
  1769. y,
  1770. z
  1771. );
  1772. end:
  1773. return;
  1774. }
  1775. void __gls_decode_text_glRasterPos3dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1776. typedef void (*__GLSdispatch)(const GLdouble *);
  1777. GLdouble v[3];
  1778. __glsReader_getGLdoublev_text(inoutReader, 3, v);
  1779. if (inoutReader->error) goto end;
  1780. ((__GLSdispatch)ctx->dispatchCall[135])(
  1781. v
  1782. );
  1783. end:
  1784. return;
  1785. }
  1786. void __gls_decode_text_glRasterPos3f(__GLScontext *ctx, __GLSreader *inoutReader) {
  1787. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  1788. GLfloat x;
  1789. GLfloat y;
  1790. GLfloat z;
  1791. __glsReader_getGLfloat_text(inoutReader, &x);
  1792. __glsReader_getGLfloat_text(inoutReader, &y);
  1793. __glsReader_getGLfloat_text(inoutReader, &z);
  1794. if (inoutReader->error) goto end;
  1795. ((__GLSdispatch)ctx->dispatchCall[136])(
  1796. x,
  1797. y,
  1798. z
  1799. );
  1800. end:
  1801. return;
  1802. }
  1803. void __gls_decode_text_glRasterPos3fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1804. typedef void (*__GLSdispatch)(const GLfloat *);
  1805. GLfloat v[3];
  1806. __glsReader_getGLfloatv_text(inoutReader, 3, v);
  1807. if (inoutReader->error) goto end;
  1808. ((__GLSdispatch)ctx->dispatchCall[137])(
  1809. v
  1810. );
  1811. end:
  1812. return;
  1813. }
  1814. void __gls_decode_text_glRasterPos3i(__GLScontext *ctx, __GLSreader *inoutReader) {
  1815. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  1816. GLint x;
  1817. GLint y;
  1818. GLint z;
  1819. __glsReader_getGLint_text(inoutReader, &x);
  1820. __glsReader_getGLint_text(inoutReader, &y);
  1821. __glsReader_getGLint_text(inoutReader, &z);
  1822. if (inoutReader->error) goto end;
  1823. ((__GLSdispatch)ctx->dispatchCall[138])(
  1824. x,
  1825. y,
  1826. z
  1827. );
  1828. end:
  1829. return;
  1830. }
  1831. void __gls_decode_text_glRasterPos3iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1832. typedef void (*__GLSdispatch)(const GLint *);
  1833. GLint v[3];
  1834. __glsReader_getGLintv_text(inoutReader, 3, v);
  1835. if (inoutReader->error) goto end;
  1836. ((__GLSdispatch)ctx->dispatchCall[139])(
  1837. v
  1838. );
  1839. end:
  1840. return;
  1841. }
  1842. void __gls_decode_text_glRasterPos3s(__GLScontext *ctx, __GLSreader *inoutReader) {
  1843. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  1844. GLshort x;
  1845. GLshort y;
  1846. GLshort z;
  1847. __glsReader_getGLshort_text(inoutReader, &x);
  1848. __glsReader_getGLshort_text(inoutReader, &y);
  1849. __glsReader_getGLshort_text(inoutReader, &z);
  1850. if (inoutReader->error) goto end;
  1851. ((__GLSdispatch)ctx->dispatchCall[140])(
  1852. x,
  1853. y,
  1854. z
  1855. );
  1856. end:
  1857. return;
  1858. }
  1859. void __gls_decode_text_glRasterPos3sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1860. typedef void (*__GLSdispatch)(const GLshort *);
  1861. GLshort v[3];
  1862. __glsReader_getGLshortv_text(inoutReader, 3, v);
  1863. if (inoutReader->error) goto end;
  1864. ((__GLSdispatch)ctx->dispatchCall[141])(
  1865. v
  1866. );
  1867. end:
  1868. return;
  1869. }
  1870. void __gls_decode_text_glRasterPos4d(__GLScontext *ctx, __GLSreader *inoutReader) {
  1871. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  1872. GLdouble x;
  1873. GLdouble y;
  1874. GLdouble z;
  1875. GLdouble w;
  1876. __glsReader_getGLdouble_text(inoutReader, &x);
  1877. __glsReader_getGLdouble_text(inoutReader, &y);
  1878. __glsReader_getGLdouble_text(inoutReader, &z);
  1879. __glsReader_getGLdouble_text(inoutReader, &w);
  1880. if (inoutReader->error) goto end;
  1881. ((__GLSdispatch)ctx->dispatchCall[142])(
  1882. x,
  1883. y,
  1884. z,
  1885. w
  1886. );
  1887. end:
  1888. return;
  1889. }
  1890. void __gls_decode_text_glRasterPos4dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1891. typedef void (*__GLSdispatch)(const GLdouble *);
  1892. GLdouble v[4];
  1893. __glsReader_getGLdoublev_text(inoutReader, 4, v);
  1894. if (inoutReader->error) goto end;
  1895. ((__GLSdispatch)ctx->dispatchCall[143])(
  1896. v
  1897. );
  1898. end:
  1899. return;
  1900. }
  1901. void __gls_decode_text_glRasterPos4f(__GLScontext *ctx, __GLSreader *inoutReader) {
  1902. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  1903. GLfloat x;
  1904. GLfloat y;
  1905. GLfloat z;
  1906. GLfloat w;
  1907. __glsReader_getGLfloat_text(inoutReader, &x);
  1908. __glsReader_getGLfloat_text(inoutReader, &y);
  1909. __glsReader_getGLfloat_text(inoutReader, &z);
  1910. __glsReader_getGLfloat_text(inoutReader, &w);
  1911. if (inoutReader->error) goto end;
  1912. ((__GLSdispatch)ctx->dispatchCall[144])(
  1913. x,
  1914. y,
  1915. z,
  1916. w
  1917. );
  1918. end:
  1919. return;
  1920. }
  1921. void __gls_decode_text_glRasterPos4fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1922. typedef void (*__GLSdispatch)(const GLfloat *);
  1923. GLfloat v[4];
  1924. __glsReader_getGLfloatv_text(inoutReader, 4, v);
  1925. if (inoutReader->error) goto end;
  1926. ((__GLSdispatch)ctx->dispatchCall[145])(
  1927. v
  1928. );
  1929. end:
  1930. return;
  1931. }
  1932. void __gls_decode_text_glRasterPos4i(__GLScontext *ctx, __GLSreader *inoutReader) {
  1933. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  1934. GLint x;
  1935. GLint y;
  1936. GLint z;
  1937. GLint w;
  1938. __glsReader_getGLint_text(inoutReader, &x);
  1939. __glsReader_getGLint_text(inoutReader, &y);
  1940. __glsReader_getGLint_text(inoutReader, &z);
  1941. __glsReader_getGLint_text(inoutReader, &w);
  1942. if (inoutReader->error) goto end;
  1943. ((__GLSdispatch)ctx->dispatchCall[146])(
  1944. x,
  1945. y,
  1946. z,
  1947. w
  1948. );
  1949. end:
  1950. return;
  1951. }
  1952. void __gls_decode_text_glRasterPos4iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1953. typedef void (*__GLSdispatch)(const GLint *);
  1954. GLint v[4];
  1955. __glsReader_getGLintv_text(inoutReader, 4, v);
  1956. if (inoutReader->error) goto end;
  1957. ((__GLSdispatch)ctx->dispatchCall[147])(
  1958. v
  1959. );
  1960. end:
  1961. return;
  1962. }
  1963. void __gls_decode_text_glRasterPos4s(__GLScontext *ctx, __GLSreader *inoutReader) {
  1964. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  1965. GLshort x;
  1966. GLshort y;
  1967. GLshort z;
  1968. GLshort w;
  1969. __glsReader_getGLshort_text(inoutReader, &x);
  1970. __glsReader_getGLshort_text(inoutReader, &y);
  1971. __glsReader_getGLshort_text(inoutReader, &z);
  1972. __glsReader_getGLshort_text(inoutReader, &w);
  1973. if (inoutReader->error) goto end;
  1974. ((__GLSdispatch)ctx->dispatchCall[148])(
  1975. x,
  1976. y,
  1977. z,
  1978. w
  1979. );
  1980. end:
  1981. return;
  1982. }
  1983. void __gls_decode_text_glRasterPos4sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  1984. typedef void (*__GLSdispatch)(const GLshort *);
  1985. GLshort v[4];
  1986. __glsReader_getGLshortv_text(inoutReader, 4, v);
  1987. if (inoutReader->error) goto end;
  1988. ((__GLSdispatch)ctx->dispatchCall[149])(
  1989. v
  1990. );
  1991. end:
  1992. return;
  1993. }
  1994. void __gls_decode_text_glRectd(__GLScontext *ctx, __GLSreader *inoutReader) {
  1995. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  1996. GLdouble x1;
  1997. GLdouble y1;
  1998. GLdouble x2;
  1999. GLdouble y2;
  2000. __glsReader_getGLdouble_text(inoutReader, &x1);
  2001. __glsReader_getGLdouble_text(inoutReader, &y1);
  2002. __glsReader_getGLdouble_text(inoutReader, &x2);
  2003. __glsReader_getGLdouble_text(inoutReader, &y2);
  2004. if (inoutReader->error) goto end;
  2005. ((__GLSdispatch)ctx->dispatchCall[150])(
  2006. x1,
  2007. y1,
  2008. x2,
  2009. y2
  2010. );
  2011. end:
  2012. return;
  2013. }
  2014. void __gls_decode_text_glRectdv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2015. typedef void (*__GLSdispatch)(const GLdouble *, const GLdouble *);
  2016. GLdouble v1[2];
  2017. GLdouble v2[2];
  2018. __glsReader_getGLdoublev_text(inoutReader, 2, v1);
  2019. __glsReader_getGLdoublev_text(inoutReader, 2, v2);
  2020. if (inoutReader->error) goto end;
  2021. ((__GLSdispatch)ctx->dispatchCall[151])(
  2022. v1,
  2023. v2
  2024. );
  2025. end:
  2026. return;
  2027. }
  2028. void __gls_decode_text_glRectf(__GLScontext *ctx, __GLSreader *inoutReader) {
  2029. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  2030. GLfloat x1;
  2031. GLfloat y1;
  2032. GLfloat x2;
  2033. GLfloat y2;
  2034. __glsReader_getGLfloat_text(inoutReader, &x1);
  2035. __glsReader_getGLfloat_text(inoutReader, &y1);
  2036. __glsReader_getGLfloat_text(inoutReader, &x2);
  2037. __glsReader_getGLfloat_text(inoutReader, &y2);
  2038. if (inoutReader->error) goto end;
  2039. ((__GLSdispatch)ctx->dispatchCall[152])(
  2040. x1,
  2041. y1,
  2042. x2,
  2043. y2
  2044. );
  2045. end:
  2046. return;
  2047. }
  2048. void __gls_decode_text_glRectfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2049. typedef void (*__GLSdispatch)(const GLfloat *, const GLfloat *);
  2050. GLfloat v1[2];
  2051. GLfloat v2[2];
  2052. __glsReader_getGLfloatv_text(inoutReader, 2, v1);
  2053. __glsReader_getGLfloatv_text(inoutReader, 2, v2);
  2054. if (inoutReader->error) goto end;
  2055. ((__GLSdispatch)ctx->dispatchCall[153])(
  2056. v1,
  2057. v2
  2058. );
  2059. end:
  2060. return;
  2061. }
  2062. void __gls_decode_text_glRecti(__GLScontext *ctx, __GLSreader *inoutReader) {
  2063. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  2064. GLint x1;
  2065. GLint y1;
  2066. GLint x2;
  2067. GLint y2;
  2068. __glsReader_getGLint_text(inoutReader, &x1);
  2069. __glsReader_getGLint_text(inoutReader, &y1);
  2070. __glsReader_getGLint_text(inoutReader, &x2);
  2071. __glsReader_getGLint_text(inoutReader, &y2);
  2072. if (inoutReader->error) goto end;
  2073. ((__GLSdispatch)ctx->dispatchCall[154])(
  2074. x1,
  2075. y1,
  2076. x2,
  2077. y2
  2078. );
  2079. end:
  2080. return;
  2081. }
  2082. void __gls_decode_text_glRectiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2083. typedef void (*__GLSdispatch)(const GLint *, const GLint *);
  2084. GLint v1[2];
  2085. GLint v2[2];
  2086. __glsReader_getGLintv_text(inoutReader, 2, v1);
  2087. __glsReader_getGLintv_text(inoutReader, 2, v2);
  2088. if (inoutReader->error) goto end;
  2089. ((__GLSdispatch)ctx->dispatchCall[155])(
  2090. v1,
  2091. v2
  2092. );
  2093. end:
  2094. return;
  2095. }
  2096. void __gls_decode_text_glRects(__GLScontext *ctx, __GLSreader *inoutReader) {
  2097. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  2098. GLshort x1;
  2099. GLshort y1;
  2100. GLshort x2;
  2101. GLshort y2;
  2102. __glsReader_getGLshort_text(inoutReader, &x1);
  2103. __glsReader_getGLshort_text(inoutReader, &y1);
  2104. __glsReader_getGLshort_text(inoutReader, &x2);
  2105. __glsReader_getGLshort_text(inoutReader, &y2);
  2106. if (inoutReader->error) goto end;
  2107. ((__GLSdispatch)ctx->dispatchCall[156])(
  2108. x1,
  2109. y1,
  2110. x2,
  2111. y2
  2112. );
  2113. end:
  2114. return;
  2115. }
  2116. void __gls_decode_text_glRectsv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2117. typedef void (*__GLSdispatch)(const GLshort *, const GLshort *);
  2118. GLshort v1[2];
  2119. GLshort v2[2];
  2120. __glsReader_getGLshortv_text(inoutReader, 2, v1);
  2121. __glsReader_getGLshortv_text(inoutReader, 2, v2);
  2122. if (inoutReader->error) goto end;
  2123. ((__GLSdispatch)ctx->dispatchCall[157])(
  2124. v1,
  2125. v2
  2126. );
  2127. end:
  2128. return;
  2129. }
  2130. void __gls_decode_text_glTexCoord1d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2131. typedef void (*__GLSdispatch)(GLdouble);
  2132. GLdouble s;
  2133. __glsReader_getGLdouble_text(inoutReader, &s);
  2134. if (inoutReader->error) goto end;
  2135. ((__GLSdispatch)ctx->dispatchCall[158])(
  2136. s
  2137. );
  2138. end:
  2139. return;
  2140. }
  2141. void __gls_decode_text_glTexCoord1dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2142. typedef void (*__GLSdispatch)(const GLdouble *);
  2143. GLdouble v[1];
  2144. __glsReader_getGLdoublev_text(inoutReader, 1, v);
  2145. if (inoutReader->error) goto end;
  2146. ((__GLSdispatch)ctx->dispatchCall[159])(
  2147. v
  2148. );
  2149. end:
  2150. return;
  2151. }
  2152. void __gls_decode_text_glTexCoord1f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2153. typedef void (*__GLSdispatch)(GLfloat);
  2154. GLfloat s;
  2155. __glsReader_getGLfloat_text(inoutReader, &s);
  2156. if (inoutReader->error) goto end;
  2157. ((__GLSdispatch)ctx->dispatchCall[160])(
  2158. s
  2159. );
  2160. end:
  2161. return;
  2162. }
  2163. void __gls_decode_text_glTexCoord1fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2164. typedef void (*__GLSdispatch)(const GLfloat *);
  2165. GLfloat v[1];
  2166. __glsReader_getGLfloatv_text(inoutReader, 1, v);
  2167. if (inoutReader->error) goto end;
  2168. ((__GLSdispatch)ctx->dispatchCall[161])(
  2169. v
  2170. );
  2171. end:
  2172. return;
  2173. }
  2174. void __gls_decode_text_glTexCoord1i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2175. typedef void (*__GLSdispatch)(GLint);
  2176. GLint s;
  2177. __glsReader_getGLint_text(inoutReader, &s);
  2178. if (inoutReader->error) goto end;
  2179. ((__GLSdispatch)ctx->dispatchCall[162])(
  2180. s
  2181. );
  2182. end:
  2183. return;
  2184. }
  2185. void __gls_decode_text_glTexCoord1iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2186. typedef void (*__GLSdispatch)(const GLint *);
  2187. GLint v[1];
  2188. __glsReader_getGLintv_text(inoutReader, 1, v);
  2189. if (inoutReader->error) goto end;
  2190. ((__GLSdispatch)ctx->dispatchCall[163])(
  2191. v
  2192. );
  2193. end:
  2194. return;
  2195. }
  2196. void __gls_decode_text_glTexCoord1s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2197. typedef void (*__GLSdispatch)(GLshort);
  2198. GLshort s;
  2199. __glsReader_getGLshort_text(inoutReader, &s);
  2200. if (inoutReader->error) goto end;
  2201. ((__GLSdispatch)ctx->dispatchCall[164])(
  2202. s
  2203. );
  2204. end:
  2205. return;
  2206. }
  2207. void __gls_decode_text_glTexCoord1sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2208. typedef void (*__GLSdispatch)(const GLshort *);
  2209. GLshort v[1];
  2210. __glsReader_getGLshortv_text(inoutReader, 1, v);
  2211. if (inoutReader->error) goto end;
  2212. ((__GLSdispatch)ctx->dispatchCall[165])(
  2213. v
  2214. );
  2215. end:
  2216. return;
  2217. }
  2218. void __gls_decode_text_glTexCoord2d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2219. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  2220. GLdouble s;
  2221. GLdouble t;
  2222. __glsReader_getGLdouble_text(inoutReader, &s);
  2223. __glsReader_getGLdouble_text(inoutReader, &t);
  2224. if (inoutReader->error) goto end;
  2225. ((__GLSdispatch)ctx->dispatchCall[166])(
  2226. s,
  2227. t
  2228. );
  2229. end:
  2230. return;
  2231. }
  2232. void __gls_decode_text_glTexCoord2dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2233. typedef void (*__GLSdispatch)(const GLdouble *);
  2234. GLdouble v[2];
  2235. __glsReader_getGLdoublev_text(inoutReader, 2, v);
  2236. if (inoutReader->error) goto end;
  2237. ((__GLSdispatch)ctx->dispatchCall[167])(
  2238. v
  2239. );
  2240. end:
  2241. return;
  2242. }
  2243. void __gls_decode_text_glTexCoord2f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2244. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  2245. GLfloat s;
  2246. GLfloat t;
  2247. __glsReader_getGLfloat_text(inoutReader, &s);
  2248. __glsReader_getGLfloat_text(inoutReader, &t);
  2249. if (inoutReader->error) goto end;
  2250. ((__GLSdispatch)ctx->dispatchCall[168])(
  2251. s,
  2252. t
  2253. );
  2254. end:
  2255. return;
  2256. }
  2257. void __gls_decode_text_glTexCoord2fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2258. typedef void (*__GLSdispatch)(const GLfloat *);
  2259. GLfloat v[2];
  2260. __glsReader_getGLfloatv_text(inoutReader, 2, v);
  2261. if (inoutReader->error) goto end;
  2262. ((__GLSdispatch)ctx->dispatchCall[169])(
  2263. v
  2264. );
  2265. end:
  2266. return;
  2267. }
  2268. void __gls_decode_text_glTexCoord2i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2269. typedef void (*__GLSdispatch)(GLint, GLint);
  2270. GLint s;
  2271. GLint t;
  2272. __glsReader_getGLint_text(inoutReader, &s);
  2273. __glsReader_getGLint_text(inoutReader, &t);
  2274. if (inoutReader->error) goto end;
  2275. ((__GLSdispatch)ctx->dispatchCall[170])(
  2276. s,
  2277. t
  2278. );
  2279. end:
  2280. return;
  2281. }
  2282. void __gls_decode_text_glTexCoord2iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2283. typedef void (*__GLSdispatch)(const GLint *);
  2284. GLint v[2];
  2285. __glsReader_getGLintv_text(inoutReader, 2, v);
  2286. if (inoutReader->error) goto end;
  2287. ((__GLSdispatch)ctx->dispatchCall[171])(
  2288. v
  2289. );
  2290. end:
  2291. return;
  2292. }
  2293. void __gls_decode_text_glTexCoord2s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2294. typedef void (*__GLSdispatch)(GLshort, GLshort);
  2295. GLshort s;
  2296. GLshort t;
  2297. __glsReader_getGLshort_text(inoutReader, &s);
  2298. __glsReader_getGLshort_text(inoutReader, &t);
  2299. if (inoutReader->error) goto end;
  2300. ((__GLSdispatch)ctx->dispatchCall[172])(
  2301. s,
  2302. t
  2303. );
  2304. end:
  2305. return;
  2306. }
  2307. void __gls_decode_text_glTexCoord2sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2308. typedef void (*__GLSdispatch)(const GLshort *);
  2309. GLshort v[2];
  2310. __glsReader_getGLshortv_text(inoutReader, 2, v);
  2311. if (inoutReader->error) goto end;
  2312. ((__GLSdispatch)ctx->dispatchCall[173])(
  2313. v
  2314. );
  2315. end:
  2316. return;
  2317. }
  2318. void __gls_decode_text_glTexCoord3d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2319. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  2320. GLdouble s;
  2321. GLdouble t;
  2322. GLdouble r;
  2323. __glsReader_getGLdouble_text(inoutReader, &s);
  2324. __glsReader_getGLdouble_text(inoutReader, &t);
  2325. __glsReader_getGLdouble_text(inoutReader, &r);
  2326. if (inoutReader->error) goto end;
  2327. ((__GLSdispatch)ctx->dispatchCall[174])(
  2328. s,
  2329. t,
  2330. r
  2331. );
  2332. end:
  2333. return;
  2334. }
  2335. void __gls_decode_text_glTexCoord3dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2336. typedef void (*__GLSdispatch)(const GLdouble *);
  2337. GLdouble v[3];
  2338. __glsReader_getGLdoublev_text(inoutReader, 3, v);
  2339. if (inoutReader->error) goto end;
  2340. ((__GLSdispatch)ctx->dispatchCall[175])(
  2341. v
  2342. );
  2343. end:
  2344. return;
  2345. }
  2346. void __gls_decode_text_glTexCoord3f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2347. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  2348. GLfloat s;
  2349. GLfloat t;
  2350. GLfloat r;
  2351. __glsReader_getGLfloat_text(inoutReader, &s);
  2352. __glsReader_getGLfloat_text(inoutReader, &t);
  2353. __glsReader_getGLfloat_text(inoutReader, &r);
  2354. if (inoutReader->error) goto end;
  2355. ((__GLSdispatch)ctx->dispatchCall[176])(
  2356. s,
  2357. t,
  2358. r
  2359. );
  2360. end:
  2361. return;
  2362. }
  2363. void __gls_decode_text_glTexCoord3fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2364. typedef void (*__GLSdispatch)(const GLfloat *);
  2365. GLfloat v[3];
  2366. __glsReader_getGLfloatv_text(inoutReader, 3, v);
  2367. if (inoutReader->error) goto end;
  2368. ((__GLSdispatch)ctx->dispatchCall[177])(
  2369. v
  2370. );
  2371. end:
  2372. return;
  2373. }
  2374. void __gls_decode_text_glTexCoord3i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2375. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  2376. GLint s;
  2377. GLint t;
  2378. GLint r;
  2379. __glsReader_getGLint_text(inoutReader, &s);
  2380. __glsReader_getGLint_text(inoutReader, &t);
  2381. __glsReader_getGLint_text(inoutReader, &r);
  2382. if (inoutReader->error) goto end;
  2383. ((__GLSdispatch)ctx->dispatchCall[178])(
  2384. s,
  2385. t,
  2386. r
  2387. );
  2388. end:
  2389. return;
  2390. }
  2391. void __gls_decode_text_glTexCoord3iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2392. typedef void (*__GLSdispatch)(const GLint *);
  2393. GLint v[3];
  2394. __glsReader_getGLintv_text(inoutReader, 3, v);
  2395. if (inoutReader->error) goto end;
  2396. ((__GLSdispatch)ctx->dispatchCall[179])(
  2397. v
  2398. );
  2399. end:
  2400. return;
  2401. }
  2402. void __gls_decode_text_glTexCoord3s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2403. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  2404. GLshort s;
  2405. GLshort t;
  2406. GLshort r;
  2407. __glsReader_getGLshort_text(inoutReader, &s);
  2408. __glsReader_getGLshort_text(inoutReader, &t);
  2409. __glsReader_getGLshort_text(inoutReader, &r);
  2410. if (inoutReader->error) goto end;
  2411. ((__GLSdispatch)ctx->dispatchCall[180])(
  2412. s,
  2413. t,
  2414. r
  2415. );
  2416. end:
  2417. return;
  2418. }
  2419. void __gls_decode_text_glTexCoord3sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2420. typedef void (*__GLSdispatch)(const GLshort *);
  2421. GLshort v[3];
  2422. __glsReader_getGLshortv_text(inoutReader, 3, v);
  2423. if (inoutReader->error) goto end;
  2424. ((__GLSdispatch)ctx->dispatchCall[181])(
  2425. v
  2426. );
  2427. end:
  2428. return;
  2429. }
  2430. void __gls_decode_text_glTexCoord4d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2431. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  2432. GLdouble s;
  2433. GLdouble t;
  2434. GLdouble r;
  2435. GLdouble q;
  2436. __glsReader_getGLdouble_text(inoutReader, &s);
  2437. __glsReader_getGLdouble_text(inoutReader, &t);
  2438. __glsReader_getGLdouble_text(inoutReader, &r);
  2439. __glsReader_getGLdouble_text(inoutReader, &q);
  2440. if (inoutReader->error) goto end;
  2441. ((__GLSdispatch)ctx->dispatchCall[182])(
  2442. s,
  2443. t,
  2444. r,
  2445. q
  2446. );
  2447. end:
  2448. return;
  2449. }
  2450. void __gls_decode_text_glTexCoord4dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2451. typedef void (*__GLSdispatch)(const GLdouble *);
  2452. GLdouble v[4];
  2453. __glsReader_getGLdoublev_text(inoutReader, 4, v);
  2454. if (inoutReader->error) goto end;
  2455. ((__GLSdispatch)ctx->dispatchCall[183])(
  2456. v
  2457. );
  2458. end:
  2459. return;
  2460. }
  2461. void __gls_decode_text_glTexCoord4f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2462. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  2463. GLfloat s;
  2464. GLfloat t;
  2465. GLfloat r;
  2466. GLfloat q;
  2467. __glsReader_getGLfloat_text(inoutReader, &s);
  2468. __glsReader_getGLfloat_text(inoutReader, &t);
  2469. __glsReader_getGLfloat_text(inoutReader, &r);
  2470. __glsReader_getGLfloat_text(inoutReader, &q);
  2471. if (inoutReader->error) goto end;
  2472. ((__GLSdispatch)ctx->dispatchCall[184])(
  2473. s,
  2474. t,
  2475. r,
  2476. q
  2477. );
  2478. end:
  2479. return;
  2480. }
  2481. void __gls_decode_text_glTexCoord4fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2482. typedef void (*__GLSdispatch)(const GLfloat *);
  2483. GLfloat v[4];
  2484. __glsReader_getGLfloatv_text(inoutReader, 4, v);
  2485. if (inoutReader->error) goto end;
  2486. ((__GLSdispatch)ctx->dispatchCall[185])(
  2487. v
  2488. );
  2489. end:
  2490. return;
  2491. }
  2492. void __gls_decode_text_glTexCoord4i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2493. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  2494. GLint s;
  2495. GLint t;
  2496. GLint r;
  2497. GLint q;
  2498. __glsReader_getGLint_text(inoutReader, &s);
  2499. __glsReader_getGLint_text(inoutReader, &t);
  2500. __glsReader_getGLint_text(inoutReader, &r);
  2501. __glsReader_getGLint_text(inoutReader, &q);
  2502. if (inoutReader->error) goto end;
  2503. ((__GLSdispatch)ctx->dispatchCall[186])(
  2504. s,
  2505. t,
  2506. r,
  2507. q
  2508. );
  2509. end:
  2510. return;
  2511. }
  2512. void __gls_decode_text_glTexCoord4iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2513. typedef void (*__GLSdispatch)(const GLint *);
  2514. GLint v[4];
  2515. __glsReader_getGLintv_text(inoutReader, 4, v);
  2516. if (inoutReader->error) goto end;
  2517. ((__GLSdispatch)ctx->dispatchCall[187])(
  2518. v
  2519. );
  2520. end:
  2521. return;
  2522. }
  2523. void __gls_decode_text_glTexCoord4s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2524. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  2525. GLshort s;
  2526. GLshort t;
  2527. GLshort r;
  2528. GLshort q;
  2529. __glsReader_getGLshort_text(inoutReader, &s);
  2530. __glsReader_getGLshort_text(inoutReader, &t);
  2531. __glsReader_getGLshort_text(inoutReader, &r);
  2532. __glsReader_getGLshort_text(inoutReader, &q);
  2533. if (inoutReader->error) goto end;
  2534. ((__GLSdispatch)ctx->dispatchCall[188])(
  2535. s,
  2536. t,
  2537. r,
  2538. q
  2539. );
  2540. end:
  2541. return;
  2542. }
  2543. void __gls_decode_text_glTexCoord4sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2544. typedef void (*__GLSdispatch)(const GLshort *);
  2545. GLshort v[4];
  2546. __glsReader_getGLshortv_text(inoutReader, 4, v);
  2547. if (inoutReader->error) goto end;
  2548. ((__GLSdispatch)ctx->dispatchCall[189])(
  2549. v
  2550. );
  2551. end:
  2552. return;
  2553. }
  2554. void __gls_decode_text_glVertex2d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2555. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  2556. GLdouble x;
  2557. GLdouble y;
  2558. __glsReader_getGLdouble_text(inoutReader, &x);
  2559. __glsReader_getGLdouble_text(inoutReader, &y);
  2560. if (inoutReader->error) goto end;
  2561. ((__GLSdispatch)ctx->dispatchCall[190])(
  2562. x,
  2563. y
  2564. );
  2565. end:
  2566. return;
  2567. }
  2568. void __gls_decode_text_glVertex2dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2569. typedef void (*__GLSdispatch)(const GLdouble *);
  2570. GLdouble v[2];
  2571. __glsReader_getGLdoublev_text(inoutReader, 2, v);
  2572. if (inoutReader->error) goto end;
  2573. ((__GLSdispatch)ctx->dispatchCall[191])(
  2574. v
  2575. );
  2576. end:
  2577. return;
  2578. }
  2579. void __gls_decode_text_glVertex2f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2580. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  2581. GLfloat x;
  2582. GLfloat y;
  2583. __glsReader_getGLfloat_text(inoutReader, &x);
  2584. __glsReader_getGLfloat_text(inoutReader, &y);
  2585. if (inoutReader->error) goto end;
  2586. ((__GLSdispatch)ctx->dispatchCall[192])(
  2587. x,
  2588. y
  2589. );
  2590. end:
  2591. return;
  2592. }
  2593. void __gls_decode_text_glVertex2fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2594. typedef void (*__GLSdispatch)(const GLfloat *);
  2595. GLfloat v[2];
  2596. __glsReader_getGLfloatv_text(inoutReader, 2, v);
  2597. if (inoutReader->error) goto end;
  2598. ((__GLSdispatch)ctx->dispatchCall[193])(
  2599. v
  2600. );
  2601. end:
  2602. return;
  2603. }
  2604. void __gls_decode_text_glVertex2i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2605. typedef void (*__GLSdispatch)(GLint, GLint);
  2606. GLint x;
  2607. GLint y;
  2608. __glsReader_getGLint_text(inoutReader, &x);
  2609. __glsReader_getGLint_text(inoutReader, &y);
  2610. if (inoutReader->error) goto end;
  2611. ((__GLSdispatch)ctx->dispatchCall[194])(
  2612. x,
  2613. y
  2614. );
  2615. end:
  2616. return;
  2617. }
  2618. void __gls_decode_text_glVertex2iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2619. typedef void (*__GLSdispatch)(const GLint *);
  2620. GLint v[2];
  2621. __glsReader_getGLintv_text(inoutReader, 2, v);
  2622. if (inoutReader->error) goto end;
  2623. ((__GLSdispatch)ctx->dispatchCall[195])(
  2624. v
  2625. );
  2626. end:
  2627. return;
  2628. }
  2629. void __gls_decode_text_glVertex2s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2630. typedef void (*__GLSdispatch)(GLshort, GLshort);
  2631. GLshort x;
  2632. GLshort y;
  2633. __glsReader_getGLshort_text(inoutReader, &x);
  2634. __glsReader_getGLshort_text(inoutReader, &y);
  2635. if (inoutReader->error) goto end;
  2636. ((__GLSdispatch)ctx->dispatchCall[196])(
  2637. x,
  2638. y
  2639. );
  2640. end:
  2641. return;
  2642. }
  2643. void __gls_decode_text_glVertex2sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2644. typedef void (*__GLSdispatch)(const GLshort *);
  2645. GLshort v[2];
  2646. __glsReader_getGLshortv_text(inoutReader, 2, v);
  2647. if (inoutReader->error) goto end;
  2648. ((__GLSdispatch)ctx->dispatchCall[197])(
  2649. v
  2650. );
  2651. end:
  2652. return;
  2653. }
  2654. void __gls_decode_text_glVertex3d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2655. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  2656. GLdouble x;
  2657. GLdouble y;
  2658. GLdouble z;
  2659. __glsReader_getGLdouble_text(inoutReader, &x);
  2660. __glsReader_getGLdouble_text(inoutReader, &y);
  2661. __glsReader_getGLdouble_text(inoutReader, &z);
  2662. if (inoutReader->error) goto end;
  2663. ((__GLSdispatch)ctx->dispatchCall[198])(
  2664. x,
  2665. y,
  2666. z
  2667. );
  2668. end:
  2669. return;
  2670. }
  2671. void __gls_decode_text_glVertex3dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2672. typedef void (*__GLSdispatch)(const GLdouble *);
  2673. GLdouble v[3];
  2674. __glsReader_getGLdoublev_text(inoutReader, 3, v);
  2675. if (inoutReader->error) goto end;
  2676. ((__GLSdispatch)ctx->dispatchCall[199])(
  2677. v
  2678. );
  2679. end:
  2680. return;
  2681. }
  2682. void __gls_decode_text_glVertex3f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2683. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  2684. GLfloat x;
  2685. GLfloat y;
  2686. GLfloat z;
  2687. __glsReader_getGLfloat_text(inoutReader, &x);
  2688. __glsReader_getGLfloat_text(inoutReader, &y);
  2689. __glsReader_getGLfloat_text(inoutReader, &z);
  2690. if (inoutReader->error) goto end;
  2691. ((__GLSdispatch)ctx->dispatchCall[200])(
  2692. x,
  2693. y,
  2694. z
  2695. );
  2696. end:
  2697. return;
  2698. }
  2699. void __gls_decode_text_glVertex3fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2700. typedef void (*__GLSdispatch)(const GLfloat *);
  2701. GLfloat v[3];
  2702. __glsReader_getGLfloatv_text(inoutReader, 3, v);
  2703. if (inoutReader->error) goto end;
  2704. ((__GLSdispatch)ctx->dispatchCall[201])(
  2705. v
  2706. );
  2707. end:
  2708. return;
  2709. }
  2710. void __gls_decode_text_glVertex3i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2711. typedef void (*__GLSdispatch)(GLint, GLint, GLint);
  2712. GLint x;
  2713. GLint y;
  2714. GLint z;
  2715. __glsReader_getGLint_text(inoutReader, &x);
  2716. __glsReader_getGLint_text(inoutReader, &y);
  2717. __glsReader_getGLint_text(inoutReader, &z);
  2718. if (inoutReader->error) goto end;
  2719. ((__GLSdispatch)ctx->dispatchCall[202])(
  2720. x,
  2721. y,
  2722. z
  2723. );
  2724. end:
  2725. return;
  2726. }
  2727. void __gls_decode_text_glVertex3iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2728. typedef void (*__GLSdispatch)(const GLint *);
  2729. GLint v[3];
  2730. __glsReader_getGLintv_text(inoutReader, 3, v);
  2731. if (inoutReader->error) goto end;
  2732. ((__GLSdispatch)ctx->dispatchCall[203])(
  2733. v
  2734. );
  2735. end:
  2736. return;
  2737. }
  2738. void __gls_decode_text_glVertex3s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2739. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort);
  2740. GLshort x;
  2741. GLshort y;
  2742. GLshort z;
  2743. __glsReader_getGLshort_text(inoutReader, &x);
  2744. __glsReader_getGLshort_text(inoutReader, &y);
  2745. __glsReader_getGLshort_text(inoutReader, &z);
  2746. if (inoutReader->error) goto end;
  2747. ((__GLSdispatch)ctx->dispatchCall[204])(
  2748. x,
  2749. y,
  2750. z
  2751. );
  2752. end:
  2753. return;
  2754. }
  2755. void __gls_decode_text_glVertex3sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2756. typedef void (*__GLSdispatch)(const GLshort *);
  2757. GLshort v[3];
  2758. __glsReader_getGLshortv_text(inoutReader, 3, v);
  2759. if (inoutReader->error) goto end;
  2760. ((__GLSdispatch)ctx->dispatchCall[205])(
  2761. v
  2762. );
  2763. end:
  2764. return;
  2765. }
  2766. void __gls_decode_text_glVertex4d(__GLScontext *ctx, __GLSreader *inoutReader) {
  2767. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  2768. GLdouble x;
  2769. GLdouble y;
  2770. GLdouble z;
  2771. GLdouble w;
  2772. __glsReader_getGLdouble_text(inoutReader, &x);
  2773. __glsReader_getGLdouble_text(inoutReader, &y);
  2774. __glsReader_getGLdouble_text(inoutReader, &z);
  2775. __glsReader_getGLdouble_text(inoutReader, &w);
  2776. if (inoutReader->error) goto end;
  2777. ((__GLSdispatch)ctx->dispatchCall[206])(
  2778. x,
  2779. y,
  2780. z,
  2781. w
  2782. );
  2783. end:
  2784. return;
  2785. }
  2786. void __gls_decode_text_glVertex4dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2787. typedef void (*__GLSdispatch)(const GLdouble *);
  2788. GLdouble v[4];
  2789. __glsReader_getGLdoublev_text(inoutReader, 4, v);
  2790. if (inoutReader->error) goto end;
  2791. ((__GLSdispatch)ctx->dispatchCall[207])(
  2792. v
  2793. );
  2794. end:
  2795. return;
  2796. }
  2797. void __gls_decode_text_glVertex4f(__GLScontext *ctx, __GLSreader *inoutReader) {
  2798. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  2799. GLfloat x;
  2800. GLfloat y;
  2801. GLfloat z;
  2802. GLfloat w;
  2803. __glsReader_getGLfloat_text(inoutReader, &x);
  2804. __glsReader_getGLfloat_text(inoutReader, &y);
  2805. __glsReader_getGLfloat_text(inoutReader, &z);
  2806. __glsReader_getGLfloat_text(inoutReader, &w);
  2807. if (inoutReader->error) goto end;
  2808. ((__GLSdispatch)ctx->dispatchCall[208])(
  2809. x,
  2810. y,
  2811. z,
  2812. w
  2813. );
  2814. end:
  2815. return;
  2816. }
  2817. void __gls_decode_text_glVertex4fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2818. typedef void (*__GLSdispatch)(const GLfloat *);
  2819. GLfloat v[4];
  2820. __glsReader_getGLfloatv_text(inoutReader, 4, v);
  2821. if (inoutReader->error) goto end;
  2822. ((__GLSdispatch)ctx->dispatchCall[209])(
  2823. v
  2824. );
  2825. end:
  2826. return;
  2827. }
  2828. void __gls_decode_text_glVertex4i(__GLScontext *ctx, __GLSreader *inoutReader) {
  2829. typedef void (*__GLSdispatch)(GLint, GLint, GLint, GLint);
  2830. GLint x;
  2831. GLint y;
  2832. GLint z;
  2833. GLint w;
  2834. __glsReader_getGLint_text(inoutReader, &x);
  2835. __glsReader_getGLint_text(inoutReader, &y);
  2836. __glsReader_getGLint_text(inoutReader, &z);
  2837. __glsReader_getGLint_text(inoutReader, &w);
  2838. if (inoutReader->error) goto end;
  2839. ((__GLSdispatch)ctx->dispatchCall[210])(
  2840. x,
  2841. y,
  2842. z,
  2843. w
  2844. );
  2845. end:
  2846. return;
  2847. }
  2848. void __gls_decode_text_glVertex4iv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2849. typedef void (*__GLSdispatch)(const GLint *);
  2850. GLint v[4];
  2851. __glsReader_getGLintv_text(inoutReader, 4, v);
  2852. if (inoutReader->error) goto end;
  2853. ((__GLSdispatch)ctx->dispatchCall[211])(
  2854. v
  2855. );
  2856. end:
  2857. return;
  2858. }
  2859. void __gls_decode_text_glVertex4s(__GLScontext *ctx, __GLSreader *inoutReader) {
  2860. typedef void (*__GLSdispatch)(GLshort, GLshort, GLshort, GLshort);
  2861. GLshort x;
  2862. GLshort y;
  2863. GLshort z;
  2864. GLshort w;
  2865. __glsReader_getGLshort_text(inoutReader, &x);
  2866. __glsReader_getGLshort_text(inoutReader, &y);
  2867. __glsReader_getGLshort_text(inoutReader, &z);
  2868. __glsReader_getGLshort_text(inoutReader, &w);
  2869. if (inoutReader->error) goto end;
  2870. ((__GLSdispatch)ctx->dispatchCall[212])(
  2871. x,
  2872. y,
  2873. z,
  2874. w
  2875. );
  2876. end:
  2877. return;
  2878. }
  2879. void __gls_decode_text_glVertex4sv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2880. typedef void (*__GLSdispatch)(const GLshort *);
  2881. GLshort v[4];
  2882. __glsReader_getGLshortv_text(inoutReader, 4, v);
  2883. if (inoutReader->error) goto end;
  2884. ((__GLSdispatch)ctx->dispatchCall[213])(
  2885. v
  2886. );
  2887. end:
  2888. return;
  2889. }
  2890. void __gls_decode_text_glClipPlane(__GLScontext *ctx, __GLSreader *inoutReader) {
  2891. typedef void (*__GLSdispatch)(GLenum, const GLdouble *);
  2892. GLenum plane;
  2893. GLdouble equation[4];
  2894. __glsReader_getGLenum_text(inoutReader, &plane);
  2895. __glsReader_getGLdoublev_text(inoutReader, 4, equation);
  2896. if (inoutReader->error) goto end;
  2897. ((__GLSdispatch)ctx->dispatchCall[214])(
  2898. plane,
  2899. equation
  2900. );
  2901. end:
  2902. return;
  2903. }
  2904. void __gls_decode_text_glColorMaterial(__GLScontext *ctx, __GLSreader *inoutReader) {
  2905. typedef void (*__GLSdispatch)(GLenum, GLenum);
  2906. GLenum face;
  2907. GLenum mode;
  2908. __glsReader_getGLenum_text(inoutReader, &face);
  2909. __glsReader_getGLenum_text(inoutReader, &mode);
  2910. if (inoutReader->error) goto end;
  2911. ((__GLSdispatch)ctx->dispatchCall[215])(
  2912. face,
  2913. mode
  2914. );
  2915. end:
  2916. return;
  2917. }
  2918. void __gls_decode_text_glCullFace(__GLScontext *ctx, __GLSreader *inoutReader) {
  2919. typedef void (*__GLSdispatch)(GLenum);
  2920. GLenum mode;
  2921. __glsReader_getGLenum_text(inoutReader, &mode);
  2922. if (inoutReader->error) goto end;
  2923. ((__GLSdispatch)ctx->dispatchCall[216])(
  2924. mode
  2925. );
  2926. end:
  2927. return;
  2928. }
  2929. void __gls_decode_text_glFogf(__GLScontext *ctx, __GLSreader *inoutReader) {
  2930. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  2931. GLenum pname;
  2932. GLfloat param;
  2933. __glsReader_getGLenum_text(inoutReader, &pname);
  2934. __glsReader_getGLfloat_text(inoutReader, &param);
  2935. if (inoutReader->error) goto end;
  2936. ((__GLSdispatch)ctx->dispatchCall[217])(
  2937. pname,
  2938. param
  2939. );
  2940. end:
  2941. return;
  2942. }
  2943. void __gls_decode_text_glFogfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2944. typedef void (*__GLSdispatch)(GLenum, const GLfloat *);
  2945. GLenum pname;
  2946. GLint params_count;
  2947. GLfloat *params = GLS_NONE;
  2948. __GLS_DEC_ALLOC_DECLARE(params)
  2949. __glsReader_getGLenum_text(inoutReader, &pname);
  2950. params_count = __gls_glFogfv_params_size(pname);
  2951. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  2952. if (!params) goto end;
  2953. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  2954. if (inoutReader->error) goto end;
  2955. ((__GLSdispatch)ctx->dispatchCall[218])(
  2956. pname,
  2957. params
  2958. );
  2959. end:
  2960. __GLS_DEC_FREE(params);
  2961. return;
  2962. }
  2963. void __gls_decode_text_glFogi(__GLScontext *ctx, __GLSreader *inoutReader) {
  2964. typedef void (*__GLSdispatch)(GLenum, GLint);
  2965. GLenum pname;
  2966. GLint param;
  2967. __glsReader_getGLenum_text(inoutReader, &pname);
  2968. __glsReader_getGLint_text(inoutReader, &param);
  2969. if (inoutReader->error) goto end;
  2970. ((__GLSdispatch)ctx->dispatchCall[219])(
  2971. pname,
  2972. param
  2973. );
  2974. end:
  2975. return;
  2976. }
  2977. void __gls_decode_text_glFogiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  2978. typedef void (*__GLSdispatch)(GLenum, const GLint *);
  2979. GLenum pname;
  2980. GLint params_count;
  2981. GLint *params = GLS_NONE;
  2982. __GLS_DEC_ALLOC_DECLARE(params)
  2983. __glsReader_getGLenum_text(inoutReader, &pname);
  2984. params_count = __gls_glFogiv_params_size(pname);
  2985. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  2986. if (!params) goto end;
  2987. __glsReader_getGLintv_text(inoutReader, params_count, params);
  2988. if (inoutReader->error) goto end;
  2989. ((__GLSdispatch)ctx->dispatchCall[220])(
  2990. pname,
  2991. params
  2992. );
  2993. end:
  2994. __GLS_DEC_FREE(params);
  2995. return;
  2996. }
  2997. void __gls_decode_text_glFrontFace(__GLScontext *ctx, __GLSreader *inoutReader) {
  2998. typedef void (*__GLSdispatch)(GLenum);
  2999. GLenum mode;
  3000. __glsReader_getGLenum_text(inoutReader, &mode);
  3001. if (inoutReader->error) goto end;
  3002. ((__GLSdispatch)ctx->dispatchCall[221])(
  3003. mode
  3004. );
  3005. end:
  3006. return;
  3007. }
  3008. void __gls_decode_text_glHint(__GLScontext *ctx, __GLSreader *inoutReader) {
  3009. typedef void (*__GLSdispatch)(GLenum, GLenum);
  3010. GLenum target;
  3011. GLenum mode;
  3012. __glsReader_getGLenum_text(inoutReader, &target);
  3013. __glsReader_getGLenum_text(inoutReader, &mode);
  3014. if (inoutReader->error) goto end;
  3015. ((__GLSdispatch)ctx->dispatchCall[222])(
  3016. target,
  3017. mode
  3018. );
  3019. end:
  3020. return;
  3021. }
  3022. void __gls_decode_text_glLightf(__GLScontext *ctx, __GLSreader *inoutReader) {
  3023. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  3024. GLenum light;
  3025. GLenum pname;
  3026. GLfloat param;
  3027. __glsReader_getGLenum_text(inoutReader, &light);
  3028. __glsReader_getGLenum_text(inoutReader, &pname);
  3029. __glsReader_getGLfloat_text(inoutReader, &param);
  3030. if (inoutReader->error) goto end;
  3031. ((__GLSdispatch)ctx->dispatchCall[223])(
  3032. light,
  3033. pname,
  3034. param
  3035. );
  3036. end:
  3037. return;
  3038. }
  3039. void __gls_decode_text_glLightfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3040. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3041. GLenum light;
  3042. GLenum pname;
  3043. GLint params_count;
  3044. GLfloat *params = GLS_NONE;
  3045. __GLS_DEC_ALLOC_DECLARE(params)
  3046. __glsReader_getGLenum_text(inoutReader, &light);
  3047. __glsReader_getGLenum_text(inoutReader, &pname);
  3048. params_count = __gls_glLightfv_params_size(pname);
  3049. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  3050. if (!params) goto end;
  3051. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  3052. if (inoutReader->error) goto end;
  3053. ((__GLSdispatch)ctx->dispatchCall[224])(
  3054. light,
  3055. pname,
  3056. params
  3057. );
  3058. end:
  3059. __GLS_DEC_FREE(params);
  3060. return;
  3061. }
  3062. void __gls_decode_text_glLighti(__GLScontext *ctx, __GLSreader *inoutReader) {
  3063. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  3064. GLenum light;
  3065. GLenum pname;
  3066. GLint param;
  3067. __glsReader_getGLenum_text(inoutReader, &light);
  3068. __glsReader_getGLenum_text(inoutReader, &pname);
  3069. __glsReader_getGLint_text(inoutReader, &param);
  3070. if (inoutReader->error) goto end;
  3071. ((__GLSdispatch)ctx->dispatchCall[225])(
  3072. light,
  3073. pname,
  3074. param
  3075. );
  3076. end:
  3077. return;
  3078. }
  3079. void __gls_decode_text_glLightiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3080. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3081. GLenum light;
  3082. GLenum pname;
  3083. GLint params_count;
  3084. GLint *params = GLS_NONE;
  3085. __GLS_DEC_ALLOC_DECLARE(params)
  3086. __glsReader_getGLenum_text(inoutReader, &light);
  3087. __glsReader_getGLenum_text(inoutReader, &pname);
  3088. params_count = __gls_glLightiv_params_size(pname);
  3089. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  3090. if (!params) goto end;
  3091. __glsReader_getGLintv_text(inoutReader, params_count, params);
  3092. if (inoutReader->error) goto end;
  3093. ((__GLSdispatch)ctx->dispatchCall[226])(
  3094. light,
  3095. pname,
  3096. params
  3097. );
  3098. end:
  3099. __GLS_DEC_FREE(params);
  3100. return;
  3101. }
  3102. void __gls_decode_text_glLightModelf(__GLScontext *ctx, __GLSreader *inoutReader) {
  3103. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  3104. GLenum pname;
  3105. GLfloat param;
  3106. __glsReader_getGLenum_text(inoutReader, &pname);
  3107. __glsReader_getGLfloat_text(inoutReader, &param);
  3108. if (inoutReader->error) goto end;
  3109. ((__GLSdispatch)ctx->dispatchCall[227])(
  3110. pname,
  3111. param
  3112. );
  3113. end:
  3114. return;
  3115. }
  3116. void __gls_decode_text_glLightModelfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3117. typedef void (*__GLSdispatch)(GLenum, const GLfloat *);
  3118. GLenum pname;
  3119. GLint params_count;
  3120. GLfloat *params = GLS_NONE;
  3121. __GLS_DEC_ALLOC_DECLARE(params)
  3122. __glsReader_getGLenum_text(inoutReader, &pname);
  3123. params_count = __gls_glLightModelfv_params_size(pname);
  3124. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  3125. if (!params) goto end;
  3126. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  3127. if (inoutReader->error) goto end;
  3128. ((__GLSdispatch)ctx->dispatchCall[228])(
  3129. pname,
  3130. params
  3131. );
  3132. end:
  3133. __GLS_DEC_FREE(params);
  3134. return;
  3135. }
  3136. void __gls_decode_text_glLightModeli(__GLScontext *ctx, __GLSreader *inoutReader) {
  3137. typedef void (*__GLSdispatch)(GLenum, GLint);
  3138. GLenum pname;
  3139. GLint param;
  3140. __glsReader_getGLenum_text(inoutReader, &pname);
  3141. __glsReader_getGLint_text(inoutReader, &param);
  3142. if (inoutReader->error) goto end;
  3143. ((__GLSdispatch)ctx->dispatchCall[229])(
  3144. pname,
  3145. param
  3146. );
  3147. end:
  3148. return;
  3149. }
  3150. void __gls_decode_text_glLightModeliv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3151. typedef void (*__GLSdispatch)(GLenum, const GLint *);
  3152. GLenum pname;
  3153. GLint params_count;
  3154. GLint *params = GLS_NONE;
  3155. __GLS_DEC_ALLOC_DECLARE(params)
  3156. __glsReader_getGLenum_text(inoutReader, &pname);
  3157. params_count = __gls_glLightModeliv_params_size(pname);
  3158. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  3159. if (!params) goto end;
  3160. __glsReader_getGLintv_text(inoutReader, params_count, params);
  3161. if (inoutReader->error) goto end;
  3162. ((__GLSdispatch)ctx->dispatchCall[230])(
  3163. pname,
  3164. params
  3165. );
  3166. end:
  3167. __GLS_DEC_FREE(params);
  3168. return;
  3169. }
  3170. void __gls_decode_text_glLineStipple(__GLScontext *ctx, __GLSreader *inoutReader) {
  3171. typedef void (*__GLSdispatch)(GLint, GLushort);
  3172. GLint factor;
  3173. GLushort pattern;
  3174. __glsReader_getGLint_text(inoutReader, &factor);
  3175. __glsReader_getGLushort_text(inoutReader, &pattern);
  3176. if (inoutReader->error) goto end;
  3177. ((__GLSdispatch)ctx->dispatchCall[231])(
  3178. factor,
  3179. pattern
  3180. );
  3181. end:
  3182. return;
  3183. }
  3184. void __gls_decode_text_glLineWidth(__GLScontext *ctx, __GLSreader *inoutReader) {
  3185. typedef void (*__GLSdispatch)(GLfloat);
  3186. GLfloat width;
  3187. __glsReader_getGLfloat_text(inoutReader, &width);
  3188. if (inoutReader->error) goto end;
  3189. ((__GLSdispatch)ctx->dispatchCall[232])(
  3190. width
  3191. );
  3192. end:
  3193. return;
  3194. }
  3195. void __gls_decode_text_glMaterialf(__GLScontext *ctx, __GLSreader *inoutReader) {
  3196. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  3197. GLenum face;
  3198. GLenum pname;
  3199. GLfloat param;
  3200. __glsReader_getGLenum_text(inoutReader, &face);
  3201. __glsReader_getGLenum_text(inoutReader, &pname);
  3202. __glsReader_getGLfloat_text(inoutReader, &param);
  3203. if (inoutReader->error) goto end;
  3204. ((__GLSdispatch)ctx->dispatchCall[233])(
  3205. face,
  3206. pname,
  3207. param
  3208. );
  3209. end:
  3210. return;
  3211. }
  3212. void __gls_decode_text_glMaterialfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3213. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3214. GLenum face;
  3215. GLenum pname;
  3216. GLint params_count;
  3217. GLfloat *params = GLS_NONE;
  3218. __GLS_DEC_ALLOC_DECLARE(params)
  3219. __glsReader_getGLenum_text(inoutReader, &face);
  3220. __glsReader_getGLenum_text(inoutReader, &pname);
  3221. params_count = __gls_glMaterialfv_params_size(pname);
  3222. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  3223. if (!params) goto end;
  3224. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  3225. if (inoutReader->error) goto end;
  3226. ((__GLSdispatch)ctx->dispatchCall[234])(
  3227. face,
  3228. pname,
  3229. params
  3230. );
  3231. end:
  3232. __GLS_DEC_FREE(params);
  3233. return;
  3234. }
  3235. void __gls_decode_text_glMateriali(__GLScontext *ctx, __GLSreader *inoutReader) {
  3236. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  3237. GLenum face;
  3238. GLenum pname;
  3239. GLint param;
  3240. __glsReader_getGLenum_text(inoutReader, &face);
  3241. __glsReader_getGLenum_text(inoutReader, &pname);
  3242. __glsReader_getGLint_text(inoutReader, &param);
  3243. if (inoutReader->error) goto end;
  3244. ((__GLSdispatch)ctx->dispatchCall[235])(
  3245. face,
  3246. pname,
  3247. param
  3248. );
  3249. end:
  3250. return;
  3251. }
  3252. void __gls_decode_text_glMaterialiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3253. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3254. GLenum face;
  3255. GLenum pname;
  3256. GLint params_count;
  3257. GLint *params = GLS_NONE;
  3258. __GLS_DEC_ALLOC_DECLARE(params)
  3259. __glsReader_getGLenum_text(inoutReader, &face);
  3260. __glsReader_getGLenum_text(inoutReader, &pname);
  3261. params_count = __gls_glMaterialiv_params_size(pname);
  3262. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  3263. if (!params) goto end;
  3264. __glsReader_getGLintv_text(inoutReader, params_count, params);
  3265. if (inoutReader->error) goto end;
  3266. ((__GLSdispatch)ctx->dispatchCall[236])(
  3267. face,
  3268. pname,
  3269. params
  3270. );
  3271. end:
  3272. __GLS_DEC_FREE(params);
  3273. return;
  3274. }
  3275. void __gls_decode_text_glPointSize(__GLScontext *ctx, __GLSreader *inoutReader) {
  3276. typedef void (*__GLSdispatch)(GLfloat);
  3277. GLfloat size;
  3278. __glsReader_getGLfloat_text(inoutReader, &size);
  3279. if (inoutReader->error) goto end;
  3280. ((__GLSdispatch)ctx->dispatchCall[237])(
  3281. size
  3282. );
  3283. end:
  3284. return;
  3285. }
  3286. void __gls_decode_text_glPolygonMode(__GLScontext *ctx, __GLSreader *inoutReader) {
  3287. typedef void (*__GLSdispatch)(GLenum, GLenum);
  3288. GLenum face;
  3289. GLenum mode;
  3290. __glsReader_getGLenum_text(inoutReader, &face);
  3291. __glsReader_getGLenum_text(inoutReader, &mode);
  3292. if (inoutReader->error) goto end;
  3293. ((__GLSdispatch)ctx->dispatchCall[238])(
  3294. face,
  3295. mode
  3296. );
  3297. end:
  3298. return;
  3299. }
  3300. void __gls_decode_text_glPolygonStipple(__GLScontext *ctx, __GLSreader *inoutReader) {
  3301. typedef void (*__GLSdispatch)(const GLubyte *);
  3302. GLint mask_count;
  3303. GLubyte *mask = GLS_NONE;
  3304. __GLS_DEC_ALLOC_DECLARE(mask)
  3305. GLbitfield imageFlags = GLS_NONE;
  3306. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  3307. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  3308. __glsReader_nextList_text(inoutReader);
  3309. mask_count = __gls_glPolygonStipple_mask_size();
  3310. __GLS_DEC_ALLOC_TEXT(inoutReader, mask, GLubyte, 1 * mask_count);
  3311. if (!mask) goto end;
  3312. __glsReader_getGLubytev_text(inoutReader, mask_count, mask);
  3313. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  3314. if (inoutReader->error) goto end;
  3315. ((__GLSdispatch)ctx->dispatchCall[239])(
  3316. mask
  3317. );
  3318. end:
  3319. __GLS_DEC_FREE(mask);
  3320. return;
  3321. }
  3322. void __gls_decode_text_glScissor(__GLScontext *ctx, __GLSreader *inoutReader) {
  3323. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei);
  3324. GLint x;
  3325. GLint y;
  3326. GLsizei width;
  3327. GLsizei height;
  3328. __glsReader_getGLint_text(inoutReader, &x);
  3329. __glsReader_getGLint_text(inoutReader, &y);
  3330. __glsReader_getGLint_text(inoutReader, &width);
  3331. __glsReader_getGLint_text(inoutReader, &height);
  3332. if (inoutReader->error) goto end;
  3333. ((__GLSdispatch)ctx->dispatchCall[240])(
  3334. x,
  3335. y,
  3336. width,
  3337. height
  3338. );
  3339. end:
  3340. return;
  3341. }
  3342. void __gls_decode_text_glShadeModel(__GLScontext *ctx, __GLSreader *inoutReader) {
  3343. typedef void (*__GLSdispatch)(GLenum);
  3344. GLenum mode;
  3345. __glsReader_getGLenum_text(inoutReader, &mode);
  3346. if (inoutReader->error) goto end;
  3347. ((__GLSdispatch)ctx->dispatchCall[241])(
  3348. mode
  3349. );
  3350. end:
  3351. return;
  3352. }
  3353. void __gls_decode_text_glTexParameterf(__GLScontext *ctx, __GLSreader *inoutReader) {
  3354. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  3355. GLenum target;
  3356. GLenum pname;
  3357. GLfloat param;
  3358. __glsReader_getGLenum_text(inoutReader, &target);
  3359. __glsReader_getGLenum_text(inoutReader, &pname);
  3360. __glsReader_getGLfloat_text(inoutReader, &param);
  3361. if (inoutReader->error) goto end;
  3362. ((__GLSdispatch)ctx->dispatchCall[242])(
  3363. target,
  3364. pname,
  3365. param
  3366. );
  3367. end:
  3368. return;
  3369. }
  3370. void __gls_decode_text_glTexParameterfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3371. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3372. GLenum target;
  3373. GLenum pname;
  3374. GLint params_count;
  3375. GLfloat *params = GLS_NONE;
  3376. __GLS_DEC_ALLOC_DECLARE(params)
  3377. __glsReader_getGLenum_text(inoutReader, &target);
  3378. __glsReader_getGLenum_text(inoutReader, &pname);
  3379. params_count = __gls_glTexParameterfv_params_size(pname);
  3380. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  3381. if (!params) goto end;
  3382. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  3383. if (inoutReader->error) goto end;
  3384. ((__GLSdispatch)ctx->dispatchCall[243])(
  3385. target,
  3386. pname,
  3387. params
  3388. );
  3389. end:
  3390. __GLS_DEC_FREE(params);
  3391. return;
  3392. }
  3393. void __gls_decode_text_glTexParameteri(__GLScontext *ctx, __GLSreader *inoutReader) {
  3394. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  3395. GLenum target;
  3396. GLenum pname;
  3397. GLint param;
  3398. __glsReader_getGLenum_text(inoutReader, &target);
  3399. __glsReader_getGLenum_text(inoutReader, &pname);
  3400. __glsReader_getGLint_text(inoutReader, &param);
  3401. if (inoutReader->error) goto end;
  3402. ((__GLSdispatch)ctx->dispatchCall[244])(
  3403. target,
  3404. pname,
  3405. param
  3406. );
  3407. end:
  3408. return;
  3409. }
  3410. void __gls_decode_text_glTexParameteriv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3411. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3412. GLenum target;
  3413. GLenum pname;
  3414. GLint params_count;
  3415. GLint *params = GLS_NONE;
  3416. __GLS_DEC_ALLOC_DECLARE(params)
  3417. __glsReader_getGLenum_text(inoutReader, &target);
  3418. __glsReader_getGLenum_text(inoutReader, &pname);
  3419. params_count = __gls_glTexParameteriv_params_size(pname);
  3420. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  3421. if (!params) goto end;
  3422. __glsReader_getGLintv_text(inoutReader, params_count, params);
  3423. if (inoutReader->error) goto end;
  3424. ((__GLSdispatch)ctx->dispatchCall[245])(
  3425. target,
  3426. pname,
  3427. params
  3428. );
  3429. end:
  3430. __GLS_DEC_FREE(params);
  3431. return;
  3432. }
  3433. void __gls_decode_text_glTexImage1D(__GLScontext *ctx, __GLSreader *inoutReader) {
  3434. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  3435. GLenum target;
  3436. GLint level;
  3437. GLint components;
  3438. GLsizei width;
  3439. GLint border;
  3440. GLenum format;
  3441. GLenum type;
  3442. GLint pixels_count;
  3443. GLvoid *pixels = GLS_NONE;
  3444. __GLS_DEC_ALLOC_DECLARE(pixels)
  3445. GLbitfield imageFlags = GLS_NONE;
  3446. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  3447. if (imageFlags & ~GLS_IMAGE_NULL_BIT) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  3448. __glsReader_nextList_text(inoutReader);
  3449. __glsReader_getGLenum_text(inoutReader, &target);
  3450. __glsReader_getGLint_text(inoutReader, &level);
  3451. __glsReader_getGLtextureComponentCount_text(inoutReader, &components);
  3452. __glsReader_getGLint_text(inoutReader, &width);
  3453. __glsReader_getGLint_text(inoutReader, &border);
  3454. __glsReader_getGLenum_text(inoutReader, &format);
  3455. __glsReader_getGLenum_text(inoutReader, &type);
  3456. pixels_count = imageFlags & GLS_IMAGE_NULL_BIT ? 0 : __gls_glTexImage1D_pixels_size(format, type, width);
  3457. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  3458. if (!pixels) goto end;
  3459. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  3460. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  3461. if (inoutReader->error) goto end;
  3462. ((__GLSdispatch)ctx->dispatchCall[246])(
  3463. target,
  3464. level,
  3465. components,
  3466. width,
  3467. border,
  3468. format,
  3469. type,
  3470. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : pixels
  3471. );
  3472. end:
  3473. __GLS_DEC_FREE(pixels);
  3474. return;
  3475. }
  3476. void __gls_decode_text_glTexImage2D(__GLScontext *ctx, __GLSreader *inoutReader) {
  3477. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  3478. GLenum target;
  3479. GLint level;
  3480. GLint components;
  3481. GLsizei width;
  3482. GLsizei height;
  3483. GLint border;
  3484. GLenum format;
  3485. GLenum type;
  3486. GLint pixels_count;
  3487. GLvoid *pixels = GLS_NONE;
  3488. __GLS_DEC_ALLOC_DECLARE(pixels)
  3489. GLbitfield imageFlags = GLS_NONE;
  3490. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  3491. if (imageFlags & ~GLS_IMAGE_NULL_BIT) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  3492. __glsReader_nextList_text(inoutReader);
  3493. __glsReader_getGLenum_text(inoutReader, &target);
  3494. __glsReader_getGLint_text(inoutReader, &level);
  3495. __glsReader_getGLtextureComponentCount_text(inoutReader, &components);
  3496. __glsReader_getGLint_text(inoutReader, &width);
  3497. __glsReader_getGLint_text(inoutReader, &height);
  3498. __glsReader_getGLint_text(inoutReader, &border);
  3499. __glsReader_getGLenum_text(inoutReader, &format);
  3500. __glsReader_getGLenum_text(inoutReader, &type);
  3501. pixels_count = imageFlags & GLS_IMAGE_NULL_BIT ? 0 : __gls_glTexImage2D_pixels_size(format, type, width, height);
  3502. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  3503. if (!pixels) goto end;
  3504. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  3505. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  3506. if (inoutReader->error) goto end;
  3507. ((__GLSdispatch)ctx->dispatchCall[247])(
  3508. target,
  3509. level,
  3510. components,
  3511. width,
  3512. height,
  3513. border,
  3514. format,
  3515. type,
  3516. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : pixels
  3517. );
  3518. end:
  3519. __GLS_DEC_FREE(pixels);
  3520. return;
  3521. }
  3522. void __gls_decode_text_glTexEnvf(__GLScontext *ctx, __GLSreader *inoutReader) {
  3523. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  3524. GLenum target;
  3525. GLenum pname;
  3526. GLfloat param;
  3527. __glsReader_getGLenum_text(inoutReader, &target);
  3528. __glsReader_getGLenum_text(inoutReader, &pname);
  3529. __glsReader_getGLfloat_text(inoutReader, &param);
  3530. if (inoutReader->error) goto end;
  3531. ((__GLSdispatch)ctx->dispatchCall[248])(
  3532. target,
  3533. pname,
  3534. param
  3535. );
  3536. end:
  3537. return;
  3538. }
  3539. void __gls_decode_text_glTexEnvfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3540. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3541. GLenum target;
  3542. GLenum pname;
  3543. GLint params_count;
  3544. GLfloat *params = GLS_NONE;
  3545. __GLS_DEC_ALLOC_DECLARE(params)
  3546. __glsReader_getGLenum_text(inoutReader, &target);
  3547. __glsReader_getGLenum_text(inoutReader, &pname);
  3548. params_count = __gls_glTexEnvfv_params_size(pname);
  3549. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  3550. if (!params) goto end;
  3551. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  3552. if (inoutReader->error) goto end;
  3553. ((__GLSdispatch)ctx->dispatchCall[249])(
  3554. target,
  3555. pname,
  3556. params
  3557. );
  3558. end:
  3559. __GLS_DEC_FREE(params);
  3560. return;
  3561. }
  3562. void __gls_decode_text_glTexEnvi(__GLScontext *ctx, __GLSreader *inoutReader) {
  3563. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  3564. GLenum target;
  3565. GLenum pname;
  3566. GLint param;
  3567. __glsReader_getGLenum_text(inoutReader, &target);
  3568. __glsReader_getGLenum_text(inoutReader, &pname);
  3569. __glsReader_getGLint_text(inoutReader, &param);
  3570. if (inoutReader->error) goto end;
  3571. ((__GLSdispatch)ctx->dispatchCall[250])(
  3572. target,
  3573. pname,
  3574. param
  3575. );
  3576. end:
  3577. return;
  3578. }
  3579. void __gls_decode_text_glTexEnviv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3580. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3581. GLenum target;
  3582. GLenum pname;
  3583. GLint params_count;
  3584. GLint *params = GLS_NONE;
  3585. __GLS_DEC_ALLOC_DECLARE(params)
  3586. __glsReader_getGLenum_text(inoutReader, &target);
  3587. __glsReader_getGLenum_text(inoutReader, &pname);
  3588. params_count = __gls_glTexEnviv_params_size(pname);
  3589. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  3590. if (!params) goto end;
  3591. __glsReader_getGLintv_text(inoutReader, params_count, params);
  3592. if (inoutReader->error) goto end;
  3593. ((__GLSdispatch)ctx->dispatchCall[251])(
  3594. target,
  3595. pname,
  3596. params
  3597. );
  3598. end:
  3599. __GLS_DEC_FREE(params);
  3600. return;
  3601. }
  3602. void __gls_decode_text_glTexGend(__GLScontext *ctx, __GLSreader *inoutReader) {
  3603. typedef void (*__GLSdispatch)(GLenum, GLenum, GLdouble);
  3604. GLenum coord;
  3605. GLenum pname;
  3606. GLdouble param;
  3607. __glsReader_getGLenum_text(inoutReader, &coord);
  3608. __glsReader_getGLenum_text(inoutReader, &pname);
  3609. __glsReader_getGLdouble_text(inoutReader, &param);
  3610. if (inoutReader->error) goto end;
  3611. ((__GLSdispatch)ctx->dispatchCall[252])(
  3612. coord,
  3613. pname,
  3614. param
  3615. );
  3616. end:
  3617. return;
  3618. }
  3619. void __gls_decode_text_glTexGendv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3620. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLdouble *);
  3621. GLenum coord;
  3622. GLenum pname;
  3623. GLint params_count;
  3624. GLdouble *params = GLS_NONE;
  3625. __GLS_DEC_ALLOC_DECLARE(params)
  3626. __glsReader_getGLenum_text(inoutReader, &coord);
  3627. __glsReader_getGLenum_text(inoutReader, &pname);
  3628. params_count = __gls_glTexGendv_params_size(pname);
  3629. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLdouble, 8 * params_count);
  3630. if (!params) goto end;
  3631. __glsReader_getGLdoublev_text(inoutReader, params_count, params);
  3632. if (inoutReader->error) goto end;
  3633. ((__GLSdispatch)ctx->dispatchCall[253])(
  3634. coord,
  3635. pname,
  3636. params
  3637. );
  3638. end:
  3639. __GLS_DEC_FREE(params);
  3640. return;
  3641. }
  3642. void __gls_decode_text_glTexGenf(__GLScontext *ctx, __GLSreader *inoutReader) {
  3643. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  3644. GLenum coord;
  3645. GLenum pname;
  3646. GLfloat param;
  3647. __glsReader_getGLenum_text(inoutReader, &coord);
  3648. __glsReader_getGLenum_text(inoutReader, &pname);
  3649. __glsReader_getGLfloat_text(inoutReader, &param);
  3650. if (inoutReader->error) goto end;
  3651. ((__GLSdispatch)ctx->dispatchCall[254])(
  3652. coord,
  3653. pname,
  3654. param
  3655. );
  3656. end:
  3657. return;
  3658. }
  3659. void __gls_decode_text_glTexGenfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3660. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  3661. GLenum coord;
  3662. GLenum pname;
  3663. GLint params_count;
  3664. GLfloat *params = GLS_NONE;
  3665. __GLS_DEC_ALLOC_DECLARE(params)
  3666. __glsReader_getGLenum_text(inoutReader, &coord);
  3667. __glsReader_getGLenum_text(inoutReader, &pname);
  3668. params_count = __gls_glTexGenfv_params_size(pname);
  3669. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  3670. if (!params) goto end;
  3671. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  3672. if (inoutReader->error) goto end;
  3673. ((__GLSdispatch)ctx->dispatchCall[255])(
  3674. coord,
  3675. pname,
  3676. params
  3677. );
  3678. end:
  3679. __GLS_DEC_FREE(params);
  3680. return;
  3681. }
  3682. void __gls_decode_text_glTexGeni(__GLScontext *ctx, __GLSreader *inoutReader) {
  3683. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  3684. GLenum coord;
  3685. GLenum pname;
  3686. GLint param;
  3687. __glsReader_getGLenum_text(inoutReader, &coord);
  3688. __glsReader_getGLenum_text(inoutReader, &pname);
  3689. __glsReader_getGLint_text(inoutReader, &param);
  3690. if (inoutReader->error) goto end;
  3691. ((__GLSdispatch)ctx->dispatchCall[256])(
  3692. coord,
  3693. pname,
  3694. param
  3695. );
  3696. end:
  3697. return;
  3698. }
  3699. void __gls_decode_text_glTexGeniv(__GLScontext *ctx, __GLSreader *inoutReader) {
  3700. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  3701. GLenum coord;
  3702. GLenum pname;
  3703. GLint params_count;
  3704. GLint *params = GLS_NONE;
  3705. __GLS_DEC_ALLOC_DECLARE(params)
  3706. __glsReader_getGLenum_text(inoutReader, &coord);
  3707. __glsReader_getGLenum_text(inoutReader, &pname);
  3708. params_count = __gls_glTexGeniv_params_size(pname);
  3709. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  3710. if (!params) goto end;
  3711. __glsReader_getGLintv_text(inoutReader, params_count, params);
  3712. if (inoutReader->error) goto end;
  3713. ((__GLSdispatch)ctx->dispatchCall[257])(
  3714. coord,
  3715. pname,
  3716. params
  3717. );
  3718. end:
  3719. __GLS_DEC_FREE(params);
  3720. return;
  3721. }
  3722. void __gls_decode_text_glFeedbackBuffer(__GLScontext *ctx, __GLSreader *inoutReader) {
  3723. typedef void (*__GLSdispatch)(GLsizei, GLenum, GLfloat *);
  3724. GLsizei size;
  3725. GLenum type;
  3726. GLfloat *buffer = GLS_NONE;
  3727. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3728. __glsReader_getGLint_text(inoutReader, &size);
  3729. __glsReader_getGLenum_text(inoutReader, &type);
  3730. buffer = (GLfloat *)__glsReader_allocFeedbackBuf(inoutReader, 4 * __GLS_MAX(size, 0));
  3731. if (!buffer) goto end;
  3732. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  3733. ctx->outArgs.count = 1;
  3734. if (inoutReader->error) goto end;
  3735. ((__GLSdispatch)ctx->dispatchCall[258])(
  3736. size,
  3737. type,
  3738. buffer
  3739. );
  3740. end:
  3741. ctx->outArgs = __outArgsSave;
  3742. return;
  3743. }
  3744. void __gls_decode_text_glSelectBuffer(__GLScontext *ctx, __GLSreader *inoutReader) {
  3745. typedef void (*__GLSdispatch)(GLsizei, GLuint *);
  3746. GLsizei size;
  3747. GLuint *buffer = GLS_NONE;
  3748. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  3749. __glsReader_getGLint_text(inoutReader, &size);
  3750. buffer = (GLuint *)__glsReader_allocSelectBuf(inoutReader, 4 * __GLS_MAX(size, 0));
  3751. if (!buffer) goto end;
  3752. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  3753. ctx->outArgs.count = 1;
  3754. if (inoutReader->error) goto end;
  3755. ((__GLSdispatch)ctx->dispatchCall[259])(
  3756. size,
  3757. buffer
  3758. );
  3759. end:
  3760. ctx->outArgs = __outArgsSave;
  3761. return;
  3762. }
  3763. void __gls_decode_text_glRenderMode(__GLScontext *ctx, __GLSreader *inoutReader) {
  3764. typedef void (*__GLSdispatch)(GLenum);
  3765. GLenum mode;
  3766. __glsReader_getGLenum_text(inoutReader, &mode);
  3767. if (inoutReader->error) goto end;
  3768. ((__GLSdispatch)ctx->dispatchCall[260])(
  3769. mode
  3770. );
  3771. end:
  3772. return;
  3773. }
  3774. void __gls_decode_text_glInitNames(__GLScontext *ctx, __GLSreader *inoutReader) {
  3775. typedef void (*__GLSdispatch)(void);
  3776. if (inoutReader->error) goto end;
  3777. ((__GLSdispatch)ctx->dispatchCall[261])(
  3778. );
  3779. end:
  3780. return;
  3781. }
  3782. void __gls_decode_text_glLoadName(__GLScontext *ctx, __GLSreader *inoutReader) {
  3783. typedef void (*__GLSdispatch)(GLuint);
  3784. GLuint name;
  3785. __glsReader_getGLuint_text(inoutReader, &name);
  3786. if (inoutReader->error) goto end;
  3787. ((__GLSdispatch)ctx->dispatchCall[262])(
  3788. name
  3789. );
  3790. end:
  3791. return;
  3792. }
  3793. void __gls_decode_text_glPassThrough(__GLScontext *ctx, __GLSreader *inoutReader) {
  3794. typedef void (*__GLSdispatch)(GLfloat);
  3795. GLfloat token;
  3796. __glsReader_getGLfloat_text(inoutReader, &token);
  3797. if (inoutReader->error) goto end;
  3798. ((__GLSdispatch)ctx->dispatchCall[263])(
  3799. token
  3800. );
  3801. end:
  3802. return;
  3803. }
  3804. void __gls_decode_text_glPopName(__GLScontext *ctx, __GLSreader *inoutReader) {
  3805. typedef void (*__GLSdispatch)(void);
  3806. if (inoutReader->error) goto end;
  3807. ((__GLSdispatch)ctx->dispatchCall[264])(
  3808. );
  3809. end:
  3810. return;
  3811. }
  3812. void __gls_decode_text_glPushName(__GLScontext *ctx, __GLSreader *inoutReader) {
  3813. typedef void (*__GLSdispatch)(GLuint);
  3814. GLuint name;
  3815. __glsReader_getGLuint_text(inoutReader, &name);
  3816. if (inoutReader->error) goto end;
  3817. ((__GLSdispatch)ctx->dispatchCall[265])(
  3818. name
  3819. );
  3820. end:
  3821. return;
  3822. }
  3823. void __gls_decode_text_glDrawBuffer(__GLScontext *ctx, __GLSreader *inoutReader) {
  3824. typedef void (*__GLSdispatch)(GLenum);
  3825. GLenum mode;
  3826. __glsReader_getGLdrawBufferMode_text(inoutReader, &mode);
  3827. if (inoutReader->error) goto end;
  3828. ((__GLSdispatch)ctx->dispatchCall[266])(
  3829. mode
  3830. );
  3831. end:
  3832. return;
  3833. }
  3834. void __gls_decode_text_glClear(__GLScontext *ctx, __GLSreader *inoutReader) {
  3835. typedef void (*__GLSdispatch)(GLbitfield);
  3836. GLbitfield mask;
  3837. __glsReader_getGLclearBufferMask_text(inoutReader, &mask);
  3838. if (inoutReader->error) goto end;
  3839. ((__GLSdispatch)ctx->dispatchCall[267])(
  3840. mask
  3841. );
  3842. end:
  3843. return;
  3844. }
  3845. void __gls_decode_text_glClearAccum(__GLScontext *ctx, __GLSreader *inoutReader) {
  3846. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  3847. GLfloat red;
  3848. GLfloat green;
  3849. GLfloat blue;
  3850. GLfloat alpha;
  3851. __glsReader_getGLfloat_text(inoutReader, &red);
  3852. __glsReader_getGLfloat_text(inoutReader, &green);
  3853. __glsReader_getGLfloat_text(inoutReader, &blue);
  3854. __glsReader_getGLfloat_text(inoutReader, &alpha);
  3855. if (inoutReader->error) goto end;
  3856. ((__GLSdispatch)ctx->dispatchCall[268])(
  3857. red,
  3858. green,
  3859. blue,
  3860. alpha
  3861. );
  3862. end:
  3863. return;
  3864. }
  3865. void __gls_decode_text_glClearIndex(__GLScontext *ctx, __GLSreader *inoutReader) {
  3866. typedef void (*__GLSdispatch)(GLfloat);
  3867. GLfloat c;
  3868. __glsReader_getGLfloat_text(inoutReader, &c);
  3869. if (inoutReader->error) goto end;
  3870. ((__GLSdispatch)ctx->dispatchCall[269])(
  3871. c
  3872. );
  3873. end:
  3874. return;
  3875. }
  3876. void __gls_decode_text_glClearColor(__GLScontext *ctx, __GLSreader *inoutReader) {
  3877. typedef void (*__GLSdispatch)(GLclampf, GLclampf, GLclampf, GLclampf);
  3878. GLclampf red;
  3879. GLclampf green;
  3880. GLclampf blue;
  3881. GLclampf alpha;
  3882. __glsReader_getGLfloat_text(inoutReader, &red);
  3883. __glsReader_getGLfloat_text(inoutReader, &green);
  3884. __glsReader_getGLfloat_text(inoutReader, &blue);
  3885. __glsReader_getGLfloat_text(inoutReader, &alpha);
  3886. if (inoutReader->error) goto end;
  3887. ((__GLSdispatch)ctx->dispatchCall[270])(
  3888. red,
  3889. green,
  3890. blue,
  3891. alpha
  3892. );
  3893. end:
  3894. return;
  3895. }
  3896. void __gls_decode_text_glClearStencil(__GLScontext *ctx, __GLSreader *inoutReader) {
  3897. typedef void (*__GLSdispatch)(GLint);
  3898. GLint s;
  3899. __glsReader_getGLint_text(inoutReader, &s);
  3900. if (inoutReader->error) goto end;
  3901. ((__GLSdispatch)ctx->dispatchCall[271])(
  3902. s
  3903. );
  3904. end:
  3905. return;
  3906. }
  3907. void __gls_decode_text_glClearDepth(__GLScontext *ctx, __GLSreader *inoutReader) {
  3908. typedef void (*__GLSdispatch)(GLclampd);
  3909. GLclampd depth;
  3910. __glsReader_getGLdouble_text(inoutReader, &depth);
  3911. if (inoutReader->error) goto end;
  3912. ((__GLSdispatch)ctx->dispatchCall[272])(
  3913. depth
  3914. );
  3915. end:
  3916. return;
  3917. }
  3918. void __gls_decode_text_glStencilMask(__GLScontext *ctx, __GLSreader *inoutReader) {
  3919. typedef void (*__GLSdispatch)(GLuint);
  3920. GLuint mask;
  3921. __glsReader_getGLuint_text(inoutReader, &mask);
  3922. if (inoutReader->error) goto end;
  3923. ((__GLSdispatch)ctx->dispatchCall[273])(
  3924. mask
  3925. );
  3926. end:
  3927. return;
  3928. }
  3929. void __gls_decode_text_glColorMask(__GLScontext *ctx, __GLSreader *inoutReader) {
  3930. typedef void (*__GLSdispatch)(GLboolean, GLboolean, GLboolean, GLboolean);
  3931. GLboolean red;
  3932. GLboolean green;
  3933. GLboolean blue;
  3934. GLboolean alpha;
  3935. __glsReader_getGLboolean_text(inoutReader, &red);
  3936. __glsReader_getGLboolean_text(inoutReader, &green);
  3937. __glsReader_getGLboolean_text(inoutReader, &blue);
  3938. __glsReader_getGLboolean_text(inoutReader, &alpha);
  3939. if (inoutReader->error) goto end;
  3940. ((__GLSdispatch)ctx->dispatchCall[274])(
  3941. red,
  3942. green,
  3943. blue,
  3944. alpha
  3945. );
  3946. end:
  3947. return;
  3948. }
  3949. void __gls_decode_text_glDepthMask(__GLScontext *ctx, __GLSreader *inoutReader) {
  3950. typedef void (*__GLSdispatch)(GLboolean);
  3951. GLboolean flag;
  3952. __glsReader_getGLboolean_text(inoutReader, &flag);
  3953. if (inoutReader->error) goto end;
  3954. ((__GLSdispatch)ctx->dispatchCall[275])(
  3955. flag
  3956. );
  3957. end:
  3958. return;
  3959. }
  3960. void __gls_decode_text_glIndexMask(__GLScontext *ctx, __GLSreader *inoutReader) {
  3961. typedef void (*__GLSdispatch)(GLuint);
  3962. GLuint mask;
  3963. __glsReader_getGLuint_text(inoutReader, &mask);
  3964. if (inoutReader->error) goto end;
  3965. ((__GLSdispatch)ctx->dispatchCall[276])(
  3966. mask
  3967. );
  3968. end:
  3969. return;
  3970. }
  3971. void __gls_decode_text_glAccum(__GLScontext *ctx, __GLSreader *inoutReader) {
  3972. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  3973. GLenum op;
  3974. GLfloat value;
  3975. __glsReader_getGLenum_text(inoutReader, &op);
  3976. __glsReader_getGLfloat_text(inoutReader, &value);
  3977. if (inoutReader->error) goto end;
  3978. ((__GLSdispatch)ctx->dispatchCall[277])(
  3979. op,
  3980. value
  3981. );
  3982. end:
  3983. return;
  3984. }
  3985. void __gls_decode_text_glDisable(__GLScontext *ctx, __GLSreader *inoutReader) {
  3986. typedef void (*__GLSdispatch)(GLenum);
  3987. GLenum cap;
  3988. __glsReader_getGLenum_text(inoutReader, &cap);
  3989. if (inoutReader->error) goto end;
  3990. ((__GLSdispatch)ctx->dispatchCall[278])(
  3991. cap
  3992. );
  3993. end:
  3994. return;
  3995. }
  3996. void __gls_decode_text_glEnable(__GLScontext *ctx, __GLSreader *inoutReader) {
  3997. typedef void (*__GLSdispatch)(GLenum);
  3998. GLenum cap;
  3999. __glsReader_getGLenum_text(inoutReader, &cap);
  4000. if (inoutReader->error) goto end;
  4001. ((__GLSdispatch)ctx->dispatchCall[279])(
  4002. cap
  4003. );
  4004. end:
  4005. return;
  4006. }
  4007. void __gls_decode_text_glFinish(__GLScontext *ctx, __GLSreader *inoutReader) {
  4008. typedef void (*__GLSdispatch)(void);
  4009. if (inoutReader->error) goto end;
  4010. ((__GLSdispatch)ctx->dispatchCall[280])(
  4011. );
  4012. end:
  4013. return;
  4014. }
  4015. void __gls_decode_text_glFlush(__GLScontext *ctx, __GLSreader *inoutReader) {
  4016. typedef void (*__GLSdispatch)(void);
  4017. if (inoutReader->error) goto end;
  4018. ((__GLSdispatch)ctx->dispatchCall[281])(
  4019. );
  4020. end:
  4021. return;
  4022. }
  4023. void __gls_decode_text_glPopAttrib(__GLScontext *ctx, __GLSreader *inoutReader) {
  4024. typedef void (*__GLSdispatch)(void);
  4025. if (inoutReader->error) goto end;
  4026. ((__GLSdispatch)ctx->dispatchCall[282])(
  4027. );
  4028. end:
  4029. return;
  4030. }
  4031. void __gls_decode_text_glPushAttrib(__GLScontext *ctx, __GLSreader *inoutReader) {
  4032. typedef void (*__GLSdispatch)(GLbitfield);
  4033. GLbitfield mask;
  4034. __glsReader_getGLattribMask_text(inoutReader, &mask);
  4035. if (inoutReader->error) goto end;
  4036. ((__GLSdispatch)ctx->dispatchCall[283])(
  4037. mask
  4038. );
  4039. end:
  4040. return;
  4041. }
  4042. void __gls_decode_text_glMap1d(__GLScontext *ctx, __GLSreader *inoutReader) {
  4043. typedef void (*__GLSdispatch)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
  4044. GLenum target;
  4045. GLdouble u1;
  4046. GLdouble u2;
  4047. GLint stride;
  4048. GLint order;
  4049. GLint points_count;
  4050. GLdouble *points = GLS_NONE;
  4051. __GLS_DEC_ALLOC_DECLARE(points)
  4052. __glsReader_getGLenum_text(inoutReader, &target);
  4053. __glsReader_getGLdouble_text(inoutReader, &u1);
  4054. __glsReader_getGLdouble_text(inoutReader, &u2);
  4055. __glsReader_getGLint_text(inoutReader, &stride);
  4056. __glsReader_getGLint_text(inoutReader, &order);
  4057. points_count = __gls_glMap1d_points_size(target, stride, order);
  4058. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLdouble, 8 * points_count);
  4059. if (!points) goto end;
  4060. __glsReader_getGLdoublev_text(inoutReader, points_count, points);
  4061. if (stride > __glsEvalComputeK(target)) {
  4062. __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  4063. }
  4064. if (inoutReader->error) goto end;
  4065. ((__GLSdispatch)ctx->dispatchCall[284])(
  4066. target,
  4067. u1,
  4068. u2,
  4069. stride,
  4070. order,
  4071. points
  4072. );
  4073. end:
  4074. __GLS_DEC_FREE(points);
  4075. return;
  4076. }
  4077. void __gls_decode_text_glMap1f(__GLScontext *ctx, __GLSreader *inoutReader) {
  4078. typedef void (*__GLSdispatch)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
  4079. GLenum target;
  4080. GLfloat u1;
  4081. GLfloat u2;
  4082. GLint stride;
  4083. GLint order;
  4084. GLint points_count;
  4085. GLfloat *points = GLS_NONE;
  4086. __GLS_DEC_ALLOC_DECLARE(points)
  4087. __glsReader_getGLenum_text(inoutReader, &target);
  4088. __glsReader_getGLfloat_text(inoutReader, &u1);
  4089. __glsReader_getGLfloat_text(inoutReader, &u2);
  4090. __glsReader_getGLint_text(inoutReader, &stride);
  4091. __glsReader_getGLint_text(inoutReader, &order);
  4092. points_count = __gls_glMap1f_points_size(target, stride, order);
  4093. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLfloat, 4 * points_count);
  4094. if (!points) goto end;
  4095. __glsReader_getGLfloatv_text(inoutReader, points_count, points);
  4096. if (stride > __glsEvalComputeK(target)) {
  4097. __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  4098. }
  4099. if (inoutReader->error) goto end;
  4100. ((__GLSdispatch)ctx->dispatchCall[285])(
  4101. target,
  4102. u1,
  4103. u2,
  4104. stride,
  4105. order,
  4106. points
  4107. );
  4108. end:
  4109. __GLS_DEC_FREE(points);
  4110. return;
  4111. }
  4112. void __gls_decode_text_glMap2d(__GLScontext *ctx, __GLSreader *inoutReader) {
  4113. typedef void (*__GLSdispatch)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
  4114. GLenum target;
  4115. GLdouble u1;
  4116. GLdouble u2;
  4117. GLint ustride;
  4118. GLint uorder;
  4119. GLdouble v1;
  4120. GLdouble v2;
  4121. GLint vstride;
  4122. GLint vorder;
  4123. GLint points_count;
  4124. GLdouble *points = GLS_NONE;
  4125. __GLS_DEC_ALLOC_DECLARE(points)
  4126. __glsReader_getGLenum_text(inoutReader, &target);
  4127. __glsReader_getGLdouble_text(inoutReader, &u1);
  4128. __glsReader_getGLdouble_text(inoutReader, &u2);
  4129. __glsReader_getGLint_text(inoutReader, &ustride);
  4130. __glsReader_getGLint_text(inoutReader, &uorder);
  4131. __glsReader_getGLdouble_text(inoutReader, &v1);
  4132. __glsReader_getGLdouble_text(inoutReader, &v2);
  4133. __glsReader_getGLint_text(inoutReader, &vstride);
  4134. __glsReader_getGLint_text(inoutReader, &vorder);
  4135. points_count = __gls_glMap2d_points_size(target, ustride, uorder, vstride, vorder);
  4136. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLdouble, 8 * points_count);
  4137. if (!points) goto end;
  4138. __glsReader_getGLdoublev_text(inoutReader, points_count, points);
  4139. if (!(
  4140. vstride <= __glsEvalComputeK(target) && ustride <= vstride * vorder ||
  4141. ustride <= __glsEvalComputeK(target) && vstride <= ustride * uorder
  4142. )) {
  4143. __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  4144. }
  4145. if (inoutReader->error) goto end;
  4146. ((__GLSdispatch)ctx->dispatchCall[286])(
  4147. target,
  4148. u1,
  4149. u2,
  4150. ustride,
  4151. uorder,
  4152. v1,
  4153. v2,
  4154. vstride,
  4155. vorder,
  4156. points
  4157. );
  4158. end:
  4159. __GLS_DEC_FREE(points);
  4160. return;
  4161. }
  4162. void __gls_decode_text_glMap2f(__GLScontext *ctx, __GLSreader *inoutReader) {
  4163. typedef void (*__GLSdispatch)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
  4164. GLenum target;
  4165. GLfloat u1;
  4166. GLfloat u2;
  4167. GLint ustride;
  4168. GLint uorder;
  4169. GLfloat v1;
  4170. GLfloat v2;
  4171. GLint vstride;
  4172. GLint vorder;
  4173. GLint points_count;
  4174. GLfloat *points = GLS_NONE;
  4175. __GLS_DEC_ALLOC_DECLARE(points)
  4176. __glsReader_getGLenum_text(inoutReader, &target);
  4177. __glsReader_getGLfloat_text(inoutReader, &u1);
  4178. __glsReader_getGLfloat_text(inoutReader, &u2);
  4179. __glsReader_getGLint_text(inoutReader, &ustride);
  4180. __glsReader_getGLint_text(inoutReader, &uorder);
  4181. __glsReader_getGLfloat_text(inoutReader, &v1);
  4182. __glsReader_getGLfloat_text(inoutReader, &v2);
  4183. __glsReader_getGLint_text(inoutReader, &vstride);
  4184. __glsReader_getGLint_text(inoutReader, &vorder);
  4185. points_count = __gls_glMap2f_points_size(target, ustride, uorder, vstride, vorder);
  4186. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLfloat, 4 * points_count);
  4187. if (!points) goto end;
  4188. __glsReader_getGLfloatv_text(inoutReader, points_count, points);
  4189. if (!(
  4190. vstride <= __glsEvalComputeK(target) && ustride <= vstride * vorder ||
  4191. ustride <= __glsEvalComputeK(target) && vstride <= ustride * uorder
  4192. )) {
  4193. __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  4194. }
  4195. if (inoutReader->error) goto end;
  4196. ((__GLSdispatch)ctx->dispatchCall[287])(
  4197. target,
  4198. u1,
  4199. u2,
  4200. ustride,
  4201. uorder,
  4202. v1,
  4203. v2,
  4204. vstride,
  4205. vorder,
  4206. points
  4207. );
  4208. end:
  4209. __GLS_DEC_FREE(points);
  4210. return;
  4211. }
  4212. void __gls_decode_text_glMapGrid1d(__GLScontext *ctx, __GLSreader *inoutReader) {
  4213. typedef void (*__GLSdispatch)(GLint, GLdouble, GLdouble);
  4214. GLint un;
  4215. GLdouble u1;
  4216. GLdouble u2;
  4217. __glsReader_getGLint_text(inoutReader, &un);
  4218. __glsReader_getGLdouble_text(inoutReader, &u1);
  4219. __glsReader_getGLdouble_text(inoutReader, &u2);
  4220. if (inoutReader->error) goto end;
  4221. ((__GLSdispatch)ctx->dispatchCall[288])(
  4222. un,
  4223. u1,
  4224. u2
  4225. );
  4226. end:
  4227. return;
  4228. }
  4229. void __gls_decode_text_glMapGrid1f(__GLScontext *ctx, __GLSreader *inoutReader) {
  4230. typedef void (*__GLSdispatch)(GLint, GLfloat, GLfloat);
  4231. GLint un;
  4232. GLfloat u1;
  4233. GLfloat u2;
  4234. __glsReader_getGLint_text(inoutReader, &un);
  4235. __glsReader_getGLfloat_text(inoutReader, &u1);
  4236. __glsReader_getGLfloat_text(inoutReader, &u2);
  4237. if (inoutReader->error) goto end;
  4238. ((__GLSdispatch)ctx->dispatchCall[289])(
  4239. un,
  4240. u1,
  4241. u2
  4242. );
  4243. end:
  4244. return;
  4245. }
  4246. void __gls_decode_text_glMapGrid2d(__GLScontext *ctx, __GLSreader *inoutReader) {
  4247. typedef void (*__GLSdispatch)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble);
  4248. GLint un;
  4249. GLdouble u1;
  4250. GLdouble u2;
  4251. GLint vn;
  4252. GLdouble v1;
  4253. GLdouble v2;
  4254. __glsReader_getGLint_text(inoutReader, &un);
  4255. __glsReader_getGLdouble_text(inoutReader, &u1);
  4256. __glsReader_getGLdouble_text(inoutReader, &u2);
  4257. __glsReader_getGLint_text(inoutReader, &vn);
  4258. __glsReader_getGLdouble_text(inoutReader, &v1);
  4259. __glsReader_getGLdouble_text(inoutReader, &v2);
  4260. if (inoutReader->error) goto end;
  4261. ((__GLSdispatch)ctx->dispatchCall[290])(
  4262. un,
  4263. u1,
  4264. u2,
  4265. vn,
  4266. v1,
  4267. v2
  4268. );
  4269. end:
  4270. return;
  4271. }
  4272. void __gls_decode_text_glMapGrid2f(__GLScontext *ctx, __GLSreader *inoutReader) {
  4273. typedef void (*__GLSdispatch)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat);
  4274. GLint un;
  4275. GLfloat u1;
  4276. GLfloat u2;
  4277. GLint vn;
  4278. GLfloat v1;
  4279. GLfloat v2;
  4280. __glsReader_getGLint_text(inoutReader, &un);
  4281. __glsReader_getGLfloat_text(inoutReader, &u1);
  4282. __glsReader_getGLfloat_text(inoutReader, &u2);
  4283. __glsReader_getGLint_text(inoutReader, &vn);
  4284. __glsReader_getGLfloat_text(inoutReader, &v1);
  4285. __glsReader_getGLfloat_text(inoutReader, &v2);
  4286. if (inoutReader->error) goto end;
  4287. ((__GLSdispatch)ctx->dispatchCall[291])(
  4288. un,
  4289. u1,
  4290. u2,
  4291. vn,
  4292. v1,
  4293. v2
  4294. );
  4295. end:
  4296. return;
  4297. }
  4298. void __gls_decode_text_glEvalCoord1d(__GLScontext *ctx, __GLSreader *inoutReader) {
  4299. typedef void (*__GLSdispatch)(GLdouble);
  4300. GLdouble u;
  4301. __glsReader_getGLdouble_text(inoutReader, &u);
  4302. if (inoutReader->error) goto end;
  4303. ((__GLSdispatch)ctx->dispatchCall[292])(
  4304. u
  4305. );
  4306. end:
  4307. return;
  4308. }
  4309. void __gls_decode_text_glEvalCoord1dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4310. typedef void (*__GLSdispatch)(const GLdouble *);
  4311. GLdouble u[1];
  4312. __glsReader_getGLdoublev_text(inoutReader, 1, u);
  4313. if (inoutReader->error) goto end;
  4314. ((__GLSdispatch)ctx->dispatchCall[293])(
  4315. u
  4316. );
  4317. end:
  4318. return;
  4319. }
  4320. void __gls_decode_text_glEvalCoord1f(__GLScontext *ctx, __GLSreader *inoutReader) {
  4321. typedef void (*__GLSdispatch)(GLfloat);
  4322. GLfloat u;
  4323. __glsReader_getGLfloat_text(inoutReader, &u);
  4324. if (inoutReader->error) goto end;
  4325. ((__GLSdispatch)ctx->dispatchCall[294])(
  4326. u
  4327. );
  4328. end:
  4329. return;
  4330. }
  4331. void __gls_decode_text_glEvalCoord1fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4332. typedef void (*__GLSdispatch)(const GLfloat *);
  4333. GLfloat u[1];
  4334. __glsReader_getGLfloatv_text(inoutReader, 1, u);
  4335. if (inoutReader->error) goto end;
  4336. ((__GLSdispatch)ctx->dispatchCall[295])(
  4337. u
  4338. );
  4339. end:
  4340. return;
  4341. }
  4342. void __gls_decode_text_glEvalCoord2d(__GLScontext *ctx, __GLSreader *inoutReader) {
  4343. typedef void (*__GLSdispatch)(GLdouble, GLdouble);
  4344. GLdouble u;
  4345. GLdouble v;
  4346. __glsReader_getGLdouble_text(inoutReader, &u);
  4347. __glsReader_getGLdouble_text(inoutReader, &v);
  4348. if (inoutReader->error) goto end;
  4349. ((__GLSdispatch)ctx->dispatchCall[296])(
  4350. u,
  4351. v
  4352. );
  4353. end:
  4354. return;
  4355. }
  4356. void __gls_decode_text_glEvalCoord2dv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4357. typedef void (*__GLSdispatch)(const GLdouble *);
  4358. GLdouble u[2];
  4359. __glsReader_getGLdoublev_text(inoutReader, 2, u);
  4360. if (inoutReader->error) goto end;
  4361. ((__GLSdispatch)ctx->dispatchCall[297])(
  4362. u
  4363. );
  4364. end:
  4365. return;
  4366. }
  4367. void __gls_decode_text_glEvalCoord2f(__GLScontext *ctx, __GLSreader *inoutReader) {
  4368. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  4369. GLfloat u;
  4370. GLfloat v;
  4371. __glsReader_getGLfloat_text(inoutReader, &u);
  4372. __glsReader_getGLfloat_text(inoutReader, &v);
  4373. if (inoutReader->error) goto end;
  4374. ((__GLSdispatch)ctx->dispatchCall[298])(
  4375. u,
  4376. v
  4377. );
  4378. end:
  4379. return;
  4380. }
  4381. void __gls_decode_text_glEvalCoord2fv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4382. typedef void (*__GLSdispatch)(const GLfloat *);
  4383. GLfloat u[2];
  4384. __glsReader_getGLfloatv_text(inoutReader, 2, u);
  4385. if (inoutReader->error) goto end;
  4386. ((__GLSdispatch)ctx->dispatchCall[299])(
  4387. u
  4388. );
  4389. end:
  4390. return;
  4391. }
  4392. void __gls_decode_text_glEvalMesh1(__GLScontext *ctx, __GLSreader *inoutReader) {
  4393. typedef void (*__GLSdispatch)(GLenum, GLint, GLint);
  4394. GLenum mode;
  4395. GLint i1;
  4396. GLint i2;
  4397. __glsReader_getGLenum_text(inoutReader, &mode);
  4398. __glsReader_getGLint_text(inoutReader, &i1);
  4399. __glsReader_getGLint_text(inoutReader, &i2);
  4400. if (inoutReader->error) goto end;
  4401. ((__GLSdispatch)ctx->dispatchCall[300])(
  4402. mode,
  4403. i1,
  4404. i2
  4405. );
  4406. end:
  4407. return;
  4408. }
  4409. void __gls_decode_text_glEvalPoint1(__GLScontext *ctx, __GLSreader *inoutReader) {
  4410. typedef void (*__GLSdispatch)(GLint);
  4411. GLint i;
  4412. __glsReader_getGLint_text(inoutReader, &i);
  4413. if (inoutReader->error) goto end;
  4414. ((__GLSdispatch)ctx->dispatchCall[301])(
  4415. i
  4416. );
  4417. end:
  4418. return;
  4419. }
  4420. void __gls_decode_text_glEvalMesh2(__GLScontext *ctx, __GLSreader *inoutReader) {
  4421. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint);
  4422. GLenum mode;
  4423. GLint i1;
  4424. GLint i2;
  4425. GLint j1;
  4426. GLint j2;
  4427. __glsReader_getGLenum_text(inoutReader, &mode);
  4428. __glsReader_getGLint_text(inoutReader, &i1);
  4429. __glsReader_getGLint_text(inoutReader, &i2);
  4430. __glsReader_getGLint_text(inoutReader, &j1);
  4431. __glsReader_getGLint_text(inoutReader, &j2);
  4432. if (inoutReader->error) goto end;
  4433. ((__GLSdispatch)ctx->dispatchCall[302])(
  4434. mode,
  4435. i1,
  4436. i2,
  4437. j1,
  4438. j2
  4439. );
  4440. end:
  4441. return;
  4442. }
  4443. void __gls_decode_text_glEvalPoint2(__GLScontext *ctx, __GLSreader *inoutReader) {
  4444. typedef void (*__GLSdispatch)(GLint, GLint);
  4445. GLint i;
  4446. GLint j;
  4447. __glsReader_getGLint_text(inoutReader, &i);
  4448. __glsReader_getGLint_text(inoutReader, &j);
  4449. if (inoutReader->error) goto end;
  4450. ((__GLSdispatch)ctx->dispatchCall[303])(
  4451. i,
  4452. j
  4453. );
  4454. end:
  4455. return;
  4456. }
  4457. void __gls_decode_text_glAlphaFunc(__GLScontext *ctx, __GLSreader *inoutReader) {
  4458. typedef void (*__GLSdispatch)(GLenum, GLclampf);
  4459. GLenum func;
  4460. GLclampf ref;
  4461. __glsReader_getGLenum_text(inoutReader, &func);
  4462. __glsReader_getGLfloat_text(inoutReader, &ref);
  4463. if (inoutReader->error) goto end;
  4464. ((__GLSdispatch)ctx->dispatchCall[304])(
  4465. func,
  4466. ref
  4467. );
  4468. end:
  4469. return;
  4470. }
  4471. void __gls_decode_text_glBlendFunc(__GLScontext *ctx, __GLSreader *inoutReader) {
  4472. typedef void (*__GLSdispatch)(GLenum, GLenum);
  4473. GLenum sfactor;
  4474. GLenum dfactor;
  4475. __glsReader_getGLblendingFactor_text(inoutReader, &sfactor);
  4476. __glsReader_getGLblendingFactor_text(inoutReader, &dfactor);
  4477. if (inoutReader->error) goto end;
  4478. ((__GLSdispatch)ctx->dispatchCall[305])(
  4479. sfactor,
  4480. dfactor
  4481. );
  4482. end:
  4483. return;
  4484. }
  4485. void __gls_decode_text_glLogicOp(__GLScontext *ctx, __GLSreader *inoutReader) {
  4486. typedef void (*__GLSdispatch)(GLenum);
  4487. GLenum opcode;
  4488. __glsReader_getGLenum_text(inoutReader, &opcode);
  4489. if (inoutReader->error) goto end;
  4490. ((__GLSdispatch)ctx->dispatchCall[306])(
  4491. opcode
  4492. );
  4493. end:
  4494. return;
  4495. }
  4496. void __gls_decode_text_glStencilFunc(__GLScontext *ctx, __GLSreader *inoutReader) {
  4497. typedef void (*__GLSdispatch)(GLenum, GLint, GLuint);
  4498. GLenum func;
  4499. GLint ref;
  4500. GLuint mask;
  4501. __glsReader_getGLenum_text(inoutReader, &func);
  4502. __glsReader_getGLint_text(inoutReader, &ref);
  4503. __glsReader_getGLuint_text(inoutReader, &mask);
  4504. if (inoutReader->error) goto end;
  4505. ((__GLSdispatch)ctx->dispatchCall[307])(
  4506. func,
  4507. ref,
  4508. mask
  4509. );
  4510. end:
  4511. return;
  4512. }
  4513. void __gls_decode_text_glStencilOp(__GLScontext *ctx, __GLSreader *inoutReader) {
  4514. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum);
  4515. GLenum fail;
  4516. GLenum zfail;
  4517. GLenum zpass;
  4518. __glsReader_getGLstencilOp_text(inoutReader, &fail);
  4519. __glsReader_getGLstencilOp_text(inoutReader, &zfail);
  4520. __glsReader_getGLstencilOp_text(inoutReader, &zpass);
  4521. if (inoutReader->error) goto end;
  4522. ((__GLSdispatch)ctx->dispatchCall[308])(
  4523. fail,
  4524. zfail,
  4525. zpass
  4526. );
  4527. end:
  4528. return;
  4529. }
  4530. void __gls_decode_text_glDepthFunc(__GLScontext *ctx, __GLSreader *inoutReader) {
  4531. typedef void (*__GLSdispatch)(GLenum);
  4532. GLenum func;
  4533. __glsReader_getGLenum_text(inoutReader, &func);
  4534. if (inoutReader->error) goto end;
  4535. ((__GLSdispatch)ctx->dispatchCall[309])(
  4536. func
  4537. );
  4538. end:
  4539. return;
  4540. }
  4541. void __gls_decode_text_glPixelZoom(__GLScontext *ctx, __GLSreader *inoutReader) {
  4542. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  4543. GLfloat xfactor;
  4544. GLfloat yfactor;
  4545. __glsReader_getGLfloat_text(inoutReader, &xfactor);
  4546. __glsReader_getGLfloat_text(inoutReader, &yfactor);
  4547. if (inoutReader->error) goto end;
  4548. ((__GLSdispatch)ctx->dispatchCall[310])(
  4549. xfactor,
  4550. yfactor
  4551. );
  4552. end:
  4553. return;
  4554. }
  4555. void __gls_decode_text_glPixelTransferf(__GLScontext *ctx, __GLSreader *inoutReader) {
  4556. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  4557. GLenum pname;
  4558. GLfloat param;
  4559. __glsReader_getGLenum_text(inoutReader, &pname);
  4560. __glsReader_getGLfloat_text(inoutReader, &param);
  4561. if (inoutReader->error) goto end;
  4562. ((__GLSdispatch)ctx->dispatchCall[311])(
  4563. pname,
  4564. param
  4565. );
  4566. end:
  4567. return;
  4568. }
  4569. void __gls_decode_text_glPixelTransferi(__GLScontext *ctx, __GLSreader *inoutReader) {
  4570. typedef void (*__GLSdispatch)(GLenum, GLint);
  4571. GLenum pname;
  4572. GLint param;
  4573. __glsReader_getGLenum_text(inoutReader, &pname);
  4574. __glsReader_getGLint_text(inoutReader, &param);
  4575. if (inoutReader->error) goto end;
  4576. ((__GLSdispatch)ctx->dispatchCall[312])(
  4577. pname,
  4578. param
  4579. );
  4580. end:
  4581. return;
  4582. }
  4583. void __gls_decode_text_glPixelStoref(__GLScontext *ctx, __GLSreader *inoutReader) {
  4584. typedef void (*__GLSdispatch)(GLenum, GLfloat);
  4585. GLenum pname;
  4586. GLfloat param;
  4587. __glsReader_getGLenum_text(inoutReader, &pname);
  4588. __glsReader_getGLfloat_text(inoutReader, &param);
  4589. if (inoutReader->error) goto end;
  4590. ((__GLSdispatch)ctx->dispatchCall[313])(
  4591. pname,
  4592. param
  4593. );
  4594. end:
  4595. return;
  4596. }
  4597. void __gls_decode_text_glPixelStorei(__GLScontext *ctx, __GLSreader *inoutReader) {
  4598. typedef void (*__GLSdispatch)(GLenum, GLint);
  4599. GLenum pname;
  4600. GLint param;
  4601. __glsReader_getGLenum_text(inoutReader, &pname);
  4602. __glsReader_getGLint_text(inoutReader, &param);
  4603. if (inoutReader->error) goto end;
  4604. ((__GLSdispatch)ctx->dispatchCall[314])(
  4605. pname,
  4606. param
  4607. );
  4608. end:
  4609. return;
  4610. }
  4611. void __gls_decode_text_glPixelMapfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4612. typedef void (*__GLSdispatch)(GLenum, GLint, const GLfloat *);
  4613. GLenum map;
  4614. GLint mapsize;
  4615. GLfloat *values = GLS_NONE;
  4616. __GLS_DEC_ALLOC_DECLARE(values)
  4617. __glsReader_getGLenum_text(inoutReader, &map);
  4618. __glsReader_getGLint_text(inoutReader, &mapsize);
  4619. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLfloat, 4 * __GLS_MAX(mapsize, 0));
  4620. if (!values) goto end;
  4621. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(mapsize, 0), values);
  4622. if (inoutReader->error) goto end;
  4623. ((__GLSdispatch)ctx->dispatchCall[315])(
  4624. map,
  4625. mapsize,
  4626. values
  4627. );
  4628. end:
  4629. __GLS_DEC_FREE(values);
  4630. return;
  4631. }
  4632. void __gls_decode_text_glPixelMapuiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4633. typedef void (*__GLSdispatch)(GLenum, GLint, const GLuint *);
  4634. GLenum map;
  4635. GLint mapsize;
  4636. GLuint *values = GLS_NONE;
  4637. __GLS_DEC_ALLOC_DECLARE(values)
  4638. __glsReader_getGLenum_text(inoutReader, &map);
  4639. __glsReader_getGLint_text(inoutReader, &mapsize);
  4640. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLuint, 4 * __GLS_MAX(mapsize, 0));
  4641. if (!values) goto end;
  4642. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(mapsize, 0), values);
  4643. if (inoutReader->error) goto end;
  4644. ((__GLSdispatch)ctx->dispatchCall[316])(
  4645. map,
  4646. mapsize,
  4647. values
  4648. );
  4649. end:
  4650. __GLS_DEC_FREE(values);
  4651. return;
  4652. }
  4653. void __gls_decode_text_glPixelMapusv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4654. typedef void (*__GLSdispatch)(GLenum, GLint, const GLushort *);
  4655. GLenum map;
  4656. GLint mapsize;
  4657. GLushort *values = GLS_NONE;
  4658. __GLS_DEC_ALLOC_DECLARE(values)
  4659. __glsReader_getGLenum_text(inoutReader, &map);
  4660. __glsReader_getGLint_text(inoutReader, &mapsize);
  4661. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLushort, 2 * __GLS_MAX(mapsize, 0));
  4662. if (!values) goto end;
  4663. __glsReader_getGLushortv_text(inoutReader, __GLS_MAX(mapsize, 0), values);
  4664. if (inoutReader->error) goto end;
  4665. ((__GLSdispatch)ctx->dispatchCall[317])(
  4666. map,
  4667. mapsize,
  4668. values
  4669. );
  4670. end:
  4671. __GLS_DEC_FREE(values);
  4672. return;
  4673. }
  4674. void __gls_decode_text_glReadBuffer(__GLScontext *ctx, __GLSreader *inoutReader) {
  4675. typedef void (*__GLSdispatch)(GLenum);
  4676. GLenum mode;
  4677. __glsReader_getGLenum_text(inoutReader, &mode);
  4678. if (inoutReader->error) goto end;
  4679. ((__GLSdispatch)ctx->dispatchCall[318])(
  4680. mode
  4681. );
  4682. end:
  4683. return;
  4684. }
  4685. void __gls_decode_text_glCopyPixels(__GLScontext *ctx, __GLSreader *inoutReader) {
  4686. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei, GLenum);
  4687. GLint x;
  4688. GLint y;
  4689. GLsizei width;
  4690. GLsizei height;
  4691. GLenum type;
  4692. __glsReader_getGLint_text(inoutReader, &x);
  4693. __glsReader_getGLint_text(inoutReader, &y);
  4694. __glsReader_getGLint_text(inoutReader, &width);
  4695. __glsReader_getGLint_text(inoutReader, &height);
  4696. __glsReader_getGLenum_text(inoutReader, &type);
  4697. if (inoutReader->error) goto end;
  4698. ((__GLSdispatch)ctx->dispatchCall[319])(
  4699. x,
  4700. y,
  4701. width,
  4702. height,
  4703. type
  4704. );
  4705. end:
  4706. return;
  4707. }
  4708. void __gls_decode_text_glReadPixels(__GLScontext *ctx, __GLSreader *inoutReader) {
  4709. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);
  4710. GLint x;
  4711. GLint y;
  4712. GLsizei width;
  4713. GLsizei height;
  4714. GLenum format;
  4715. GLenum type;
  4716. GLint pixels_count;
  4717. GLvoid *pixels = GLS_NONE;
  4718. __GLS_DEC_ALLOC_DECLARE(pixels)
  4719. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4720. __glsReader_getGLint_text(inoutReader, &x);
  4721. __glsReader_getGLint_text(inoutReader, &y);
  4722. __glsReader_getGLint_text(inoutReader, &width);
  4723. __glsReader_getGLint_text(inoutReader, &height);
  4724. __glsReader_getGLenum_text(inoutReader, &format);
  4725. __glsReader_getGLenum_text(inoutReader, &type);
  4726. pixels_count = __gls_glReadPixels_pixels_size(format, type, width, height);
  4727. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  4728. if (!pixels) goto end;
  4729. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4730. ctx->outArgs.count = 1;
  4731. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  4732. if (inoutReader->error) goto end;
  4733. ((__GLSdispatch)ctx->dispatchCall[320])(
  4734. x,
  4735. y,
  4736. width,
  4737. height,
  4738. format,
  4739. type,
  4740. pixels
  4741. );
  4742. end:
  4743. ctx->outArgs = __outArgsSave;
  4744. __GLS_DEC_FREE(pixels);
  4745. return;
  4746. }
  4747. void __gls_decode_text_glDrawPixels(__GLScontext *ctx, __GLSreader *inoutReader) {
  4748. typedef void (*__GLSdispatch)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  4749. GLsizei width;
  4750. GLsizei height;
  4751. GLenum format;
  4752. GLenum type;
  4753. GLint pixels_count;
  4754. GLvoid *pixels = GLS_NONE;
  4755. __GLS_DEC_ALLOC_DECLARE(pixels)
  4756. GLbitfield imageFlags = GLS_NONE;
  4757. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  4758. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  4759. __glsReader_nextList_text(inoutReader);
  4760. __glsReader_getGLint_text(inoutReader, &width);
  4761. __glsReader_getGLint_text(inoutReader, &height);
  4762. __glsReader_getGLenum_text(inoutReader, &format);
  4763. __glsReader_getGLenum_text(inoutReader, &type);
  4764. pixels_count = __gls_glDrawPixels_pixels_size(format, type, width, height);
  4765. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  4766. if (!pixels) goto end;
  4767. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  4768. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  4769. if (inoutReader->error) goto end;
  4770. ((__GLSdispatch)ctx->dispatchCall[321])(
  4771. width,
  4772. height,
  4773. format,
  4774. type,
  4775. pixels
  4776. );
  4777. end:
  4778. __GLS_DEC_FREE(pixels);
  4779. return;
  4780. }
  4781. void __gls_decode_text_glGetBooleanv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4782. typedef void (*__GLSdispatch)(GLenum, GLboolean *);
  4783. GLenum pname;
  4784. GLint params_count;
  4785. GLboolean *params = GLS_NONE;
  4786. __GLS_DEC_ALLOC_DECLARE(params)
  4787. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4788. __glsReader_getGLenum_text(inoutReader, &pname);
  4789. params_count = __gls_glGetBooleanv_params_size(pname);
  4790. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLboolean, 1 * params_count);
  4791. if (!params) goto end;
  4792. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4793. ctx->outArgs.count = 1;
  4794. if (inoutReader->error) goto end;
  4795. ((__GLSdispatch)ctx->dispatchCall[322])(
  4796. pname,
  4797. params
  4798. );
  4799. end:
  4800. ctx->outArgs = __outArgsSave;
  4801. __GLS_DEC_FREE(params);
  4802. return;
  4803. }
  4804. void __gls_decode_text_glGetClipPlane(__GLScontext *ctx, __GLSreader *inoutReader) {
  4805. typedef void (*__GLSdispatch)(GLenum, GLdouble *);
  4806. GLenum plane;
  4807. GLdouble equation[4];
  4808. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4809. __glsReader_getGLenum_text(inoutReader, &plane);
  4810. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4811. ctx->outArgs.count = 1;
  4812. if (inoutReader->error) goto end;
  4813. ((__GLSdispatch)ctx->dispatchCall[323])(
  4814. plane,
  4815. equation
  4816. );
  4817. end:
  4818. ctx->outArgs = __outArgsSave;
  4819. return;
  4820. }
  4821. void __gls_decode_text_glGetDoublev(__GLScontext *ctx, __GLSreader *inoutReader) {
  4822. typedef void (*__GLSdispatch)(GLenum, GLdouble *);
  4823. GLenum pname;
  4824. GLint params_count;
  4825. GLdouble *params = GLS_NONE;
  4826. __GLS_DEC_ALLOC_DECLARE(params)
  4827. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4828. __glsReader_getGLenum_text(inoutReader, &pname);
  4829. params_count = __gls_glGetDoublev_params_size(pname);
  4830. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLdouble, 8 * params_count);
  4831. if (!params) goto end;
  4832. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4833. ctx->outArgs.count = 1;
  4834. if (inoutReader->error) goto end;
  4835. ((__GLSdispatch)ctx->dispatchCall[324])(
  4836. pname,
  4837. params
  4838. );
  4839. end:
  4840. ctx->outArgs = __outArgsSave;
  4841. __GLS_DEC_FREE(params);
  4842. return;
  4843. }
  4844. void __gls_decode_text_glGetError(__GLScontext *ctx, __GLSreader *inoutReader) {
  4845. typedef void (*__GLSdispatch)(void);
  4846. if (inoutReader->error) goto end;
  4847. ((__GLSdispatch)ctx->dispatchCall[325])(
  4848. );
  4849. end:
  4850. return;
  4851. }
  4852. void __gls_decode_text_glGetFloatv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4853. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  4854. GLenum pname;
  4855. GLint params_count;
  4856. GLfloat *params = GLS_NONE;
  4857. __GLS_DEC_ALLOC_DECLARE(params)
  4858. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4859. __glsReader_getGLenum_text(inoutReader, &pname);
  4860. params_count = __gls_glGetFloatv_params_size(pname);
  4861. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  4862. if (!params) goto end;
  4863. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4864. ctx->outArgs.count = 1;
  4865. if (inoutReader->error) goto end;
  4866. ((__GLSdispatch)ctx->dispatchCall[326])(
  4867. pname,
  4868. params
  4869. );
  4870. end:
  4871. ctx->outArgs = __outArgsSave;
  4872. __GLS_DEC_FREE(params);
  4873. return;
  4874. }
  4875. void __gls_decode_text_glGetIntegerv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4876. typedef void (*__GLSdispatch)(GLenum, GLint *);
  4877. GLenum pname;
  4878. GLint params_count;
  4879. GLint *params = GLS_NONE;
  4880. __GLS_DEC_ALLOC_DECLARE(params)
  4881. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4882. __glsReader_getGLenum_text(inoutReader, &pname);
  4883. params_count = __gls_glGetIntegerv_params_size(pname);
  4884. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  4885. if (!params) goto end;
  4886. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4887. ctx->outArgs.count = 1;
  4888. if (inoutReader->error) goto end;
  4889. ((__GLSdispatch)ctx->dispatchCall[327])(
  4890. pname,
  4891. params
  4892. );
  4893. end:
  4894. ctx->outArgs = __outArgsSave;
  4895. __GLS_DEC_FREE(params);
  4896. return;
  4897. }
  4898. void __gls_decode_text_glGetLightfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4899. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  4900. GLenum light;
  4901. GLenum pname;
  4902. GLint params_count;
  4903. GLfloat *params = GLS_NONE;
  4904. __GLS_DEC_ALLOC_DECLARE(params)
  4905. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4906. __glsReader_getGLenum_text(inoutReader, &light);
  4907. __glsReader_getGLenum_text(inoutReader, &pname);
  4908. params_count = __gls_glGetLightfv_params_size(pname);
  4909. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  4910. if (!params) goto end;
  4911. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4912. ctx->outArgs.count = 1;
  4913. if (inoutReader->error) goto end;
  4914. ((__GLSdispatch)ctx->dispatchCall[328])(
  4915. light,
  4916. pname,
  4917. params
  4918. );
  4919. end:
  4920. ctx->outArgs = __outArgsSave;
  4921. __GLS_DEC_FREE(params);
  4922. return;
  4923. }
  4924. void __gls_decode_text_glGetLightiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4925. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  4926. GLenum light;
  4927. GLenum pname;
  4928. GLint params_count;
  4929. GLint *params = GLS_NONE;
  4930. __GLS_DEC_ALLOC_DECLARE(params)
  4931. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4932. __glsReader_getGLenum_text(inoutReader, &light);
  4933. __glsReader_getGLenum_text(inoutReader, &pname);
  4934. params_count = __gls_glGetLightiv_params_size(pname);
  4935. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  4936. if (!params) goto end;
  4937. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4938. ctx->outArgs.count = 1;
  4939. if (inoutReader->error) goto end;
  4940. ((__GLSdispatch)ctx->dispatchCall[329])(
  4941. light,
  4942. pname,
  4943. params
  4944. );
  4945. end:
  4946. ctx->outArgs = __outArgsSave;
  4947. __GLS_DEC_FREE(params);
  4948. return;
  4949. }
  4950. void __gls_decode_text_glGetMapdv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4951. typedef void (*__GLSdispatch)(GLenum, GLenum, GLdouble *);
  4952. GLenum target;
  4953. GLenum query;
  4954. GLint v_count;
  4955. GLdouble *v = GLS_NONE;
  4956. __GLS_DEC_ALLOC_DECLARE(v)
  4957. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4958. __glsReader_getGLenum_text(inoutReader, &target);
  4959. __glsReader_getGLenum_text(inoutReader, &query);
  4960. v_count = __gls_glGetMapdv_v_size(ctx, target, query);
  4961. __GLS_DEC_ALLOC_TEXT(inoutReader, v, GLdouble, 8 * v_count);
  4962. if (!v) goto end;
  4963. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4964. ctx->outArgs.count = 1;
  4965. if (inoutReader->error) goto end;
  4966. ((__GLSdispatch)ctx->dispatchCall[330])(
  4967. target,
  4968. query,
  4969. v
  4970. );
  4971. end:
  4972. ctx->outArgs = __outArgsSave;
  4973. __GLS_DEC_FREE(v);
  4974. return;
  4975. }
  4976. void __gls_decode_text_glGetMapfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  4977. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  4978. GLenum target;
  4979. GLenum query;
  4980. GLint v_count;
  4981. GLfloat *v = GLS_NONE;
  4982. __GLS_DEC_ALLOC_DECLARE(v)
  4983. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  4984. __glsReader_getGLenum_text(inoutReader, &target);
  4985. __glsReader_getGLenum_text(inoutReader, &query);
  4986. v_count = __gls_glGetMapfv_v_size(ctx, target, query);
  4987. __GLS_DEC_ALLOC_TEXT(inoutReader, v, GLfloat, 4 * v_count);
  4988. if (!v) goto end;
  4989. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  4990. ctx->outArgs.count = 1;
  4991. if (inoutReader->error) goto end;
  4992. ((__GLSdispatch)ctx->dispatchCall[331])(
  4993. target,
  4994. query,
  4995. v
  4996. );
  4997. end:
  4998. ctx->outArgs = __outArgsSave;
  4999. __GLS_DEC_FREE(v);
  5000. return;
  5001. }
  5002. void __gls_decode_text_glGetMapiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5003. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  5004. GLenum target;
  5005. GLenum query;
  5006. GLint v_count;
  5007. GLint *v = GLS_NONE;
  5008. __GLS_DEC_ALLOC_DECLARE(v)
  5009. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5010. __glsReader_getGLenum_text(inoutReader, &target);
  5011. __glsReader_getGLenum_text(inoutReader, &query);
  5012. v_count = __gls_glGetMapiv_v_size(ctx, target, query);
  5013. __GLS_DEC_ALLOC_TEXT(inoutReader, v, GLint, 4 * v_count);
  5014. if (!v) goto end;
  5015. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5016. ctx->outArgs.count = 1;
  5017. if (inoutReader->error) goto end;
  5018. ((__GLSdispatch)ctx->dispatchCall[332])(
  5019. target,
  5020. query,
  5021. v
  5022. );
  5023. end:
  5024. ctx->outArgs = __outArgsSave;
  5025. __GLS_DEC_FREE(v);
  5026. return;
  5027. }
  5028. void __gls_decode_text_glGetMaterialfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5029. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  5030. GLenum face;
  5031. GLenum pname;
  5032. GLint params_count;
  5033. GLfloat *params = GLS_NONE;
  5034. __GLS_DEC_ALLOC_DECLARE(params)
  5035. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5036. __glsReader_getGLenum_text(inoutReader, &face);
  5037. __glsReader_getGLenum_text(inoutReader, &pname);
  5038. params_count = __gls_glGetMaterialfv_params_size(pname);
  5039. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  5040. if (!params) goto end;
  5041. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5042. ctx->outArgs.count = 1;
  5043. if (inoutReader->error) goto end;
  5044. ((__GLSdispatch)ctx->dispatchCall[333])(
  5045. face,
  5046. pname,
  5047. params
  5048. );
  5049. end:
  5050. ctx->outArgs = __outArgsSave;
  5051. __GLS_DEC_FREE(params);
  5052. return;
  5053. }
  5054. void __gls_decode_text_glGetMaterialiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5055. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  5056. GLenum face;
  5057. GLenum pname;
  5058. GLint params_count;
  5059. GLint *params = GLS_NONE;
  5060. __GLS_DEC_ALLOC_DECLARE(params)
  5061. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5062. __glsReader_getGLenum_text(inoutReader, &face);
  5063. __glsReader_getGLenum_text(inoutReader, &pname);
  5064. params_count = __gls_glGetMaterialiv_params_size(pname);
  5065. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  5066. if (!params) goto end;
  5067. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5068. ctx->outArgs.count = 1;
  5069. if (inoutReader->error) goto end;
  5070. ((__GLSdispatch)ctx->dispatchCall[334])(
  5071. face,
  5072. pname,
  5073. params
  5074. );
  5075. end:
  5076. ctx->outArgs = __outArgsSave;
  5077. __GLS_DEC_FREE(params);
  5078. return;
  5079. }
  5080. void __gls_decode_text_glGetPixelMapfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5081. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  5082. GLenum map;
  5083. GLint values_count;
  5084. GLfloat *values = GLS_NONE;
  5085. __GLS_DEC_ALLOC_DECLARE(values)
  5086. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5087. __glsReader_getGLenum_text(inoutReader, &map);
  5088. values_count = __gls_glGetPixelMapfv_values_size(ctx, map);
  5089. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLfloat, 4 * values_count);
  5090. if (!values) goto end;
  5091. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5092. ctx->outArgs.count = 1;
  5093. if (inoutReader->error) goto end;
  5094. ((__GLSdispatch)ctx->dispatchCall[335])(
  5095. map,
  5096. values
  5097. );
  5098. end:
  5099. ctx->outArgs = __outArgsSave;
  5100. __GLS_DEC_FREE(values);
  5101. return;
  5102. }
  5103. void __gls_decode_text_glGetPixelMapuiv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5104. typedef void (*__GLSdispatch)(GLenum, GLuint *);
  5105. GLenum map;
  5106. GLint values_count;
  5107. GLuint *values = GLS_NONE;
  5108. __GLS_DEC_ALLOC_DECLARE(values)
  5109. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5110. __glsReader_getGLenum_text(inoutReader, &map);
  5111. values_count = __gls_glGetPixelMapuiv_values_size(ctx, map);
  5112. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLuint, 4 * values_count);
  5113. if (!values) goto end;
  5114. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5115. ctx->outArgs.count = 1;
  5116. if (inoutReader->error) goto end;
  5117. ((__GLSdispatch)ctx->dispatchCall[336])(
  5118. map,
  5119. values
  5120. );
  5121. end:
  5122. ctx->outArgs = __outArgsSave;
  5123. __GLS_DEC_FREE(values);
  5124. return;
  5125. }
  5126. void __gls_decode_text_glGetPixelMapusv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5127. typedef void (*__GLSdispatch)(GLenum, GLushort *);
  5128. GLenum map;
  5129. GLint values_count;
  5130. GLushort *values = GLS_NONE;
  5131. __GLS_DEC_ALLOC_DECLARE(values)
  5132. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5133. __glsReader_getGLenum_text(inoutReader, &map);
  5134. values_count = __gls_glGetPixelMapusv_values_size(ctx, map);
  5135. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLushort, 2 * values_count);
  5136. if (!values) goto end;
  5137. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5138. ctx->outArgs.count = 1;
  5139. if (inoutReader->error) goto end;
  5140. ((__GLSdispatch)ctx->dispatchCall[337])(
  5141. map,
  5142. values
  5143. );
  5144. end:
  5145. ctx->outArgs = __outArgsSave;
  5146. __GLS_DEC_FREE(values);
  5147. return;
  5148. }
  5149. void __gls_decode_text_glGetPolygonStipple(__GLScontext *ctx, __GLSreader *inoutReader) {
  5150. typedef void (*__GLSdispatch)(GLubyte *);
  5151. GLint mask_count;
  5152. GLubyte *mask = GLS_NONE;
  5153. __GLS_DEC_ALLOC_DECLARE(mask)
  5154. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5155. mask_count = __gls_glGetPolygonStipple_mask_size();
  5156. __GLS_DEC_ALLOC_TEXT(inoutReader, mask, GLubyte, 1 * mask_count);
  5157. if (!mask) goto end;
  5158. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5159. ctx->outArgs.count = 1;
  5160. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  5161. if (inoutReader->error) goto end;
  5162. ((__GLSdispatch)ctx->dispatchCall[338])(
  5163. mask
  5164. );
  5165. end:
  5166. ctx->outArgs = __outArgsSave;
  5167. __GLS_DEC_FREE(mask);
  5168. return;
  5169. }
  5170. void __gls_decode_text_glGetString(__GLScontext *ctx, __GLSreader *inoutReader) {
  5171. typedef void (*__GLSdispatch)(GLenum);
  5172. GLenum name;
  5173. __glsReader_getGLenum_text(inoutReader, &name);
  5174. if (inoutReader->error) goto end;
  5175. ((__GLSdispatch)ctx->dispatchCall[339])(
  5176. name
  5177. );
  5178. end:
  5179. return;
  5180. }
  5181. void __gls_decode_text_glGetTexEnvfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5182. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  5183. GLenum target;
  5184. GLenum pname;
  5185. GLint params_count;
  5186. GLfloat *params = GLS_NONE;
  5187. __GLS_DEC_ALLOC_DECLARE(params)
  5188. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5189. __glsReader_getGLenum_text(inoutReader, &target);
  5190. __glsReader_getGLenum_text(inoutReader, &pname);
  5191. params_count = __gls_glGetTexEnvfv_params_size(pname);
  5192. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  5193. if (!params) goto end;
  5194. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5195. ctx->outArgs.count = 1;
  5196. if (inoutReader->error) goto end;
  5197. ((__GLSdispatch)ctx->dispatchCall[340])(
  5198. target,
  5199. pname,
  5200. params
  5201. );
  5202. end:
  5203. ctx->outArgs = __outArgsSave;
  5204. __GLS_DEC_FREE(params);
  5205. return;
  5206. }
  5207. void __gls_decode_text_glGetTexEnviv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5208. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  5209. GLenum target;
  5210. GLenum pname;
  5211. GLint params_count;
  5212. GLint *params = GLS_NONE;
  5213. __GLS_DEC_ALLOC_DECLARE(params)
  5214. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5215. __glsReader_getGLenum_text(inoutReader, &target);
  5216. __glsReader_getGLenum_text(inoutReader, &pname);
  5217. params_count = __gls_glGetTexEnviv_params_size(pname);
  5218. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  5219. if (!params) goto end;
  5220. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5221. ctx->outArgs.count = 1;
  5222. if (inoutReader->error) goto end;
  5223. ((__GLSdispatch)ctx->dispatchCall[341])(
  5224. target,
  5225. pname,
  5226. params
  5227. );
  5228. end:
  5229. ctx->outArgs = __outArgsSave;
  5230. __GLS_DEC_FREE(params);
  5231. return;
  5232. }
  5233. void __gls_decode_text_glGetTexGendv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5234. typedef void (*__GLSdispatch)(GLenum, GLenum, GLdouble *);
  5235. GLenum coord;
  5236. GLenum pname;
  5237. GLint params_count;
  5238. GLdouble *params = GLS_NONE;
  5239. __GLS_DEC_ALLOC_DECLARE(params)
  5240. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5241. __glsReader_getGLenum_text(inoutReader, &coord);
  5242. __glsReader_getGLenum_text(inoutReader, &pname);
  5243. params_count = __gls_glGetTexGendv_params_size(pname);
  5244. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLdouble, 8 * params_count);
  5245. if (!params) goto end;
  5246. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5247. ctx->outArgs.count = 1;
  5248. if (inoutReader->error) goto end;
  5249. ((__GLSdispatch)ctx->dispatchCall[342])(
  5250. coord,
  5251. pname,
  5252. params
  5253. );
  5254. end:
  5255. ctx->outArgs = __outArgsSave;
  5256. __GLS_DEC_FREE(params);
  5257. return;
  5258. }
  5259. void __gls_decode_text_glGetTexGenfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5260. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  5261. GLenum coord;
  5262. GLenum pname;
  5263. GLint params_count;
  5264. GLfloat *params = GLS_NONE;
  5265. __GLS_DEC_ALLOC_DECLARE(params)
  5266. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5267. __glsReader_getGLenum_text(inoutReader, &coord);
  5268. __glsReader_getGLenum_text(inoutReader, &pname);
  5269. params_count = __gls_glGetTexGenfv_params_size(pname);
  5270. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  5271. if (!params) goto end;
  5272. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5273. ctx->outArgs.count = 1;
  5274. if (inoutReader->error) goto end;
  5275. ((__GLSdispatch)ctx->dispatchCall[343])(
  5276. coord,
  5277. pname,
  5278. params
  5279. );
  5280. end:
  5281. ctx->outArgs = __outArgsSave;
  5282. __GLS_DEC_FREE(params);
  5283. return;
  5284. }
  5285. void __gls_decode_text_glGetTexGeniv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5286. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  5287. GLenum coord;
  5288. GLenum pname;
  5289. GLint params_count;
  5290. GLint *params = GLS_NONE;
  5291. __GLS_DEC_ALLOC_DECLARE(params)
  5292. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5293. __glsReader_getGLenum_text(inoutReader, &coord);
  5294. __glsReader_getGLenum_text(inoutReader, &pname);
  5295. params_count = __gls_glGetTexGeniv_params_size(pname);
  5296. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  5297. if (!params) goto end;
  5298. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5299. ctx->outArgs.count = 1;
  5300. if (inoutReader->error) goto end;
  5301. ((__GLSdispatch)ctx->dispatchCall[344])(
  5302. coord,
  5303. pname,
  5304. params
  5305. );
  5306. end:
  5307. ctx->outArgs = __outArgsSave;
  5308. __GLS_DEC_FREE(params);
  5309. return;
  5310. }
  5311. void __gls_decode_text_glGetTexImage(__GLScontext *ctx, __GLSreader *inoutReader) {
  5312. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLenum, GLvoid *);
  5313. GLenum target;
  5314. GLint level;
  5315. GLenum format;
  5316. GLenum type;
  5317. GLint pixels_count;
  5318. GLvoid *pixels = GLS_NONE;
  5319. __GLS_DEC_ALLOC_DECLARE(pixels)
  5320. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5321. __glsReader_getGLenum_text(inoutReader, &target);
  5322. __glsReader_getGLint_text(inoutReader, &level);
  5323. __glsReader_getGLenum_text(inoutReader, &format);
  5324. __glsReader_getGLenum_text(inoutReader, &type);
  5325. pixels_count = __gls_glGetTexImage_pixels_size(ctx, target, level, format, type);
  5326. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  5327. if (!pixels) goto end;
  5328. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5329. ctx->outArgs.count = 1;
  5330. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  5331. if (inoutReader->error) goto end;
  5332. ((__GLSdispatch)ctx->dispatchCall[345])(
  5333. target,
  5334. level,
  5335. format,
  5336. type,
  5337. pixels
  5338. );
  5339. end:
  5340. ctx->outArgs = __outArgsSave;
  5341. __GLS_DEC_FREE(pixels);
  5342. return;
  5343. }
  5344. void __gls_decode_text_glGetTexParameterfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5345. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  5346. GLenum target;
  5347. GLenum pname;
  5348. GLint params_count;
  5349. GLfloat *params = GLS_NONE;
  5350. __GLS_DEC_ALLOC_DECLARE(params)
  5351. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5352. __glsReader_getGLenum_text(inoutReader, &target);
  5353. __glsReader_getGLenum_text(inoutReader, &pname);
  5354. params_count = __gls_glGetTexParameterfv_params_size(pname);
  5355. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  5356. if (!params) goto end;
  5357. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5358. ctx->outArgs.count = 1;
  5359. if (inoutReader->error) goto end;
  5360. ((__GLSdispatch)ctx->dispatchCall[346])(
  5361. target,
  5362. pname,
  5363. params
  5364. );
  5365. end:
  5366. ctx->outArgs = __outArgsSave;
  5367. __GLS_DEC_FREE(params);
  5368. return;
  5369. }
  5370. void __gls_decode_text_glGetTexParameteriv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5371. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  5372. GLenum target;
  5373. GLenum pname;
  5374. GLint params_count;
  5375. GLint *params = GLS_NONE;
  5376. __GLS_DEC_ALLOC_DECLARE(params)
  5377. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5378. __glsReader_getGLenum_text(inoutReader, &target);
  5379. __glsReader_getGLenum_text(inoutReader, &pname);
  5380. params_count = __gls_glGetTexParameteriv_params_size(pname);
  5381. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  5382. if (!params) goto end;
  5383. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5384. ctx->outArgs.count = 1;
  5385. if (inoutReader->error) goto end;
  5386. ((__GLSdispatch)ctx->dispatchCall[347])(
  5387. target,
  5388. pname,
  5389. params
  5390. );
  5391. end:
  5392. ctx->outArgs = __outArgsSave;
  5393. __GLS_DEC_FREE(params);
  5394. return;
  5395. }
  5396. void __gls_decode_text_glGetTexLevelParameterfv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5397. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLfloat *);
  5398. GLenum target;
  5399. GLint level;
  5400. GLenum pname;
  5401. GLint params_count;
  5402. GLfloat *params = GLS_NONE;
  5403. __GLS_DEC_ALLOC_DECLARE(params)
  5404. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5405. __glsReader_getGLenum_text(inoutReader, &target);
  5406. __glsReader_getGLint_text(inoutReader, &level);
  5407. __glsReader_getGLenum_text(inoutReader, &pname);
  5408. params_count = __gls_glGetTexLevelParameterfv_params_size(pname);
  5409. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  5410. if (!params) goto end;
  5411. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5412. ctx->outArgs.count = 1;
  5413. if (inoutReader->error) goto end;
  5414. ((__GLSdispatch)ctx->dispatchCall[348])(
  5415. target,
  5416. level,
  5417. pname,
  5418. params
  5419. );
  5420. end:
  5421. ctx->outArgs = __outArgsSave;
  5422. __GLS_DEC_FREE(params);
  5423. return;
  5424. }
  5425. void __gls_decode_text_glGetTexLevelParameteriv(__GLScontext *ctx, __GLSreader *inoutReader) {
  5426. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint *);
  5427. GLenum target;
  5428. GLint level;
  5429. GLenum pname;
  5430. GLint params_count;
  5431. GLint *params = GLS_NONE;
  5432. __GLS_DEC_ALLOC_DECLARE(params)
  5433. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  5434. __glsReader_getGLenum_text(inoutReader, &target);
  5435. __glsReader_getGLint_text(inoutReader, &level);
  5436. __glsReader_getGLenum_text(inoutReader, &pname);
  5437. params_count = __gls_glGetTexLevelParameteriv_params_size(pname);
  5438. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  5439. if (!params) goto end;
  5440. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  5441. ctx->outArgs.count = 1;
  5442. if (inoutReader->error) goto end;
  5443. ((__GLSdispatch)ctx->dispatchCall[349])(
  5444. target,
  5445. level,
  5446. pname,
  5447. params
  5448. );
  5449. end:
  5450. ctx->outArgs = __outArgsSave;
  5451. __GLS_DEC_FREE(params);
  5452. return;
  5453. }
  5454. void __gls_decode_text_glIsEnabled(__GLScontext *ctx, __GLSreader *inoutReader) {
  5455. typedef void (*__GLSdispatch)(GLenum);
  5456. GLenum cap;
  5457. __glsReader_getGLenum_text(inoutReader, &cap);
  5458. if (inoutReader->error) goto end;
  5459. ((__GLSdispatch)ctx->dispatchCall[350])(
  5460. cap
  5461. );
  5462. end:
  5463. return;
  5464. }
  5465. void __gls_decode_text_glIsList(__GLScontext *ctx, __GLSreader *inoutReader) {
  5466. typedef void (*__GLSdispatch)(GLuint);
  5467. GLuint list;
  5468. __glsReader_getGLuint_text(inoutReader, &list);
  5469. if (inoutReader->error) goto end;
  5470. ((__GLSdispatch)ctx->dispatchCall[351])(
  5471. list
  5472. );
  5473. end:
  5474. return;
  5475. }
  5476. void __gls_decode_text_glDepthRange(__GLScontext *ctx, __GLSreader *inoutReader) {
  5477. typedef void (*__GLSdispatch)(GLclampd, GLclampd);
  5478. GLclampd zNear;
  5479. GLclampd zFar;
  5480. __glsReader_getGLdouble_text(inoutReader, &zNear);
  5481. __glsReader_getGLdouble_text(inoutReader, &zFar);
  5482. if (inoutReader->error) goto end;
  5483. ((__GLSdispatch)ctx->dispatchCall[352])(
  5484. zNear,
  5485. zFar
  5486. );
  5487. end:
  5488. return;
  5489. }
  5490. void __gls_decode_text_glFrustum(__GLScontext *ctx, __GLSreader *inoutReader) {
  5491. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
  5492. GLdouble left;
  5493. GLdouble right;
  5494. GLdouble bottom;
  5495. GLdouble top;
  5496. GLdouble zNear;
  5497. GLdouble zFar;
  5498. __glsReader_getGLdouble_text(inoutReader, &left);
  5499. __glsReader_getGLdouble_text(inoutReader, &right);
  5500. __glsReader_getGLdouble_text(inoutReader, &bottom);
  5501. __glsReader_getGLdouble_text(inoutReader, &top);
  5502. __glsReader_getGLdouble_text(inoutReader, &zNear);
  5503. __glsReader_getGLdouble_text(inoutReader, &zFar);
  5504. if (inoutReader->error) goto end;
  5505. ((__GLSdispatch)ctx->dispatchCall[353])(
  5506. left,
  5507. right,
  5508. bottom,
  5509. top,
  5510. zNear,
  5511. zFar
  5512. );
  5513. end:
  5514. return;
  5515. }
  5516. void __gls_decode_text_glLoadIdentity(__GLScontext *ctx, __GLSreader *inoutReader) {
  5517. typedef void (*__GLSdispatch)(void);
  5518. if (inoutReader->error) goto end;
  5519. ((__GLSdispatch)ctx->dispatchCall[354])(
  5520. );
  5521. end:
  5522. return;
  5523. }
  5524. void __gls_decode_text_glLoadMatrixf(__GLScontext *ctx, __GLSreader *inoutReader) {
  5525. typedef void (*__GLSdispatch)(const GLfloat *);
  5526. GLfloat m[16];
  5527. __glsReader_getGLfloatv_text(inoutReader, 16, m);
  5528. if (inoutReader->error) goto end;
  5529. ((__GLSdispatch)ctx->dispatchCall[355])(
  5530. m
  5531. );
  5532. end:
  5533. return;
  5534. }
  5535. void __gls_decode_text_glLoadMatrixd(__GLScontext *ctx, __GLSreader *inoutReader) {
  5536. typedef void (*__GLSdispatch)(const GLdouble *);
  5537. GLdouble m[16];
  5538. __glsReader_getGLdoublev_text(inoutReader, 16, m);
  5539. if (inoutReader->error) goto end;
  5540. ((__GLSdispatch)ctx->dispatchCall[356])(
  5541. m
  5542. );
  5543. end:
  5544. return;
  5545. }
  5546. void __gls_decode_text_glMatrixMode(__GLScontext *ctx, __GLSreader *inoutReader) {
  5547. typedef void (*__GLSdispatch)(GLenum);
  5548. GLenum mode;
  5549. __glsReader_getGLenum_text(inoutReader, &mode);
  5550. if (inoutReader->error) goto end;
  5551. ((__GLSdispatch)ctx->dispatchCall[357])(
  5552. mode
  5553. );
  5554. end:
  5555. return;
  5556. }
  5557. void __gls_decode_text_glMultMatrixf(__GLScontext *ctx, __GLSreader *inoutReader) {
  5558. typedef void (*__GLSdispatch)(const GLfloat *);
  5559. GLfloat m[16];
  5560. __glsReader_getGLfloatv_text(inoutReader, 16, m);
  5561. if (inoutReader->error) goto end;
  5562. ((__GLSdispatch)ctx->dispatchCall[358])(
  5563. m
  5564. );
  5565. end:
  5566. return;
  5567. }
  5568. void __gls_decode_text_glMultMatrixd(__GLScontext *ctx, __GLSreader *inoutReader) {
  5569. typedef void (*__GLSdispatch)(const GLdouble *);
  5570. GLdouble m[16];
  5571. __glsReader_getGLdoublev_text(inoutReader, 16, m);
  5572. if (inoutReader->error) goto end;
  5573. ((__GLSdispatch)ctx->dispatchCall[359])(
  5574. m
  5575. );
  5576. end:
  5577. return;
  5578. }
  5579. void __gls_decode_text_glOrtho(__GLScontext *ctx, __GLSreader *inoutReader) {
  5580. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
  5581. GLdouble left;
  5582. GLdouble right;
  5583. GLdouble bottom;
  5584. GLdouble top;
  5585. GLdouble zNear;
  5586. GLdouble zFar;
  5587. __glsReader_getGLdouble_text(inoutReader, &left);
  5588. __glsReader_getGLdouble_text(inoutReader, &right);
  5589. __glsReader_getGLdouble_text(inoutReader, &bottom);
  5590. __glsReader_getGLdouble_text(inoutReader, &top);
  5591. __glsReader_getGLdouble_text(inoutReader, &zNear);
  5592. __glsReader_getGLdouble_text(inoutReader, &zFar);
  5593. if (inoutReader->error) goto end;
  5594. ((__GLSdispatch)ctx->dispatchCall[360])(
  5595. left,
  5596. right,
  5597. bottom,
  5598. top,
  5599. zNear,
  5600. zFar
  5601. );
  5602. end:
  5603. return;
  5604. }
  5605. void __gls_decode_text_glPopMatrix(__GLScontext *ctx, __GLSreader *inoutReader) {
  5606. typedef void (*__GLSdispatch)(void);
  5607. if (inoutReader->error) goto end;
  5608. ((__GLSdispatch)ctx->dispatchCall[361])(
  5609. );
  5610. end:
  5611. return;
  5612. }
  5613. void __gls_decode_text_glPushMatrix(__GLScontext *ctx, __GLSreader *inoutReader) {
  5614. typedef void (*__GLSdispatch)(void);
  5615. if (inoutReader->error) goto end;
  5616. ((__GLSdispatch)ctx->dispatchCall[362])(
  5617. );
  5618. end:
  5619. return;
  5620. }
  5621. void __gls_decode_text_glRotated(__GLScontext *ctx, __GLSreader *inoutReader) {
  5622. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble, GLdouble);
  5623. GLdouble angle;
  5624. GLdouble x;
  5625. GLdouble y;
  5626. GLdouble z;
  5627. __glsReader_getGLdouble_text(inoutReader, &angle);
  5628. __glsReader_getGLdouble_text(inoutReader, &x);
  5629. __glsReader_getGLdouble_text(inoutReader, &y);
  5630. __glsReader_getGLdouble_text(inoutReader, &z);
  5631. if (inoutReader->error) goto end;
  5632. ((__GLSdispatch)ctx->dispatchCall[363])(
  5633. angle,
  5634. x,
  5635. y,
  5636. z
  5637. );
  5638. end:
  5639. return;
  5640. }
  5641. void __gls_decode_text_glRotatef(__GLScontext *ctx, __GLSreader *inoutReader) {
  5642. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat, GLfloat);
  5643. GLfloat angle;
  5644. GLfloat x;
  5645. GLfloat y;
  5646. GLfloat z;
  5647. __glsReader_getGLfloat_text(inoutReader, &angle);
  5648. __glsReader_getGLfloat_text(inoutReader, &x);
  5649. __glsReader_getGLfloat_text(inoutReader, &y);
  5650. __glsReader_getGLfloat_text(inoutReader, &z);
  5651. if (inoutReader->error) goto end;
  5652. ((__GLSdispatch)ctx->dispatchCall[364])(
  5653. angle,
  5654. x,
  5655. y,
  5656. z
  5657. );
  5658. end:
  5659. return;
  5660. }
  5661. void __gls_decode_text_glScaled(__GLScontext *ctx, __GLSreader *inoutReader) {
  5662. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  5663. GLdouble x;
  5664. GLdouble y;
  5665. GLdouble z;
  5666. __glsReader_getGLdouble_text(inoutReader, &x);
  5667. __glsReader_getGLdouble_text(inoutReader, &y);
  5668. __glsReader_getGLdouble_text(inoutReader, &z);
  5669. if (inoutReader->error) goto end;
  5670. ((__GLSdispatch)ctx->dispatchCall[365])(
  5671. x,
  5672. y,
  5673. z
  5674. );
  5675. end:
  5676. return;
  5677. }
  5678. void __gls_decode_text_glScalef(__GLScontext *ctx, __GLSreader *inoutReader) {
  5679. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  5680. GLfloat x;
  5681. GLfloat y;
  5682. GLfloat z;
  5683. __glsReader_getGLfloat_text(inoutReader, &x);
  5684. __glsReader_getGLfloat_text(inoutReader, &y);
  5685. __glsReader_getGLfloat_text(inoutReader, &z);
  5686. if (inoutReader->error) goto end;
  5687. ((__GLSdispatch)ctx->dispatchCall[366])(
  5688. x,
  5689. y,
  5690. z
  5691. );
  5692. end:
  5693. return;
  5694. }
  5695. void __gls_decode_text_glTranslated(__GLScontext *ctx, __GLSreader *inoutReader) {
  5696. typedef void (*__GLSdispatch)(GLdouble, GLdouble, GLdouble);
  5697. GLdouble x;
  5698. GLdouble y;
  5699. GLdouble z;
  5700. __glsReader_getGLdouble_text(inoutReader, &x);
  5701. __glsReader_getGLdouble_text(inoutReader, &y);
  5702. __glsReader_getGLdouble_text(inoutReader, &z);
  5703. if (inoutReader->error) goto end;
  5704. ((__GLSdispatch)ctx->dispatchCall[367])(
  5705. x,
  5706. y,
  5707. z
  5708. );
  5709. end:
  5710. return;
  5711. }
  5712. void __gls_decode_text_glTranslatef(__GLScontext *ctx, __GLSreader *inoutReader) {
  5713. typedef void (*__GLSdispatch)(GLfloat, GLfloat, GLfloat);
  5714. GLfloat x;
  5715. GLfloat y;
  5716. GLfloat z;
  5717. __glsReader_getGLfloat_text(inoutReader, &x);
  5718. __glsReader_getGLfloat_text(inoutReader, &y);
  5719. __glsReader_getGLfloat_text(inoutReader, &z);
  5720. if (inoutReader->error) goto end;
  5721. ((__GLSdispatch)ctx->dispatchCall[368])(
  5722. x,
  5723. y,
  5724. z
  5725. );
  5726. end:
  5727. return;
  5728. }
  5729. void __gls_decode_text_glViewport(__GLScontext *ctx, __GLSreader *inoutReader) {
  5730. typedef void (*__GLSdispatch)(GLint, GLint, GLsizei, GLsizei);
  5731. GLint x;
  5732. GLint y;
  5733. GLsizei width;
  5734. GLsizei height;
  5735. __glsReader_getGLint_text(inoutReader, &x);
  5736. __glsReader_getGLint_text(inoutReader, &y);
  5737. __glsReader_getGLint_text(inoutReader, &width);
  5738. __glsReader_getGLint_text(inoutReader, &height);
  5739. if (inoutReader->error) goto end;
  5740. ((__GLSdispatch)ctx->dispatchCall[369])(
  5741. x,
  5742. y,
  5743. width,
  5744. height
  5745. );
  5746. end:
  5747. return;
  5748. }
  5749. #if __GL_EXT_blend_color
  5750. void __gls_decode_text_glBlendColorEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  5751. typedef void (*__GLSdispatch)(GLclampf, GLclampf, GLclampf, GLclampf);
  5752. GLclampf red;
  5753. GLclampf green;
  5754. GLclampf blue;
  5755. GLclampf alpha;
  5756. __glsReader_getGLfloat_text(inoutReader, &red);
  5757. __glsReader_getGLfloat_text(inoutReader, &green);
  5758. __glsReader_getGLfloat_text(inoutReader, &blue);
  5759. __glsReader_getGLfloat_text(inoutReader, &alpha);
  5760. if (inoutReader->error) goto end;
  5761. ((__GLSdispatch)ctx->dispatchCall[384])(
  5762. red,
  5763. green,
  5764. blue,
  5765. alpha
  5766. );
  5767. end:
  5768. return;
  5769. }
  5770. #endif /* __GL_EXT_blend_color */
  5771. #if __GL_EXT_blend_minmax
  5772. void __gls_decode_text_glBlendEquationEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  5773. typedef void (*__GLSdispatch)(GLenum);
  5774. GLenum mode;
  5775. __glsReader_getGLenum_text(inoutReader, &mode);
  5776. if (inoutReader->error) goto end;
  5777. ((__GLSdispatch)ctx->dispatchCall[385])(
  5778. mode
  5779. );
  5780. end:
  5781. return;
  5782. }
  5783. #endif /* __GL_EXT_blend_minmax */
  5784. #if __GL_EXT_polygon_offset
  5785. void __gls_decode_text_glPolygonOffsetEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  5786. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  5787. GLfloat factor;
  5788. GLfloat bias;
  5789. __glsReader_getGLfloat_text(inoutReader, &factor);
  5790. __glsReader_getGLfloat_text(inoutReader, &bias);
  5791. if (inoutReader->error) goto end;
  5792. ((__GLSdispatch)ctx->dispatchCall[386])(
  5793. factor,
  5794. bias
  5795. );
  5796. end:
  5797. return;
  5798. }
  5799. #endif /* __GL_EXT_polygon_offset */
  5800. void __gls_decode_text_glPolygonOffset(__GLScontext *ctx, __GLSreader *inoutReader) {
  5801. typedef void (*__GLSdispatch)(GLfloat, GLfloat);
  5802. GLfloat factor;
  5803. GLfloat units;
  5804. __glsReader_getGLfloat_text(inoutReader, &factor);
  5805. __glsReader_getGLfloat_text(inoutReader, &units);
  5806. if (inoutReader->error) goto end;
  5807. ((__GLSdispatch)ctx->dispatchCall[383])(
  5808. factor,
  5809. units
  5810. );
  5811. end:
  5812. return;
  5813. }
  5814. #if __GL_EXT_subtexture
  5815. void __gls_decode_text_glTexSubImage1DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  5816. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
  5817. GLenum target;
  5818. GLint level;
  5819. GLint xoffset;
  5820. GLsizei width;
  5821. GLenum format;
  5822. GLenum type;
  5823. GLint pixels_count;
  5824. GLvoid *pixels = GLS_NONE;
  5825. __GLS_DEC_ALLOC_DECLARE(pixels)
  5826. GLbitfield imageFlags = GLS_NONE;
  5827. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  5828. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  5829. __glsReader_nextList_text(inoutReader);
  5830. __glsReader_getGLenum_text(inoutReader, &target);
  5831. __glsReader_getGLint_text(inoutReader, &level);
  5832. __glsReader_getGLint_text(inoutReader, &xoffset);
  5833. __glsReader_getGLint_text(inoutReader, &width);
  5834. __glsReader_getGLenum_text(inoutReader, &format);
  5835. __glsReader_getGLenum_text(inoutReader, &type);
  5836. pixels_count = __gls_glTexSubImage1DEXT_pixels_size(format, type, width);
  5837. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  5838. if (!pixels) goto end;
  5839. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  5840. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  5841. if (inoutReader->error) goto end;
  5842. ((__GLSdispatch)ctx->dispatchCall[387])(
  5843. target,
  5844. level,
  5845. xoffset,
  5846. width,
  5847. format,
  5848. type,
  5849. pixels
  5850. );
  5851. end:
  5852. __GLS_DEC_FREE(pixels);
  5853. return;
  5854. }
  5855. #endif /* __GL_EXT_subtexture */
  5856. void __gls_decode_text_glTexSubImage1D(__GLScontext *ctx, __GLSreader *inoutReader) {
  5857. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
  5858. GLenum target;
  5859. GLint level;
  5860. GLint xoffset;
  5861. GLsizei width;
  5862. GLenum format;
  5863. GLenum type;
  5864. GLint pixels_count;
  5865. GLvoid *pixels = GLS_NONE;
  5866. __GLS_DEC_ALLOC_DECLARE(pixels)
  5867. GLbitfield imageFlags = GLS_NONE;
  5868. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  5869. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  5870. __glsReader_nextList_text(inoutReader);
  5871. __glsReader_getGLenum_text(inoutReader, &target);
  5872. __glsReader_getGLint_text(inoutReader, &level);
  5873. __glsReader_getGLint_text(inoutReader, &xoffset);
  5874. __glsReader_getGLint_text(inoutReader, &width);
  5875. __glsReader_getGLenum_text(inoutReader, &format);
  5876. __glsReader_getGLenum_text(inoutReader, &type);
  5877. pixels_count = __gls_glTexSubImage1D_pixels_size(format, type, width);
  5878. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  5879. if (!pixels) goto end;
  5880. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  5881. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  5882. if (inoutReader->error) goto end;
  5883. ((__GLSdispatch)ctx->dispatchCall[396])(
  5884. target,
  5885. level,
  5886. xoffset,
  5887. width,
  5888. format,
  5889. type,
  5890. pixels
  5891. );
  5892. end:
  5893. __GLS_DEC_FREE(pixels);
  5894. return;
  5895. }
  5896. #if __GL_EXT_subtexture
  5897. void __gls_decode_text_glTexSubImage2DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  5898. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  5899. GLenum target;
  5900. GLint level;
  5901. GLint xoffset;
  5902. GLint yoffset;
  5903. GLsizei width;
  5904. GLsizei height;
  5905. GLenum format;
  5906. GLenum type;
  5907. GLint pixels_count;
  5908. GLvoid *pixels = GLS_NONE;
  5909. __GLS_DEC_ALLOC_DECLARE(pixels)
  5910. GLbitfield imageFlags = GLS_NONE;
  5911. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  5912. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  5913. __glsReader_nextList_text(inoutReader);
  5914. __glsReader_getGLenum_text(inoutReader, &target);
  5915. __glsReader_getGLint_text(inoutReader, &level);
  5916. __glsReader_getGLint_text(inoutReader, &xoffset);
  5917. __glsReader_getGLint_text(inoutReader, &yoffset);
  5918. __glsReader_getGLint_text(inoutReader, &width);
  5919. __glsReader_getGLint_text(inoutReader, &height);
  5920. __glsReader_getGLenum_text(inoutReader, &format);
  5921. __glsReader_getGLenum_text(inoutReader, &type);
  5922. pixels_count = __gls_glTexSubImage2DEXT_pixels_size(format, type, width, height);
  5923. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  5924. if (!pixels) goto end;
  5925. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  5926. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  5927. if (inoutReader->error) goto end;
  5928. ((__GLSdispatch)ctx->dispatchCall[388])(
  5929. target,
  5930. level,
  5931. xoffset,
  5932. yoffset,
  5933. width,
  5934. height,
  5935. format,
  5936. type,
  5937. pixels
  5938. );
  5939. end:
  5940. __GLS_DEC_FREE(pixels);
  5941. return;
  5942. }
  5943. #endif /* __GL_EXT_subtexture */
  5944. void __gls_decode_text_glTexSubImage2D(__GLScontext *ctx, __GLSreader *inoutReader) {
  5945. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  5946. GLenum target;
  5947. GLint level;
  5948. GLint xoffset;
  5949. GLint yoffset;
  5950. GLsizei width;
  5951. GLsizei height;
  5952. GLenum format;
  5953. GLenum type;
  5954. GLint pixels_count;
  5955. GLvoid *pixels = GLS_NONE;
  5956. __GLS_DEC_ALLOC_DECLARE(pixels)
  5957. GLbitfield imageFlags = GLS_NONE;
  5958. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  5959. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  5960. __glsReader_nextList_text(inoutReader);
  5961. __glsReader_getGLenum_text(inoutReader, &target);
  5962. __glsReader_getGLint_text(inoutReader, &level);
  5963. __glsReader_getGLint_text(inoutReader, &xoffset);
  5964. __glsReader_getGLint_text(inoutReader, &yoffset);
  5965. __glsReader_getGLint_text(inoutReader, &width);
  5966. __glsReader_getGLint_text(inoutReader, &height);
  5967. __glsReader_getGLenum_text(inoutReader, &format);
  5968. __glsReader_getGLenum_text(inoutReader, &type);
  5969. pixels_count = __gls_glTexSubImage2D_pixels_size(format, type, width, height);
  5970. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  5971. if (!pixels) goto end;
  5972. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  5973. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  5974. if (inoutReader->error) goto end;
  5975. ((__GLSdispatch)ctx->dispatchCall[397])(
  5976. target,
  5977. level,
  5978. xoffset,
  5979. yoffset,
  5980. width,
  5981. height,
  5982. format,
  5983. type,
  5984. pixels
  5985. );
  5986. end:
  5987. __GLS_DEC_FREE(pixels);
  5988. return;
  5989. }
  5990. #if __GL_SGIS_multisample
  5991. void __gls_decode_text_glSampleMaskSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  5992. typedef void (*__GLSdispatch)(GLclampf, GLboolean);
  5993. GLclampf value;
  5994. GLboolean invert;
  5995. __glsReader_getGLfloat_text(inoutReader, &value);
  5996. __glsReader_getGLboolean_text(inoutReader, &invert);
  5997. if (inoutReader->error) goto end;
  5998. ((__GLSdispatch)ctx->dispatchCall[389])(
  5999. value,
  6000. invert
  6001. );
  6002. end:
  6003. return;
  6004. }
  6005. #endif /* __GL_SGIS_multisample */
  6006. #if __GL_SGIS_multisample
  6007. void __gls_decode_text_glSamplePatternSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  6008. typedef void (*__GLSdispatch)(GLenum);
  6009. GLenum pattern;
  6010. __glsReader_getGLenum_text(inoutReader, &pattern);
  6011. if (inoutReader->error) goto end;
  6012. ((__GLSdispatch)ctx->dispatchCall[390])(
  6013. pattern
  6014. );
  6015. end:
  6016. return;
  6017. }
  6018. #endif /* __GL_SGIS_multisample */
  6019. #if __GL_SGIX_multisample
  6020. void __gls_decode_text_glTagSampleBufferSGIX(__GLScontext *ctx, __GLSreader *inoutReader) {
  6021. typedef void (*__GLSdispatch)(void);
  6022. if (inoutReader->error) goto end;
  6023. ((__GLSdispatch)ctx->dispatchCall[391])(
  6024. );
  6025. end:
  6026. return;
  6027. }
  6028. #endif /* __GL_SGIX_multisample */
  6029. #if __GL_EXT_convolution
  6030. void __gls_decode_text_glConvolutionFilter1DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6031. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
  6032. GLenum target;
  6033. GLenum internalformat;
  6034. GLsizei width;
  6035. GLenum format;
  6036. GLenum type;
  6037. GLint image_count;
  6038. GLvoid *image = GLS_NONE;
  6039. __GLS_DEC_ALLOC_DECLARE(image)
  6040. GLbitfield imageFlags = GLS_NONE;
  6041. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  6042. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  6043. __glsReader_nextList_text(inoutReader);
  6044. __glsReader_getGLenum_text(inoutReader, &target);
  6045. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6046. __glsReader_getGLint_text(inoutReader, &width);
  6047. __glsReader_getGLenum_text(inoutReader, &format);
  6048. __glsReader_getGLenum_text(inoutReader, &type);
  6049. image_count = __gls_glConvolutionFilter1DEXT_image_size(format, type, width);
  6050. __GLS_DEC_ALLOC_TEXT(inoutReader, image, GLvoid, 1 * image_count);
  6051. if (!image) goto end;
  6052. __glsReader_getGLcompv_text(inoutReader, type, image_count, image);
  6053. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  6054. if (inoutReader->error) goto end;
  6055. ((__GLSdispatch)ctx->dispatchCall[392])(
  6056. target,
  6057. internalformat,
  6058. width,
  6059. format,
  6060. type,
  6061. image
  6062. );
  6063. end:
  6064. __GLS_DEC_FREE(image);
  6065. return;
  6066. }
  6067. #endif /* __GL_EXT_convolution */
  6068. #if __GL_EXT_convolution
  6069. void __gls_decode_text_glConvolutionFilter2DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6070. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  6071. GLenum target;
  6072. GLenum internalformat;
  6073. GLsizei width;
  6074. GLsizei height;
  6075. GLenum format;
  6076. GLenum type;
  6077. GLint image_count;
  6078. GLvoid *image = GLS_NONE;
  6079. __GLS_DEC_ALLOC_DECLARE(image)
  6080. GLbitfield imageFlags = GLS_NONE;
  6081. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  6082. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  6083. __glsReader_nextList_text(inoutReader);
  6084. __glsReader_getGLenum_text(inoutReader, &target);
  6085. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6086. __glsReader_getGLint_text(inoutReader, &width);
  6087. __glsReader_getGLint_text(inoutReader, &height);
  6088. __glsReader_getGLenum_text(inoutReader, &format);
  6089. __glsReader_getGLenum_text(inoutReader, &type);
  6090. image_count = __gls_glConvolutionFilter2DEXT_image_size(format, type, width, height);
  6091. __GLS_DEC_ALLOC_TEXT(inoutReader, image, GLvoid, 1 * image_count);
  6092. if (!image) goto end;
  6093. __glsReader_getGLcompv_text(inoutReader, type, image_count, image);
  6094. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  6095. if (inoutReader->error) goto end;
  6096. ((__GLSdispatch)ctx->dispatchCall[393])(
  6097. target,
  6098. internalformat,
  6099. width,
  6100. height,
  6101. format,
  6102. type,
  6103. image
  6104. );
  6105. end:
  6106. __GLS_DEC_FREE(image);
  6107. return;
  6108. }
  6109. #endif /* __GL_EXT_convolution */
  6110. #if __GL_EXT_convolution
  6111. void __gls_decode_text_glConvolutionParameterfEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6112. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat);
  6113. GLenum target;
  6114. GLenum pname;
  6115. GLfloat params;
  6116. __glsReader_getGLenum_text(inoutReader, &target);
  6117. __glsReader_getGLenum_text(inoutReader, &pname);
  6118. __glsReader_getGLfloat_text(inoutReader, &params);
  6119. if (inoutReader->error) goto end;
  6120. ((__GLSdispatch)ctx->dispatchCall[394])(
  6121. target,
  6122. pname,
  6123. params
  6124. );
  6125. end:
  6126. return;
  6127. }
  6128. #endif /* __GL_EXT_convolution */
  6129. #if __GL_EXT_convolution
  6130. void __gls_decode_text_glConvolutionParameterfvEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6131. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  6132. GLenum target;
  6133. GLenum pname;
  6134. GLint params_count;
  6135. GLfloat *params = GLS_NONE;
  6136. __GLS_DEC_ALLOC_DECLARE(params)
  6137. __glsReader_getGLenum_text(inoutReader, &target);
  6138. __glsReader_getGLenum_text(inoutReader, &pname);
  6139. params_count = __gls_glConvolutionParameterfvEXT_params_size(pname);
  6140. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  6141. if (!params) goto end;
  6142. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  6143. if (inoutReader->error) goto end;
  6144. ((__GLSdispatch)ctx->dispatchCall[395])(
  6145. target,
  6146. pname,
  6147. params
  6148. );
  6149. end:
  6150. __GLS_DEC_FREE(params);
  6151. return;
  6152. }
  6153. #endif /* __GL_EXT_convolution */
  6154. #if __GL_EXT_convolution
  6155. void __gls_decode_text_glConvolutionParameteriEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6156. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint);
  6157. GLenum target;
  6158. GLenum pname;
  6159. GLint params;
  6160. __glsReader_getGLenum_text(inoutReader, &target);
  6161. __glsReader_getGLenum_text(inoutReader, &pname);
  6162. __glsReader_getGLint_text(inoutReader, &params);
  6163. if (inoutReader->error) goto end;
  6164. ((__GLSdispatch)ctx->dispatchCall[396])(
  6165. target,
  6166. pname,
  6167. params
  6168. );
  6169. end:
  6170. return;
  6171. }
  6172. #endif /* __GL_EXT_convolution */
  6173. #if __GL_EXT_convolution
  6174. void __gls_decode_text_glConvolutionParameterivEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6175. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  6176. GLenum target;
  6177. GLenum pname;
  6178. GLint params_count;
  6179. GLint *params = GLS_NONE;
  6180. __GLS_DEC_ALLOC_DECLARE(params)
  6181. __glsReader_getGLenum_text(inoutReader, &target);
  6182. __glsReader_getGLenum_text(inoutReader, &pname);
  6183. params_count = __gls_glConvolutionParameterivEXT_params_size(pname);
  6184. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  6185. if (!params) goto end;
  6186. __glsReader_getGLintv_text(inoutReader, params_count, params);
  6187. if (inoutReader->error) goto end;
  6188. ((__GLSdispatch)ctx->dispatchCall[397])(
  6189. target,
  6190. pname,
  6191. params
  6192. );
  6193. end:
  6194. __GLS_DEC_FREE(params);
  6195. return;
  6196. }
  6197. #endif /* __GL_EXT_convolution */
  6198. #if __GL_EXT_convolution
  6199. void __gls_decode_text_glCopyConvolutionFilter1DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6200. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint, GLint, GLsizei);
  6201. GLenum target;
  6202. GLenum internalformat;
  6203. GLint x;
  6204. GLint y;
  6205. GLsizei width;
  6206. __glsReader_getGLenum_text(inoutReader, &target);
  6207. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6208. __glsReader_getGLint_text(inoutReader, &x);
  6209. __glsReader_getGLint_text(inoutReader, &y);
  6210. __glsReader_getGLint_text(inoutReader, &width);
  6211. if (inoutReader->error) goto end;
  6212. ((__GLSdispatch)ctx->dispatchCall[398])(
  6213. target,
  6214. internalformat,
  6215. x,
  6216. y,
  6217. width
  6218. );
  6219. end:
  6220. return;
  6221. }
  6222. #endif /* __GL_EXT_convolution */
  6223. #if __GL_EXT_convolution
  6224. void __gls_decode_text_glCopyConvolutionFilter2DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6225. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei);
  6226. GLenum target;
  6227. GLenum internalformat;
  6228. GLint x;
  6229. GLint y;
  6230. GLsizei width;
  6231. GLsizei height;
  6232. __glsReader_getGLenum_text(inoutReader, &target);
  6233. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6234. __glsReader_getGLint_text(inoutReader, &x);
  6235. __glsReader_getGLint_text(inoutReader, &y);
  6236. __glsReader_getGLint_text(inoutReader, &width);
  6237. __glsReader_getGLint_text(inoutReader, &height);
  6238. if (inoutReader->error) goto end;
  6239. ((__GLSdispatch)ctx->dispatchCall[399])(
  6240. target,
  6241. internalformat,
  6242. x,
  6243. y,
  6244. width,
  6245. height
  6246. );
  6247. end:
  6248. return;
  6249. }
  6250. #endif /* __GL_EXT_convolution */
  6251. #if __GL_EXT_convolution
  6252. void __gls_decode_text_glGetConvolutionFilterEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6253. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum, GLvoid *);
  6254. GLenum target;
  6255. GLenum format;
  6256. GLenum type;
  6257. GLint image_count;
  6258. GLvoid *image = GLS_NONE;
  6259. __GLS_DEC_ALLOC_DECLARE(image)
  6260. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6261. __glsReader_getGLenum_text(inoutReader, &target);
  6262. __glsReader_getGLenum_text(inoutReader, &format);
  6263. __glsReader_getGLenum_text(inoutReader, &type);
  6264. image_count = __gls_glGetConvolutionFilterEXT_image_size(target, format, type);
  6265. __GLS_DEC_ALLOC_TEXT(inoutReader, image, GLvoid, 1 * image_count);
  6266. if (!image) goto end;
  6267. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6268. ctx->outArgs.count = 1;
  6269. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  6270. if (inoutReader->error) goto end;
  6271. ((__GLSdispatch)ctx->dispatchCall[400])(
  6272. target,
  6273. format,
  6274. type,
  6275. image
  6276. );
  6277. end:
  6278. ctx->outArgs = __outArgsSave;
  6279. __GLS_DEC_FREE(image);
  6280. return;
  6281. }
  6282. #endif /* __GL_EXT_convolution */
  6283. #if __GL_EXT_convolution
  6284. void __gls_decode_text_glGetConvolutionParameterfvEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6285. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  6286. GLenum target;
  6287. GLenum pname;
  6288. GLint params_count;
  6289. GLfloat *params = GLS_NONE;
  6290. __GLS_DEC_ALLOC_DECLARE(params)
  6291. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6292. __glsReader_getGLenum_text(inoutReader, &target);
  6293. __glsReader_getGLenum_text(inoutReader, &pname);
  6294. params_count = __gls_glGetConvolutionParameterfvEXT_params_size(pname);
  6295. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  6296. if (!params) goto end;
  6297. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6298. ctx->outArgs.count = 1;
  6299. if (inoutReader->error) goto end;
  6300. ((__GLSdispatch)ctx->dispatchCall[401])(
  6301. target,
  6302. pname,
  6303. params
  6304. );
  6305. end:
  6306. ctx->outArgs = __outArgsSave;
  6307. __GLS_DEC_FREE(params);
  6308. return;
  6309. }
  6310. #endif /* __GL_EXT_convolution */
  6311. #if __GL_EXT_convolution
  6312. void __gls_decode_text_glGetConvolutionParameterivEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6313. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  6314. GLenum target;
  6315. GLenum pname;
  6316. GLint params_count;
  6317. GLint *params = GLS_NONE;
  6318. __GLS_DEC_ALLOC_DECLARE(params)
  6319. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6320. __glsReader_getGLenum_text(inoutReader, &target);
  6321. __glsReader_getGLenum_text(inoutReader, &pname);
  6322. params_count = __gls_glGetConvolutionParameterivEXT_params_size(pname);
  6323. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  6324. if (!params) goto end;
  6325. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6326. ctx->outArgs.count = 1;
  6327. if (inoutReader->error) goto end;
  6328. ((__GLSdispatch)ctx->dispatchCall[402])(
  6329. target,
  6330. pname,
  6331. params
  6332. );
  6333. end:
  6334. ctx->outArgs = __outArgsSave;
  6335. __GLS_DEC_FREE(params);
  6336. return;
  6337. }
  6338. #endif /* __GL_EXT_convolution */
  6339. #if __GL_EXT_convolution
  6340. void __gls_decode_text_glGetSeparableFilterEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6341. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *);
  6342. GLenum target;
  6343. GLenum format;
  6344. GLenum type;
  6345. GLint row_count;
  6346. GLvoid *row = GLS_NONE;
  6347. __GLS_DEC_ALLOC_DECLARE(row)
  6348. GLint column_count;
  6349. GLvoid *column = GLS_NONE;
  6350. __GLS_DEC_ALLOC_DECLARE(column)
  6351. GLint span_count;
  6352. GLvoid *span = GLS_NONE;
  6353. __GLS_DEC_ALLOC_DECLARE(span)
  6354. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6355. __glsReader_getGLenum_text(inoutReader, &target);
  6356. __glsReader_getGLenum_text(inoutReader, &format);
  6357. __glsReader_getGLenum_text(inoutReader, &type);
  6358. row_count = __gls_glGetSeparableFilterEXT_row_size(target, format, type);
  6359. __GLS_DEC_ALLOC_TEXT(inoutReader, row, GLvoid, 1 * row_count);
  6360. if (!row) goto end;
  6361. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6362. column_count = __gls_glGetSeparableFilterEXT_column_size(target, format, type);
  6363. __GLS_DEC_ALLOC_TEXT(inoutReader, column, GLvoid, 1 * column_count);
  6364. if (!column) goto end;
  6365. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 1);
  6366. span_count = __gls_glGetSeparableFilterEXT_span_size(target, format, type);
  6367. __GLS_DEC_ALLOC_TEXT(inoutReader, span, GLvoid, 1 * span_count);
  6368. if (!span) goto end;
  6369. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 2);
  6370. ctx->outArgs.count = 3;
  6371. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  6372. if (inoutReader->error) goto end;
  6373. ((__GLSdispatch)ctx->dispatchCall[403])(
  6374. target,
  6375. format,
  6376. type,
  6377. row,
  6378. column,
  6379. span
  6380. );
  6381. end:
  6382. ctx->outArgs = __outArgsSave;
  6383. __GLS_DEC_FREE(row);
  6384. __GLS_DEC_FREE(column);
  6385. __GLS_DEC_FREE(span);
  6386. return;
  6387. }
  6388. #endif /* __GL_EXT_convolution */
  6389. #if __GL_EXT_convolution
  6390. void __gls_decode_text_glSeparableFilter2DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6391. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *);
  6392. GLenum target;
  6393. GLenum internalformat;
  6394. GLsizei width;
  6395. GLsizei height;
  6396. GLenum format;
  6397. GLenum type;
  6398. GLint row_count;
  6399. GLvoid *row = GLS_NONE;
  6400. __GLS_DEC_ALLOC_DECLARE(row)
  6401. GLint column_count;
  6402. GLvoid *column = GLS_NONE;
  6403. __GLS_DEC_ALLOC_DECLARE(column)
  6404. GLbitfield imageFlags = GLS_NONE;
  6405. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  6406. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  6407. __glsReader_nextList_text(inoutReader);
  6408. __glsReader_getGLenum_text(inoutReader, &target);
  6409. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6410. __glsReader_getGLint_text(inoutReader, &width);
  6411. __glsReader_getGLint_text(inoutReader, &height);
  6412. __glsReader_getGLenum_text(inoutReader, &format);
  6413. __glsReader_getGLenum_text(inoutReader, &type);
  6414. row_count = __gls_glSeparableFilter2DEXT_row_size(target, format, type, width);
  6415. __GLS_DEC_ALLOC_TEXT(inoutReader, row, GLvoid, 1 * row_count);
  6416. if (!row) goto end;
  6417. __glsReader_getGLcompv_text(inoutReader, type, row_count, row);
  6418. column_count = __gls_glSeparableFilter2DEXT_column_size(target, format, type, height);
  6419. __GLS_DEC_ALLOC_TEXT(inoutReader, column, GLvoid, 1 * column_count);
  6420. if (!column) goto end;
  6421. __glsReader_getGLcompv_text(inoutReader, type, column_count, column);
  6422. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  6423. if (inoutReader->error) goto end;
  6424. ((__GLSdispatch)ctx->dispatchCall[404])(
  6425. target,
  6426. internalformat,
  6427. width,
  6428. height,
  6429. format,
  6430. type,
  6431. row,
  6432. column
  6433. );
  6434. end:
  6435. __GLS_DEC_FREE(row);
  6436. __GLS_DEC_FREE(column);
  6437. return;
  6438. }
  6439. #endif /* __GL_EXT_convolution */
  6440. #if __GL_EXT_histogram
  6441. void __gls_decode_text_glGetHistogramEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6442. typedef void (*__GLSdispatch)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
  6443. GLenum target;
  6444. GLboolean reset;
  6445. GLenum format;
  6446. GLenum type;
  6447. GLint values_count;
  6448. GLvoid *values = GLS_NONE;
  6449. __GLS_DEC_ALLOC_DECLARE(values)
  6450. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6451. __glsReader_getGLenum_text(inoutReader, &target);
  6452. __glsReader_getGLboolean_text(inoutReader, &reset);
  6453. __glsReader_getGLenum_text(inoutReader, &format);
  6454. __glsReader_getGLenum_text(inoutReader, &type);
  6455. values_count = __gls_glGetHistogramEXT_values_size(target, format, type);
  6456. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLvoid, 1 * values_count);
  6457. if (!values) goto end;
  6458. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6459. ctx->outArgs.count = 1;
  6460. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  6461. if (inoutReader->error) goto end;
  6462. ((__GLSdispatch)ctx->dispatchCall[405])(
  6463. target,
  6464. reset,
  6465. format,
  6466. type,
  6467. values
  6468. );
  6469. end:
  6470. ctx->outArgs = __outArgsSave;
  6471. __GLS_DEC_FREE(values);
  6472. return;
  6473. }
  6474. #endif /* __GL_EXT_histogram */
  6475. #if __GL_EXT_histogram
  6476. void __gls_decode_text_glGetHistogramParameterfvEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6477. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  6478. GLenum target;
  6479. GLenum pname;
  6480. GLint params_count;
  6481. GLfloat *params = GLS_NONE;
  6482. __GLS_DEC_ALLOC_DECLARE(params)
  6483. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6484. __glsReader_getGLenum_text(inoutReader, &target);
  6485. __glsReader_getGLenum_text(inoutReader, &pname);
  6486. params_count = __gls_glGetHistogramParameterfvEXT_params_size(pname);
  6487. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  6488. if (!params) goto end;
  6489. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6490. ctx->outArgs.count = 1;
  6491. if (inoutReader->error) goto end;
  6492. ((__GLSdispatch)ctx->dispatchCall[406])(
  6493. target,
  6494. pname,
  6495. params
  6496. );
  6497. end:
  6498. ctx->outArgs = __outArgsSave;
  6499. __GLS_DEC_FREE(params);
  6500. return;
  6501. }
  6502. #endif /* __GL_EXT_histogram */
  6503. #if __GL_EXT_histogram
  6504. void __gls_decode_text_glGetHistogramParameterivEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6505. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  6506. GLenum target;
  6507. GLenum pname;
  6508. GLint params_count;
  6509. GLint *params = GLS_NONE;
  6510. __GLS_DEC_ALLOC_DECLARE(params)
  6511. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6512. __glsReader_getGLenum_text(inoutReader, &target);
  6513. __glsReader_getGLenum_text(inoutReader, &pname);
  6514. params_count = __gls_glGetHistogramParameterivEXT_params_size(pname);
  6515. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  6516. if (!params) goto end;
  6517. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6518. ctx->outArgs.count = 1;
  6519. if (inoutReader->error) goto end;
  6520. ((__GLSdispatch)ctx->dispatchCall[407])(
  6521. target,
  6522. pname,
  6523. params
  6524. );
  6525. end:
  6526. ctx->outArgs = __outArgsSave;
  6527. __GLS_DEC_FREE(params);
  6528. return;
  6529. }
  6530. #endif /* __GL_EXT_histogram */
  6531. #if __GL_EXT_histogram
  6532. void __gls_decode_text_glGetMinmaxEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6533. typedef void (*__GLSdispatch)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
  6534. GLenum target;
  6535. GLboolean reset;
  6536. GLenum format;
  6537. GLenum type;
  6538. GLint values_count;
  6539. GLvoid *values = GLS_NONE;
  6540. __GLS_DEC_ALLOC_DECLARE(values)
  6541. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6542. __glsReader_getGLenum_text(inoutReader, &target);
  6543. __glsReader_getGLboolean_text(inoutReader, &reset);
  6544. __glsReader_getGLenum_text(inoutReader, &format);
  6545. __glsReader_getGLenum_text(inoutReader, &type);
  6546. values_count = __gls_glGetMinmaxEXT_values_size(target, format, type);
  6547. __GLS_DEC_ALLOC_TEXT(inoutReader, values, GLvoid, 1 * values_count);
  6548. if (!values) goto end;
  6549. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6550. ctx->outArgs.count = 1;
  6551. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  6552. if (inoutReader->error) goto end;
  6553. ((__GLSdispatch)ctx->dispatchCall[408])(
  6554. target,
  6555. reset,
  6556. format,
  6557. type,
  6558. values
  6559. );
  6560. end:
  6561. ctx->outArgs = __outArgsSave;
  6562. __GLS_DEC_FREE(values);
  6563. return;
  6564. }
  6565. #endif /* __GL_EXT_histogram */
  6566. #if __GL_EXT_histogram
  6567. void __gls_decode_text_glGetMinmaxParameterfvEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6568. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  6569. GLenum target;
  6570. GLenum pname;
  6571. GLint params_count;
  6572. GLfloat *params = GLS_NONE;
  6573. __GLS_DEC_ALLOC_DECLARE(params)
  6574. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6575. __glsReader_getGLenum_text(inoutReader, &target);
  6576. __glsReader_getGLenum_text(inoutReader, &pname);
  6577. params_count = __gls_glGetMinmaxParameterfvEXT_params_size(pname);
  6578. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  6579. if (!params) goto end;
  6580. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6581. ctx->outArgs.count = 1;
  6582. if (inoutReader->error) goto end;
  6583. ((__GLSdispatch)ctx->dispatchCall[409])(
  6584. target,
  6585. pname,
  6586. params
  6587. );
  6588. end:
  6589. ctx->outArgs = __outArgsSave;
  6590. __GLS_DEC_FREE(params);
  6591. return;
  6592. }
  6593. #endif /* __GL_EXT_histogram */
  6594. #if __GL_EXT_histogram
  6595. void __gls_decode_text_glGetMinmaxParameterivEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6596. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  6597. GLenum target;
  6598. GLenum pname;
  6599. GLint params_count;
  6600. GLint *params = GLS_NONE;
  6601. __GLS_DEC_ALLOC_DECLARE(params)
  6602. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6603. __glsReader_getGLenum_text(inoutReader, &target);
  6604. __glsReader_getGLenum_text(inoutReader, &pname);
  6605. params_count = __gls_glGetMinmaxParameterivEXT_params_size(pname);
  6606. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  6607. if (!params) goto end;
  6608. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6609. ctx->outArgs.count = 1;
  6610. if (inoutReader->error) goto end;
  6611. ((__GLSdispatch)ctx->dispatchCall[410])(
  6612. target,
  6613. pname,
  6614. params
  6615. );
  6616. end:
  6617. ctx->outArgs = __outArgsSave;
  6618. __GLS_DEC_FREE(params);
  6619. return;
  6620. }
  6621. #endif /* __GL_EXT_histogram */
  6622. #if __GL_EXT_histogram
  6623. void __gls_decode_text_glHistogramEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6624. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLenum, GLboolean);
  6625. GLenum target;
  6626. GLsizei width;
  6627. GLenum internalformat;
  6628. GLboolean sink;
  6629. __glsReader_getGLenum_text(inoutReader, &target);
  6630. __glsReader_getGLint_text(inoutReader, &width);
  6631. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6632. __glsReader_getGLboolean_text(inoutReader, &sink);
  6633. if (inoutReader->error) goto end;
  6634. ((__GLSdispatch)ctx->dispatchCall[411])(
  6635. target,
  6636. width,
  6637. internalformat,
  6638. sink
  6639. );
  6640. end:
  6641. return;
  6642. }
  6643. #endif /* __GL_EXT_histogram */
  6644. #if __GL_EXT_histogram
  6645. void __gls_decode_text_glMinmaxEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6646. typedef void (*__GLSdispatch)(GLenum, GLenum, GLboolean);
  6647. GLenum target;
  6648. GLenum internalformat;
  6649. GLboolean sink;
  6650. __glsReader_getGLenum_text(inoutReader, &target);
  6651. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6652. __glsReader_getGLboolean_text(inoutReader, &sink);
  6653. if (inoutReader->error) goto end;
  6654. ((__GLSdispatch)ctx->dispatchCall[412])(
  6655. target,
  6656. internalformat,
  6657. sink
  6658. );
  6659. end:
  6660. return;
  6661. }
  6662. #endif /* __GL_EXT_histogram */
  6663. #if __GL_EXT_histogram
  6664. void __gls_decode_text_glResetHistogramEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6665. typedef void (*__GLSdispatch)(GLenum);
  6666. GLenum target;
  6667. __glsReader_getGLenum_text(inoutReader, &target);
  6668. if (inoutReader->error) goto end;
  6669. ((__GLSdispatch)ctx->dispatchCall[413])(
  6670. target
  6671. );
  6672. end:
  6673. return;
  6674. }
  6675. #endif /* __GL_EXT_histogram */
  6676. #if __GL_EXT_histogram
  6677. void __gls_decode_text_glResetMinmaxEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6678. typedef void (*__GLSdispatch)(GLenum);
  6679. GLenum target;
  6680. __glsReader_getGLenum_text(inoutReader, &target);
  6681. if (inoutReader->error) goto end;
  6682. ((__GLSdispatch)ctx->dispatchCall[414])(
  6683. target
  6684. );
  6685. end:
  6686. return;
  6687. }
  6688. #endif /* __GL_EXT_histogram */
  6689. #if __GL_EXT_texture3D
  6690. void __gls_decode_text_glTexImage3DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6691. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  6692. GLenum target;
  6693. GLint level;
  6694. GLenum internalformat;
  6695. GLsizei width;
  6696. GLsizei height;
  6697. GLsizei depth;
  6698. GLint border;
  6699. GLenum format;
  6700. GLenum type;
  6701. GLint pixels_count;
  6702. GLvoid *pixels = GLS_NONE;
  6703. __GLS_DEC_ALLOC_DECLARE(pixels)
  6704. GLbitfield imageFlags = GLS_NONE;
  6705. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  6706. if (imageFlags & ~GLS_IMAGE_NULL_BIT) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  6707. __glsReader_nextList_text(inoutReader);
  6708. __glsReader_getGLenum_text(inoutReader, &target);
  6709. __glsReader_getGLint_text(inoutReader, &level);
  6710. __glsReader_getGLenum_text(inoutReader, &internalformat);
  6711. __glsReader_getGLint_text(inoutReader, &width);
  6712. __glsReader_getGLint_text(inoutReader, &height);
  6713. __glsReader_getGLint_text(inoutReader, &depth);
  6714. __glsReader_getGLint_text(inoutReader, &border);
  6715. __glsReader_getGLenum_text(inoutReader, &format);
  6716. __glsReader_getGLenum_text(inoutReader, &type);
  6717. pixels_count = imageFlags & GLS_IMAGE_NULL_BIT ? 0 : __gls_glTexImage3DEXT_pixels_size(format, type, width, height, depth);
  6718. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  6719. if (!pixels) goto end;
  6720. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  6721. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  6722. if (inoutReader->error) goto end;
  6723. ((__GLSdispatch)ctx->dispatchCall[415])(
  6724. target,
  6725. level,
  6726. internalformat,
  6727. width,
  6728. height,
  6729. depth,
  6730. border,
  6731. format,
  6732. type,
  6733. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : pixels
  6734. );
  6735. end:
  6736. __GLS_DEC_FREE(pixels);
  6737. return;
  6738. }
  6739. #endif /* __GL_EXT_texture3D */
  6740. #if __GL_EXT_subtexture
  6741. void __gls_decode_text_glTexSubImage3DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6742. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  6743. GLenum target;
  6744. GLint level;
  6745. GLint xoffset;
  6746. GLint yoffset;
  6747. GLint zoffset;
  6748. GLsizei width;
  6749. GLsizei height;
  6750. GLsizei depth;
  6751. GLenum format;
  6752. GLenum type;
  6753. GLint pixels_count;
  6754. GLvoid *pixels = GLS_NONE;
  6755. __GLS_DEC_ALLOC_DECLARE(pixels)
  6756. GLbitfield imageFlags = GLS_NONE;
  6757. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  6758. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  6759. __glsReader_nextList_text(inoutReader);
  6760. __glsReader_getGLenum_text(inoutReader, &target);
  6761. __glsReader_getGLint_text(inoutReader, &level);
  6762. __glsReader_getGLint_text(inoutReader, &xoffset);
  6763. __glsReader_getGLint_text(inoutReader, &yoffset);
  6764. __glsReader_getGLint_text(inoutReader, &zoffset);
  6765. __glsReader_getGLint_text(inoutReader, &width);
  6766. __glsReader_getGLint_text(inoutReader, &height);
  6767. __glsReader_getGLint_text(inoutReader, &depth);
  6768. __glsReader_getGLenum_text(inoutReader, &format);
  6769. __glsReader_getGLenum_text(inoutReader, &type);
  6770. pixels_count = __gls_glTexSubImage3DEXT_pixels_size(format, type, width, height, depth);
  6771. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  6772. if (!pixels) goto end;
  6773. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  6774. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  6775. if (inoutReader->error) goto end;
  6776. ((__GLSdispatch)ctx->dispatchCall[416])(
  6777. target,
  6778. level,
  6779. xoffset,
  6780. yoffset,
  6781. zoffset,
  6782. width,
  6783. height,
  6784. depth,
  6785. format,
  6786. type,
  6787. pixels
  6788. );
  6789. end:
  6790. __GLS_DEC_FREE(pixels);
  6791. return;
  6792. }
  6793. #endif /* __GL_EXT_subtexture */
  6794. #if __GL_SGIS_detail_texture
  6795. void __gls_decode_text_glDetailTexFuncSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  6796. typedef void (*__GLSdispatch)(GLenum, GLsizei, const GLfloat *);
  6797. GLenum target;
  6798. GLsizei n;
  6799. GLfloat *points = GLS_NONE;
  6800. __GLS_DEC_ALLOC_DECLARE(points)
  6801. __glsReader_getGLenum_text(inoutReader, &target);
  6802. __glsReader_getGLint_text(inoutReader, &n);
  6803. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLfloat, 4 * __GLS_MAX(n*2, 0));
  6804. if (!points) goto end;
  6805. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(n*2, 0), points);
  6806. if (inoutReader->error) goto end;
  6807. ((__GLSdispatch)ctx->dispatchCall[417])(
  6808. target,
  6809. n,
  6810. points
  6811. );
  6812. end:
  6813. __GLS_DEC_FREE(points);
  6814. return;
  6815. }
  6816. #endif /* __GL_SGIS_detail_texture */
  6817. #if __GL_SGIS_detail_texture
  6818. void __gls_decode_text_glGetDetailTexFuncSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  6819. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  6820. GLenum target;
  6821. GLint points_count;
  6822. GLfloat *points = GLS_NONE;
  6823. __GLS_DEC_ALLOC_DECLARE(points)
  6824. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6825. __glsReader_getGLenum_text(inoutReader, &target);
  6826. points_count = __gls_glGetDetailTexFuncSGIS_points_size(target);
  6827. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLfloat, 4 * points_count);
  6828. if (!points) goto end;
  6829. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6830. ctx->outArgs.count = 1;
  6831. if (inoutReader->error) goto end;
  6832. ((__GLSdispatch)ctx->dispatchCall[418])(
  6833. target,
  6834. points
  6835. );
  6836. end:
  6837. ctx->outArgs = __outArgsSave;
  6838. __GLS_DEC_FREE(points);
  6839. return;
  6840. }
  6841. #endif /* __GL_SGIS_detail_texture */
  6842. #if __GL_SGIS_sharpen_texture
  6843. void __gls_decode_text_glSharpenTexFuncSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  6844. typedef void (*__GLSdispatch)(GLenum, GLsizei, const GLfloat *);
  6845. GLenum target;
  6846. GLsizei n;
  6847. GLfloat *points = GLS_NONE;
  6848. __GLS_DEC_ALLOC_DECLARE(points)
  6849. __glsReader_getGLenum_text(inoutReader, &target);
  6850. __glsReader_getGLint_text(inoutReader, &n);
  6851. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLfloat, 4 * __GLS_MAX(n*2, 0));
  6852. if (!points) goto end;
  6853. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(n*2, 0), points);
  6854. if (inoutReader->error) goto end;
  6855. ((__GLSdispatch)ctx->dispatchCall[419])(
  6856. target,
  6857. n,
  6858. points
  6859. );
  6860. end:
  6861. __GLS_DEC_FREE(points);
  6862. return;
  6863. }
  6864. #endif /* __GL_SGIS_sharpen_texture */
  6865. #if __GL_SGIS_sharpen_texture
  6866. void __gls_decode_text_glGetSharpenTexFuncSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  6867. typedef void (*__GLSdispatch)(GLenum, GLfloat *);
  6868. GLenum target;
  6869. GLint points_count;
  6870. GLfloat *points = GLS_NONE;
  6871. __GLS_DEC_ALLOC_DECLARE(points)
  6872. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  6873. __glsReader_getGLenum_text(inoutReader, &target);
  6874. points_count = __gls_glGetSharpenTexFuncSGIS_points_size(target);
  6875. __GLS_DEC_ALLOC_TEXT(inoutReader, points, GLfloat, 4 * points_count);
  6876. if (!points) goto end;
  6877. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  6878. ctx->outArgs.count = 1;
  6879. if (inoutReader->error) goto end;
  6880. ((__GLSdispatch)ctx->dispatchCall[420])(
  6881. target,
  6882. points
  6883. );
  6884. end:
  6885. ctx->outArgs = __outArgsSave;
  6886. __GLS_DEC_FREE(points);
  6887. return;
  6888. }
  6889. #endif /* __GL_SGIS_sharpen_texture */
  6890. #if __GL_EXT_vertex_array
  6891. void __gls_decode_text_glArrayElementEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6892. typedef void (*__GLSdispatch)(GLint);
  6893. GLint i;
  6894. __glsReader_getGLint_text(inoutReader, &i);
  6895. if (inoutReader->error) goto end;
  6896. ((__GLSdispatch)ctx->dispatchCall[437])(
  6897. i
  6898. );
  6899. end:
  6900. return;
  6901. }
  6902. #endif /* __GL_EXT_vertex_array */
  6903. void __gls_decode_text_glArrayElement(__GLScontext *ctx, __GLSreader *inoutReader) {
  6904. typedef void (*__GLSdispatch)(GLint);
  6905. GLuint enabled;
  6906. GLsizei count;
  6907. GLvoid *data;
  6908. data = __glsSetArrayStateText(ctx, inoutReader, &enabled, &count);
  6909. if (data == NULL) goto end;
  6910. ((__GLSdispatch)ctx->dispatchCall[370])(
  6911. 0
  6912. );
  6913. __glsDisableArrayState(ctx, enabled);
  6914. free(data);
  6915. end:
  6916. return;
  6917. }
  6918. #if __GL_EXT_vertex_array
  6919. void __gls_decode_text_glColorPointerEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6920. typedef void (*__GLSdispatch)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
  6921. GLint size;
  6922. GLenum type;
  6923. GLsizei stride;
  6924. GLsizei count;
  6925. GLint pointer_count;
  6926. GLvoid *pointer = GLS_NONE;
  6927. __glsReader_getGLint_text(inoutReader, &size);
  6928. __glsReader_getGLenum_text(inoutReader, &type);
  6929. __glsReader_getGLint_text(inoutReader, &stride);
  6930. __glsReader_getGLint_text(inoutReader, &count);
  6931. pointer_count = __gls_glColorPointerEXT_pointer_size(size, type, stride, count);
  6932. pointer = (GLvoid *)__glsReader_allocVertexArrayBuf(inoutReader, 65494, pointer_count);
  6933. if (!pointer) goto end;
  6934. __glsReader_getGLcompv_text(inoutReader, type, pointer_count, pointer);
  6935. if (stride > 0) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  6936. if (inoutReader->error) goto end;
  6937. ((__GLSdispatch)ctx->dispatchCall[438])(
  6938. size,
  6939. type,
  6940. stride,
  6941. count,
  6942. pointer
  6943. );
  6944. end:
  6945. return;
  6946. }
  6947. #endif /* __GL_EXT_vertex_array */
  6948. void __gls_decode_text_glColorPointer(__GLScontext *ctx, __GLSreader *inoutReader) {
  6949. // This should never be called because ColorPointer isn't captured
  6950. }
  6951. #if __GL_EXT_vertex_array
  6952. void __gls_decode_text_glDrawArraysEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6953. typedef void (*__GLSdispatch)(GLenum, GLint, GLsizei);
  6954. GLenum mode;
  6955. GLint first;
  6956. GLsizei count;
  6957. __glsReader_getGLenum_text(inoutReader, &mode);
  6958. __glsReader_getGLint_text(inoutReader, &first);
  6959. __glsReader_getGLint_text(inoutReader, &count);
  6960. if (inoutReader->error) goto end;
  6961. ((__GLSdispatch)ctx->dispatchCall[439])(
  6962. mode,
  6963. first,
  6964. count
  6965. );
  6966. end:
  6967. return;
  6968. }
  6969. #endif /* __GL_EXT_vertex_array */
  6970. void __gls_decode_text_glDrawArrays(__GLScontext *ctx, __GLSreader *inoutReader) {
  6971. typedef void (*__GLSdispatch)(GLenum, GLint, GLsizei);
  6972. GLenum mode;
  6973. GLuint enabled;
  6974. GLsizei count;
  6975. GLvoid *data;
  6976. __glsReader_getGLenum_text(inoutReader, &mode);
  6977. data = __glsSetArrayStateText(ctx, inoutReader, &enabled, &count);
  6978. if (data == NULL) goto end;
  6979. ((__GLSdispatch)ctx->dispatchCall[374])(
  6980. mode,
  6981. 0,
  6982. count
  6983. );
  6984. __glsDisableArrayState(ctx, enabled);
  6985. free(data);
  6986. end:
  6987. return;
  6988. }
  6989. void __gls_decode_text_glDrawElements(__GLScontext *ctx, __GLSreader *inoutReader) {
  6990. // DrewB - Non-functional
  6991. }
  6992. #if __GL_EXT_vertex_array
  6993. void __gls_decode_text_glEdgeFlagPointerEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  6994. typedef void (*__GLSdispatch)(GLsizei, GLsizei, const GLboolean *);
  6995. GLsizei stride;
  6996. GLsizei count;
  6997. GLint pointer_count;
  6998. GLboolean *pointer = GLS_NONE;
  6999. __glsReader_getGLint_text(inoutReader, &stride);
  7000. __glsReader_getGLint_text(inoutReader, &count);
  7001. pointer_count = __gls_glEdgeFlagPointerEXT_pointer_size(stride, count);
  7002. pointer = (GLboolean *)__glsReader_allocVertexArrayBuf(inoutReader, 65496, pointer_count);
  7003. if (!pointer) goto end;
  7004. __glsReader_getGLbooleanv_text(inoutReader, pointer_count, pointer);
  7005. if (stride > 0) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  7006. if (inoutReader->error) goto end;
  7007. ((__GLSdispatch)ctx->dispatchCall[440])(
  7008. stride,
  7009. count,
  7010. pointer
  7011. );
  7012. end:
  7013. return;
  7014. }
  7015. #endif /* __GL_EXT_vertex_array */
  7016. void __gls_decode_text_glEdgeFlagPointer(__GLScontext *ctx, __GLSreader *inoutReader) {
  7017. // This should never be called because EdgeFlagPointer isn't captured
  7018. }
  7019. #if __GL_EXT_vertex_array
  7020. void __gls_decode_text_glGetPointervEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7021. typedef void (*__GLSdispatch)(GLenum, GLvoid* *);
  7022. GLenum pname;
  7023. GLvoid* params[1];
  7024. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7025. __glsReader_getGLenum_text(inoutReader, &pname);
  7026. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7027. ctx->outArgs.count = 1;
  7028. if (inoutReader->error) goto end;
  7029. ((__GLSdispatch)ctx->dispatchCall[441])(
  7030. pname,
  7031. params
  7032. );
  7033. end:
  7034. ctx->outArgs = __outArgsSave;
  7035. return;
  7036. }
  7037. #endif /* __GL_EXT_vertex_array */
  7038. void __gls_decode_text_glGetPointerv(__GLScontext *ctx, __GLSreader *inoutReader) {
  7039. typedef void (*__GLSdispatch)(GLenum, GLvoid* *);
  7040. GLenum pname;
  7041. GLvoid* params[1];
  7042. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7043. __glsReader_getGLenum_text(inoutReader, &pname);
  7044. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7045. ctx->outArgs.count = 1;
  7046. if (inoutReader->error) goto end;
  7047. ((__GLSdispatch)ctx->dispatchCall[393])(
  7048. pname,
  7049. params
  7050. );
  7051. end:
  7052. ctx->outArgs = __outArgsSave;
  7053. return;
  7054. }
  7055. #if __GL_EXT_vertex_array
  7056. void __gls_decode_text_glIndexPointerEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7057. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLsizei, const GLvoid *);
  7058. GLenum type;
  7059. GLsizei stride;
  7060. GLsizei count;
  7061. GLint pointer_count;
  7062. GLvoid *pointer = GLS_NONE;
  7063. __glsReader_getGLenum_text(inoutReader, &type);
  7064. __glsReader_getGLint_text(inoutReader, &stride);
  7065. __glsReader_getGLint_text(inoutReader, &count);
  7066. pointer_count = __gls_glIndexPointerEXT_pointer_size(type, stride, count);
  7067. pointer = (GLvoid *)__glsReader_allocVertexArrayBuf(inoutReader, 65498, pointer_count);
  7068. if (!pointer) goto end;
  7069. __glsReader_getGLcompv_text(inoutReader, type, pointer_count, pointer);
  7070. if (stride > 0) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  7071. if (inoutReader->error) goto end;
  7072. ((__GLSdispatch)ctx->dispatchCall[442])(
  7073. type,
  7074. stride,
  7075. count,
  7076. pointer
  7077. );
  7078. end:
  7079. return;
  7080. }
  7081. #endif /* __GL_EXT_vertex_array */
  7082. void __gls_decode_text_glIndexPointer(__GLScontext *ctx, __GLSreader *inoutReader) {
  7083. // This should never be called because IndexPointer isn't captured
  7084. }
  7085. #if __GL_EXT_vertex_array
  7086. void __gls_decode_text_glNormalPointerEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7087. typedef void (*__GLSdispatch)(GLenum, GLsizei, GLsizei, const GLvoid *);
  7088. GLenum type;
  7089. GLsizei stride;
  7090. GLsizei count;
  7091. GLint pointer_count;
  7092. GLvoid *pointer = GLS_NONE;
  7093. __glsReader_getGLenum_text(inoutReader, &type);
  7094. __glsReader_getGLint_text(inoutReader, &stride);
  7095. __glsReader_getGLint_text(inoutReader, &count);
  7096. pointer_count = __gls_glNormalPointerEXT_pointer_size(type, stride, count);
  7097. pointer = (GLvoid *)__glsReader_allocVertexArrayBuf(inoutReader, 65499, pointer_count);
  7098. if (!pointer) goto end;
  7099. __glsReader_getGLcompv_text(inoutReader, type, pointer_count, pointer);
  7100. if (stride > 0) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  7101. if (inoutReader->error) goto end;
  7102. ((__GLSdispatch)ctx->dispatchCall[443])(
  7103. type,
  7104. stride,
  7105. count,
  7106. pointer
  7107. );
  7108. end:
  7109. return;
  7110. }
  7111. #endif /* __GL_EXT_vertex_array */
  7112. void __gls_decode_text_glNormalPointer(__GLScontext *ctx, __GLSreader *inoutReader) {
  7113. // This should never be called because NormalPointer isn't captured
  7114. }
  7115. #if __GL_EXT_vertex_array
  7116. void __gls_decode_text_glTexCoordPointerEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7117. typedef void (*__GLSdispatch)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
  7118. GLint size;
  7119. GLenum type;
  7120. GLsizei stride;
  7121. GLsizei count;
  7122. GLint pointer_count;
  7123. GLvoid *pointer = GLS_NONE;
  7124. __glsReader_getGLint_text(inoutReader, &size);
  7125. __glsReader_getGLenum_text(inoutReader, &type);
  7126. __glsReader_getGLint_text(inoutReader, &stride);
  7127. __glsReader_getGLint_text(inoutReader, &count);
  7128. pointer_count = __gls_glTexCoordPointerEXT_pointer_size(size, type, stride, count);
  7129. pointer = (GLvoid *)__glsReader_allocVertexArrayBuf(inoutReader, 65500, pointer_count);
  7130. if (!pointer) goto end;
  7131. __glsReader_getGLcompv_text(inoutReader, type, pointer_count, pointer);
  7132. if (stride > 0) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  7133. if (inoutReader->error) goto end;
  7134. ((__GLSdispatch)ctx->dispatchCall[444])(
  7135. size,
  7136. type,
  7137. stride,
  7138. count,
  7139. pointer
  7140. );
  7141. end:
  7142. return;
  7143. }
  7144. #endif /* __GL_EXT_vertex_array */
  7145. void __gls_decode_text_glTexCoordPointer(__GLScontext *ctx, __GLSreader *inoutReader) {
  7146. // This should never be called because TexCoordPointer isn't captured
  7147. }
  7148. #if __GL_EXT_vertex_array
  7149. void __gls_decode_text_glVertexPointerEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7150. typedef void (*__GLSdispatch)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
  7151. GLint size;
  7152. GLenum type;
  7153. GLsizei stride;
  7154. GLsizei count;
  7155. GLint pointer_count;
  7156. GLvoid *pointer = GLS_NONE;
  7157. __glsReader_getGLint_text(inoutReader, &size);
  7158. __glsReader_getGLenum_text(inoutReader, &type);
  7159. __glsReader_getGLint_text(inoutReader, &stride);
  7160. __glsReader_getGLint_text(inoutReader, &count);
  7161. pointer_count = __gls_glVertexPointerEXT_pointer_size(size, type, stride, count);
  7162. pointer = (GLvoid *)__glsReader_allocVertexArrayBuf(inoutReader, 65501, pointer_count);
  7163. if (!pointer) goto end;
  7164. __glsReader_getGLcompv_text(inoutReader, type, pointer_count, pointer);
  7165. if (stride > 0) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  7166. if (inoutReader->error) goto end;
  7167. ((__GLSdispatch)ctx->dispatchCall[445])(
  7168. size,
  7169. type,
  7170. stride,
  7171. count,
  7172. pointer
  7173. );
  7174. end:
  7175. return;
  7176. }
  7177. #endif /* __GL_EXT_vertex_array */
  7178. void __gls_decode_text_glVertexPointer(__GLScontext *ctx, __GLSreader *inoutReader) {
  7179. // This should never be called because VertexPointer isn't captured
  7180. }
  7181. #if __GL_EXT_texture_object
  7182. void __gls_decode_text_glAreTexturesResidentEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7183. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, GLboolean *);
  7184. GLsizei n;
  7185. GLuint *textures = GLS_NONE;
  7186. __GLS_DEC_ALLOC_DECLARE(textures)
  7187. GLboolean *residences = GLS_NONE;
  7188. __GLS_DEC_ALLOC_DECLARE(residences)
  7189. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7190. __glsReader_getGLint_text(inoutReader, &n);
  7191. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7192. if (!textures) goto end;
  7193. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(n, 0), textures);
  7194. __GLS_DEC_ALLOC_TEXT(inoutReader, residences, GLboolean, 1 * __GLS_MAX(n, 0));
  7195. if (!residences) goto end;
  7196. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7197. ctx->outArgs.count = 1;
  7198. if (inoutReader->error) goto end;
  7199. ((__GLSdispatch)ctx->dispatchCall[430])(
  7200. n,
  7201. textures,
  7202. residences
  7203. );
  7204. end:
  7205. ctx->outArgs = __outArgsSave;
  7206. __GLS_DEC_FREE(textures);
  7207. __GLS_DEC_FREE(residences);
  7208. return;
  7209. }
  7210. #endif /* __GL_EXT_texture_object */
  7211. void __gls_decode_text_glAreTexturesResident(__GLScontext *ctx, __GLSreader *inoutReader) {
  7212. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, GLboolean *);
  7213. GLsizei n;
  7214. GLuint *textures = GLS_NONE;
  7215. __GLS_DEC_ALLOC_DECLARE(textures)
  7216. GLboolean *residences = GLS_NONE;
  7217. __GLS_DEC_ALLOC_DECLARE(residences)
  7218. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7219. __glsReader_getGLint_text(inoutReader, &n);
  7220. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7221. if (!textures) goto end;
  7222. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(n, 0), textures);
  7223. __GLS_DEC_ALLOC_TEXT(inoutReader, residences, GLboolean, 1 * __GLS_MAX(n, 0));
  7224. if (!residences) goto end;
  7225. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7226. ctx->outArgs.count = 1;
  7227. if (inoutReader->error) goto end;
  7228. ((__GLSdispatch)ctx->dispatchCall[386])(
  7229. n,
  7230. textures,
  7231. residences
  7232. );
  7233. end:
  7234. ctx->outArgs = __outArgsSave;
  7235. __GLS_DEC_FREE(textures);
  7236. __GLS_DEC_FREE(residences);
  7237. return;
  7238. }
  7239. #if __GL_EXT_texture_object
  7240. void __gls_decode_text_glBindTextureEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7241. typedef void (*__GLSdispatch)(GLenum, GLuint);
  7242. GLenum target;
  7243. GLuint texture;
  7244. __glsReader_getGLenum_text(inoutReader, &target);
  7245. __glsReader_getGLuint_text(inoutReader, &texture);
  7246. if (inoutReader->error) goto end;
  7247. ((__GLSdispatch)ctx->dispatchCall[431])(
  7248. target,
  7249. texture
  7250. );
  7251. end:
  7252. return;
  7253. }
  7254. #endif /* __GL_EXT_texture_object */
  7255. void __gls_decode_text_glBindTexture(__GLScontext *ctx, __GLSreader *inoutReader) {
  7256. typedef void (*__GLSdispatch)(GLenum, GLuint);
  7257. GLenum target;
  7258. GLuint texture;
  7259. __glsReader_getGLenum_text(inoutReader, &target);
  7260. __glsReader_getGLuint_text(inoutReader, &texture);
  7261. if (inoutReader->error) goto end;
  7262. ((__GLSdispatch)ctx->dispatchCall[371])(
  7263. target,
  7264. texture
  7265. );
  7266. end:
  7267. return;
  7268. }
  7269. #if __GL_EXT_texture_object
  7270. void __gls_decode_text_glDeleteTexturesEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7271. typedef void (*__GLSdispatch)(GLsizei, const GLuint *);
  7272. GLsizei n;
  7273. GLuint *textures = GLS_NONE;
  7274. __GLS_DEC_ALLOC_DECLARE(textures)
  7275. __glsReader_getGLint_text(inoutReader, &n);
  7276. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7277. if (!textures) goto end;
  7278. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(n, 0), textures);
  7279. if (inoutReader->error) goto end;
  7280. ((__GLSdispatch)ctx->dispatchCall[432])(
  7281. n,
  7282. textures
  7283. );
  7284. end:
  7285. __GLS_DEC_FREE(textures);
  7286. return;
  7287. }
  7288. #endif /* __GL_EXT_texture_object */
  7289. void __gls_decode_text_glDeleteTextures(__GLScontext *ctx, __GLSreader *inoutReader) {
  7290. typedef void (*__GLSdispatch)(GLsizei, const GLuint *);
  7291. GLsizei n;
  7292. GLuint *textures = GLS_NONE;
  7293. __GLS_DEC_ALLOC_DECLARE(textures)
  7294. __glsReader_getGLint_text(inoutReader, &n);
  7295. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7296. if (!textures) goto end;
  7297. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(n, 0), textures);
  7298. if (inoutReader->error) goto end;
  7299. ((__GLSdispatch)ctx->dispatchCall[391])(
  7300. n,
  7301. textures
  7302. );
  7303. end:
  7304. __GLS_DEC_FREE(textures);
  7305. return;
  7306. }
  7307. #if __GL_EXT_texture_object
  7308. void __gls_decode_text_glGenTexturesEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7309. typedef void (*__GLSdispatch)(GLsizei, GLuint *);
  7310. GLsizei n;
  7311. GLuint *textures = GLS_NONE;
  7312. __GLS_DEC_ALLOC_DECLARE(textures)
  7313. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7314. __glsReader_getGLint_text(inoutReader, &n);
  7315. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7316. if (!textures) goto end;
  7317. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7318. ctx->outArgs.count = 1;
  7319. if (inoutReader->error) goto end;
  7320. ((__GLSdispatch)ctx->dispatchCall[433])(
  7321. n,
  7322. textures
  7323. );
  7324. end:
  7325. ctx->outArgs = __outArgsSave;
  7326. __GLS_DEC_FREE(textures);
  7327. return;
  7328. }
  7329. #endif /* __GL_EXT_texture_object */
  7330. void __gls_decode_text_glGenTextures(__GLScontext *ctx, __GLSreader *inoutReader) {
  7331. typedef void (*__GLSdispatch)(GLsizei, GLuint *);
  7332. GLsizei n;
  7333. GLuint *textures = GLS_NONE;
  7334. __GLS_DEC_ALLOC_DECLARE(textures)
  7335. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7336. __glsReader_getGLint_text(inoutReader, &n);
  7337. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7338. if (!textures) goto end;
  7339. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7340. ctx->outArgs.count = 1;
  7341. if (inoutReader->error) goto end;
  7342. ((__GLSdispatch)ctx->dispatchCall[392])(
  7343. n,
  7344. textures
  7345. );
  7346. end:
  7347. ctx->outArgs = __outArgsSave;
  7348. __GLS_DEC_FREE(textures);
  7349. return;
  7350. }
  7351. #if __GL_EXT_texture_object
  7352. void __gls_decode_text_glIsTextureEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7353. typedef void (*__GLSdispatch)(GLuint);
  7354. GLuint texture;
  7355. __glsReader_getGLuint_text(inoutReader, &texture);
  7356. if (inoutReader->error) goto end;
  7357. ((__GLSdispatch)ctx->dispatchCall[434])(
  7358. texture
  7359. );
  7360. end:
  7361. return;
  7362. }
  7363. #endif /* __GL_EXT_texture_object */
  7364. void __gls_decode_text_glIsTexture(__GLScontext *ctx, __GLSreader *inoutReader) {
  7365. typedef void (*__GLSdispatch)(GLuint);
  7366. GLuint texture;
  7367. __glsReader_getGLuint_text(inoutReader, &texture);
  7368. if (inoutReader->error) goto end;
  7369. ((__GLSdispatch)ctx->dispatchCall[394])(
  7370. texture
  7371. );
  7372. end:
  7373. return;
  7374. }
  7375. #if __GL_EXT_texture_object
  7376. void __gls_decode_text_glPrioritizeTexturesEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7377. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, const GLclampf *);
  7378. GLsizei n;
  7379. GLuint *textures = GLS_NONE;
  7380. __GLS_DEC_ALLOC_DECLARE(textures)
  7381. GLclampf *priorities = GLS_NONE;
  7382. __GLS_DEC_ALLOC_DECLARE(priorities)
  7383. __glsReader_getGLint_text(inoutReader, &n);
  7384. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7385. if (!textures) goto end;
  7386. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(n, 0), textures);
  7387. __GLS_DEC_ALLOC_TEXT(inoutReader, priorities, GLclampf, 4 * __GLS_MAX(n, 0));
  7388. if (!priorities) goto end;
  7389. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(n, 0), priorities);
  7390. if (inoutReader->error) goto end;
  7391. ((__GLSdispatch)ctx->dispatchCall[435])(
  7392. n,
  7393. textures,
  7394. priorities
  7395. );
  7396. end:
  7397. __GLS_DEC_FREE(textures);
  7398. __GLS_DEC_FREE(priorities);
  7399. return;
  7400. }
  7401. #endif /* __GL_EXT_texture_object */
  7402. void __gls_decode_text_glPrioritizeTextures(__GLScontext *ctx, __GLSreader *inoutReader) {
  7403. typedef void (*__GLSdispatch)(GLsizei, const GLuint *, const GLclampf *);
  7404. GLsizei n;
  7405. GLuint *textures = GLS_NONE;
  7406. __GLS_DEC_ALLOC_DECLARE(textures)
  7407. GLclampf *priorities = GLS_NONE;
  7408. __GLS_DEC_ALLOC_DECLARE(priorities)
  7409. __glsReader_getGLint_text(inoutReader, &n);
  7410. __GLS_DEC_ALLOC_TEXT(inoutReader, textures, GLuint, 4 * __GLS_MAX(n, 0));
  7411. if (!textures) goto end;
  7412. __glsReader_getGLuintv_text(inoutReader, __GLS_MAX(n, 0), textures);
  7413. __GLS_DEC_ALLOC_TEXT(inoutReader, priorities, GLclampf, 4 * __GLS_MAX(n, 0));
  7414. if (!priorities) goto end;
  7415. __glsReader_getGLfloatv_text(inoutReader, __GLS_MAX(n, 0), priorities);
  7416. if (inoutReader->error) goto end;
  7417. ((__GLSdispatch)ctx->dispatchCall[395])(
  7418. n,
  7419. textures,
  7420. priorities
  7421. );
  7422. end:
  7423. __GLS_DEC_FREE(textures);
  7424. __GLS_DEC_FREE(priorities);
  7425. return;
  7426. }
  7427. #if __GL_EXT_paletted_texture
  7428. void __gls_decode_text_glColorTableEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7429. typedef void (*__GLSdispatch)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
  7430. GLenum target;
  7431. GLenum internalformat;
  7432. GLsizei width;
  7433. GLenum format;
  7434. GLenum type;
  7435. GLint table_count;
  7436. GLvoid *table = GLS_NONE;
  7437. __GLS_DEC_ALLOC_DECLARE(table)
  7438. GLbitfield imageFlags = GLS_NONE;
  7439. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  7440. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  7441. __glsReader_nextList_text(inoutReader);
  7442. __glsReader_getGLenum_text(inoutReader, &target);
  7443. __glsReader_getGLenum_text(inoutReader, &internalformat);
  7444. __glsReader_getGLint_text(inoutReader, &width);
  7445. __glsReader_getGLenum_text(inoutReader, &format);
  7446. __glsReader_getGLenum_text(inoutReader, &type);
  7447. table_count = __gls_glColorTableEXT_table_size(format, type, width);
  7448. __GLS_DEC_ALLOC_TEXT(inoutReader, table, GLvoid, 1 * table_count);
  7449. if (!table) goto end;
  7450. __glsReader_getGLcompv_text(inoutReader, type, table_count, table);
  7451. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  7452. if (inoutReader->error) goto end;
  7453. ((__GLSdispatch)ctx->dispatchCall[452])(
  7454. target,
  7455. internalformat,
  7456. width,
  7457. format,
  7458. type,
  7459. table
  7460. );
  7461. end:
  7462. __GLS_DEC_FREE(table);
  7463. return;
  7464. }
  7465. #endif /* __GL_EXT_paletted_texture */
  7466. #if __GL_SGI_color_table
  7467. void __gls_decode_text_glColorTableParameterfvSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7468. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  7469. GLenum target;
  7470. GLenum pname;
  7471. GLint params_count;
  7472. GLfloat *params = GLS_NONE;
  7473. __GLS_DEC_ALLOC_DECLARE(params)
  7474. __glsReader_getGLenum_text(inoutReader, &target);
  7475. __glsReader_getGLenum_text(inoutReader, &pname);
  7476. params_count = __gls_glColorTableParameterfvSGI_params_size(pname);
  7477. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  7478. if (!params) goto end;
  7479. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  7480. if (inoutReader->error) goto end;
  7481. ((__GLSdispatch)ctx->dispatchCall[437])(
  7482. target,
  7483. pname,
  7484. params
  7485. );
  7486. end:
  7487. __GLS_DEC_FREE(params);
  7488. return;
  7489. }
  7490. #endif /* __GL_SGI_color_table */
  7491. #if __GL_SGI_color_table
  7492. void __gls_decode_text_glColorTableParameterivSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7493. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  7494. GLenum target;
  7495. GLenum pname;
  7496. GLint params_count;
  7497. GLint *params = GLS_NONE;
  7498. __GLS_DEC_ALLOC_DECLARE(params)
  7499. __glsReader_getGLenum_text(inoutReader, &target);
  7500. __glsReader_getGLenum_text(inoutReader, &pname);
  7501. params_count = __gls_glColorTableParameterivSGI_params_size(pname);
  7502. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  7503. if (!params) goto end;
  7504. __glsReader_getGLintv_text(inoutReader, params_count, params);
  7505. if (inoutReader->error) goto end;
  7506. ((__GLSdispatch)ctx->dispatchCall[438])(
  7507. target,
  7508. pname,
  7509. params
  7510. );
  7511. end:
  7512. __GLS_DEC_FREE(params);
  7513. return;
  7514. }
  7515. #endif /* __GL_SGI_color_table */
  7516. #if __GL_SGI_color_table
  7517. void __gls_decode_text_glCopyColorTableSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7518. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint, GLint, GLsizei);
  7519. GLenum target;
  7520. GLenum internalformat;
  7521. GLint x;
  7522. GLint y;
  7523. GLsizei width;
  7524. __glsReader_getGLenum_text(inoutReader, &target);
  7525. __glsReader_getGLenum_text(inoutReader, &internalformat);
  7526. __glsReader_getGLint_text(inoutReader, &x);
  7527. __glsReader_getGLint_text(inoutReader, &y);
  7528. __glsReader_getGLint_text(inoutReader, &width);
  7529. if (inoutReader->error) goto end;
  7530. ((__GLSdispatch)ctx->dispatchCall[439])(
  7531. target,
  7532. internalformat,
  7533. x,
  7534. y,
  7535. width
  7536. );
  7537. end:
  7538. return;
  7539. }
  7540. #endif /* __GL_SGI_color_table */
  7541. #if __GL_EXT_paletted_texture
  7542. void __gls_decode_text_glGetColorTableEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7543. typedef void (*__GLSdispatch)(GLenum, GLenum, GLenum, GLvoid *);
  7544. GLenum target;
  7545. GLenum format;
  7546. GLenum type;
  7547. GLint table_count;
  7548. GLvoid *table = GLS_NONE;
  7549. __GLS_DEC_ALLOC_DECLARE(table)
  7550. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7551. __glsReader_getGLenum_text(inoutReader, &target);
  7552. __glsReader_getGLenum_text(inoutReader, &format);
  7553. __glsReader_getGLenum_text(inoutReader, &type);
  7554. table_count = __gls_glGetColorTableEXT_table_size(ctx, target, format, type);
  7555. __GLS_DEC_ALLOC_TEXT(inoutReader, table, GLvoid, 1 * table_count);
  7556. if (!table) goto end;
  7557. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7558. ctx->outArgs.count = 1;
  7559. if (ctx->pixelSetupGen) __glsGenPixelSetup_pack(ctx);
  7560. if (inoutReader->error) goto end;
  7561. ((__GLSdispatch)ctx->dispatchCall[456])(
  7562. target,
  7563. format,
  7564. type,
  7565. table
  7566. );
  7567. end:
  7568. ctx->outArgs = __outArgsSave;
  7569. __GLS_DEC_FREE(table);
  7570. return;
  7571. }
  7572. #endif /* __GL_EXT_paletted_texture */
  7573. #if __GL_EXT_paletted_texture
  7574. void __gls_decode_text_glGetColorTableParameterfvEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7575. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  7576. GLenum target;
  7577. GLenum pname;
  7578. GLint params_count;
  7579. GLfloat *params = GLS_NONE;
  7580. __GLS_DEC_ALLOC_DECLARE(params)
  7581. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7582. __glsReader_getGLenum_text(inoutReader, &target);
  7583. __glsReader_getGLenum_text(inoutReader, &pname);
  7584. params_count = __gls_glGetColorTableParameterfvEXT_params_size(pname);
  7585. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  7586. if (!params) goto end;
  7587. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7588. ctx->outArgs.count = 1;
  7589. if (inoutReader->error) goto end;
  7590. ((__GLSdispatch)ctx->dispatchCall[457])(
  7591. target,
  7592. pname,
  7593. params
  7594. );
  7595. end:
  7596. ctx->outArgs = __outArgsSave;
  7597. __GLS_DEC_FREE(params);
  7598. return;
  7599. }
  7600. #endif /* __GL_EXT_paletted_texture */
  7601. #if __GL_EXT_paletted_texture
  7602. void __gls_decode_text_glGetColorTableParameterivEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7603. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  7604. GLenum target;
  7605. GLenum pname;
  7606. GLint params_count;
  7607. GLint *params = GLS_NONE;
  7608. __GLS_DEC_ALLOC_DECLARE(params)
  7609. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7610. __glsReader_getGLenum_text(inoutReader, &target);
  7611. __glsReader_getGLenum_text(inoutReader, &pname);
  7612. params_count = __gls_glGetColorTableParameterivEXT_params_size(pname);
  7613. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  7614. if (!params) goto end;
  7615. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7616. ctx->outArgs.count = 1;
  7617. if (inoutReader->error) goto end;
  7618. ((__GLSdispatch)ctx->dispatchCall[458])(
  7619. target,
  7620. pname,
  7621. params
  7622. );
  7623. end:
  7624. ctx->outArgs = __outArgsSave;
  7625. __GLS_DEC_FREE(params);
  7626. return;
  7627. }
  7628. #endif /* __GL_EXT_paletted_texture */
  7629. #if __GL_SGI_texture_color_table
  7630. void __gls_decode_text_glGetTexColorTableParameterfvSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7631. typedef void (*__GLSdispatch)(GLenum, GLenum, GLfloat *);
  7632. GLenum target;
  7633. GLenum pname;
  7634. GLint params_count;
  7635. GLfloat *params = GLS_NONE;
  7636. __GLS_DEC_ALLOC_DECLARE(params)
  7637. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7638. __glsReader_getGLenum_text(inoutReader, &target);
  7639. __glsReader_getGLenum_text(inoutReader, &pname);
  7640. params_count = __gls_glGetTexColorTableParameterfvSGI_params_size(pname);
  7641. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  7642. if (!params) goto end;
  7643. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7644. ctx->outArgs.count = 1;
  7645. if (inoutReader->error) goto end;
  7646. ((__GLSdispatch)ctx->dispatchCall[443])(
  7647. target,
  7648. pname,
  7649. params
  7650. );
  7651. end:
  7652. ctx->outArgs = __outArgsSave;
  7653. __GLS_DEC_FREE(params);
  7654. return;
  7655. }
  7656. #endif /* __GL_SGI_texture_color_table */
  7657. #if __GL_SGI_texture_color_table
  7658. void __gls_decode_text_glGetTexColorTableParameterivSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7659. typedef void (*__GLSdispatch)(GLenum, GLenum, GLint *);
  7660. GLenum target;
  7661. GLenum pname;
  7662. GLint params_count;
  7663. GLint *params = GLS_NONE;
  7664. __GLS_DEC_ALLOC_DECLARE(params)
  7665. const __GLSoutArgs __outArgsSave = ctx->outArgs;
  7666. __glsReader_getGLenum_text(inoutReader, &target);
  7667. __glsReader_getGLenum_text(inoutReader, &pname);
  7668. params_count = __gls_glGetTexColorTableParameterivSGI_params_size(pname);
  7669. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  7670. if (!params) goto end;
  7671. __glsReader_getGLulong_text(inoutReader, ctx->outArgs.vals + 0);
  7672. ctx->outArgs.count = 1;
  7673. if (inoutReader->error) goto end;
  7674. ((__GLSdispatch)ctx->dispatchCall[444])(
  7675. target,
  7676. pname,
  7677. params
  7678. );
  7679. end:
  7680. ctx->outArgs = __outArgsSave;
  7681. __GLS_DEC_FREE(params);
  7682. return;
  7683. }
  7684. #endif /* __GL_SGI_texture_color_table */
  7685. #if __GL_SGI_texture_color_table
  7686. void __gls_decode_text_glTexColorTableParameterfvSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7687. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLfloat *);
  7688. GLenum target;
  7689. GLenum pname;
  7690. GLint params_count;
  7691. GLfloat *params = GLS_NONE;
  7692. __GLS_DEC_ALLOC_DECLARE(params)
  7693. __glsReader_getGLenum_text(inoutReader, &target);
  7694. __glsReader_getGLenum_text(inoutReader, &pname);
  7695. params_count = __gls_glTexColorTableParameterfvSGI_params_size(pname);
  7696. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLfloat, 4 * params_count);
  7697. if (!params) goto end;
  7698. __glsReader_getGLfloatv_text(inoutReader, params_count, params);
  7699. if (inoutReader->error) goto end;
  7700. ((__GLSdispatch)ctx->dispatchCall[445])(
  7701. target,
  7702. pname,
  7703. params
  7704. );
  7705. end:
  7706. __GLS_DEC_FREE(params);
  7707. return;
  7708. }
  7709. #endif /* __GL_SGI_texture_color_table */
  7710. #if __GL_SGI_texture_color_table
  7711. void __gls_decode_text_glTexColorTableParameterivSGI(__GLScontext *ctx, __GLSreader *inoutReader) {
  7712. typedef void (*__GLSdispatch)(GLenum, GLenum, const GLint *);
  7713. GLenum target;
  7714. GLenum pname;
  7715. GLint params_count;
  7716. GLint *params = GLS_NONE;
  7717. __GLS_DEC_ALLOC_DECLARE(params)
  7718. __glsReader_getGLenum_text(inoutReader, &target);
  7719. __glsReader_getGLenum_text(inoutReader, &pname);
  7720. params_count = __gls_glTexColorTableParameterivSGI_params_size(pname);
  7721. __GLS_DEC_ALLOC_TEXT(inoutReader, params, GLint, 4 * params_count);
  7722. if (!params) goto end;
  7723. __glsReader_getGLintv_text(inoutReader, params_count, params);
  7724. if (inoutReader->error) goto end;
  7725. ((__GLSdispatch)ctx->dispatchCall[446])(
  7726. target,
  7727. pname,
  7728. params
  7729. );
  7730. end:
  7731. __GLS_DEC_FREE(params);
  7732. return;
  7733. }
  7734. #endif /* __GL_SGI_texture_color_table */
  7735. #if __GL_EXT_copy_texture
  7736. void __gls_decode_text_glCopyTexImage1DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7737. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  7738. GLenum target;
  7739. GLint level;
  7740. GLenum internalformat;
  7741. GLint x;
  7742. GLint y;
  7743. GLsizei width;
  7744. GLint border;
  7745. __glsReader_getGLenum_text(inoutReader, &target);
  7746. __glsReader_getGLint_text(inoutReader, &level);
  7747. __glsReader_getGLenum_text(inoutReader, &internalformat);
  7748. __glsReader_getGLint_text(inoutReader, &x);
  7749. __glsReader_getGLint_text(inoutReader, &y);
  7750. __glsReader_getGLint_text(inoutReader, &width);
  7751. __glsReader_getGLint_text(inoutReader, &border);
  7752. if (inoutReader->error) goto end;
  7753. ((__GLSdispatch)ctx->dispatchCall[447])(
  7754. target,
  7755. level,
  7756. internalformat,
  7757. x,
  7758. y,
  7759. width,
  7760. border
  7761. );
  7762. end:
  7763. return;
  7764. }
  7765. #endif /* __GL_EXT_copy_texture */
  7766. void __gls_decode_text_glCopyTexImage1D(__GLScontext *ctx, __GLSreader *inoutReader) {
  7767. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  7768. GLenum target;
  7769. GLint level;
  7770. GLenum internalformat;
  7771. GLint x;
  7772. GLint y;
  7773. GLsizei width;
  7774. GLint border;
  7775. __glsReader_getGLenum_text(inoutReader, &target);
  7776. __glsReader_getGLint_text(inoutReader, &level);
  7777. __glsReader_getGLenum_text(inoutReader, &internalformat);
  7778. __glsReader_getGLint_text(inoutReader, &x);
  7779. __glsReader_getGLint_text(inoutReader, &y);
  7780. __glsReader_getGLint_text(inoutReader, &width);
  7781. __glsReader_getGLint_text(inoutReader, &border);
  7782. if (inoutReader->error) goto end;
  7783. ((__GLSdispatch)ctx->dispatchCall[387])(
  7784. target,
  7785. level,
  7786. internalformat,
  7787. x,
  7788. y,
  7789. width,
  7790. border
  7791. );
  7792. end:
  7793. return;
  7794. }
  7795. #if __GL_EXT_copy_texture
  7796. void __gls_decode_text_glCopyTexImage2DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7797. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  7798. GLenum target;
  7799. GLint level;
  7800. GLenum internalformat;
  7801. GLint x;
  7802. GLint y;
  7803. GLsizei width;
  7804. GLsizei height;
  7805. GLint border;
  7806. __glsReader_getGLenum_text(inoutReader, &target);
  7807. __glsReader_getGLint_text(inoutReader, &level);
  7808. __glsReader_getGLenum_text(inoutReader, &internalformat);
  7809. __glsReader_getGLint_text(inoutReader, &x);
  7810. __glsReader_getGLint_text(inoutReader, &y);
  7811. __glsReader_getGLint_text(inoutReader, &width);
  7812. __glsReader_getGLint_text(inoutReader, &height);
  7813. __glsReader_getGLint_text(inoutReader, &border);
  7814. if (inoutReader->error) goto end;
  7815. ((__GLSdispatch)ctx->dispatchCall[448])(
  7816. target,
  7817. level,
  7818. internalformat,
  7819. x,
  7820. y,
  7821. width,
  7822. height,
  7823. border
  7824. );
  7825. end:
  7826. return;
  7827. }
  7828. #endif /* __GL_EXT_copy_texture */
  7829. void __gls_decode_text_glCopyTexImage2D(__GLScontext *ctx, __GLSreader *inoutReader) {
  7830. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  7831. GLenum target;
  7832. GLint level;
  7833. GLenum internalformat;
  7834. GLint x;
  7835. GLint y;
  7836. GLsizei width;
  7837. GLsizei height;
  7838. GLint border;
  7839. __glsReader_getGLenum_text(inoutReader, &target);
  7840. __glsReader_getGLint_text(inoutReader, &level);
  7841. __glsReader_getGLenum_text(inoutReader, &internalformat);
  7842. __glsReader_getGLint_text(inoutReader, &x);
  7843. __glsReader_getGLint_text(inoutReader, &y);
  7844. __glsReader_getGLint_text(inoutReader, &width);
  7845. __glsReader_getGLint_text(inoutReader, &height);
  7846. __glsReader_getGLint_text(inoutReader, &border);
  7847. if (inoutReader->error) goto end;
  7848. ((__GLSdispatch)ctx->dispatchCall[388])(
  7849. target,
  7850. level,
  7851. internalformat,
  7852. x,
  7853. y,
  7854. width,
  7855. height,
  7856. border
  7857. );
  7858. end:
  7859. return;
  7860. }
  7861. #if __GL_EXT_copy_texture
  7862. void __gls_decode_text_glCopyTexSubImage1DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7863. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
  7864. GLenum target;
  7865. GLint level;
  7866. GLint xoffset;
  7867. GLint x;
  7868. GLint y;
  7869. GLsizei width;
  7870. __glsReader_getGLenum_text(inoutReader, &target);
  7871. __glsReader_getGLint_text(inoutReader, &level);
  7872. __glsReader_getGLint_text(inoutReader, &xoffset);
  7873. __glsReader_getGLint_text(inoutReader, &x);
  7874. __glsReader_getGLint_text(inoutReader, &y);
  7875. __glsReader_getGLint_text(inoutReader, &width);
  7876. if (inoutReader->error) goto end;
  7877. ((__GLSdispatch)ctx->dispatchCall[449])(
  7878. target,
  7879. level,
  7880. xoffset,
  7881. x,
  7882. y,
  7883. width
  7884. );
  7885. end:
  7886. return;
  7887. }
  7888. #endif /* __GL_EXT_copy_texture */
  7889. void __gls_decode_text_glCopyTexSubImage1D(__GLScontext *ctx, __GLSreader *inoutReader) {
  7890. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
  7891. GLenum target;
  7892. GLint level;
  7893. GLint xoffset;
  7894. GLint x;
  7895. GLint y;
  7896. GLsizei width;
  7897. __glsReader_getGLenum_text(inoutReader, &target);
  7898. __glsReader_getGLint_text(inoutReader, &level);
  7899. __glsReader_getGLint_text(inoutReader, &xoffset);
  7900. __glsReader_getGLint_text(inoutReader, &x);
  7901. __glsReader_getGLint_text(inoutReader, &y);
  7902. __glsReader_getGLint_text(inoutReader, &width);
  7903. if (inoutReader->error) goto end;
  7904. ((__GLSdispatch)ctx->dispatchCall[389])(
  7905. target,
  7906. level,
  7907. xoffset,
  7908. x,
  7909. y,
  7910. width
  7911. );
  7912. end:
  7913. return;
  7914. }
  7915. #if __GL_EXT_copy_texture
  7916. void __gls_decode_text_glCopyTexSubImage2DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7917. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  7918. GLenum target;
  7919. GLint level;
  7920. GLint xoffset;
  7921. GLint yoffset;
  7922. GLint x;
  7923. GLint y;
  7924. GLsizei width;
  7925. GLsizei height;
  7926. __glsReader_getGLenum_text(inoutReader, &target);
  7927. __glsReader_getGLint_text(inoutReader, &level);
  7928. __glsReader_getGLint_text(inoutReader, &xoffset);
  7929. __glsReader_getGLint_text(inoutReader, &yoffset);
  7930. __glsReader_getGLint_text(inoutReader, &x);
  7931. __glsReader_getGLint_text(inoutReader, &y);
  7932. __glsReader_getGLint_text(inoutReader, &width);
  7933. __glsReader_getGLint_text(inoutReader, &height);
  7934. if (inoutReader->error) goto end;
  7935. ((__GLSdispatch)ctx->dispatchCall[450])(
  7936. target,
  7937. level,
  7938. xoffset,
  7939. yoffset,
  7940. x,
  7941. y,
  7942. width,
  7943. height
  7944. );
  7945. end:
  7946. return;
  7947. }
  7948. #endif /* __GL_EXT_copy_texture */
  7949. void __gls_decode_text_glCopyTexSubImage2D(__GLScontext *ctx, __GLSreader *inoutReader) {
  7950. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  7951. GLenum target;
  7952. GLint level;
  7953. GLint xoffset;
  7954. GLint yoffset;
  7955. GLint x;
  7956. GLint y;
  7957. GLsizei width;
  7958. GLsizei height;
  7959. __glsReader_getGLenum_text(inoutReader, &target);
  7960. __glsReader_getGLint_text(inoutReader, &level);
  7961. __glsReader_getGLint_text(inoutReader, &xoffset);
  7962. __glsReader_getGLint_text(inoutReader, &yoffset);
  7963. __glsReader_getGLint_text(inoutReader, &x);
  7964. __glsReader_getGLint_text(inoutReader, &y);
  7965. __glsReader_getGLint_text(inoutReader, &width);
  7966. __glsReader_getGLint_text(inoutReader, &height);
  7967. if (inoutReader->error) goto end;
  7968. ((__GLSdispatch)ctx->dispatchCall[390])(
  7969. target,
  7970. level,
  7971. xoffset,
  7972. yoffset,
  7973. x,
  7974. y,
  7975. width,
  7976. height
  7977. );
  7978. end:
  7979. return;
  7980. }
  7981. #if __GL_EXT_copy_texture
  7982. void __gls_decode_text_glCopyTexSubImage3DEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  7983. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  7984. GLenum target;
  7985. GLint level;
  7986. GLint xoffset;
  7987. GLint yoffset;
  7988. GLint zoffset;
  7989. GLint x;
  7990. GLint y;
  7991. GLsizei width;
  7992. GLsizei height;
  7993. __glsReader_getGLenum_text(inoutReader, &target);
  7994. __glsReader_getGLint_text(inoutReader, &level);
  7995. __glsReader_getGLint_text(inoutReader, &xoffset);
  7996. __glsReader_getGLint_text(inoutReader, &yoffset);
  7997. __glsReader_getGLint_text(inoutReader, &zoffset);
  7998. __glsReader_getGLint_text(inoutReader, &x);
  7999. __glsReader_getGLint_text(inoutReader, &y);
  8000. __glsReader_getGLint_text(inoutReader, &width);
  8001. __glsReader_getGLint_text(inoutReader, &height);
  8002. if (inoutReader->error) goto end;
  8003. ((__GLSdispatch)ctx->dispatchCall[451])(
  8004. target,
  8005. level,
  8006. xoffset,
  8007. yoffset,
  8008. zoffset,
  8009. x,
  8010. y,
  8011. width,
  8012. height
  8013. );
  8014. end:
  8015. return;
  8016. }
  8017. #endif /* __GL_EXT_copy_texture */
  8018. #if __GL_SGIS_texture4D
  8019. void __gls_decode_text_glTexImage4DSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  8020. typedef void (*__GLSdispatch)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
  8021. GLenum target;
  8022. GLint level;
  8023. GLenum internalformat;
  8024. GLsizei width;
  8025. GLsizei height;
  8026. GLsizei depth;
  8027. GLsizei size4d;
  8028. GLint border;
  8029. GLenum format;
  8030. GLenum type;
  8031. GLint pixels_count;
  8032. GLvoid *pixels = GLS_NONE;
  8033. __GLS_DEC_ALLOC_DECLARE(pixels)
  8034. GLbitfield imageFlags = GLS_NONE;
  8035. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  8036. if (imageFlags & ~GLS_IMAGE_NULL_BIT) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  8037. __glsReader_nextList_text(inoutReader);
  8038. __glsReader_getGLenum_text(inoutReader, &target);
  8039. __glsReader_getGLint_text(inoutReader, &level);
  8040. __glsReader_getGLenum_text(inoutReader, &internalformat);
  8041. __glsReader_getGLint_text(inoutReader, &width);
  8042. __glsReader_getGLint_text(inoutReader, &height);
  8043. __glsReader_getGLint_text(inoutReader, &depth);
  8044. __glsReader_getGLint_text(inoutReader, &size4d);
  8045. __glsReader_getGLint_text(inoutReader, &border);
  8046. __glsReader_getGLenum_text(inoutReader, &format);
  8047. __glsReader_getGLenum_text(inoutReader, &type);
  8048. pixels_count = imageFlags & GLS_IMAGE_NULL_BIT ? 0 : __gls_glTexImage4DSGIS_pixels_size(format, type, width, height, depth, size4d);
  8049. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  8050. if (!pixels) goto end;
  8051. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  8052. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  8053. if (inoutReader->error) goto end;
  8054. ((__GLSdispatch)ctx->dispatchCall[452])(
  8055. target,
  8056. level,
  8057. internalformat,
  8058. width,
  8059. height,
  8060. depth,
  8061. size4d,
  8062. border,
  8063. format,
  8064. type,
  8065. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : pixels
  8066. );
  8067. end:
  8068. __GLS_DEC_FREE(pixels);
  8069. return;
  8070. }
  8071. #endif /* __GL_SGIS_texture4D */
  8072. #if __GL_SGIS_texture4D
  8073. void __gls_decode_text_glTexSubImage4DSGIS(__GLScontext *ctx, __GLSreader *inoutReader) {
  8074. typedef void (*__GLSdispatch)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
  8075. GLenum target;
  8076. GLint level;
  8077. GLint xoffset;
  8078. GLint yoffset;
  8079. GLint zoffset;
  8080. GLint woffset;
  8081. GLsizei width;
  8082. GLsizei height;
  8083. GLsizei depth;
  8084. GLsizei size4d;
  8085. GLenum format;
  8086. GLenum type;
  8087. GLint pixels_count;
  8088. GLvoid *pixels = GLS_NONE;
  8089. __GLS_DEC_ALLOC_DECLARE(pixels)
  8090. GLbitfield imageFlags = GLS_NONE;
  8091. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  8092. if (imageFlags) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  8093. __glsReader_nextList_text(inoutReader);
  8094. __glsReader_getGLenum_text(inoutReader, &target);
  8095. __glsReader_getGLint_text(inoutReader, &level);
  8096. __glsReader_getGLint_text(inoutReader, &xoffset);
  8097. __glsReader_getGLint_text(inoutReader, &yoffset);
  8098. __glsReader_getGLint_text(inoutReader, &zoffset);
  8099. __glsReader_getGLint_text(inoutReader, &woffset);
  8100. __glsReader_getGLint_text(inoutReader, &width);
  8101. __glsReader_getGLint_text(inoutReader, &height);
  8102. __glsReader_getGLint_text(inoutReader, &depth);
  8103. __glsReader_getGLint_text(inoutReader, &size4d);
  8104. __glsReader_getGLenum_text(inoutReader, &format);
  8105. __glsReader_getGLenum_text(inoutReader, &type);
  8106. pixels_count = __gls_glTexSubImage4DSGIS_pixels_size(format, type, width, height, depth, size4d);
  8107. __GLS_DEC_ALLOC_TEXT(inoutReader, pixels, GLvoid, 1 * pixels_count);
  8108. if (!pixels) goto end;
  8109. __glsReader_getGLcompv_text(inoutReader, type, pixels_count, pixels);
  8110. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  8111. if (inoutReader->error) goto end;
  8112. ((__GLSdispatch)ctx->dispatchCall[453])(
  8113. target,
  8114. level,
  8115. xoffset,
  8116. yoffset,
  8117. zoffset,
  8118. woffset,
  8119. width,
  8120. height,
  8121. depth,
  8122. size4d,
  8123. format,
  8124. type,
  8125. pixels
  8126. );
  8127. end:
  8128. __GLS_DEC_FREE(pixels);
  8129. return;
  8130. }
  8131. #endif /* __GL_SGIS_texture4D */
  8132. #if __GL_SGIX_pixel_texture
  8133. void __gls_decode_text_glPixelTexGenSGIX(__GLScontext *ctx, __GLSreader *inoutReader) {
  8134. typedef void (*__GLSdispatch)(GLenum);
  8135. GLenum mode;
  8136. __glsReader_getGLenum_text(inoutReader, &mode);
  8137. if (inoutReader->error) goto end;
  8138. ((__GLSdispatch)ctx->dispatchCall[454])(
  8139. mode
  8140. );
  8141. end:
  8142. return;
  8143. }
  8144. #endif /* __GL_SGIX_pixel_texture */
  8145. #if __GL_EXT_paletted_texture
  8146. void __gls_decode_text_glColorSubTableEXT(__GLScontext *ctx, __GLSreader *inoutReader) {
  8147. typedef void (*__GLSdispatch)(GLenum, GLuint, GLsizei, GLenum, GLenum, const GLvoid *);
  8148. GLenum target;
  8149. GLuint start;
  8150. GLsizei count;
  8151. GLenum format;
  8152. GLenum type;
  8153. GLint entries_count;
  8154. GLvoid *entries = GLS_NONE;
  8155. __GLS_DEC_ALLOC_DECLARE(entries)
  8156. GLbitfield imageFlags = GLS_NONE;
  8157. __glsReader_getGLSimageFlags_text(inoutReader, &imageFlags);
  8158. if (imageFlags & ~GLS_IMAGE_NULL_BIT) __glsReader_raiseError(inoutReader, GLS_INVALID_VALUE);
  8159. __glsReader_nextList_text(inoutReader);
  8160. __glsReader_getGLenum_text(inoutReader, &target);
  8161. __glsReader_getGLuint_text(inoutReader, &start);
  8162. __glsReader_getGLint_text(inoutReader, &count);
  8163. __glsReader_getGLenum_text(inoutReader, &format);
  8164. __glsReader_getGLenum_text(inoutReader, &type);
  8165. entries_count = imageFlags & GLS_IMAGE_NULL_BIT ? 0 : __gls_glColorSubTableEXT_entries_size(format, type, count);
  8166. __GLS_DEC_ALLOC_TEXT(inoutReader, entries, GLvoid, 1 * entries_count);
  8167. if (!entries) goto end;
  8168. __glsReader_getGLcompv_text(inoutReader, type, entries_count, entries);
  8169. if (ctx->pixelSetupGen) __glsGenPixelSetup_unpack(ctx);
  8170. if (inoutReader->error) goto end;
  8171. ((__GLSdispatch)ctx->dispatchCall[496])(
  8172. target,
  8173. start,
  8174. count,
  8175. format,
  8176. type,
  8177. imageFlags & GLS_IMAGE_NULL_BIT ? GLS_NONE : entries
  8178. );
  8179. end:
  8180. __GLS_DEC_FREE(entries);
  8181. return;
  8182. }
  8183. #endif // __GL_EXT_paletted_texture
  8184. void __gls_decode_text_glDisableClientState(__GLScontext *ctx, __GLSreader *inoutReader) {
  8185. typedef void (*__GLSdispatch)(GLenum);
  8186. GLenum cap;
  8187. __glsReader_getGLenum_text(inoutReader, &cap);
  8188. if (inoutReader->error) goto end;
  8189. ((__GLSdispatch)ctx->dispatchCall[373])(
  8190. cap
  8191. );
  8192. end:
  8193. return;
  8194. }
  8195. void __gls_decode_text_glEnableClientState(__GLScontext *ctx, __GLSreader *inoutReader) {
  8196. typedef void (*__GLSdispatch)(GLenum);
  8197. GLenum cap;
  8198. __glsReader_getGLenum_text(inoutReader, &cap);
  8199. if (inoutReader->error) goto end;
  8200. ((__GLSdispatch)ctx->dispatchCall[377])(
  8201. cap
  8202. );
  8203. end:
  8204. return;
  8205. }
  8206. void __gls_decode_text_glInterleavedArrays(__GLScontext *ctx, __GLSreader *inoutReader) {
  8207. // This should never be called because InterleavedArrays isn't captured
  8208. }
  8209. void __gls_decode_text_glPushClientAttrib(__GLScontext *ctx, __GLSreader *inoutReader) {
  8210. // Nonfunctional
  8211. }
  8212. void __gls_decode_text_glPopClientAttrib(__GLScontext *ctx, __GLSreader *inoutReader) {
  8213. // Nonfunctional
  8214. }