Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1127 lines
39 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: dl_lexec.c
  3. *
  4. * Display list execution routines.
  5. *
  6. * Created: 12-24-1995
  7. * Author: Hock San Lee [hockl]
  8. *
  9. * Copyright (c) 1995-96 Microsoft Corporation
  10. \**************************************************************************/
  11. /*
  12. ** Copyright 1992, 1993, Silicon Graphics, Inc.
  13. ** All Rights Reserved.
  14. **
  15. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  16. ** the contents of this file may not be disclosed to third parties, copied or
  17. ** duplicated in any form, in whole or in part, without the prior written
  18. ** permission of Silicon Graphics, Inc.
  19. **
  20. ** RESTRICTED RIGHTS LEGEND:
  21. ** Use, duplication or disclosure by the Government is subject to restrictions
  22. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  23. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  24. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  25. ** rights reserved under the Copyright Laws of the United States.
  26. */
  27. #include "precomp.h"
  28. #pragma hdrstop
  29. /*
  30. ** Execution routines for display lists for all of the basic
  31. ** OpenGL commands. These were automatically generated at one point,
  32. ** but now the basic format has stabilized, and we make minor changes to
  33. ** individual routines from time to time.
  34. */
  35. /***************************************************************************/
  36. // Color functions.
  37. const GLubyte * FASTCALL __glle_Color3fv(__GLcontext *gc, const GLubyte *PC)
  38. {
  39. struct __gllc_Color3fv_Rec *data;
  40. data = (struct __gllc_Color3fv_Rec *) PC;
  41. (*gc->savedCltProcTable.glDispatchTable.glColor3fv)(data->v);
  42. return PC + sizeof(struct __gllc_Color3fv_Rec);
  43. }
  44. const GLubyte * FASTCALL __glle_Color3ubv(__GLcontext *gc, const GLubyte *PC)
  45. {
  46. struct __gllc_Color3ubv_Rec *data;
  47. data = (struct __gllc_Color3ubv_Rec *) PC;
  48. (*gc->savedCltProcTable.glDispatchTable.glColor3ubv)(data->v);
  49. return PC + sizeof(struct __gllc_Color3ubv_Rec);
  50. }
  51. const GLubyte * FASTCALL __glle_Color4fv(__GLcontext *gc, const GLubyte *PC)
  52. {
  53. struct __gllc_Color4fv_Rec *data;
  54. data = (struct __gllc_Color4fv_Rec *) PC;
  55. (*gc->savedCltProcTable.glDispatchTable.glColor4fv)(data->v);
  56. return PC + sizeof(struct __gllc_Color4fv_Rec);
  57. }
  58. const GLubyte * FASTCALL __glle_Color4ubv(__GLcontext *gc, const GLubyte *PC)
  59. {
  60. struct __gllc_Color4ubv_Rec *data;
  61. data = (struct __gllc_Color4ubv_Rec *) PC;
  62. (*gc->savedCltProcTable.glDispatchTable.glColor4ubv)(data->v);
  63. return PC + sizeof(struct __gllc_Color4ubv_Rec);
  64. }
  65. /***************************************************************************/
  66. // EdgeFlag function.
  67. const GLubyte * FASTCALL __glle_EdgeFlag(__GLcontext *gc, const GLubyte *PC)
  68. {
  69. struct __gllc_EdgeFlag_Rec *data;
  70. data = (struct __gllc_EdgeFlag_Rec *) PC;
  71. (*gc->savedCltProcTable.glDispatchTable.glEdgeFlag)(data->flag);
  72. return PC + sizeof(struct __gllc_EdgeFlag_Rec);
  73. }
  74. /***************************************************************************/
  75. // Indexf function.
  76. const GLubyte * FASTCALL __glle_Indexf(__GLcontext *gc, const GLubyte *PC)
  77. {
  78. struct __gllc_Indexf_Rec *data;
  79. data = (struct __gllc_Indexf_Rec *) PC;
  80. (*gc->savedCltProcTable.glDispatchTable.glIndexf)(data->c);
  81. return PC + sizeof(struct __gllc_Indexf_Rec);
  82. }
  83. /***************************************************************************/
  84. // Normal functions.
  85. const GLubyte * FASTCALL __glle_Normal3bv(__GLcontext *gc, const GLubyte *PC)
  86. {
  87. struct __gllc_Normal3bv_Rec *data;
  88. data = (struct __gllc_Normal3bv_Rec *) PC;
  89. (*gc->savedCltProcTable.glDispatchTable.glNormal3bv)(data->v);
  90. return PC + sizeof(struct __gllc_Normal3bv_Rec);
  91. }
  92. const GLubyte * FASTCALL __glle_Normal3fv(__GLcontext *gc, const GLubyte *PC)
  93. {
  94. struct __gllc_Normal3fv_Rec *data;
  95. data = (struct __gllc_Normal3fv_Rec *) PC;
  96. (*gc->savedCltProcTable.glDispatchTable.glNormal3fv)(data->v);
  97. return PC + sizeof(struct __gllc_Normal3fv_Rec);
  98. }
  99. /***************************************************************************/
  100. // RasterPos functions.
  101. const GLubyte * FASTCALL __glle_RasterPos2f(__GLcontext *gc, const GLubyte *PC)
  102. {
  103. struct __gllc_RasterPos2f_Rec *data;
  104. data = (struct __gllc_RasterPos2f_Rec *) PC;
  105. (*gc->savedCltProcTable.glDispatchTable.glRasterPos2f)(data->x, data->y);
  106. return PC + sizeof(struct __gllc_RasterPos2f_Rec);
  107. }
  108. const GLubyte * FASTCALL __glle_RasterPos3fv(__GLcontext *gc, const GLubyte *PC)
  109. {
  110. struct __gllc_RasterPos3fv_Rec *data;
  111. data = (struct __gllc_RasterPos3fv_Rec *) PC;
  112. (*gc->savedCltProcTable.glDispatchTable.glRasterPos3fv)(data->v);
  113. return PC + sizeof(struct __gllc_RasterPos3fv_Rec);
  114. }
  115. const GLubyte * FASTCALL __glle_RasterPos4fv(__GLcontext *gc, const GLubyte *PC)
  116. {
  117. struct __gllc_RasterPos4fv_Rec *data;
  118. data = (struct __gllc_RasterPos4fv_Rec *) PC;
  119. (*gc->savedCltProcTable.glDispatchTable.glRasterPos4fv)(data->v);
  120. return PC + sizeof(struct __gllc_RasterPos4fv_Rec);
  121. }
  122. /***************************************************************************/
  123. // Rectf function.
  124. const GLubyte * FASTCALL __glle_Rectf(__GLcontext *gc, const GLubyte *PC)
  125. {
  126. struct __gllc_Rectf_Rec *data;
  127. data = (struct __gllc_Rectf_Rec *) PC;
  128. (*gc->savedCltProcTable.glDispatchTable.glRectf)(data->x1, data->y1, data->x2, data->y2);
  129. return PC + sizeof(struct __gllc_Rectf_Rec);
  130. }
  131. /***************************************************************************/
  132. // TexCoord functions.
  133. const GLubyte * FASTCALL __glle_TexCoord1f(__GLcontext *gc, const GLubyte *PC)
  134. {
  135. struct __gllc_TexCoord1f_Rec *data;
  136. data = (struct __gllc_TexCoord1f_Rec *) PC;
  137. (*gc->savedCltProcTable.glDispatchTable.glTexCoord1f)(data->s);
  138. return PC + sizeof(struct __gllc_TexCoord1f_Rec);
  139. }
  140. const GLubyte * FASTCALL __glle_TexCoord2f(__GLcontext *gc, const GLubyte *PC)
  141. {
  142. struct __gllc_TexCoord2f_Rec *data;
  143. data = (struct __gllc_TexCoord2f_Rec *) PC;
  144. (*gc->savedCltProcTable.glDispatchTable.glTexCoord2f)(data->s, data->t);
  145. return PC + sizeof(struct __gllc_TexCoord2f_Rec);
  146. }
  147. const GLubyte * FASTCALL __glle_TexCoord3fv(__GLcontext *gc, const GLubyte *PC)
  148. {
  149. struct __gllc_TexCoord3fv_Rec *data;
  150. data = (struct __gllc_TexCoord3fv_Rec *) PC;
  151. (*gc->savedCltProcTable.glDispatchTable.glTexCoord3fv)(data->v);
  152. return PC + sizeof(struct __gllc_TexCoord3fv_Rec);
  153. }
  154. const GLubyte * FASTCALL __glle_TexCoord4fv(__GLcontext *gc, const GLubyte *PC)
  155. {
  156. struct __gllc_TexCoord4fv_Rec *data;
  157. data = (struct __gllc_TexCoord4fv_Rec *) PC;
  158. (*gc->savedCltProcTable.glDispatchTable.glTexCoord4fv)(data->v);
  159. return PC + sizeof(struct __gllc_TexCoord4fv_Rec);
  160. }
  161. /***************************************************************************/
  162. // Vertex functions.
  163. const GLubyte * FASTCALL __glle_Vertex2f(__GLcontext *gc, const GLubyte *PC)
  164. {
  165. struct __gllc_Vertex2f_Rec *data;
  166. data = (struct __gllc_Vertex2f_Rec *) PC;
  167. (*gc->savedCltProcTable.glDispatchTable.glVertex2f)(data->x, data->y);
  168. return PC + sizeof(struct __gllc_Vertex2f_Rec);
  169. }
  170. const GLubyte * FASTCALL __glle_Vertex3fv(__GLcontext *gc, const GLubyte *PC)
  171. {
  172. struct __gllc_Vertex3fv_Rec *data;
  173. data = (struct __gllc_Vertex3fv_Rec *) PC;
  174. (*gc->savedCltProcTable.glDispatchTable.glVertex3fv)(data->v);
  175. return PC + sizeof(struct __gllc_Vertex3fv_Rec);
  176. }
  177. const GLubyte * FASTCALL __glle_Vertex4fv(__GLcontext *gc, const GLubyte *PC)
  178. {
  179. struct __gllc_Vertex4fv_Rec *data;
  180. data = (struct __gllc_Vertex4fv_Rec *) PC;
  181. (*gc->savedCltProcTable.glDispatchTable.glVertex4fv)(data->v);
  182. return PC + sizeof(struct __gllc_Vertex4fv_Rec);
  183. }
  184. /***************************************************************************/
  185. // Fogfv function.
  186. const GLubyte * FASTCALL __glle_Fogfv(__GLcontext *gc, const GLubyte *PC)
  187. {
  188. GLuint size;
  189. GLuint arraySize;
  190. struct __gllc_Fogfv_Rec *data;
  191. data = (struct __gllc_Fogfv_Rec *) PC;
  192. (*gc->savedCltProcTable.glDispatchTable.glFogfv)(data->pname,
  193. (GLfloat *) (PC + sizeof(struct __gllc_Fogfv_Rec)));
  194. arraySize = __glFogfv_size(data->pname) * 4;
  195. size = sizeof(struct __gllc_Fogfv_Rec) + arraySize;
  196. return PC + size;
  197. }
  198. /***************************************************************************/
  199. // Lightfv function.
  200. const GLubyte * FASTCALL __glle_Lightfv(__GLcontext *gc, const GLubyte *PC)
  201. {
  202. GLuint size;
  203. GLuint arraySize;
  204. struct __gllc_Lightfv_Rec *data;
  205. data = (struct __gllc_Lightfv_Rec *) PC;
  206. (*gc->savedCltProcTable.glDispatchTable.glLightfv)(data->light, data->pname,
  207. (GLfloat *) (PC + sizeof(struct __gllc_Lightfv_Rec)));
  208. arraySize = __glLightfv_size(data->pname) * 4;
  209. size = sizeof(struct __gllc_Lightfv_Rec) + arraySize;
  210. return PC + size;
  211. }
  212. /***************************************************************************/
  213. // LightModelfv function.
  214. const GLubyte * FASTCALL __glle_LightModelfv(__GLcontext *gc, const GLubyte *PC)
  215. {
  216. GLuint size;
  217. GLuint arraySize;
  218. struct __gllc_LightModelfv_Rec *data;
  219. data = (struct __gllc_LightModelfv_Rec *) PC;
  220. (*gc->savedCltProcTable.glDispatchTable.glLightModelfv)(data->pname,
  221. (GLfloat *) (PC + sizeof(struct __gllc_LightModelfv_Rec)));
  222. arraySize = __glLightModelfv_size(data->pname) * 4;
  223. size = sizeof(struct __gllc_LightModelfv_Rec) + arraySize;
  224. return PC + size;
  225. }
  226. /***************************************************************************/
  227. // Materialfv function.
  228. const GLubyte * FASTCALL __glle_Materialfv(__GLcontext *gc, const GLubyte *PC)
  229. {
  230. GLuint size;
  231. GLuint arraySize;
  232. struct __gllc_Materialfv_Rec *data;
  233. data = (struct __gllc_Materialfv_Rec *) PC;
  234. (*gc->savedCltProcTable.glDispatchTable.glMaterialfv)(data->face, data->pname,
  235. (GLfloat *) (PC + sizeof(struct __gllc_Materialfv_Rec)));
  236. arraySize = __glMaterialfv_size(data->pname) * 4;
  237. size = sizeof(struct __gllc_Materialfv_Rec) + arraySize;
  238. return PC + size;
  239. }
  240. /***************************************************************************/
  241. // TexParameter functions.
  242. const GLubyte * FASTCALL __glle_TexParameterfv(__GLcontext *gc, const GLubyte *PC)
  243. {
  244. GLuint size;
  245. GLuint arraySize;
  246. struct __gllc_TexParameterfv_Rec *data;
  247. data = (struct __gllc_TexParameterfv_Rec *) PC;
  248. (*gc->savedCltProcTable.glDispatchTable.glTexParameterfv)(data->target, data->pname,
  249. (GLfloat *) (PC + sizeof(struct __gllc_TexParameterfv_Rec)));
  250. arraySize = __glTexParameterfv_size(data->pname) * 4;
  251. size = sizeof(struct __gllc_TexParameterfv_Rec) + arraySize;
  252. return PC + size;
  253. }
  254. const GLubyte * FASTCALL __glle_TexParameteriv(__GLcontext *gc, const GLubyte *PC)
  255. {
  256. GLuint size;
  257. GLuint arraySize;
  258. struct __gllc_TexParameteriv_Rec *data;
  259. data = (struct __gllc_TexParameteriv_Rec *) PC;
  260. (*gc->savedCltProcTable.glDispatchTable.glTexParameteriv)(data->target, data->pname,
  261. (GLint *) (PC + sizeof(struct __gllc_TexParameteriv_Rec)));
  262. arraySize = __glTexParameteriv_size(data->pname) * 4;
  263. size = sizeof(struct __gllc_TexParameteriv_Rec) + arraySize;
  264. return PC + size;
  265. }
  266. /***************************************************************************/
  267. // TexEnv functions.
  268. const GLubyte * FASTCALL __glle_TexEnvfv(__GLcontext *gc, const GLubyte *PC)
  269. {
  270. GLuint size;
  271. GLuint arraySize;
  272. struct __gllc_TexEnvfv_Rec *data;
  273. data = (struct __gllc_TexEnvfv_Rec *) PC;
  274. (*gc->savedCltProcTable.glDispatchTable.glTexEnvfv)(data->target, data->pname,
  275. (GLfloat *) (PC + sizeof(struct __gllc_TexEnvfv_Rec)));
  276. arraySize = __glTexEnvfv_size(data->pname) * 4;
  277. size = sizeof(struct __gllc_TexEnvfv_Rec) + arraySize;
  278. return PC + size;
  279. }
  280. const GLubyte * FASTCALL __glle_TexEnviv(__GLcontext *gc, const GLubyte *PC)
  281. {
  282. GLuint size;
  283. GLuint arraySize;
  284. struct __gllc_TexEnviv_Rec *data;
  285. data = (struct __gllc_TexEnviv_Rec *) PC;
  286. (*gc->savedCltProcTable.glDispatchTable.glTexEnviv)(data->target, data->pname,
  287. (GLint *) (PC + sizeof(struct __gllc_TexEnviv_Rec)));
  288. arraySize = __glTexEnviv_size(data->pname) * 4;
  289. size = sizeof(struct __gllc_TexEnviv_Rec) + arraySize;
  290. return PC + size;
  291. }
  292. /***************************************************************************/
  293. // TexGenfv function.
  294. const GLubyte * FASTCALL __glle_TexGenfv(__GLcontext *gc, const GLubyte *PC)
  295. {
  296. GLuint size;
  297. GLuint arraySize;
  298. struct __gllc_TexGenfv_Rec *data;
  299. data = (struct __gllc_TexGenfv_Rec *) PC;
  300. (*gc->savedCltProcTable.glDispatchTable.glTexGenfv)(data->coord, data->pname,
  301. (GLfloat *) (PC + sizeof(struct __gllc_TexGenfv_Rec)));
  302. arraySize = __glTexGenfv_size(data->pname) * 4;
  303. size = sizeof(struct __gllc_TexGenfv_Rec) + arraySize;
  304. return PC + size;
  305. }
  306. /***************************************************************************/
  307. // MapGrid functions.
  308. const GLubyte * FASTCALL __glle_MapGrid1f(__GLcontext *gc, const GLubyte *PC)
  309. {
  310. struct __gllc_MapGrid1f_Rec *data;
  311. data = (struct __gllc_MapGrid1f_Rec *) PC;
  312. (*gc->savedCltProcTable.glDispatchTable.glMapGrid1f)(data->un, data->u1, data->u2);
  313. return PC + sizeof(struct __gllc_MapGrid1f_Rec);
  314. }
  315. const GLubyte * FASTCALL __glle_MapGrid2f(__GLcontext *gc, const GLubyte *PC)
  316. {
  317. struct __gllc_MapGrid2f_Rec *data;
  318. data = (struct __gllc_MapGrid2f_Rec *) PC;
  319. (*gc->savedCltProcTable.glDispatchTable.glMapGrid2f)(data->un, data->u1, data->u2, data->vn,
  320. data->v1, data->v2);
  321. return PC + sizeof(struct __gllc_MapGrid2f_Rec);
  322. }
  323. /***************************************************************************/
  324. // EvalCoord functions.
  325. const GLubyte * FASTCALL __glle_EvalCoord1f(__GLcontext *gc, const GLubyte *PC)
  326. {
  327. struct __gllc_EvalCoord1f_Rec *data;
  328. data = (struct __gllc_EvalCoord1f_Rec *) PC;
  329. (*gc->savedCltProcTable.glDispatchTable.glEvalCoord1f)(data->u);
  330. return PC + sizeof(struct __gllc_EvalCoord1f_Rec);
  331. }
  332. const GLubyte * FASTCALL __glle_EvalCoord2f(__GLcontext *gc, const GLubyte *PC)
  333. {
  334. struct __gllc_EvalCoord2f_Rec *data;
  335. data = (struct __gllc_EvalCoord2f_Rec *) PC;
  336. (*gc->savedCltProcTable.glDispatchTable.glEvalCoord2f)(data->u, data->v);
  337. return PC + sizeof(struct __gllc_EvalCoord2f_Rec);
  338. }
  339. /***************************************************************************/
  340. // LoadMatrixf function.
  341. const GLubyte * FASTCALL __glle_LoadMatrixf(__GLcontext *gc, const GLubyte *PC)
  342. {
  343. struct __gllc_LoadMatrixf_Rec *data;
  344. data = (struct __gllc_LoadMatrixf_Rec *) PC;
  345. (*gc->savedCltProcTable.glDispatchTable.glLoadMatrixf)(data->m);
  346. return PC + sizeof(struct __gllc_LoadMatrixf_Rec);
  347. }
  348. /***************************************************************************/
  349. // MultMatrixf function.
  350. const GLubyte * FASTCALL __glle_MultMatrixf(__GLcontext *gc, const GLubyte *PC)
  351. {
  352. struct __gllc_MultMatrixf_Rec *data;
  353. data = (struct __gllc_MultMatrixf_Rec *) PC;
  354. (*gc->savedCltProcTable.glDispatchTable.glMultMatrixf)(data->m);
  355. return PC + sizeof(struct __gllc_MultMatrixf_Rec);
  356. }
  357. /***************************************************************************/
  358. // Rotatef functions.
  359. const GLubyte * FASTCALL __glle_Rotatef(__GLcontext *gc, const GLubyte *PC)
  360. {
  361. struct __gllc_Rotatef_Rec *data;
  362. data = (struct __gllc_Rotatef_Rec *) PC;
  363. (*gc->savedCltProcTable.glDispatchTable.glRotatef)(data->angle, data->x, data->y, data->z);
  364. return PC + sizeof(struct __gllc_Rotatef_Rec);
  365. }
  366. /***************************************************************************/
  367. // Scalef functions.
  368. const GLubyte * FASTCALL __glle_Scalef(__GLcontext *gc, const GLubyte *PC)
  369. {
  370. struct __gllc_Scalef_Rec *data;
  371. data = (struct __gllc_Scalef_Rec *) PC;
  372. (*gc->savedCltProcTable.glDispatchTable.glScalef)(data->x, data->y, data->z);
  373. return PC + sizeof(struct __gllc_Scalef_Rec);
  374. }
  375. /***************************************************************************/
  376. // Translatef functions.
  377. const GLubyte * FASTCALL __glle_Translatef(__GLcontext *gc, const GLubyte *PC)
  378. {
  379. struct __gllc_Translatef_Rec *data;
  380. data = (struct __gllc_Translatef_Rec *) PC;
  381. (*gc->savedCltProcTable.glDispatchTable.glTranslatef)(data->x, data->y, data->z);
  382. return PC + sizeof(struct __gllc_Translatef_Rec);
  383. }
  384. /***************************************************************************/
  385. // Other functions.
  386. const GLubyte * FASTCALL __glle_ListBase(__GLcontext *gc, const GLubyte *PC)
  387. {
  388. struct __gllc_ListBase_Rec *data;
  389. data = (struct __gllc_ListBase_Rec *) PC;
  390. (*gc->savedCltProcTable.glDispatchTable.glListBase)(data->base);
  391. return PC + sizeof(struct __gllc_ListBase_Rec);
  392. }
  393. const GLubyte * FASTCALL __glle_ClipPlane(__GLcontext *gc, const GLubyte *PC)
  394. {
  395. struct __gllc_ClipPlane_Rec *data;
  396. data = (struct __gllc_ClipPlane_Rec *) PC;
  397. (*gc->savedCltProcTable.glDispatchTable.glClipPlane)(data->plane, data->equation);
  398. return PC + sizeof(struct __gllc_ClipPlane_Rec);
  399. }
  400. const GLubyte * FASTCALL __glle_ColorMaterial(__GLcontext *gc, const GLubyte *PC)
  401. {
  402. struct __gllc_ColorMaterial_Rec *data;
  403. data = (struct __gllc_ColorMaterial_Rec *) PC;
  404. (*gc->savedCltProcTable.glDispatchTable.glColorMaterial)(data->face, data->mode);
  405. return PC + sizeof(struct __gllc_ColorMaterial_Rec);
  406. }
  407. const GLubyte * FASTCALL __glle_CullFace(__GLcontext *gc, const GLubyte *PC)
  408. {
  409. struct __gllc_CullFace_Rec *data;
  410. data = (struct __gllc_CullFace_Rec *) PC;
  411. (*gc->savedCltProcTable.glDispatchTable.glCullFace)(data->mode);
  412. return PC + sizeof(struct __gllc_CullFace_Rec);
  413. }
  414. const GLubyte * FASTCALL __glle_FrontFace(__GLcontext *gc, const GLubyte *PC)
  415. {
  416. struct __gllc_FrontFace_Rec *data;
  417. data = (struct __gllc_FrontFace_Rec *) PC;
  418. (*gc->savedCltProcTable.glDispatchTable.glFrontFace)(data->mode);
  419. return PC + sizeof(struct __gllc_FrontFace_Rec);
  420. }
  421. const GLubyte * FASTCALL __glle_Hint(__GLcontext *gc, const GLubyte *PC)
  422. {
  423. struct __gllc_Hint_Rec *data;
  424. data = (struct __gllc_Hint_Rec *) PC;
  425. (*gc->savedCltProcTable.glDispatchTable.glHint)(data->target, data->mode);
  426. return PC + sizeof(struct __gllc_Hint_Rec);
  427. }
  428. const GLubyte * FASTCALL __glle_LineStipple(__GLcontext *gc, const GLubyte *PC)
  429. {
  430. struct __gllc_LineStipple_Rec *data;
  431. data = (struct __gllc_LineStipple_Rec *) PC;
  432. (*gc->savedCltProcTable.glDispatchTable.glLineStipple)(data->factor, data->pattern);
  433. return PC + sizeof(struct __gllc_LineStipple_Rec);
  434. }
  435. const GLubyte * FASTCALL __glle_LineWidth(__GLcontext *gc, const GLubyte *PC)
  436. {
  437. struct __gllc_LineWidth_Rec *data;
  438. data = (struct __gllc_LineWidth_Rec *) PC;
  439. (*gc->savedCltProcTable.glDispatchTable.glLineWidth)(data->width);
  440. return PC + sizeof(struct __gllc_LineWidth_Rec);
  441. }
  442. const GLubyte * FASTCALL __glle_PointSize(__GLcontext *gc, const GLubyte *PC)
  443. {
  444. struct __gllc_PointSize_Rec *data;
  445. data = (struct __gllc_PointSize_Rec *) PC;
  446. (*gc->savedCltProcTable.glDispatchTable.glPointSize)(data->size);
  447. return PC + sizeof(struct __gllc_PointSize_Rec);
  448. }
  449. const GLubyte * FASTCALL __glle_PolygonMode(__GLcontext *gc, const GLubyte *PC)
  450. {
  451. struct __gllc_PolygonMode_Rec *data;
  452. data = (struct __gllc_PolygonMode_Rec *) PC;
  453. (*gc->savedCltProcTable.glDispatchTable.glPolygonMode)(data->face, data->mode);
  454. return PC + sizeof(struct __gllc_PolygonMode_Rec);
  455. }
  456. const GLubyte * FASTCALL __glle_Scissor(__GLcontext *gc, const GLubyte *PC)
  457. {
  458. struct __gllc_Scissor_Rec *data;
  459. data = (struct __gllc_Scissor_Rec *) PC;
  460. (*gc->savedCltProcTable.glDispatchTable.glScissor)(data->x, data->y, data->width, data->height);
  461. return PC + sizeof(struct __gllc_Scissor_Rec);
  462. }
  463. const GLubyte * FASTCALL __glle_ShadeModel(__GLcontext *gc, const GLubyte *PC)
  464. {
  465. struct __gllc_ShadeModel_Rec *data;
  466. data = (struct __gllc_ShadeModel_Rec *) PC;
  467. (*gc->savedCltProcTable.glDispatchTable.glShadeModel)(data->mode);
  468. return PC + sizeof(struct __gllc_ShadeModel_Rec);
  469. }
  470. const GLubyte * FASTCALL __glle_InitNames(__GLcontext *gc, const GLubyte *PC)
  471. {
  472. (*gc->savedCltProcTable.glDispatchTable.glInitNames)();
  473. return PC;
  474. }
  475. const GLubyte * FASTCALL __glle_LoadName(__GLcontext *gc, const GLubyte *PC)
  476. {
  477. struct __gllc_LoadName_Rec *data;
  478. data = (struct __gllc_LoadName_Rec *) PC;
  479. (*gc->savedCltProcTable.glDispatchTable.glLoadName)(data->name);
  480. return PC + sizeof(struct __gllc_LoadName_Rec);
  481. }
  482. const GLubyte * FASTCALL __glle_PassThrough(__GLcontext *gc, const GLubyte *PC)
  483. {
  484. struct __gllc_PassThrough_Rec *data;
  485. data = (struct __gllc_PassThrough_Rec *) PC;
  486. (*gc->savedCltProcTable.glDispatchTable.glPassThrough)(data->token);
  487. return PC + sizeof(struct __gllc_PassThrough_Rec);
  488. }
  489. const GLubyte * FASTCALL __glle_PopName(__GLcontext *gc, const GLubyte *PC)
  490. {
  491. (*gc->savedCltProcTable.glDispatchTable.glPopName)();
  492. return PC;
  493. }
  494. const GLubyte * FASTCALL __glle_PushName(__GLcontext *gc, const GLubyte *PC)
  495. {
  496. struct __gllc_PushName_Rec *data;
  497. data = (struct __gllc_PushName_Rec *) PC;
  498. (*gc->savedCltProcTable.glDispatchTable.glPushName)(data->name);
  499. return PC + sizeof(struct __gllc_PushName_Rec);
  500. }
  501. const GLubyte * FASTCALL __glle_DrawBuffer(__GLcontext *gc, const GLubyte *PC)
  502. {
  503. struct __gllc_DrawBuffer_Rec *data;
  504. data = (struct __gllc_DrawBuffer_Rec *) PC;
  505. (*gc->savedCltProcTable.glDispatchTable.glDrawBuffer)(data->mode);
  506. return PC + sizeof(struct __gllc_DrawBuffer_Rec);
  507. }
  508. const GLubyte * FASTCALL __glle_Clear(__GLcontext *gc, const GLubyte *PC)
  509. {
  510. struct __gllc_Clear_Rec *data;
  511. data = (struct __gllc_Clear_Rec *) PC;
  512. (*gc->savedCltProcTable.glDispatchTable.glClear)(data->mask);
  513. return PC + sizeof(struct __gllc_Clear_Rec);
  514. }
  515. const GLubyte * FASTCALL __glle_ClearAccum(__GLcontext *gc, const GLubyte *PC)
  516. {
  517. struct __gllc_ClearAccum_Rec *data;
  518. data = (struct __gllc_ClearAccum_Rec *) PC;
  519. (*gc->savedCltProcTable.glDispatchTable.glClearAccum)(data->red, data->green, data->blue, data->alpha);
  520. return PC + sizeof(struct __gllc_ClearAccum_Rec);
  521. }
  522. const GLubyte * FASTCALL __glle_ClearIndex(__GLcontext *gc, const GLubyte *PC)
  523. {
  524. struct __gllc_ClearIndex_Rec *data;
  525. data = (struct __gllc_ClearIndex_Rec *) PC;
  526. (*gc->savedCltProcTable.glDispatchTable.glClearIndex)(data->c);
  527. return PC + sizeof(struct __gllc_ClearIndex_Rec);
  528. }
  529. const GLubyte * FASTCALL __glle_ClearColor(__GLcontext *gc, const GLubyte *PC)
  530. {
  531. struct __gllc_ClearColor_Rec *data;
  532. data = (struct __gllc_ClearColor_Rec *) PC;
  533. (*gc->savedCltProcTable.glDispatchTable.glClearColor)(data->red, data->green, data->blue, data->alpha);
  534. return PC + sizeof(struct __gllc_ClearColor_Rec);
  535. }
  536. const GLubyte * FASTCALL __glle_ClearStencil(__GLcontext *gc, const GLubyte *PC)
  537. {
  538. struct __gllc_ClearStencil_Rec *data;
  539. data = (struct __gllc_ClearStencil_Rec *) PC;
  540. (*gc->savedCltProcTable.glDispatchTable.glClearStencil)(data->s);
  541. return PC + sizeof(struct __gllc_ClearStencil_Rec);
  542. }
  543. const GLubyte * FASTCALL __glle_ClearDepth(__GLcontext *gc, const GLubyte *PC)
  544. {
  545. struct __gllc_ClearDepth_Rec *data;
  546. data = (struct __gllc_ClearDepth_Rec *) PC;
  547. (*gc->savedCltProcTable.glDispatchTable.glClearDepth)(data->depth);
  548. return PC + sizeof(struct __gllc_ClearDepth_Rec);
  549. }
  550. const GLubyte * FASTCALL __glle_StencilMask(__GLcontext *gc, const GLubyte *PC)
  551. {
  552. struct __gllc_StencilMask_Rec *data;
  553. data = (struct __gllc_StencilMask_Rec *) PC;
  554. (*gc->savedCltProcTable.glDispatchTable.glStencilMask)(data->mask);
  555. return PC + sizeof(struct __gllc_StencilMask_Rec);
  556. }
  557. const GLubyte * FASTCALL __glle_ColorMask(__GLcontext *gc, const GLubyte *PC)
  558. {
  559. struct __gllc_ColorMask_Rec *data;
  560. data = (struct __gllc_ColorMask_Rec *) PC;
  561. (*gc->savedCltProcTable.glDispatchTable.glColorMask)(data->red, data->green, data->blue, data->alpha);
  562. return PC + sizeof(struct __gllc_ColorMask_Rec);
  563. }
  564. const GLubyte * FASTCALL __glle_DepthMask(__GLcontext *gc, const GLubyte *PC)
  565. {
  566. struct __gllc_DepthMask_Rec *data;
  567. data = (struct __gllc_DepthMask_Rec *) PC;
  568. (*gc->savedCltProcTable.glDispatchTable.glDepthMask)(data->flag);
  569. return PC + sizeof(struct __gllc_DepthMask_Rec);
  570. }
  571. const GLubyte * FASTCALL __glle_IndexMask(__GLcontext *gc, const GLubyte *PC)
  572. {
  573. struct __gllc_IndexMask_Rec *data;
  574. data = (struct __gllc_IndexMask_Rec *) PC;
  575. (*gc->savedCltProcTable.glDispatchTable.glIndexMask)(data->mask);
  576. return PC + sizeof(struct __gllc_IndexMask_Rec);
  577. }
  578. const GLubyte * FASTCALL __glle_Accum(__GLcontext *gc, const GLubyte *PC)
  579. {
  580. struct __gllc_Accum_Rec *data;
  581. data = (struct __gllc_Accum_Rec *) PC;
  582. (*gc->savedCltProcTable.glDispatchTable.glAccum)(data->op, data->value);
  583. return PC + sizeof(struct __gllc_Accum_Rec);
  584. }
  585. const GLubyte * FASTCALL __glle_Disable(__GLcontext *gc, const GLubyte *PC)
  586. {
  587. struct __gllc_Disable_Rec *data;
  588. data = (struct __gllc_Disable_Rec *) PC;
  589. (*gc->savedCltProcTable.glDispatchTable.glDisable)(data->cap);
  590. return PC + sizeof(struct __gllc_Disable_Rec);
  591. }
  592. const GLubyte * FASTCALL __glle_Enable(__GLcontext *gc, const GLubyte *PC)
  593. {
  594. struct __gllc_Enable_Rec *data;
  595. data = (struct __gllc_Enable_Rec *) PC;
  596. (*gc->savedCltProcTable.glDispatchTable.glEnable)(data->cap);
  597. return PC + sizeof(struct __gllc_Enable_Rec);
  598. }
  599. const GLubyte * FASTCALL __glle_PopAttrib(__GLcontext *gc, const GLubyte *PC)
  600. {
  601. (*gc->savedCltProcTable.glDispatchTable.glPopAttrib)();
  602. return PC;
  603. }
  604. const GLubyte * FASTCALL __glle_PushAttrib(__GLcontext *gc, const GLubyte *PC)
  605. {
  606. struct __gllc_PushAttrib_Rec *data;
  607. data = (struct __gllc_PushAttrib_Rec *) PC;
  608. (*gc->savedCltProcTable.glDispatchTable.glPushAttrib)(data->mask);
  609. return PC + sizeof(struct __gllc_PushAttrib_Rec);
  610. }
  611. const GLubyte * FASTCALL __glle_EvalMesh1(__GLcontext *gc, const GLubyte *PC)
  612. {
  613. struct __gllc_EvalMesh1_Rec *data;
  614. data = (struct __gllc_EvalMesh1_Rec *) PC;
  615. (*gc->savedCltProcTable.glDispatchTable.glEvalMesh1)(data->mode, data->i1, data->i2);
  616. return PC + sizeof(struct __gllc_EvalMesh1_Rec);
  617. }
  618. const GLubyte * FASTCALL __glle_EvalPoint1(__GLcontext *gc, const GLubyte *PC)
  619. {
  620. struct __gllc_EvalPoint1_Rec *data;
  621. data = (struct __gllc_EvalPoint1_Rec *) PC;
  622. (*gc->savedCltProcTable.glDispatchTable.glEvalPoint1)(data->i);
  623. return PC + sizeof(struct __gllc_EvalPoint1_Rec);
  624. }
  625. const GLubyte * FASTCALL __glle_EvalMesh2(__GLcontext *gc, const GLubyte *PC)
  626. {
  627. struct __gllc_EvalMesh2_Rec *data;
  628. data = (struct __gllc_EvalMesh2_Rec *) PC;
  629. (*gc->savedCltProcTable.glDispatchTable.glEvalMesh2)(data->mode, data->i1, data->i2, data->j1,
  630. data->j2);
  631. return PC + sizeof(struct __gllc_EvalMesh2_Rec);
  632. }
  633. const GLubyte * FASTCALL __glle_EvalPoint2(__GLcontext *gc, const GLubyte *PC)
  634. {
  635. struct __gllc_EvalPoint2_Rec *data;
  636. data = (struct __gllc_EvalPoint2_Rec *) PC;
  637. (*gc->savedCltProcTable.glDispatchTable.glEvalPoint2)(data->i, data->j);
  638. return PC + sizeof(struct __gllc_EvalPoint2_Rec);
  639. }
  640. const GLubyte * FASTCALL __glle_AlphaFunc(__GLcontext *gc, const GLubyte *PC)
  641. {
  642. struct __gllc_AlphaFunc_Rec *data;
  643. data = (struct __gllc_AlphaFunc_Rec *) PC;
  644. (*gc->savedCltProcTable.glDispatchTable.glAlphaFunc)(data->func, data->ref);
  645. return PC + sizeof(struct __gllc_AlphaFunc_Rec);
  646. }
  647. const GLubyte * FASTCALL __glle_BlendFunc(__GLcontext *gc, const GLubyte *PC)
  648. {
  649. struct __gllc_BlendFunc_Rec *data;
  650. data = (struct __gllc_BlendFunc_Rec *) PC;
  651. (*gc->savedCltProcTable.glDispatchTable.glBlendFunc)(data->sfactor, data->dfactor);
  652. return PC + sizeof(struct __gllc_BlendFunc_Rec);
  653. }
  654. const GLubyte * FASTCALL __glle_LogicOp(__GLcontext *gc, const GLubyte *PC)
  655. {
  656. struct __gllc_LogicOp_Rec *data;
  657. data = (struct __gllc_LogicOp_Rec *) PC;
  658. (*gc->savedCltProcTable.glDispatchTable.glLogicOp)(data->opcode);
  659. return PC + sizeof(struct __gllc_LogicOp_Rec);
  660. }
  661. const GLubyte * FASTCALL __glle_StencilFunc(__GLcontext *gc, const GLubyte *PC)
  662. {
  663. struct __gllc_StencilFunc_Rec *data;
  664. data = (struct __gllc_StencilFunc_Rec *) PC;
  665. (*gc->savedCltProcTable.glDispatchTable.glStencilFunc)(data->func, data->ref, data->mask);
  666. return PC + sizeof(struct __gllc_StencilFunc_Rec);
  667. }
  668. const GLubyte * FASTCALL __glle_StencilOp(__GLcontext *gc, const GLubyte *PC)
  669. {
  670. struct __gllc_StencilOp_Rec *data;
  671. data = (struct __gllc_StencilOp_Rec *) PC;
  672. (*gc->savedCltProcTable.glDispatchTable.glStencilOp)(data->fail, data->zfail, data->zpass);
  673. return PC + sizeof(struct __gllc_StencilOp_Rec);
  674. }
  675. const GLubyte * FASTCALL __glle_DepthFunc(__GLcontext *gc, const GLubyte *PC)
  676. {
  677. struct __gllc_DepthFunc_Rec *data;
  678. data = (struct __gllc_DepthFunc_Rec *) PC;
  679. (*gc->savedCltProcTable.glDispatchTable.glDepthFunc)(data->func);
  680. return PC + sizeof(struct __gllc_DepthFunc_Rec);
  681. }
  682. const GLubyte * FASTCALL __glle_PixelZoom(__GLcontext *gc, const GLubyte *PC)
  683. {
  684. struct __gllc_PixelZoom_Rec *data;
  685. data = (struct __gllc_PixelZoom_Rec *) PC;
  686. (*gc->savedCltProcTable.glDispatchTable.glPixelZoom)(data->xfactor, data->yfactor);
  687. return PC + sizeof(struct __gllc_PixelZoom_Rec);
  688. }
  689. const GLubyte * FASTCALL __glle_PixelTransferf(__GLcontext *gc, const GLubyte *PC)
  690. {
  691. struct __gllc_PixelTransferf_Rec *data;
  692. data = (struct __gllc_PixelTransferf_Rec *) PC;
  693. (*gc->savedCltProcTable.glDispatchTable.glPixelTransferf)(data->pname, data->param);
  694. return PC + sizeof(struct __gllc_PixelTransferf_Rec);
  695. }
  696. const GLubyte * FASTCALL __glle_PixelTransferi(__GLcontext *gc, const GLubyte *PC)
  697. {
  698. struct __gllc_PixelTransferi_Rec *data;
  699. data = (struct __gllc_PixelTransferi_Rec *) PC;
  700. (*gc->savedCltProcTable.glDispatchTable.glPixelTransferi)(data->pname, data->param);
  701. return PC + sizeof(struct __gllc_PixelTransferi_Rec);
  702. }
  703. const GLubyte * FASTCALL __glle_PixelMapfv(__GLcontext *gc, const GLubyte *PC)
  704. {
  705. GLuint size;
  706. GLuint arraySize;
  707. struct __gllc_PixelMapfv_Rec *data;
  708. data = (struct __gllc_PixelMapfv_Rec *) PC;
  709. (*gc->savedCltProcTable.glDispatchTable.glPixelMapfv)(data->map, data->mapsize,
  710. (GLfloat *) (PC + sizeof(struct __gllc_PixelMapfv_Rec)));
  711. arraySize = data->mapsize * 4;
  712. size = sizeof(struct __gllc_PixelMapfv_Rec) + arraySize;
  713. return PC + size;
  714. }
  715. const GLubyte * FASTCALL __glle_PixelMapuiv(__GLcontext *gc, const GLubyte *PC)
  716. {
  717. GLuint size;
  718. GLuint arraySize;
  719. struct __gllc_PixelMapuiv_Rec *data;
  720. data = (struct __gllc_PixelMapuiv_Rec *) PC;
  721. (*gc->savedCltProcTable.glDispatchTable.glPixelMapuiv)(data->map, data->mapsize,
  722. (GLuint *) (PC + sizeof(struct __gllc_PixelMapuiv_Rec)));
  723. arraySize = data->mapsize * 4;
  724. size = sizeof(struct __gllc_PixelMapuiv_Rec) + arraySize;
  725. return PC + size;
  726. }
  727. const GLubyte * FASTCALL __glle_PixelMapusv(__GLcontext *gc, const GLubyte *PC)
  728. {
  729. GLuint size;
  730. GLuint arraySize;
  731. struct __gllc_PixelMapusv_Rec *data;
  732. data = (struct __gllc_PixelMapusv_Rec *) PC;
  733. (*gc->savedCltProcTable.glDispatchTable.glPixelMapusv)(data->map, data->mapsize,
  734. (GLushort *) (PC + sizeof(struct __gllc_PixelMapusv_Rec)));
  735. arraySize = __GL_PAD(data->mapsize * 2);
  736. size = sizeof(struct __gllc_PixelMapusv_Rec) + arraySize;
  737. return PC + size;
  738. }
  739. const GLubyte * FASTCALL __glle_ReadBuffer(__GLcontext *gc, const GLubyte *PC)
  740. {
  741. struct __gllc_ReadBuffer_Rec *data;
  742. data = (struct __gllc_ReadBuffer_Rec *) PC;
  743. (*gc->savedCltProcTable.glDispatchTable.glReadBuffer)(data->mode);
  744. return PC + sizeof(struct __gllc_ReadBuffer_Rec);
  745. }
  746. const GLubyte * FASTCALL __glle_CopyPixels(__GLcontext *gc, const GLubyte *PC)
  747. {
  748. struct __gllc_CopyPixels_Rec *data;
  749. data = (struct __gllc_CopyPixels_Rec *) PC;
  750. (*gc->savedCltProcTable.glDispatchTable.glCopyPixels)(data->x, data->y, data->width, data->height,
  751. data->type);
  752. return PC + sizeof(struct __gllc_CopyPixels_Rec);
  753. }
  754. const GLubyte * FASTCALL __glle_DepthRange(__GLcontext *gc, const GLubyte *PC)
  755. {
  756. struct __gllc_DepthRange_Rec *data;
  757. data = (struct __gllc_DepthRange_Rec *) PC;
  758. (*gc->savedCltProcTable.glDispatchTable.glDepthRange)(data->zNear, data->zFar);
  759. return PC + sizeof(struct __gllc_DepthRange_Rec);
  760. }
  761. const GLubyte * FASTCALL __glle_Frustum(__GLcontext *gc, const GLubyte *PC)
  762. {
  763. struct __gllc_Frustum_Rec *data;
  764. data = (struct __gllc_Frustum_Rec *) PC;
  765. (*gc->savedCltProcTable.glDispatchTable.glFrustum)(data->left, data->right, data->bottom, data->top,
  766. data->zNear, data->zFar);
  767. return PC + sizeof(struct __gllc_Frustum_Rec);
  768. }
  769. const GLubyte * FASTCALL __glle_LoadIdentity(__GLcontext *gc, const GLubyte *PC)
  770. {
  771. (*gc->savedCltProcTable.glDispatchTable.glLoadIdentity)();
  772. return PC;
  773. }
  774. const GLubyte * FASTCALL __glle_MatrixMode(__GLcontext *gc, const GLubyte *PC)
  775. {
  776. struct __gllc_MatrixMode_Rec *data;
  777. data = (struct __gllc_MatrixMode_Rec *) PC;
  778. (*gc->savedCltProcTable.glDispatchTable.glMatrixMode)(data->mode);
  779. return PC + sizeof(struct __gllc_MatrixMode_Rec);
  780. }
  781. const GLubyte * FASTCALL __glle_Ortho(__GLcontext *gc, const GLubyte *PC)
  782. {
  783. struct __gllc_Ortho_Rec *data;
  784. data = (struct __gllc_Ortho_Rec *) PC;
  785. (*gc->savedCltProcTable.glDispatchTable.glOrtho)(data->left, data->right, data->bottom, data->top,
  786. data->zNear, data->zFar);
  787. return PC + sizeof(struct __gllc_Ortho_Rec);
  788. }
  789. const GLubyte * FASTCALL __glle_PopMatrix(__GLcontext *gc, const GLubyte *PC)
  790. {
  791. (*gc->savedCltProcTable.glDispatchTable.glPopMatrix)();
  792. return PC;
  793. }
  794. const GLubyte * FASTCALL __glle_PushMatrix(__GLcontext *gc, const GLubyte *PC)
  795. {
  796. (*gc->savedCltProcTable.glDispatchTable.glPushMatrix)();
  797. return PC;
  798. }
  799. const GLubyte * FASTCALL __glle_Viewport(__GLcontext *gc, const GLubyte *PC)
  800. {
  801. struct __gllc_Viewport_Rec *data;
  802. data = (struct __gllc_Viewport_Rec *) PC;
  803. (*gc->savedCltProcTable.glDispatchTable.glViewport)(data->x, data->y, data->width, data->height);
  804. return PC + sizeof(struct __gllc_Viewport_Rec);
  805. }
  806. const GLubyte * FASTCALL __glle_BindTexture(__GLcontext *gc, const GLubyte *PC)
  807. {
  808. struct __gllc_BindTexture_Rec *data;
  809. data = (struct __gllc_BindTexture_Rec *) PC;
  810. (*gc->savedCltProcTable.glDispatchTable.glBindTexture)(data->target, data->texture);
  811. return PC + sizeof(struct __gllc_BindTexture_Rec);
  812. }
  813. const GLubyte * FASTCALL __glle_PrioritizeTextures(__GLcontext *gc, const GLubyte *PC)
  814. {
  815. struct __gllc_PrioritizeTextures_Rec *data;
  816. data = (struct __gllc_PrioritizeTextures_Rec *) PC;
  817. (*gc->savedCltProcTable.glDispatchTable.glPrioritizeTextures)
  818. (data->n,
  819. (const GLuint *)(PC + sizeof(struct __gllc_PrioritizeTextures_Rec)),
  820. (const GLclampf *)(PC + sizeof(struct __gllc_PrioritizeTextures_Rec)+
  821. data->n*sizeof(GLuint)));
  822. return PC + sizeof(struct __gllc_PrioritizeTextures_Rec) +
  823. data->n*(sizeof(GLuint)+sizeof(GLclampf));
  824. }
  825. const GLubyte * FASTCALL __glle_CopyTexImage1D(__GLcontext *gc, const GLubyte *PC)
  826. {
  827. struct __gllc_CopyTexImage1D_Rec *data;
  828. data = (struct __gllc_CopyTexImage1D_Rec *) PC;
  829. (*gc->savedCltProcTable.glDispatchTable.glCopyTexImage1D)(data->target, data->level, data->internalformat, data->x, data->y, data->width, data->border);
  830. return PC + sizeof(struct __gllc_CopyTexImage1D_Rec);
  831. }
  832. const GLubyte * FASTCALL __glle_CopyTexImage2D(__GLcontext *gc, const GLubyte *PC)
  833. {
  834. struct __gllc_CopyTexImage2D_Rec *data;
  835. data = (struct __gllc_CopyTexImage2D_Rec *) PC;
  836. (*gc->savedCltProcTable.glDispatchTable.glCopyTexImage2D)(data->target, data->level, data->internalformat, data->x, data->y, data->width, data->height, data->border);
  837. return PC + sizeof(struct __gllc_CopyTexImage2D_Rec);
  838. }
  839. const GLubyte * FASTCALL __glle_CopyTexSubImage1D(__GLcontext *gc, const GLubyte *PC)
  840. {
  841. struct __gllc_CopyTexSubImage1D_Rec *data;
  842. data = (struct __gllc_CopyTexSubImage1D_Rec *) PC;
  843. (*gc->savedCltProcTable.glDispatchTable.glCopyTexSubImage1D)(data->target, data->level, data->xoffset, data->x, data->y, data->width);
  844. return PC + sizeof(struct __gllc_CopyTexSubImage1D_Rec);
  845. }
  846. const GLubyte * FASTCALL __glle_CopyTexSubImage2D(__GLcontext *gc, const GLubyte *PC)
  847. {
  848. struct __gllc_CopyTexSubImage2D_Rec *data;
  849. data = (struct __gllc_CopyTexSubImage2D_Rec *) PC;
  850. (*gc->savedCltProcTable.glDispatchTable.glCopyTexSubImage2D)(data->target, data->level, data->xoffset, data->yoffset, data->x, data->y, data->width, data->height);
  851. return PC + sizeof(struct __gllc_CopyTexSubImage2D_Rec);
  852. }
  853. const GLubyte * FASTCALL __glle_PolygonOffset(__GLcontext *gc, const GLubyte *PC)
  854. {
  855. struct __gllc_PolygonOffset_Rec *data;
  856. data = (struct __gllc_PolygonOffset_Rec *) PC;
  857. (*gc->savedCltProcTable.glDispatchTable.glPolygonOffset)(data->factor, data->units);
  858. return PC + sizeof(struct __gllc_PolygonOffset_Rec);
  859. }
  860. #ifdef GL_WIN_multiple_textures
  861. const GLubyte * FASTCALL __glle_CurrentTextureIndexWIN(__GLcontext *gc,
  862. const GLubyte *PC)
  863. {
  864. struct __gllc_CurrentTextureIndexWIN_Rec *data;
  865. data = (struct __gllc_CurrentTextureIndexWIN_Rec *) PC;
  866. (*gc->savedExtProcTable.glDispatchTable.glCurrentTextureIndexWIN)
  867. (data->index);
  868. return PC + sizeof(struct __gllc_CurrentTextureIndexWIN_Rec);
  869. }
  870. const GLubyte * FASTCALL __glle_BindNthTextureWIN(__GLcontext *gc,
  871. const GLubyte *PC)
  872. {
  873. struct __gllc_BindNthTextureWIN_Rec *data;
  874. data = (struct __gllc_BindNthTextureWIN_Rec *) PC;
  875. (*gc->savedExtProcTable.glDispatchTable.glBindNthTextureWIN)
  876. (data->index, data->target, data->texture);
  877. return PC + sizeof(struct __gllc_BindNthTextureWIN_Rec);
  878. }
  879. const GLubyte * FASTCALL __glle_NthTexCombineFuncWIN(__GLcontext *gc,
  880. const GLubyte *PC)
  881. {
  882. struct __gllc_NthTexCombineFuncWIN_Rec *data;
  883. data = (struct __gllc_NthTexCombineFuncWIN_Rec *) PC;
  884. (*gc->savedExtProcTable.glDispatchTable.glNthTexCombineFuncWIN)
  885. (data->index, data->leftColorFactor, data->colorOp,
  886. data->rightColorFactor, data->leftAlphaFactor, data->alphaOp,
  887. data->leftAlphaFactor);
  888. return PC + sizeof(struct __gllc_NthTexCombineFuncWIN_Rec);
  889. }
  890. #endif // GL_WIN_multiple_textures