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.

609 lines
17 KiB

  1. /*
  2. ** Copyright 1992, Silicon Graphics, Inc.
  3. ** All Rights Reserved.
  4. **
  5. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. ** the contents of this file may not be disclosed to third parties, copied or
  7. ** duplicated in any form, in whole or in part, without the prior written
  8. ** permission of Silicon Graphics, Inc.
  9. **
  10. ** RESTRICTED RIGHTS LEGEND:
  11. ** Use, duplication or disclosure by the Government is subject to restrictions
  12. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15. ** rights reserved under the Copyright Laws of the United States.
  16. **
  17. */
  18. #include <windows.h>
  19. #include <GL/gl.h>
  20. #include <stdlib.h>
  21. #include <setjmp.h>
  22. struct JumpBuffer {
  23. jmp_buf buf;
  24. };
  25. #define mysetjmp(x) setjmp((x)->buf)
  26. #define mylongjmp(x,y) longjmp((x)->buf, y)
  27. /* <<AT&T USL C++ Language System <3.0.1> 02/03/92>> */
  28. /* < ../clients/glsurfeval.c++ > */
  29. void *__vec_new (void *, int , int , void *);
  30. void __vec_ct (void *, int , int , void *);
  31. void __vec_dt (void *, int , int , void *);
  32. void __vec_delete (void *, int , int , void *, int , int );
  33. typedef int (*__vptp)(void);
  34. struct __mptr {short d; short i; __vptp f; };
  35. typedef unsigned int GLenum ;
  36. typedef unsigned char GLboolean ;
  37. typedef unsigned int GLbitfield ;
  38. typedef signed char GLbyte ;
  39. typedef short GLshort ;
  40. typedef int GLint ;
  41. typedef int GLsizei ;
  42. typedef unsigned char GLubyte ;
  43. typedef unsigned short GLushort ;
  44. typedef unsigned int GLuint ;
  45. typedef float GLfloat ;
  46. typedef float GLclampf ;
  47. typedef double GLdouble ;
  48. typedef double GLclampd ;
  49. typedef void GLvoid ;
  50. typedef unsigned int size_t ;
  51. // extern void *malloc (size_t );
  52. // extern void free (void *);
  53. typedef float REAL ;
  54. typedef void (*Pfvv )(void );
  55. typedef void (*Pfvf )(float *);
  56. typedef int (*cmpfunc )(void *, void *);
  57. typedef REAL Knot ;
  58. typedef REAL *Knot_ptr ;
  59. struct CachingEvaluator;
  60. enum __Q2_16CachingEvaluator11ServiceMode { play__Q2_16CachingEvaluator11ServiceMode = 0, record__Q2_16CachingEvaluator11ServiceMode = 1, playAndRecord__Q2_16CachingEvaluator11ServiceMode = 2} ;
  61. struct CachingEvaluator {
  62. struct __mptr *__vptr__16CachingEvaluator ;
  63. };
  64. struct BasicSurfaceEvaluator;
  65. struct BasicSurfaceEvaluator {
  66. struct __mptr *__vptr__16CachingEvaluator ;
  67. };
  68. static void *__nw__FUi (size_t );
  69. struct SurfaceMap;
  70. struct OpenGLSurfaceEvaluator;
  71. struct StoredVertex;
  72. struct StoredVertex;
  73. struct StoredVertex {
  74. int type__12StoredVertex ;
  75. REAL coord__12StoredVertex [2];
  76. long point__12StoredVertex [2];
  77. };
  78. struct OpenGLSurfaceEvaluator;
  79. struct OpenGLSurfaceEvaluator {
  80. struct __mptr *__vptr__16CachingEvaluator ;
  81. struct StoredVertex *vertexCache__22OpenGLSurfaceEvaluator [3];
  82. int tmeshing__22OpenGLSurfaceEvaluator ;
  83. int which__22OpenGLSurfaceEvaluator ;
  84. int vcount__22OpenGLSurfaceEvaluator ;
  85. };
  86. void __glcoord2f__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *, REAL , REAL );
  87. void __glpoint2i__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *, long , long );
  88. extern struct __mptr* __gl__ptbl_vec_____clients_gls0[];
  89. struct OpenGLSurfaceEvaluator *__gl__ct__22OpenGLSurfaceEvalu0 (struct OpenGLSurfaceEvaluator *__0this )
  90. {
  91. int __1i ;
  92. struct BasicSurfaceEvaluator *__0__X7 ;
  93. struct CachingEvaluator *__0__X4 ;
  94. void *__1__Xp0025pnaiaa ;
  95. if (__0this || (__0this = (struct OpenGLSurfaceEvaluator *)( (__1__Xp0025pnaiaa = malloc ( (sizeof (struct OpenGLSurfaceEvaluator))) ), (__1__Xp0025pnaiaa ?(((void *)__1__Xp0025pnaiaa )):(((void *)__1__Xp0025pnaiaa )))) )){
  96. ( (__0this = (struct OpenGLSurfaceEvaluator *)( (__0__X7 = (((struct BasicSurfaceEvaluator *)__0this ))), ( ((__0__X7 || (__0__X7 = (struct BasicSurfaceEvaluator *)__nw__FUi ( sizeof (struct BasicSurfaceEvaluator))
  97. ))?( (__0__X7 = (struct BasicSurfaceEvaluator *)( (__0__X4 = (((struct CachingEvaluator *)__0__X7 ))), ( ((__0__X4 || (__0__X4 = (struct CachingEvaluator *)( (__1__Xp0025pnaiaa = malloc (
  98. (sizeof (struct CachingEvaluator))) ), (__1__Xp0025pnaiaa ?(((void *)__1__Xp0025pnaiaa )):(((void *)__1__Xp0025pnaiaa )))) ))?(__0__X4 -> __vptr__16CachingEvaluator = (struct __mptr *) __gl__ptbl_vec_____clients_gls0[0]):0 ), ((__0__X4 ))) ) ), (__0__X7 ->
  99. __vptr__16CachingEvaluator = (struct __mptr *) __gl__ptbl_vec_____clients_gls0[1])) :0 ), ((__0__X7 ))) ) ), (__0this -> __vptr__16CachingEvaluator = (struct __mptr *) __gl__ptbl_vec_____clients_gls0[2])) ;
  100. for(__1i = 0 ;__1i < 3 ;__1i ++ ) {
  101. struct StoredVertex *__0__X8 ;
  102. struct StoredVertex *__0__X9 ;
  103. void *__1__Xp0025pnaiaa ;
  104. (__0this -> vertexCache__22OpenGLSurfaceEvaluator [__1i ])= ( (__0__X9 = 0 ), ( ((__0__X9 || (__0__X9 = (struct StoredVertex *)( (__1__Xp0025pnaiaa = malloc ( (sizeof (struct StoredVertex)))
  105. ), (__1__Xp0025pnaiaa ?(((void *)__1__Xp0025pnaiaa )):(((void *)__1__Xp0025pnaiaa )))) ))?( (__0__X9 -> type__12StoredVertex = 0 ), 0 ) :0 ), ((__0__X9 ))) ) ;
  106. }
  107. /* XXX Add the following 3 lines - hockl */
  108. /* XXX tnurb.exe crashes if memory is not zero init'd */
  109. __0this -> tmeshing__22OpenGLSurfaceEvaluator = 0;
  110. __0this -> which__22OpenGLSurfaceEvaluator = 0;
  111. __0this -> vcount__22OpenGLSurfaceEvaluator = 0;
  112. } return __0this ;
  113. }
  114. void __gl__dt__22OpenGLSurfaceEvalu0 (struct OpenGLSurfaceEvaluator *__0this ,
  115. int __0__free )
  116. { if (__0this ){
  117. __0this -> __vptr__16CachingEvaluator = (struct __mptr *) __gl__ptbl_vec_____clients_gls0[2];
  118. if (__0this )if (__0__free & 1)( (((void *)__0this )?( free ( ((void *)__0this )) , 0 ) :( 0 ) ))
  119. ;
  120. }
  121. }
  122. // extern void glDisable (GLenum );
  123. void __gldisable__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *__0this , long __1type )
  124. {
  125. glDisable ( (unsigned int )__1type ) ;
  126. }
  127. // extern void glEnable (GLenum );
  128. void __glenable__22OpenGLSurfaceEva0 (struct OpenGLSurfaceEvaluator *__0this , long __1type )
  129. {
  130. glEnable ( (unsigned int )__1type ) ;
  131. }
  132. // extern void glMapGrid2d (GLint , GLdouble , GLdouble , GLint , GLdouble , GLdouble );
  133. void __glmapgrid2f__22OpenGLSurface0 (struct OpenGLSurfaceEvaluator *__0this , long __1nu , REAL __1u0 , REAL __1u1 , long __1nv , REAL __1v0 , REAL __1v1 )
  134. {
  135. glMapGrid2d ( (int )__1nu ,
  136. (double )__1u0 , (double )__1u1 , (int )__1nv , (double )__1v0 , (double )__1v1 ) ;
  137. }
  138. // extern void glPolygonMode (GLenum , GLenum );
  139. void __glpolymode__22OpenGLSurfaceE0 (struct OpenGLSurfaceEvaluator *__0this , long __1style )
  140. {
  141. switch (__1style ){
  142. default :
  143. case 0 :
  144. glPolygonMode ( (unsigned int )0x0408 , (unsigned
  145. int )0x1B02 ) ;
  146. break ;
  147. case 1 :
  148. glPolygonMode ( (unsigned int )0x0408 , (unsigned int )0x1B01 ) ;
  149. break ;
  150. case 2 :
  151. glPolygonMode ( (unsigned int )0x0408 , (unsigned int )0x1B00 ) ;
  152. break ;
  153. }
  154. }
  155. // extern void glBegin (GLenum );
  156. void __glbgnline__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *__0this )
  157. {
  158. glBegin ( (unsigned int )0x0003 ) ;
  159. }
  160. // extern void glEnd (void );
  161. void __glendline__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *__0this )
  162. {
  163. glEnd ( ) ;
  164. }
  165. void __glrange2f__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *__0this , long __1type , REAL *__1from , REAL *__1to )
  166. {
  167. }
  168. void __gldomain2f__22OpenGLSurfaceE0 (struct OpenGLSurfaceEvaluator *__0this , REAL __1ulo , REAL __1uhi , REAL __1vlo , REAL __1vhi )
  169. {
  170. }
  171. void __glbgnclosedline__22OpenGLSur0 (struct OpenGLSurfaceEvaluator *__0this )
  172. {
  173. glBegin ( (unsigned int )0x0002 ) ;
  174. }
  175. void __glendclosedline__22OpenGLSur0 (struct OpenGLSurfaceEvaluator *__0this )
  176. {
  177. glEnd ( ) ;
  178. }
  179. void __glbgntmesh__22OpenGLSurfaceE0 (struct OpenGLSurfaceEvaluator *__0this )
  180. {
  181. __0this -> tmeshing__22OpenGLSurfaceEvaluator = 1 ;
  182. __0this -> which__22OpenGLSurfaceEvaluator = 0 ;
  183. __0this -> vcount__22OpenGLSurfaceEvaluator = 0 ;
  184. glBegin ( (unsigned int )0x0004 ) ;
  185. }
  186. void __glswaptmesh__22OpenGLSurface0 (struct OpenGLSurfaceEvaluator *__0this )
  187. {
  188. __0this -> which__22OpenGLSurfaceEvaluator = (1 - __0this -> which__22OpenGLSurfaceEvaluator );
  189. }
  190. void __glendtmesh__22OpenGLSurfaceE0 (struct OpenGLSurfaceEvaluator *__0this )
  191. {
  192. __0this -> tmeshing__22OpenGLSurfaceEvaluator = 0 ;
  193. glEnd ( ) ;
  194. }
  195. void __glbgnqstrip__22OpenGLSurface0 (struct OpenGLSurfaceEvaluator *__0this )
  196. {
  197. glBegin ( (unsigned int )0x0008 ) ;
  198. }
  199. void __glendqstrip__22OpenGLSurface0 (struct OpenGLSurfaceEvaluator *__0this )
  200. {
  201. glEnd ( ) ;
  202. }
  203. // extern void glPushAttrib (GLbitfield );
  204. void __glbgnmap2f__22OpenGLSurfaceE0 (struct OpenGLSurfaceEvaluator *__0this , long __1__A10 )
  205. {
  206. glPushAttrib ( (unsigned int )0x00010000 ) ;
  207. }
  208. // extern void glPopAttrib (void );
  209. void __glendmap2f__22OpenGLSurfaceE0 (struct OpenGLSurfaceEvaluator *__0this )
  210. {
  211. glPopAttrib ( ) ;
  212. }
  213. // extern void glMap2f (GLenum , GLfloat , GLfloat , GLint , GLint , GLfloat , GLfloat , GLint , GLint , GLfloat *);
  214. void __glmap2f__22OpenGLSurfaceEval0 (struct OpenGLSurfaceEvaluator *__0this ,
  215. long __1_type ,
  216. REAL __1_ulower ,
  217. REAL __1_uupper ,
  218. long __1_ustride ,
  219. long __1_uorder ,
  220. REAL __1_vlower ,
  221. REAL __1_vupper ,
  222. long
  223. __1_vstride ,
  224. long __1_vorder ,
  225. REAL *__1pts )
  226. {
  227. glMap2f ( (unsigned int )__1_type , __1_ulower , __1_uupper , (int )__1_ustride , (int )__1_uorder ,
  228. __1_vlower , __1_vupper , (int )__1_vstride , (int )__1_vorder , (float *)__1pts ) ;
  229. }
  230. // extern void glEvalMesh2 (GLenum , GLint , GLint , GLint , GLint );
  231. void __glmapmesh2f__22OpenGLSurface0 (struct OpenGLSurfaceEvaluator *__0this , long __1style , long __1umin , long __1umax , long __1vmin , long __1vmax )
  232. {
  233. switch
  234. (__1style ){
  235. default :
  236. case 0 :
  237. glEvalMesh2 ( (unsigned int )0x1B02 , (int )__1umin , (int )__1umax , (int )__1vmin , (int
  238. )__1vmax ) ;
  239. break ;
  240. case 1 :
  241. glEvalMesh2 ( (unsigned int )0x1B01 , (int )__1umin , (int )__1umax , (int )__1vmin , (int )__1vmax ) ;
  242. break ;
  243. case 2 :
  244. glEvalMesh2 ( (unsigned int )0x1B00 , (int )__1umin , (int )__1umax , (int )__1vmin , (int )__1vmax ) ;
  245. break ;
  246. }
  247. }
  248. void __glnewtmeshvert__22OpenGLSurf1 (struct OpenGLSurfaceEvaluator *, REAL , REAL );
  249. void __glevalcoord2f__22OpenGLSurfa0 (struct OpenGLSurfaceEvaluator *__0this , long __1__A11 , REAL __1u , REAL __1v )
  250. {
  251. __glnewtmeshvert__22OpenGLSurf1 ( __0this , __1u , __1v ) ;
  252. }
  253. void __glnewtmeshvert__22OpenGLSurf0 (struct OpenGLSurfaceEvaluator *, long , long );
  254. void __glevalpoint2i__22OpenGLSurfa0 (struct OpenGLSurfaceEvaluator *__0this , long __1u , long __1v )
  255. {
  256. __glnewtmeshvert__22OpenGLSurf0 ( __0this , __1u , __1v ) ;
  257. }
  258. // extern void glEvalPoint2 (GLint , GLint );
  259. void __glpoint2i__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *__0this , long __1u , long __1v )
  260. {
  261. glEvalPoint2 ( (int )__1u , (int )__1v ) ;
  262. }
  263. // extern void glEvalCoord2f (GLfloat , GLfloat );
  264. void __glcoord2f__22OpenGLSurfaceEv0 (struct OpenGLSurfaceEvaluator *__0this , REAL __1u , REAL __1v )
  265. {
  266. glEvalCoord2f ( __1u , __1v ) ;
  267. }
  268. void __glnewtmeshvert__22OpenGLSurf0 (struct OpenGLSurfaceEvaluator *__0this , long __1u , long __1v )
  269. {
  270. if (__0this -> tmeshing__22OpenGLSurfaceEvaluator ){
  271. struct StoredVertex *__0__X14 ;
  272. if (__0this -> vcount__22OpenGLSurfaceEvaluator == 2 ){
  273. struct StoredVertex *__0__X12 ;
  274. struct StoredVertex *__0__X13 ;
  275. {
  276. __0__X12 = (struct StoredVertex *)(__0this -> vertexCache__22OpenGLSurfaceEvaluator [0 ]);
  277. {
  278. switch (__0__X12 -> type__12StoredVertex )
  279. {
  280. case 1 :
  281. __glcoord2f__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X12 -> coord__12StoredVertex [0 ], __0__X12 -> coord__12StoredVertex [1 ]) ;
  282. break ;
  283. case 2 :
  284. __glpoint2i__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X12 -> point__12StoredVertex [0 ], __0__X12 -> point__12StoredVertex [1 ]) ;
  285. break ;
  286. default :
  287. break ;
  288. }
  289. }
  290. }
  291. {
  292. __0__X13 = (struct StoredVertex *)(__0this -> vertexCache__22OpenGLSurfaceEvaluator [1 ]);
  293. {
  294. switch (__0__X13 -> type__12StoredVertex )
  295. {
  296. case 1 :
  297. __glcoord2f__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X13 -> coord__12StoredVertex [0 ], __0__X13 -> coord__12StoredVertex [1 ]) ;
  298. break ;
  299. case 2 :
  300. __glpoint2i__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X13 -> point__12StoredVertex [0 ], __0__X13 -> point__12StoredVertex [1 ]) ;
  301. break ;
  302. default :
  303. break ;
  304. }
  305. }
  306. }
  307. glEvalPoint2 ( (int )__1u , (int )__1v ) ;
  308. }
  309. else
  310. {
  311. __0this -> vcount__22OpenGLSurfaceEvaluator ++ ;
  312. }
  313. ( (__0__X14 = (struct StoredVertex *)(__0this -> vertexCache__22OpenGLSurfaceEvaluator [__0this -> which__22OpenGLSurfaceEvaluator ])), ( ((__0__X14 -> point__12StoredVertex [0 ])= __1u ), ( ((__0__X14 -> point__12StoredVertex [1 ])= __1v ),
  314. (__0__X14 -> type__12StoredVertex = 2 )) ) ) ;
  315. __0this -> which__22OpenGLSurfaceEvaluator = (1 - __0this -> which__22OpenGLSurfaceEvaluator );
  316. }
  317. else
  318. {
  319. glEvalPoint2 ( (int )__1u , (int )__1v ) ;
  320. }
  321. }
  322. void __glnewtmeshvert__22OpenGLSurf1 (struct OpenGLSurfaceEvaluator *__0this , REAL __1u , REAL __1v )
  323. {
  324. if (__0this -> tmeshing__22OpenGLSurfaceEvaluator ){
  325. struct StoredVertex *__0__X17 ;
  326. if (__0this -> vcount__22OpenGLSurfaceEvaluator == 2 ){
  327. struct StoredVertex *__0__X15 ;
  328. struct StoredVertex *__0__X16 ;
  329. {
  330. __0__X15 = (struct StoredVertex *)(__0this -> vertexCache__22OpenGLSurfaceEvaluator [0 ]);
  331. {
  332. switch (__0__X15 -> type__12StoredVertex )
  333. {
  334. case 1 :
  335. __glcoord2f__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X15 -> coord__12StoredVertex [0 ], __0__X15 -> coord__12StoredVertex [1 ]) ;
  336. break ;
  337. case 2 :
  338. __glpoint2i__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X15 -> point__12StoredVertex [0 ], __0__X15 -> point__12StoredVertex [1 ]) ;
  339. break ;
  340. default :
  341. break ;
  342. }
  343. }
  344. }
  345. {
  346. __0__X16 = (struct StoredVertex *)(__0this -> vertexCache__22OpenGLSurfaceEvaluator [1 ]);
  347. {
  348. switch (__0__X16 -> type__12StoredVertex )
  349. {
  350. case 1 :
  351. __glcoord2f__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X16 -> coord__12StoredVertex [0 ], __0__X16 -> coord__12StoredVertex [1 ]) ;
  352. break ;
  353. case 2 :
  354. __glpoint2i__22OpenGLSurfaceEv0 ( (struct OpenGLSurfaceEvaluator *)((struct OpenGLSurfaceEvaluator *)__0this ), __0__X16 -> point__12StoredVertex [0 ], __0__X16 -> point__12StoredVertex [1 ]) ;
  355. break ;
  356. default :
  357. break ;
  358. }
  359. }
  360. }
  361. glEvalCoord2f ( __1u , __1v ) ;
  362. }
  363. else
  364. {
  365. __0this -> vcount__22OpenGLSurfaceEvaluator ++ ;
  366. }
  367. ( (__0__X17 = (struct StoredVertex *)(__0this -> vertexCache__22OpenGLSurfaceEvaluator [__0this -> which__22OpenGLSurfaceEvaluator ])), ( ((__0__X17 -> coord__12StoredVertex [0 ])= __1u ), ( ((__0__X17 -> coord__12StoredVertex [1 ])= __1v ),
  368. (__0__X17 -> type__12StoredVertex = 1 )) ) ) ;
  369. __0this -> which__22OpenGLSurfaceEvaluator = (1 - __0this -> which__22OpenGLSurfaceEvaluator );
  370. }
  371. else
  372. {
  373. glEvalCoord2f ( __1u , __1v ) ;
  374. }
  375. }
  376. int __glcanRecord__16CachingEvalua0 (struct CachingEvaluator *);
  377. int __glcanPlayAndRecord__16Cachin0 (struct CachingEvaluator *);
  378. int __glcreateHandle__16CachingEva0 (struct CachingEvaluator *, int );
  379. void __glbeginOutput__16CachingEval0 (struct CachingEvaluator *, int , int );
  380. void __glendOutput__16CachingEvalua0 (struct CachingEvaluator *);
  381. void __gldiscardRecording__16Cachin0 (struct CachingEvaluator *, int );
  382. void __glplayRecording__16CachingEv0 (struct CachingEvaluator *, int );
  383. struct __mptr __gl__vtbl__22OpenGLSurfaceEva0[] = {0,0,0,
  384. 0,0,(__vptp)__glcanRecord__16CachingEvalua0 ,
  385. 0,0,(__vptp)__glcanPlayAndRecord__16Cachin0 ,
  386. 0,0,(__vptp)__glcreateHandle__16CachingEva0 ,
  387. 0,0,(__vptp)__glbeginOutput__16CachingEval0 ,
  388. 0,0,(__vptp)__glendOutput__16CachingEvalua0 ,
  389. 0,0,(__vptp)__gldiscardRecording__16Cachin0 ,
  390. 0,0,(__vptp)__glplayRecording__16CachingEv0 ,
  391. 0,0,(__vptp)__glrange2f__22OpenGLSurfaceEv0 ,
  392. 0,0,(__vptp)__gldomain2f__22OpenGLSurfaceE0 ,
  393. 0,0,(__vptp)__glenable__22OpenGLSurfaceEva0 ,
  394. 0,0,(__vptp)__gldisable__22OpenGLSurfaceEv0 ,
  395. 0,0,(__vptp)__glbgnmap2f__22OpenGLSurfaceE0 ,
  396. 0,0,(__vptp)__glmap2f__22OpenGLSurfaceEval0 ,
  397. 0,0,(__vptp)__glmapgrid2f__22OpenGLSurface0 ,
  398. 0,0,(__vptp)__glmapmesh2f__22OpenGLSurface0 ,
  399. 0,0,(__vptp)__glevalcoord2f__22OpenGLSurfa0 ,
  400. 0,0,(__vptp)__glevalpoint2i__22OpenGLSurfa0 ,
  401. 0,0,(__vptp)__glendmap2f__22OpenGLSurfaceE0 ,
  402. 0,0,(__vptp)__glpolymode__22OpenGLSurfaceE0 ,
  403. 0,0,(__vptp)__glbgnline__22OpenGLSurfaceEv0 ,
  404. 0,0,(__vptp)__glendline__22OpenGLSurfaceEv0 ,
  405. 0,0,(__vptp)__glbgnclosedline__22OpenGLSur0 ,
  406. 0,0,(__vptp)__glendclosedline__22OpenGLSur0 ,
  407. 0,0,(__vptp)__glbgntmesh__22OpenGLSurfaceE0 ,
  408. 0,0,(__vptp)__glswaptmesh__22OpenGLSurface0 ,
  409. 0,0,(__vptp)__glendtmesh__22OpenGLSurfaceE0 ,
  410. 0,0,(__vptp)__glbgnqstrip__22OpenGLSurface0 ,
  411. 0,0,(__vptp)__glendqstrip__22OpenGLSurface0 ,
  412. 0,0,0};
  413. extern struct __mptr __gl__vtbl__21BasicSurfaceEval0[];
  414. extern struct __mptr __gl__vtbl__16CachingEvaluator[];
  415. static void *__nw__FUi (
  416. size_t __1s )
  417. {
  418. void *__1__Xp0025pnaiaa ;
  419. __1__Xp0025pnaiaa = malloc ( __1s ) ;
  420. if (__1__Xp0025pnaiaa ){
  421. return __1__Xp0025pnaiaa ;
  422. }
  423. else
  424. {
  425. return __1__Xp0025pnaiaa ;
  426. }
  427. }
  428. struct __mptr* __gl__ptbl_vec_____clients_gls0[] = {
  429. __gl__vtbl__16CachingEvaluator,
  430. __gl__vtbl__21BasicSurfaceEval0,
  431. __gl__vtbl__22OpenGLSurfaceEva0,
  432. };
  433. /* the end */