]> git.wh0rd.org - ICEs.git/blame - 225977/texenvprogram.i.0
initial import
[ICEs.git] / 225977 / texenvprogram.i.0
CommitLineData
45516216 1# 1 "texenvprogram.c"
2# 1 "<built-in>"
3# 1 "<command-line>"
4# 1 "texenvprogram.c"
5# 28 "texenvprogram.c"
6# 1 "glheader.h" 1
7# 51 "glheader.h"
8# 1 "../../../include/dix-config.h" 1
9# 52 "glheader.h" 2
10
11
12# 1 "/usr/include/assert.h" 1 3 4
13# 37 "/usr/include/assert.h" 3 4
14# 1 "/usr/include/features.h" 1 3 4
15# 330 "/usr/include/features.h" 3 4
16# 1 "/usr/include/sys/cdefs.h" 1 3 4
17# 348 "/usr/include/sys/cdefs.h" 3 4
18# 1 "/usr/include/bits/wordsize.h" 1 3 4
19# 349 "/usr/include/sys/cdefs.h" 2 3 4
20# 331 "/usr/include/features.h" 2 3 4
21# 354 "/usr/include/features.h" 3 4
22# 1 "/usr/include/gnu/stubs.h" 1 3 4
23
24
25
26# 1 "/usr/include/bits/wordsize.h" 1 3 4
27# 5 "/usr/include/gnu/stubs.h" 2 3 4
28
29
30
31
32# 1 "/usr/include/gnu/stubs-64.h" 1 3 4
33# 10 "/usr/include/gnu/stubs.h" 2 3 4
34# 355 "/usr/include/features.h" 2 3 4
35# 38 "/usr/include/assert.h" 2 3 4
36# 55 "glheader.h" 2
37# 1 "/usr/include/ctype.h" 1 3 4
38# 28 "/usr/include/ctype.h" 3 4
39# 1 "/usr/include/bits/types.h" 1 3 4
40# 28 "/usr/include/bits/types.h" 3 4
41# 1 "/usr/include/bits/wordsize.h" 1 3 4
42# 29 "/usr/include/bits/types.h" 2 3 4
43
44
45typedef unsigned char __u_char;
46typedef unsigned short int __u_short;
47typedef unsigned int __u_int;
48typedef unsigned long int __u_long;
49
50
51typedef signed char __int8_t;
52typedef unsigned char __uint8_t;
53typedef signed short int __int16_t;
54typedef unsigned short int __uint16_t;
55typedef signed int __int32_t;
56typedef unsigned int __uint32_t;
57
58typedef signed long int __int64_t;
59typedef unsigned long int __uint64_t;
60
61
62
63
64
65
66
67typedef long int __quad_t;
68typedef unsigned long int __u_quad_t;
69# 131 "/usr/include/bits/types.h" 3 4
70# 1 "/usr/include/bits/typesizes.h" 1 3 4
71# 132 "/usr/include/bits/types.h" 2 3 4
72
73
74typedef unsigned long int __dev_t;
75typedef unsigned int __uid_t;
76typedef unsigned int __gid_t;
77typedef unsigned long int __ino_t;
78typedef unsigned long int __ino64_t;
79typedef unsigned int __mode_t;
80typedef unsigned long int __nlink_t;
81typedef long int __off_t;
82typedef long int __off64_t;
83typedef int __pid_t;
84typedef struct { int __val[2]; } __fsid_t;
85typedef long int __clock_t;
86typedef unsigned long int __rlim_t;
87typedef unsigned long int __rlim64_t;
88typedef unsigned int __id_t;
89typedef long int __time_t;
90typedef unsigned int __useconds_t;
91typedef long int __suseconds_t;
92
93typedef int __daddr_t;
94typedef long int __swblk_t;
95typedef int __key_t;
96
97
98typedef int __clockid_t;
99
100
101typedef void * __timer_t;
102
103
104typedef long int __blksize_t;
105
106
107
108
109typedef long int __blkcnt_t;
110typedef long int __blkcnt64_t;
111
112
113typedef unsigned long int __fsblkcnt_t;
114typedef unsigned long int __fsblkcnt64_t;
115
116
117typedef unsigned long int __fsfilcnt_t;
118typedef unsigned long int __fsfilcnt64_t;
119
120typedef long int __ssize_t;
121
122
123
124typedef __off64_t __loff_t;
125typedef __quad_t *__qaddr_t;
126typedef char *__caddr_t;
127
128
129typedef long int __intptr_t;
130
131
132typedef unsigned int __socklen_t;
133# 29 "/usr/include/ctype.h" 2 3 4
134
135
136# 41 "/usr/include/ctype.h" 3 4
137# 1 "/usr/include/endian.h" 1 3 4
138# 37 "/usr/include/endian.h" 3 4
139# 1 "/usr/include/bits/endian.h" 1 3 4
140# 38 "/usr/include/endian.h" 2 3 4
141# 42 "/usr/include/ctype.h" 2 3 4
142
143
144
145
146
147
148enum
149{
150 _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)),
151 _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)),
152 _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)),
153 _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)),
154 _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)),
155 _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)),
156 _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)),
157 _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)),
158 _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)),
159 _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)),
160 _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)),
161 _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8))
162};
163# 81 "/usr/include/ctype.h" 3 4
164extern __const unsigned short int **__ctype_b_loc (void)
165 __attribute__ ((__nothrow__)) __attribute__ ((__const));
166extern __const __int32_t **__ctype_tolower_loc (void)
167 __attribute__ ((__nothrow__)) __attribute__ ((__const));
168extern __const __int32_t **__ctype_toupper_loc (void)
169 __attribute__ ((__nothrow__)) __attribute__ ((__const));
170# 96 "/usr/include/ctype.h" 3 4
171
172
173
174
175
176
177extern int isalnum (int) __attribute__ ((__nothrow__));
178extern int isalpha (int) __attribute__ ((__nothrow__));
179extern int iscntrl (int) __attribute__ ((__nothrow__));
180extern int isdigit (int) __attribute__ ((__nothrow__));
181extern int islower (int) __attribute__ ((__nothrow__));
182extern int isgraph (int) __attribute__ ((__nothrow__));
183extern int isprint (int) __attribute__ ((__nothrow__));
184extern int ispunct (int) __attribute__ ((__nothrow__));
185extern int isspace (int) __attribute__ ((__nothrow__));
186extern int isupper (int) __attribute__ ((__nothrow__));
187extern int isxdigit (int) __attribute__ ((__nothrow__));
188
189
190
191extern int tolower (int __c) __attribute__ ((__nothrow__));
192
193
194extern int toupper (int __c) __attribute__ ((__nothrow__));
195
196
197
198
199
200
201
202
203extern int isblank (int) __attribute__ ((__nothrow__));
204
205
206
207
208
209
210extern int isctype (int __c, int __mask) __attribute__ ((__nothrow__));
211
212
213
214
215
216
217extern int isascii (int __c) __attribute__ ((__nothrow__));
218
219
220
221extern int toascii (int __c) __attribute__ ((__nothrow__));
222
223
224
225extern int _toupper (int) __attribute__ ((__nothrow__));
226extern int _tolower (int) __attribute__ ((__nothrow__));
227# 190 "/usr/include/ctype.h" 3 4
228extern __inline int
229__attribute__ ((__nothrow__)) tolower (int __c)
230{
231 return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c;
232}
233
234extern __inline int
235__attribute__ ((__nothrow__)) toupper (int __c)
236{
237 return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c;
238}
239# 233 "/usr/include/ctype.h" 3 4
240# 1 "/usr/include/xlocale.h" 1 3 4
241# 28 "/usr/include/xlocale.h" 3 4
242typedef struct __locale_struct
243{
244
245 struct locale_data *__locales[13];
246
247
248 const unsigned short int *__ctype_b;
249 const int *__ctype_tolower;
250 const int *__ctype_toupper;
251
252
253 const char *__names[13];
254} *__locale_t;
255# 234 "/usr/include/ctype.h" 2 3 4
256# 247 "/usr/include/ctype.h" 3 4
257extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__));
258extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__));
259extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__));
260extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
261extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__));
262extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__));
263extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__));
264extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__));
265extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__));
266extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__));
267extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
268
269extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__));
270
271
272
273extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
274extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
275
276
277extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
278extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
279# 323 "/usr/include/ctype.h" 3 4
280
281# 56 "glheader.h" 2
282
283
284
285# 1 "/usr/include/math.h" 1 3 4
286# 30 "/usr/include/math.h" 3 4
287
288
289
290
291# 1 "/usr/include/bits/huge_val.h" 1 3 4
292# 35 "/usr/include/math.h" 2 3 4
293
294# 1 "/usr/include/bits/huge_valf.h" 1 3 4
295# 37 "/usr/include/math.h" 2 3 4
296# 1 "/usr/include/bits/huge_vall.h" 1 3 4
297# 38 "/usr/include/math.h" 2 3 4
298
299
300# 1 "/usr/include/bits/inf.h" 1 3 4
301# 41 "/usr/include/math.h" 2 3 4
302
303
304# 1 "/usr/include/bits/nan.h" 1 3 4
305# 44 "/usr/include/math.h" 2 3 4
306
307
308
309# 1 "/usr/include/bits/mathdef.h" 1 3 4
310# 26 "/usr/include/bits/mathdef.h" 3 4
311# 1 "/usr/include/bits/wordsize.h" 1 3 4
312# 27 "/usr/include/bits/mathdef.h" 2 3 4
313
314
315
316
317typedef float float_t;
318typedef double double_t;
319# 48 "/usr/include/math.h" 2 3 4
320# 71 "/usr/include/math.h" 3 4
321# 1 "/usr/include/bits/mathcalls.h" 1 3 4
322# 53 "/usr/include/bits/mathcalls.h" 3 4
323
324
325extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
326
327extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
328
329extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
330
331extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
332
333
334extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
335
336extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
337
338extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
339
340
341
342
343extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
344
345extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
346
347extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
348
349
350
351
352extern void sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); extern void __sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__));
353
354
355
356
357
358
359extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
360
361extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
362
363extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
364
365
366
367
368
369
370
371extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
372
373
374extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
375
376
377extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
378
379
380extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
381
382
383extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
384
385
386extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
387
388
389
390
391extern double exp10 (double __x) __attribute__ ((__nothrow__)); extern double __exp10 (double __x) __attribute__ ((__nothrow__));
392
393extern double pow10 (double __x) __attribute__ ((__nothrow__)); extern double __pow10 (double __x) __attribute__ ((__nothrow__));
394
395
396
397
398
399extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
400
401
402extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
403
404
405extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
406
407
408
409
410
411
412extern double exp2 (double __x) __attribute__ ((__nothrow__)); extern double __exp2 (double __x) __attribute__ ((__nothrow__));
413
414
415extern double log2 (double __x) __attribute__ ((__nothrow__)); extern double __log2 (double __x) __attribute__ ((__nothrow__));
416
417
418
419
420
421
422
423
424extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
425
426
427extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
428
429
430
431
432
433extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
434
435
436
437
438
439
440extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
441
442
443
444
445
446
447
448
449extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
450
451
452extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
453
454
455extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
456
457
458extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
459
460
461
462
463extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
464
465
466extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
467
468
469
470
471
472extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
473
474
475extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
476
477
478extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
479
480
481
482extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
483
484
485
486
487
488extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
489
490
491
492
493
494
495extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
496
497
498
499
500
501extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
502
503
504
505extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
506
507
508extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
509extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
510extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
511extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
512extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
513extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
514
515
516
517
518
519
520extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
521extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
522extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
523
524
525
526
527
528
529extern double tgamma (double) __attribute__ ((__nothrow__)); extern double __tgamma (double) __attribute__ ((__nothrow__));
530
531
532
533
534
535extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
536
537
538
539
540
541
542extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
543
544
545
546
547
548
549
550extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
551
552
553extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
554
555extern double nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
556
557
558
559extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
560
561
562
563extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
564
565
566
567extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
568
569
570
571
572extern double scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double __scalbln (double __x, long int __n) __attribute__ ((__nothrow__));
573
574
575
576extern double nearbyint (double __x) __attribute__ ((__nothrow__)); extern double __nearbyint (double __x) __attribute__ ((__nothrow__));
577
578
579
580extern double round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
581
582
583
584extern double trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
585
586
587
588
589extern double remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern double __remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__));
590
591
592
593
594
595
596extern long int lrint (double __x) __attribute__ ((__nothrow__)); extern long int __lrint (double __x) __attribute__ ((__nothrow__));
597extern long long int llrint (double __x) __attribute__ ((__nothrow__)); extern long long int __llrint (double __x) __attribute__ ((__nothrow__));
598
599
600
601extern long int lround (double __x) __attribute__ ((__nothrow__)); extern long int __lround (double __x) __attribute__ ((__nothrow__));
602extern long long int llround (double __x) __attribute__ ((__nothrow__)); extern long long int __llround (double __x) __attribute__ ((__nothrow__));
603
604
605
606extern double fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fdim (double __x, double __y) __attribute__ ((__nothrow__));
607
608
609extern double fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmax (double __x, double __y) __attribute__ ((__nothrow__));
610
611
612extern double fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmin (double __x, double __y) __attribute__ ((__nothrow__));
613
614
615
616extern int __fpclassify (double __value) __attribute__ ((__nothrow__))
617 __attribute__ ((__const__));
618
619
620extern int __signbit (double __value) __attribute__ ((__nothrow__))
621 __attribute__ ((__const__));
622
623
624
625extern double fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double __fma (double __x, double __y, double __z) __attribute__ ((__nothrow__));
626
627
628
629
630
631
632
633
634extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__));
635# 72 "/usr/include/math.h" 2 3 4
636# 94 "/usr/include/math.h" 3 4
637# 1 "/usr/include/bits/mathcalls.h" 1 3 4
638# 53 "/usr/include/bits/mathcalls.h" 3 4
639
640
641extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
642
643extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
644
645extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
646
647extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
648
649
650extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
651
652extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
653
654extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
655
656
657
658
659extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
660
661extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
662
663extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
664
665
666
667
668extern void sincosf (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); extern void __sincosf (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__));
669
670
671
672
673
674
675extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
676
677extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
678
679extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
680
681
682
683
684
685
686
687extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
688
689
690extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
691
692
693extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
694
695
696extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
697
698
699extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
700
701
702extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
703
704
705
706
707extern float exp10f (float __x) __attribute__ ((__nothrow__)); extern float __exp10f (float __x) __attribute__ ((__nothrow__));
708
709extern float pow10f (float __x) __attribute__ ((__nothrow__)); extern float __pow10f (float __x) __attribute__ ((__nothrow__));
710
711
712
713
714
715extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
716
717
718extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
719
720
721extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
722
723
724
725
726
727
728extern float exp2f (float __x) __attribute__ ((__nothrow__)); extern float __exp2f (float __x) __attribute__ ((__nothrow__));
729
730
731extern float log2f (float __x) __attribute__ ((__nothrow__)); extern float __log2f (float __x) __attribute__ ((__nothrow__));
732
733
734
735
736
737
738
739
740extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
741
742
743extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
744
745
746
747
748
749extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
750
751
752
753
754
755
756extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
757
758
759
760
761
762
763
764
765extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
766
767
768extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
769
770
771extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
772
773
774extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
775
776
777
778
779extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
780
781
782extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
783
784
785
786
787
788extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
789
790
791extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
792
793
794extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
795
796
797
798extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
799
800
801
802
803
804extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
805
806
807
808
809
810
811extern float nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
812
813
814
815
816
817extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
818
819
820
821extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
822
823
824extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
825extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
826extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
827extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
828extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
829extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
830
831
832
833
834
835
836extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
837extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
838extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
839
840
841
842
843
844
845extern float tgammaf (float) __attribute__ ((__nothrow__)); extern float __tgammaf (float) __attribute__ ((__nothrow__));
846
847
848
849
850
851extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
852
853
854
855
856
857
858extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
859
860
861
862
863
864
865
866extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
867
868
869extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
870
871extern float nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
872
873
874
875extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
876
877
878
879extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
880
881
882
883extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
884
885
886
887
888extern float scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float __scalblnf (float __x, long int __n) __attribute__ ((__nothrow__));
889
890
891
892extern float nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float __nearbyintf (float __x) __attribute__ ((__nothrow__));
893
894
895
896extern float roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
897
898
899
900extern float truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
901
902
903
904
905extern float remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern float __remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__));
906
907
908
909
910
911
912extern long int lrintf (float __x) __attribute__ ((__nothrow__)); extern long int __lrintf (float __x) __attribute__ ((__nothrow__));
913extern long long int llrintf (float __x) __attribute__ ((__nothrow__)); extern long long int __llrintf (float __x) __attribute__ ((__nothrow__));
914
915
916
917extern long int lroundf (float __x) __attribute__ ((__nothrow__)); extern long int __lroundf (float __x) __attribute__ ((__nothrow__));
918extern long long int llroundf (float __x) __attribute__ ((__nothrow__)); extern long long int __llroundf (float __x) __attribute__ ((__nothrow__));
919
920
921
922extern float fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fdimf (float __x, float __y) __attribute__ ((__nothrow__));
923
924
925extern float fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmaxf (float __x, float __y) __attribute__ ((__nothrow__));
926
927
928extern float fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fminf (float __x, float __y) __attribute__ ((__nothrow__));
929
930
931
932extern int __fpclassifyf (float __value) __attribute__ ((__nothrow__))
933 __attribute__ ((__const__));
934
935
936extern int __signbitf (float __value) __attribute__ ((__nothrow__))
937 __attribute__ ((__const__));
938
939
940
941extern float fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float __fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__));
942
943
944
945
946
947
948
949
950extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__));
951# 95 "/usr/include/math.h" 2 3 4
952# 141 "/usr/include/math.h" 3 4
953# 1 "/usr/include/bits/mathcalls.h" 1 3 4
954# 53 "/usr/include/bits/mathcalls.h" 3 4
955
956
957extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__));
958
959extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__));
960
961extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__));
962
963extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__));
964
965
966extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__));
967
968extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__));
969
970extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__));
971
972
973
974
975extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__));
976
977extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__));
978
979extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__));
980
981
982
983
984extern void sincosl (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__));
985
986
987
988
989
990
991extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__));
992
993extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__));
994
995extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__));
996
997
998
999
1000
1001
1002
1003extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__));
1004
1005
1006extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__));
1007
1008
1009extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__));
1010
1011
1012extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__));
1013
1014
1015extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__));
1016
1017
1018extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__));
1019
1020
1021
1022
1023extern long double exp10l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp10l (long double __x) __attribute__ ((__nothrow__));
1024
1025extern long double pow10l (long double __x) __attribute__ ((__nothrow__)); extern long double __pow10l (long double __x) __attribute__ ((__nothrow__));
1026
1027
1028
1029
1030
1031extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__));
1032
1033
1034extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__));
1035
1036
1037extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__));
1038
1039
1040
1041
1042
1043
1044extern long double exp2l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp2l (long double __x) __attribute__ ((__nothrow__));
1045
1046
1047extern long double log2l (long double __x) __attribute__ ((__nothrow__)); extern long double __log2l (long double __x) __attribute__ ((__nothrow__));
1048
1049
1050
1051
1052
1053
1054
1055
1056extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__));
1057
1058
1059extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__));
1060
1061
1062
1063
1064
1065extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__));
1066
1067
1068
1069
1070
1071
1072extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__));
1073
1074
1075
1076
1077
1078
1079
1080
1081extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1082
1083
1084extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1085
1086
1087extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1088
1089
1090extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__));
1091
1092
1093
1094
1095extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1096
1097
1098extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1099
1100
1101
1102
1103
1104extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1105
1106
1107extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1108
1109
1110extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__));
1111
1112
1113
1114extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__));
1115
1116
1117
1118
1119
1120extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1121
1122
1123
1124
1125
1126
1127extern long double nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1128
1129
1130
1131
1132
1133extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1134
1135
1136
1137extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1138
1139
1140extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__));
1141extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__));
1142extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__));
1143extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__));
1144extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__));
1145extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__));
1146
1147
1148
1149
1150
1151
1152extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__));
1153extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__));
1154extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__));
1155
1156
1157
1158
1159
1160
1161extern long double tgammal (long double) __attribute__ ((__nothrow__)); extern long double __tgammal (long double) __attribute__ ((__nothrow__));
1162
1163
1164
1165
1166
1167extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__));
1168
1169
1170
1171
1172
1173
1174extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__));
1175
1176
1177
1178
1179
1180
1181
1182extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__));
1183
1184
1185extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1186
1187extern long double nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1188
1189
1190
1191extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__));
1192
1193
1194
1195extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__));
1196
1197
1198
1199extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__));
1200
1201
1202
1203
1204extern long double scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); extern long double __scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__));
1205
1206
1207
1208extern long double nearbyintl (long double __x) __attribute__ ((__nothrow__)); extern long double __nearbyintl (long double __x) __attribute__ ((__nothrow__));
1209
1210
1211
1212extern long double roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1213
1214
1215
1216extern long double truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1217
1218
1219
1220
1221extern long double remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); extern long double __remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__));
1222
1223
1224
1225
1226
1227
1228extern long int lrintl (long double __x) __attribute__ ((__nothrow__)); extern long int __lrintl (long double __x) __attribute__ ((__nothrow__));
1229extern long long int llrintl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llrintl (long double __x) __attribute__ ((__nothrow__));
1230
1231
1232
1233extern long int lroundl (long double __x) __attribute__ ((__nothrow__)); extern long int __lroundl (long double __x) __attribute__ ((__nothrow__));
1234extern long long int llroundl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llroundl (long double __x) __attribute__ ((__nothrow__));
1235
1236
1237
1238extern long double fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fdiml (long double __x, long double __y) __attribute__ ((__nothrow__));
1239
1240
1241extern long double fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__));
1242
1243
1244extern long double fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fminl (long double __x, long double __y) __attribute__ ((__nothrow__));
1245
1246
1247
1248extern int __fpclassifyl (long double __value) __attribute__ ((__nothrow__))
1249 __attribute__ ((__const__));
1250
1251
1252extern int __signbitl (long double __value) __attribute__ ((__nothrow__))
1253 __attribute__ ((__const__));
1254
1255
1256
1257extern long double fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); extern long double __fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__));
1258
1259
1260
1261
1262
1263
1264
1265
1266extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__));
1267# 142 "/usr/include/math.h" 2 3 4
1268# 157 "/usr/include/math.h" 3 4
1269extern int signgam;
1270# 198 "/usr/include/math.h" 3 4
1271enum
1272 {
1273 FP_NAN,
1274
1275 FP_INFINITE,
1276
1277 FP_ZERO,
1278
1279 FP_SUBNORMAL,
1280
1281 FP_NORMAL
1282
1283 };
1284# 284 "/usr/include/math.h" 3 4
1285typedef enum
1286{
1287 _IEEE_ = -1,
1288 _SVID_,
1289 _XOPEN_,
1290 _POSIX_,
1291 _ISOC_
1292} _LIB_VERSION_TYPE;
1293
1294
1295
1296
1297extern _LIB_VERSION_TYPE _LIB_VERSION;
1298# 309 "/usr/include/math.h" 3 4
1299struct exception
1300
1301 {
1302 int type;
1303 char *name;
1304 double arg1;
1305 double arg2;
1306 double retval;
1307 };
1308
1309
1310
1311
1312extern int matherr (struct exception *__exc);
1313# 409 "/usr/include/math.h" 3 4
1314# 1 "/usr/include/bits/mathinline.h" 1 3 4
1315# 35 "/usr/include/bits/mathinline.h" 3 4
1316extern __inline int
1317__attribute__ ((__nothrow__)) __signbitf (float __x)
1318{
1319 __extension__ union { float __f; int __i; } __u = { __f: __x };
1320 return __u.__i < 0;
1321}
1322extern __inline int
1323__attribute__ ((__nothrow__)) __signbit (double __x)
1324{
1325 __extension__ union { double __d; int __i[2]; } __u = { __d: __x };
1326 return __u.__i[1] < 0;
1327}
1328extern __inline int
1329__attribute__ ((__nothrow__)) __signbitl (long double __x)
1330{
1331 __extension__ union { long double __l; int __i[3]; } __u = { __l: __x };
1332 return (__u.__i[2] & 0x8000) != 0;
1333}
1334# 410 "/usr/include/math.h" 2 3 4
1335# 465 "/usr/include/math.h" 3 4
1336
1337# 60 "glheader.h" 2
1338
1339# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/limits.h" 1 3 4
1340# 11 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/limits.h" 3 4
1341# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/syslimits.h" 1 3 4
1342
1343
1344
1345
1346
1347
1348# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/limits.h" 1 3 4
1349# 122 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/limits.h" 3 4
1350# 1 "/usr/include/limits.h" 1 3 4
1351# 145 "/usr/include/limits.h" 3 4
1352# 1 "/usr/include/bits/posix1_lim.h" 1 3 4
1353# 153 "/usr/include/bits/posix1_lim.h" 3 4
1354# 1 "/usr/include/bits/local_lim.h" 1 3 4
1355# 39 "/usr/include/bits/local_lim.h" 3 4
1356# 1 "/usr/include/linux/limits.h" 1 3 4
1357# 40 "/usr/include/bits/local_lim.h" 2 3 4
1358# 154 "/usr/include/bits/posix1_lim.h" 2 3 4
1359# 146 "/usr/include/limits.h" 2 3 4
1360
1361
1362
1363# 1 "/usr/include/bits/posix2_lim.h" 1 3 4
1364# 150 "/usr/include/limits.h" 2 3 4
1365
1366
1367
1368# 1 "/usr/include/bits/xopen_lim.h" 1 3 4
1369# 34 "/usr/include/bits/xopen_lim.h" 3 4
1370# 1 "/usr/include/bits/stdio_lim.h" 1 3 4
1371# 35 "/usr/include/bits/xopen_lim.h" 2 3 4
1372# 154 "/usr/include/limits.h" 2 3 4
1373# 123 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/limits.h" 2 3 4
1374# 8 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/syslimits.h" 2 3 4
1375# 12 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include-fixed/limits.h" 2 3 4
1376# 62 "glheader.h" 2
1377# 1 "/usr/include/stdlib.h" 1 3 4
1378# 33 "/usr/include/stdlib.h" 3 4
1379# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
1380# 214 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 3 4
1381typedef long unsigned int size_t;
1382# 326 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 3 4
1383typedef int wchar_t;
1384# 34 "/usr/include/stdlib.h" 2 3 4
1385
1386
1387
1388
1389
1390
1391
1392
1393# 1 "/usr/include/bits/waitflags.h" 1 3 4
1394# 43 "/usr/include/stdlib.h" 2 3 4
1395# 1 "/usr/include/bits/waitstatus.h" 1 3 4
1396# 67 "/usr/include/bits/waitstatus.h" 3 4
1397union wait
1398 {
1399 int w_status;
1400 struct
1401 {
1402
1403 unsigned int __w_termsig:7;
1404 unsigned int __w_coredump:1;
1405 unsigned int __w_retcode:8;
1406 unsigned int:16;
1407
1408
1409
1410
1411
1412
1413
1414 } __wait_terminated;
1415 struct
1416 {
1417
1418 unsigned int __w_stopval:8;
1419 unsigned int __w_stopsig:8;
1420 unsigned int:16;
1421
1422
1423
1424
1425
1426
1427 } __wait_stopped;
1428 };
1429# 44 "/usr/include/stdlib.h" 2 3 4
1430# 68 "/usr/include/stdlib.h" 3 4
1431typedef union
1432 {
1433 union wait *__uptr;
1434 int *__iptr;
1435 } __WAIT_STATUS __attribute__ ((__transparent_union__));
1436# 96 "/usr/include/stdlib.h" 3 4
1437
1438
1439typedef struct
1440 {
1441 int quot;
1442 int rem;
1443 } div_t;
1444
1445
1446
1447typedef struct
1448 {
1449 long int quot;
1450 long int rem;
1451 } ldiv_t;
1452
1453
1454
1455
1456
1457
1458
1459__extension__ typedef struct
1460 {
1461 long long int quot;
1462 long long int rem;
1463 } lldiv_t;
1464
1465
1466# 140 "/usr/include/stdlib.h" 3 4
1467extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
1468
1469
1470
1471
1472extern double atof (__const char *__nptr)
1473 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1474
1475extern int atoi (__const char *__nptr)
1476 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1477
1478extern long int atol (__const char *__nptr)
1479 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1480
1481
1482
1483
1484
1485__extension__ extern long long int atoll (__const char *__nptr)
1486 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1487
1488
1489
1490
1491
1492extern double strtod (__const char *__restrict __nptr,
1493 char **__restrict __endptr)
1494 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1495
1496
1497
1498
1499
1500extern float strtof (__const char *__restrict __nptr,
1501 char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1502
1503extern long double strtold (__const char *__restrict __nptr,
1504 char **__restrict __endptr)
1505 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1506
1507
1508
1509
1510
1511extern long int strtol (__const char *__restrict __nptr,
1512 char **__restrict __endptr, int __base)
1513 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1514
1515extern unsigned long int strtoul (__const char *__restrict __nptr,
1516 char **__restrict __endptr, int __base)
1517 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1518
1519
1520
1521
1522__extension__
1523extern long long int strtoq (__const char *__restrict __nptr,
1524 char **__restrict __endptr, int __base)
1525 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1526
1527__extension__
1528extern unsigned long long int strtouq (__const char *__restrict __nptr,
1529 char **__restrict __endptr, int __base)
1530 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1531
1532
1533
1534
1535
1536__extension__
1537extern long long int strtoll (__const char *__restrict __nptr,
1538 char **__restrict __endptr, int __base)
1539 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1540
1541__extension__
1542extern unsigned long long int strtoull (__const char *__restrict __nptr,
1543 char **__restrict __endptr, int __base)
1544 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1545
1546# 240 "/usr/include/stdlib.h" 3 4
1547extern long int strtol_l (__const char *__restrict __nptr,
1548 char **__restrict __endptr, int __base,
1549 __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
1550
1551extern unsigned long int strtoul_l (__const char *__restrict __nptr,
1552 char **__restrict __endptr,
1553 int __base, __locale_t __loc)
1554 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
1555
1556__extension__
1557extern long long int strtoll_l (__const char *__restrict __nptr,
1558 char **__restrict __endptr, int __base,
1559 __locale_t __loc)
1560 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
1561
1562__extension__
1563extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
1564 char **__restrict __endptr,
1565 int __base, __locale_t __loc)
1566 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ;
1567
1568extern double strtod_l (__const char *__restrict __nptr,
1569 char **__restrict __endptr, __locale_t __loc)
1570 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
1571
1572extern float strtof_l (__const char *__restrict __nptr,
1573 char **__restrict __endptr, __locale_t __loc)
1574 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
1575
1576extern long double strtold_l (__const char *__restrict __nptr,
1577 char **__restrict __endptr,
1578 __locale_t __loc)
1579 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
1580
1581
1582
1583
1584
1585extern __inline double
1586__attribute__ ((__nothrow__)) atof (__const char *__nptr)
1587{
1588 return strtod (__nptr, (char **) ((void *)0));
1589}
1590extern __inline int
1591__attribute__ ((__nothrow__)) atoi (__const char *__nptr)
1592{
1593 return (int) strtol (__nptr, (char **) ((void *)0), 10);
1594}
1595extern __inline long int
1596__attribute__ ((__nothrow__)) atol (__const char *__nptr)
1597{
1598 return strtol (__nptr, (char **) ((void *)0), 10);
1599}
1600
1601
1602
1603
1604__extension__ extern __inline long long int
1605__attribute__ ((__nothrow__)) atoll (__const char *__nptr)
1606{
1607 return strtoll (__nptr, (char **) ((void *)0), 10);
1608}
1609
1610# 311 "/usr/include/stdlib.h" 3 4
1611extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
1612
1613
1614extern long int a64l (__const char *__s)
1615 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1616
1617
1618
1619
1620# 1 "/usr/include/sys/types.h" 1 3 4
1621# 29 "/usr/include/sys/types.h" 3 4
1622
1623
1624
1625
1626
1627
1628typedef __u_char u_char;
1629typedef __u_short u_short;
1630typedef __u_int u_int;
1631typedef __u_long u_long;
1632typedef __quad_t quad_t;
1633typedef __u_quad_t u_quad_t;
1634typedef __fsid_t fsid_t;
1635
1636
1637
1638
1639typedef __loff_t loff_t;
1640
1641
1642
1643typedef __ino_t ino_t;
1644
1645
1646
1647
1648
1649
1650typedef __ino64_t ino64_t;
1651
1652
1653
1654
1655typedef __dev_t dev_t;
1656
1657
1658
1659
1660typedef __gid_t gid_t;
1661
1662
1663
1664
1665typedef __mode_t mode_t;
1666
1667
1668
1669
1670typedef __nlink_t nlink_t;
1671
1672
1673
1674
1675typedef __uid_t uid_t;
1676
1677
1678
1679
1680
1681typedef __off_t off_t;
1682
1683
1684
1685
1686
1687
1688typedef __off64_t off64_t;
1689
1690
1691
1692
1693typedef __pid_t pid_t;
1694
1695
1696
1697
1698typedef __id_t id_t;
1699
1700
1701
1702
1703typedef __ssize_t ssize_t;
1704
1705
1706
1707
1708
1709typedef __daddr_t daddr_t;
1710typedef __caddr_t caddr_t;
1711
1712
1713
1714
1715
1716typedef __key_t key_t;
1717# 133 "/usr/include/sys/types.h" 3 4
1718# 1 "/usr/include/time.h" 1 3 4
1719# 59 "/usr/include/time.h" 3 4
1720
1721
1722typedef __clock_t clock_t;
1723
1724
1725
1726# 75 "/usr/include/time.h" 3 4
1727
1728
1729typedef __time_t time_t;
1730
1731
1732
1733# 93 "/usr/include/time.h" 3 4
1734typedef __clockid_t clockid_t;
1735# 105 "/usr/include/time.h" 3 4
1736typedef __timer_t timer_t;
1737# 134 "/usr/include/sys/types.h" 2 3 4
1738
1739
1740
1741typedef __useconds_t useconds_t;
1742
1743
1744
1745typedef __suseconds_t suseconds_t;
1746
1747
1748
1749
1750
1751# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
1752# 148 "/usr/include/sys/types.h" 2 3 4
1753
1754
1755
1756typedef unsigned long int ulong;
1757typedef unsigned short int ushort;
1758typedef unsigned int uint;
1759# 195 "/usr/include/sys/types.h" 3 4
1760typedef int int8_t __attribute__ ((__mode__ (__QI__)));
1761typedef int int16_t __attribute__ ((__mode__ (__HI__)));
1762typedef int int32_t __attribute__ ((__mode__ (__SI__)));
1763typedef int int64_t __attribute__ ((__mode__ (__DI__)));
1764
1765
1766typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1767typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1768typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1769typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1770
1771typedef int register_t __attribute__ ((__mode__ (__word__)));
1772# 220 "/usr/include/sys/types.h" 3 4
1773# 1 "/usr/include/sys/select.h" 1 3 4
1774# 31 "/usr/include/sys/select.h" 3 4
1775# 1 "/usr/include/bits/select.h" 1 3 4
1776# 32 "/usr/include/sys/select.h" 2 3 4
1777
1778
1779# 1 "/usr/include/bits/sigset.h" 1 3 4
1780# 24 "/usr/include/bits/sigset.h" 3 4
1781typedef int __sig_atomic_t;
1782
1783
1784
1785
1786typedef struct
1787 {
1788 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1789 } __sigset_t;
1790# 35 "/usr/include/sys/select.h" 2 3 4
1791
1792
1793
1794typedef __sigset_t sigset_t;
1795
1796
1797
1798
1799
1800# 1 "/usr/include/time.h" 1 3 4
1801# 121 "/usr/include/time.h" 3 4
1802struct timespec
1803 {
1804 __time_t tv_sec;
1805 long int tv_nsec;
1806 };
1807# 45 "/usr/include/sys/select.h" 2 3 4
1808
1809# 1 "/usr/include/bits/time.h" 1 3 4
1810# 69 "/usr/include/bits/time.h" 3 4
1811struct timeval
1812 {
1813 __time_t tv_sec;
1814 __suseconds_t tv_usec;
1815 };
1816# 47 "/usr/include/sys/select.h" 2 3 4
1817# 55 "/usr/include/sys/select.h" 3 4
1818typedef long int __fd_mask;
1819# 67 "/usr/include/sys/select.h" 3 4
1820typedef struct
1821 {
1822
1823
1824
1825 __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];
1826
1827
1828
1829
1830
1831 } fd_set;
1832
1833
1834
1835
1836
1837
1838typedef __fd_mask fd_mask;
1839# 99 "/usr/include/sys/select.h" 3 4
1840
1841# 109 "/usr/include/sys/select.h" 3 4
1842extern int select (int __nfds, fd_set *__restrict __readfds,
1843 fd_set *__restrict __writefds,
1844 fd_set *__restrict __exceptfds,
1845 struct timeval *__restrict __timeout);
1846# 121 "/usr/include/sys/select.h" 3 4
1847extern int pselect (int __nfds, fd_set *__restrict __readfds,
1848 fd_set *__restrict __writefds,
1849 fd_set *__restrict __exceptfds,
1850 const struct timespec *__restrict __timeout,
1851 const __sigset_t *__restrict __sigmask);
1852
1853
1854
1855# 221 "/usr/include/sys/types.h" 2 3 4
1856
1857
1858# 1 "/usr/include/sys/sysmacros.h" 1 3 4
1859# 30 "/usr/include/sys/sysmacros.h" 3 4
1860__extension__
1861extern unsigned int gnu_dev_major (unsigned long long int __dev)
1862 __attribute__ ((__nothrow__));
1863__extension__
1864extern unsigned int gnu_dev_minor (unsigned long long int __dev)
1865 __attribute__ ((__nothrow__));
1866__extension__
1867extern unsigned long long int gnu_dev_makedev (unsigned int __major,
1868 unsigned int __minor)
1869 __attribute__ ((__nothrow__));
1870
1871
1872__extension__ extern __inline unsigned int
1873__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
1874{
1875 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1876}
1877
1878__extension__ extern __inline unsigned int
1879__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
1880{
1881 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
1882}
1883
1884__extension__ extern __inline unsigned long long int
1885__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
1886{
1887 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1888 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1889 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1890}
1891# 224 "/usr/include/sys/types.h" 2 3 4
1892
1893
1894
1895
1896typedef __blksize_t blksize_t;
1897
1898
1899
1900
1901
1902
1903typedef __blkcnt_t blkcnt_t;
1904
1905
1906
1907typedef __fsblkcnt_t fsblkcnt_t;
1908
1909
1910
1911typedef __fsfilcnt_t fsfilcnt_t;
1912# 262 "/usr/include/sys/types.h" 3 4
1913typedef __blkcnt64_t blkcnt64_t;
1914typedef __fsblkcnt64_t fsblkcnt64_t;
1915typedef __fsfilcnt64_t fsfilcnt64_t;
1916
1917
1918
1919
1920
1921# 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1922# 23 "/usr/include/bits/pthreadtypes.h" 3 4
1923# 1 "/usr/include/bits/wordsize.h" 1 3 4
1924# 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
1925# 50 "/usr/include/bits/pthreadtypes.h" 3 4
1926typedef unsigned long int pthread_t;
1927
1928
1929typedef union
1930{
1931 char __size[56];
1932 long int __align;
1933} pthread_attr_t;
1934
1935
1936
1937typedef struct __pthread_internal_list
1938{
1939 struct __pthread_internal_list *__prev;
1940 struct __pthread_internal_list *__next;
1941} __pthread_list_t;
1942# 76 "/usr/include/bits/pthreadtypes.h" 3 4
1943typedef union
1944{
1945 struct __pthread_mutex_s
1946 {
1947 int __lock;
1948 unsigned int __count;
1949 int __owner;
1950
1951 unsigned int __nusers;
1952
1953
1954
1955 int __kind;
1956
1957 int __spins;
1958 __pthread_list_t __list;
1959# 101 "/usr/include/bits/pthreadtypes.h" 3 4
1960 } __data;
1961 char __size[40];
1962 long int __align;
1963} pthread_mutex_t;
1964
1965typedef union
1966{
1967 char __size[4];
1968 int __align;
1969} pthread_mutexattr_t;
1970
1971
1972
1973
1974typedef union
1975{
1976 struct
1977 {
1978 int __lock;
1979 unsigned int __futex;
1980 __extension__ unsigned long long int __total_seq;
1981 __extension__ unsigned long long int __wakeup_seq;
1982 __extension__ unsigned long long int __woken_seq;
1983 void *__mutex;
1984 unsigned int __nwaiters;
1985 unsigned int __broadcast_seq;
1986 } __data;
1987 char __size[48];
1988 __extension__ long long int __align;
1989} pthread_cond_t;
1990
1991typedef union
1992{
1993 char __size[4];
1994 int __align;
1995} pthread_condattr_t;
1996
1997
1998
1999typedef unsigned int pthread_key_t;
2000
2001
2002
2003typedef int pthread_once_t;
2004
2005
2006
2007
2008
2009typedef union
2010{
2011
2012 struct
2013 {
2014 int __lock;
2015 unsigned int __nr_readers;
2016 unsigned int __readers_wakeup;
2017 unsigned int __writer_wakeup;
2018 unsigned int __nr_readers_queued;
2019 unsigned int __nr_writers_queued;
2020 int __writer;
2021 int __shared;
2022 unsigned long int __pad1;
2023 unsigned long int __pad2;
2024
2025
2026 unsigned int __flags;
2027 } __data;
2028# 187 "/usr/include/bits/pthreadtypes.h" 3 4
2029 char __size[56];
2030 long int __align;
2031} pthread_rwlock_t;
2032
2033typedef union
2034{
2035 char __size[8];
2036 long int __align;
2037} pthread_rwlockattr_t;
2038
2039
2040
2041
2042
2043typedef volatile int pthread_spinlock_t;
2044
2045
2046
2047
2048typedef union
2049{
2050 char __size[32];
2051 long int __align;
2052} pthread_barrier_t;
2053
2054typedef union
2055{
2056 char __size[4];
2057 int __align;
2058} pthread_barrierattr_t;
2059# 271 "/usr/include/sys/types.h" 2 3 4
2060
2061
2062
2063# 321 "/usr/include/stdlib.h" 2 3 4
2064
2065
2066
2067
2068
2069
2070extern long int random (void) __attribute__ ((__nothrow__));
2071
2072
2073extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
2074
2075
2076
2077
2078
2079extern char *initstate (unsigned int __seed, char *__statebuf,
2080 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2081
2082
2083
2084extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2085
2086
2087
2088
2089
2090
2091
2092struct random_data
2093 {
2094 int32_t *fptr;
2095 int32_t *rptr;
2096 int32_t *state;
2097 int rand_type;
2098 int rand_deg;
2099 int rand_sep;
2100 int32_t *end_ptr;
2101 };
2102
2103extern int random_r (struct random_data *__restrict __buf,
2104 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2105
2106extern int srandom_r (unsigned int __seed, struct random_data *__buf)
2107 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2108
2109extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
2110 size_t __statelen,
2111 struct random_data *__restrict __buf)
2112 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
2113
2114extern int setstate_r (char *__restrict __statebuf,
2115 struct random_data *__restrict __buf)
2116 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2117
2118
2119
2120
2121
2122
2123extern int rand (void) __attribute__ ((__nothrow__));
2124
2125extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
2126
2127
2128
2129
2130extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
2131
2132
2133
2134
2135
2136
2137
2138extern double drand48 (void) __attribute__ ((__nothrow__));
2139extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2140
2141
2142extern long int lrand48 (void) __attribute__ ((__nothrow__));
2143extern long int nrand48 (unsigned short int __xsubi[3])
2144 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2145
2146
2147extern long int mrand48 (void) __attribute__ ((__nothrow__));
2148extern long int jrand48 (unsigned short int __xsubi[3])
2149 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2150
2151
2152extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
2153extern unsigned short int *seed48 (unsigned short int __seed16v[3])
2154 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2155extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2156
2157
2158
2159
2160
2161struct drand48_data
2162 {
2163 unsigned short int __x[3];
2164 unsigned short int __old_x[3];
2165 unsigned short int __c;
2166 unsigned short int __init;
2167 unsigned long long int __a;
2168 };
2169
2170
2171extern int drand48_r (struct drand48_data *__restrict __buffer,
2172 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2173extern int erand48_r (unsigned short int __xsubi[3],
2174 struct drand48_data *__restrict __buffer,
2175 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2176
2177
2178extern int lrand48_r (struct drand48_data *__restrict __buffer,
2179 long int *__restrict __result)
2180 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2181extern int nrand48_r (unsigned short int __xsubi[3],
2182 struct drand48_data *__restrict __buffer,
2183 long int *__restrict __result)
2184 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2185
2186
2187extern int mrand48_r (struct drand48_data *__restrict __buffer,
2188 long int *__restrict __result)
2189 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2190extern int jrand48_r (unsigned short int __xsubi[3],
2191 struct drand48_data *__restrict __buffer,
2192 long int *__restrict __result)
2193 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2194
2195
2196extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
2197 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2198
2199extern int seed48_r (unsigned short int __seed16v[3],
2200 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2201
2202extern int lcong48_r (unsigned short int __param[7],
2203 struct drand48_data *__buffer)
2204 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
2215
2216extern void *calloc (size_t __nmemb, size_t __size)
2217 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228extern void *realloc (void *__ptr, size_t __size)
2229 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
2230
2231extern void free (void *__ptr) __attribute__ ((__nothrow__));
2232
2233
2234
2235
2236extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
2237
2238
2239
2240# 1 "/usr/include/alloca.h" 1 3 4
2241# 25 "/usr/include/alloca.h" 3 4
2242# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
2243# 26 "/usr/include/alloca.h" 2 3 4
2244
2245
2246
2247
2248
2249
2250
2251extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
2252
2253
2254
2255
2256
2257
2258# 498 "/usr/include/stdlib.h" 2 3 4
2259
2260
2261
2262
2263extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
2264
2265
2266
2267
2268extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
2269 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2270
2271
2272
2273
2274extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
2275
2276
2277
2278extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2279
2280
2281
2282
2283
2284extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
2285 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2286
2287
2288
2289
2290
2291
2292extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
2293
2294
2295
2296
2297
2298
2299extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
2300
2301
2302
2303
2304
2305
2306extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2307
2308
2309
2310
2311extern char *__secure_getenv (__const char *__name)
2312 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2313
2314
2315
2316
2317
2318extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2319
2320
2321
2322
2323
2324extern int setenv (__const char *__name, __const char *__value, int __replace)
2325 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2326
2327
2328extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
2329
2330
2331
2332
2333
2334
2335extern int clearenv (void) __attribute__ ((__nothrow__));
2336# 583 "/usr/include/stdlib.h" 3 4
2337extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2338# 594 "/usr/include/stdlib.h" 3 4
2339extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
2340# 604 "/usr/include/stdlib.h" 3 4
2341extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
2342# 614 "/usr/include/stdlib.h" 3 4
2343extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2344# 625 "/usr/include/stdlib.h" 3 4
2345extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
2346# 635 "/usr/include/stdlib.h" 3 4
2347extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357extern int system (__const char *__command) ;
2358
2359
2360
2361
2362
2363
2364extern char *canonicalize_file_name (__const char *__name)
2365 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2366# 662 "/usr/include/stdlib.h" 3 4
2367extern char *realpath (__const char *__restrict __name,
2368 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
2369
2370
2371
2372
2373
2374
2375typedef int (*__compar_fn_t) (__const void *, __const void *);
2376
2377
2378typedef __compar_fn_t comparison_fn_t;
2379
2380
2381
2382typedef int (*__compar_d_fn_t) (__const void *, __const void *, void *);
2383
2384
2385
2386
2387
2388extern void *bsearch (__const void *__key, __const void *__base,
2389 size_t __nmemb, size_t __size, __compar_fn_t __compar)
2390 __attribute__ ((__nonnull__ (1, 2, 5))) ;
2391
2392
2393
2394extern void qsort (void *__base, size_t __nmemb, size_t __size,
2395 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
2396
2397extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
2398 __compar_d_fn_t __compar, void *__arg)
2399 __attribute__ ((__nonnull__ (1, 4)));
2400
2401
2402
2403
2404extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2405extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2406
2407
2408
2409__extension__ extern long long int llabs (long long int __x)
2410 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2411
2412
2413
2414
2415
2416
2417
2418extern div_t div (int __numer, int __denom)
2419 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2420extern ldiv_t ldiv (long int __numer, long int __denom)
2421 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2422
2423
2424
2425
2426__extension__ extern lldiv_t lldiv (long long int __numer,
2427 long long int __denom)
2428 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2429
2430# 735 "/usr/include/stdlib.h" 3 4
2431extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
2432 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
2433
2434
2435
2436
2437extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
2438 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
2439
2440
2441
2442
2443extern char *gcvt (double __value, int __ndigit, char *__buf)
2444 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
2445
2446
2447
2448
2449extern char *qecvt (long double __value, int __ndigit,
2450 int *__restrict __decpt, int *__restrict __sign)
2451 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
2452extern char *qfcvt (long double __value, int __ndigit,
2453 int *__restrict __decpt, int *__restrict __sign)
2454 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
2455extern char *qgcvt (long double __value, int __ndigit, char *__buf)
2456 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
2457
2458
2459
2460
2461extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
2462 int *__restrict __sign, char *__restrict __buf,
2463 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2464extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
2465 int *__restrict __sign, char *__restrict __buf,
2466 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2467
2468extern int qecvt_r (long double __value, int __ndigit,
2469 int *__restrict __decpt, int *__restrict __sign,
2470 char *__restrict __buf, size_t __len)
2471 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2472extern int qfcvt_r (long double __value, int __ndigit,
2473 int *__restrict __decpt, int *__restrict __sign,
2474 char *__restrict __buf, size_t __len)
2475 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2476
2477
2478
2479
2480
2481
2482
2483extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
2484
2485
2486extern int mbtowc (wchar_t *__restrict __pwc,
2487 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
2488
2489
2490extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
2491
2492
2493
2494extern size_t mbstowcs (wchar_t *__restrict __pwcs,
2495 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
2496
2497extern size_t wcstombs (char *__restrict __s,
2498 __const wchar_t *__restrict __pwcs, size_t __n)
2499 __attribute__ ((__nothrow__));
2500
2501
2502
2503
2504
2505
2506
2507
2508extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2509# 823 "/usr/include/stdlib.h" 3 4
2510extern int getsubopt (char **__restrict __optionp,
2511 char *__const *__restrict __tokens,
2512 char **__restrict __valuep)
2513 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
2514
2515
2516
2517
2518
2519extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2520
2521
2522
2523
2524
2525
2526
2527extern int posix_openpt (int __oflag) ;
2528
2529
2530
2531
2532
2533
2534
2535extern int grantpt (int __fd) __attribute__ ((__nothrow__));
2536
2537
2538
2539extern int unlockpt (int __fd) __attribute__ ((__nothrow__));
2540
2541
2542
2543
2544extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ;
2545
2546
2547
2548
2549
2550
2551extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
2552 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2553
2554
2555extern int getpt (void);
2556
2557
2558
2559
2560
2561
2562extern int getloadavg (double __loadavg[], int __nelem)
2563 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2564# 891 "/usr/include/stdlib.h" 3 4
2565
2566# 63 "glheader.h" 2
2567# 1 "/usr/include/stdio.h" 1 3 4
2568# 30 "/usr/include/stdio.h" 3 4
2569
2570
2571
2572
2573# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
2574# 35 "/usr/include/stdio.h" 2 3 4
2575# 45 "/usr/include/stdio.h" 3 4
2576struct _IO_FILE;
2577
2578
2579
2580typedef struct _IO_FILE FILE;
2581
2582
2583
2584
2585
2586# 65 "/usr/include/stdio.h" 3 4
2587typedef struct _IO_FILE __FILE;
2588# 75 "/usr/include/stdio.h" 3 4
2589# 1 "/usr/include/libio.h" 1 3 4
2590# 32 "/usr/include/libio.h" 3 4
2591# 1 "/usr/include/_G_config.h" 1 3 4
2592# 15 "/usr/include/_G_config.h" 3 4
2593# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
2594# 16 "/usr/include/_G_config.h" 2 3 4
2595
2596
2597
2598
2599# 1 "/usr/include/wchar.h" 1 3 4
2600# 78 "/usr/include/wchar.h" 3 4
2601typedef struct
2602{
2603 int __count;
2604 union
2605 {
2606
2607 unsigned int __wch;
2608
2609
2610
2611 char __wchb[4];
2612 } __value;
2613} __mbstate_t;
2614# 21 "/usr/include/_G_config.h" 2 3 4
2615
2616typedef struct
2617{
2618 __off_t __pos;
2619 __mbstate_t __state;
2620} _G_fpos_t;
2621typedef struct
2622{
2623 __off64_t __pos;
2624 __mbstate_t __state;
2625} _G_fpos64_t;
2626# 53 "/usr/include/_G_config.h" 3 4
2627typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
2628typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
2629typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
2630typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
2631# 33 "/usr/include/libio.h" 2 3 4
2632# 53 "/usr/include/libio.h" 3 4
2633# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stdarg.h" 1 3 4
2634# 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stdarg.h" 3 4
2635typedef __builtin_va_list __gnuc_va_list;
2636# 54 "/usr/include/libio.h" 2 3 4
2637# 170 "/usr/include/libio.h" 3 4
2638struct _IO_jump_t; struct _IO_FILE;
2639# 180 "/usr/include/libio.h" 3 4
2640typedef void _IO_lock_t;
2641
2642
2643
2644
2645
2646struct _IO_marker {
2647 struct _IO_marker *_next;
2648 struct _IO_FILE *_sbuf;
2649
2650
2651
2652 int _pos;
2653# 203 "/usr/include/libio.h" 3 4
2654};
2655
2656
2657enum __codecvt_result
2658{
2659 __codecvt_ok,
2660 __codecvt_partial,
2661 __codecvt_error,
2662 __codecvt_noconv
2663};
2664# 271 "/usr/include/libio.h" 3 4
2665struct _IO_FILE {
2666 int _flags;
2667
2668
2669
2670
2671 char* _IO_read_ptr;
2672 char* _IO_read_end;
2673 char* _IO_read_base;
2674 char* _IO_write_base;
2675 char* _IO_write_ptr;
2676 char* _IO_write_end;
2677 char* _IO_buf_base;
2678 char* _IO_buf_end;
2679
2680 char *_IO_save_base;
2681 char *_IO_backup_base;
2682 char *_IO_save_end;
2683
2684 struct _IO_marker *_markers;
2685
2686 struct _IO_FILE *_chain;
2687
2688 int _fileno;
2689
2690
2691
2692 int _flags2;
2693
2694 __off_t _old_offset;
2695
2696
2697
2698 unsigned short _cur_column;
2699 signed char _vtable_offset;
2700 char _shortbuf[1];
2701
2702
2703
2704 _IO_lock_t *_lock;
2705# 319 "/usr/include/libio.h" 3 4
2706 __off64_t _offset;
2707# 328 "/usr/include/libio.h" 3 4
2708 void *__pad1;
2709 void *__pad2;
2710 void *__pad3;
2711 void *__pad4;
2712 size_t __pad5;
2713
2714 int _mode;
2715
2716 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
2717
2718};
2719
2720
2721typedef struct _IO_FILE _IO_FILE;
2722
2723
2724struct _IO_FILE_plus;
2725
2726extern struct _IO_FILE_plus _IO_2_1_stdin_;
2727extern struct _IO_FILE_plus _IO_2_1_stdout_;
2728extern struct _IO_FILE_plus _IO_2_1_stderr_;
2729# 364 "/usr/include/libio.h" 3 4
2730typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
2731
2732
2733
2734
2735
2736
2737
2738typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
2739 size_t __n);
2740
2741
2742
2743
2744
2745
2746
2747typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
2748
2749
2750typedef int __io_close_fn (void *__cookie);
2751
2752
2753
2754
2755typedef __io_read_fn cookie_read_function_t;
2756typedef __io_write_fn cookie_write_function_t;
2757typedef __io_seek_fn cookie_seek_function_t;
2758typedef __io_close_fn cookie_close_function_t;
2759
2760
2761typedef struct
2762{
2763 __io_read_fn *read;
2764 __io_write_fn *write;
2765 __io_seek_fn *seek;
2766 __io_close_fn *close;
2767} _IO_cookie_io_functions_t;
2768typedef _IO_cookie_io_functions_t cookie_io_functions_t;
2769
2770struct _IO_cookie_file;
2771
2772
2773extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
2774 void *__cookie, _IO_cookie_io_functions_t __fns);
2775
2776
2777
2778
2779
2780
2781
2782extern int __underflow (_IO_FILE *);
2783extern int __uflow (_IO_FILE *);
2784extern int __overflow (_IO_FILE *, int);
2785# 458 "/usr/include/libio.h" 3 4
2786extern int _IO_getc (_IO_FILE *__fp);
2787extern int _IO_putc (int __c, _IO_FILE *__fp);
2788extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
2789extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
2790
2791extern int _IO_peekc_locked (_IO_FILE *__fp);
2792
2793
2794
2795
2796
2797extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
2798extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
2799extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
2800# 488 "/usr/include/libio.h" 3 4
2801extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
2802 __gnuc_va_list, int *__restrict);
2803extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
2804 __gnuc_va_list);
2805extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
2806extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
2807
2808extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
2809extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
2810
2811extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
2812# 76 "/usr/include/stdio.h" 2 3 4
2813
2814
2815
2816
2817typedef __gnuc_va_list va_list;
2818# 89 "/usr/include/stdio.h" 3 4
2819
2820
2821typedef _G_fpos_t fpos_t;
2822
2823
2824
2825
2826
2827typedef _G_fpos64_t fpos64_t;
2828# 141 "/usr/include/stdio.h" 3 4
2829# 1 "/usr/include/bits/stdio_lim.h" 1 3 4
2830# 142 "/usr/include/stdio.h" 2 3 4
2831
2832
2833
2834extern struct _IO_FILE *stdin;
2835extern struct _IO_FILE *stdout;
2836extern struct _IO_FILE *stderr;
2837
2838
2839
2840
2841
2842
2843
2844extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
2845
2846extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
2847
2848
2849
2850
2851extern int renameat (int __oldfd, __const char *__old, int __newfd,
2852 __const char *__new) __attribute__ ((__nothrow__));
2853
2854
2855
2856
2857
2858
2859
2860
2861extern FILE *tmpfile (void) ;
2862# 182 "/usr/include/stdio.h" 3 4
2863extern FILE *tmpfile64 (void) ;
2864
2865
2866
2867extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
2868
2869
2870
2871
2872
2873extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
2874# 204 "/usr/include/stdio.h" 3 4
2875extern char *tempnam (__const char *__dir, __const char *__pfx)
2876 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
2877
2878
2879
2880
2881
2882
2883
2884
2885extern int fclose (FILE *__stream);
2886
2887
2888
2889
2890extern int fflush (FILE *__stream);
2891
2892# 229 "/usr/include/stdio.h" 3 4
2893extern int fflush_unlocked (FILE *__stream);
2894# 239 "/usr/include/stdio.h" 3 4
2895extern int fcloseall (void);
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905extern FILE *fopen (__const char *__restrict __filename,
2906 __const char *__restrict __modes) ;
2907
2908
2909
2910
2911extern FILE *freopen (__const char *__restrict __filename,
2912 __const char *__restrict __modes,
2913 FILE *__restrict __stream) ;
2914# 272 "/usr/include/stdio.h" 3 4
2915
2916
2917extern FILE *fopen64 (__const char *__restrict __filename,
2918 __const char *__restrict __modes) ;
2919extern FILE *freopen64 (__const char *__restrict __filename,
2920 __const char *__restrict __modes,
2921 FILE *__restrict __stream) ;
2922
2923
2924
2925
2926extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
2927
2928
2929
2930
2931
2932extern FILE *fopencookie (void *__restrict __magic_cookie,
2933 __const char *__restrict __modes,
2934 _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__)) ;
2935
2936
2937extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
2938 __attribute__ ((__nothrow__)) ;
2939
2940
2941
2942
2943extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ;
2944
2945
2946
2947
2948
2949
2950extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
2951
2952
2953
2954extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
2955 int __modes, size_t __n) __attribute__ ((__nothrow__));
2956
2957
2958
2959
2960
2961extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
2962 size_t __size) __attribute__ ((__nothrow__));
2963
2964
2965extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
2966
2967
2968
2969
2970
2971
2972
2973
2974extern int fprintf (FILE *__restrict __stream,
2975 __const char *__restrict __format, ...);
2976
2977
2978
2979
2980extern int printf (__const char *__restrict __format, ...);
2981
2982extern int sprintf (char *__restrict __s,
2983 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
2984
2985
2986
2987
2988
2989extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
2990 __gnuc_va_list __arg);
2991
2992
2993
2994
2995extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
2996
2997extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
2998 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
2999
3000
3001
3002
3003
3004extern int snprintf (char *__restrict __s, size_t __maxlen,
3005 __const char *__restrict __format, ...)
3006 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
3007
3008extern int vsnprintf (char *__restrict __s, size_t __maxlen,
3009 __const char *__restrict __format, __gnuc_va_list __arg)
3010 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
3011
3012
3013
3014
3015
3016
3017extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
3018 __gnuc_va_list __arg)
3019 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))) ;
3020extern int __asprintf (char **__restrict __ptr,
3021 __const char *__restrict __fmt, ...)
3022 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) ;
3023extern int asprintf (char **__restrict __ptr,
3024 __const char *__restrict __fmt, ...)
3025 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) ;
3026
3027
3028
3029
3030
3031
3032
3033extern int vdprintf (int __fd, __const char *__restrict __fmt,
3034 __gnuc_va_list __arg)
3035 __attribute__ ((__format__ (__printf__, 2, 0)));
3036extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
3037 __attribute__ ((__format__ (__printf__, 2, 3)));
3038
3039
3040
3041
3042
3043
3044
3045
3046extern int fscanf (FILE *__restrict __stream,
3047 __const char *__restrict __format, ...) ;
3048
3049
3050
3051
3052extern int scanf (__const char *__restrict __format, ...) ;
3053
3054extern int sscanf (__const char *__restrict __s,
3055 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
3056# 441 "/usr/include/stdio.h" 3 4
3057
3058
3059
3060
3061
3062
3063
3064
3065extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
3066 __gnuc_va_list __arg)
3067 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
3068
3069
3070
3071
3072
3073extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
3074 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
3075
3076
3077extern int vsscanf (__const char *__restrict __s,
3078 __const char *__restrict __format, __gnuc_va_list __arg)
3079 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
3080# 500 "/usr/include/stdio.h" 3 4
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090extern int fgetc (FILE *__stream);
3091extern int getc (FILE *__stream);
3092
3093
3094
3095
3096
3097extern int getchar (void);
3098
3099# 528 "/usr/include/stdio.h" 3 4
3100extern int getc_unlocked (FILE *__stream);
3101extern int getchar_unlocked (void);
3102# 539 "/usr/include/stdio.h" 3 4
3103extern int fgetc_unlocked (FILE *__stream);
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115extern int fputc (int __c, FILE *__stream);
3116extern int putc (int __c, FILE *__stream);
3117
3118
3119
3120
3121
3122extern int putchar (int __c);
3123
3124# 572 "/usr/include/stdio.h" 3 4
3125extern int fputc_unlocked (int __c, FILE *__stream);
3126
3127
3128
3129
3130
3131
3132
3133extern int putc_unlocked (int __c, FILE *__stream);
3134extern int putchar_unlocked (int __c);
3135
3136
3137
3138
3139
3140
3141extern int getw (FILE *__stream);
3142
3143
3144extern int putw (int __w, FILE *__stream);
3145
3146
3147
3148
3149
3150
3151
3152
3153extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
3154 ;
3155
3156
3157
3158
3159
3160
3161extern char *gets (char *__s) ;
3162
3163# 618 "/usr/include/stdio.h" 3 4
3164extern char *fgets_unlocked (char *__restrict __s, int __n,
3165 FILE *__restrict __stream) ;
3166# 634 "/usr/include/stdio.h" 3 4
3167extern __ssize_t __getdelim (char **__restrict __lineptr,
3168 size_t *__restrict __n, int __delimiter,
3169 FILE *__restrict __stream) ;
3170extern __ssize_t getdelim (char **__restrict __lineptr,
3171 size_t *__restrict __n, int __delimiter,
3172 FILE *__restrict __stream) ;
3173
3174
3175
3176
3177
3178
3179
3180extern __ssize_t getline (char **__restrict __lineptr,
3181 size_t *__restrict __n,
3182 FILE *__restrict __stream) ;
3183
3184
3185
3186
3187
3188
3189
3190
3191extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
3192
3193
3194
3195
3196
3197extern int puts (__const char *__s);
3198
3199
3200
3201
3202
3203
3204extern int ungetc (int __c, FILE *__stream);
3205
3206
3207
3208
3209
3210
3211extern size_t fread (void *__restrict __ptr, size_t __size,
3212 size_t __n, FILE *__restrict __stream) ;
3213
3214
3215
3216
3217extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
3218 size_t __n, FILE *__restrict __s) ;
3219
3220# 695 "/usr/include/stdio.h" 3 4
3221extern int fputs_unlocked (__const char *__restrict __s,
3222 FILE *__restrict __stream);
3223# 706 "/usr/include/stdio.h" 3 4
3224extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
3225 size_t __n, FILE *__restrict __stream) ;
3226extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
3227 size_t __n, FILE *__restrict __stream) ;
3228
3229
3230
3231
3232
3233
3234
3235
3236extern int fseek (FILE *__stream, long int __off, int __whence);
3237
3238
3239
3240
3241extern long int ftell (FILE *__stream) ;
3242
3243
3244
3245
3246extern void rewind (FILE *__stream);
3247
3248# 742 "/usr/include/stdio.h" 3 4
3249extern int fseeko (FILE *__stream, __off_t __off, int __whence);
3250
3251
3252
3253
3254extern __off_t ftello (FILE *__stream) ;
3255# 761 "/usr/include/stdio.h" 3 4
3256
3257
3258
3259
3260
3261
3262extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
3263
3264
3265
3266
3267extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
3268# 784 "/usr/include/stdio.h" 3 4
3269
3270
3271
3272extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
3273extern __off64_t ftello64 (FILE *__stream) ;
3274extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
3275extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
3276
3277
3278
3279
3280extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
3281
3282extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
3283
3284extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
3285
3286
3287
3288
3289extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
3290extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
3291extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
3292
3293
3294
3295
3296
3297
3298
3299
3300extern void perror (__const char *__s);
3301
3302
3303
3304
3305
3306
3307# 1 "/usr/include/bits/sys_errlist.h" 1 3 4
3308# 27 "/usr/include/bits/sys_errlist.h" 3 4
3309extern int sys_nerr;
3310extern __const char *__const sys_errlist[];
3311
3312
3313extern int _sys_nerr;
3314extern __const char *__const _sys_errlist[];
3315# 823 "/usr/include/stdio.h" 2 3 4
3316
3317
3318
3319
3320extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
3321
3322
3323
3324
3325extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
3326# 842 "/usr/include/stdio.h" 3 4
3327extern FILE *popen (__const char *__command, __const char *__modes) ;
3328
3329
3330
3331
3332
3333extern int pclose (FILE *__stream);
3334
3335
3336
3337
3338
3339extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
3340
3341
3342
3343
3344
3345extern char *cuserid (char *__s);
3346
3347
3348
3349
3350struct obstack;
3351
3352
3353extern int obstack_printf (struct obstack *__restrict __obstack,
3354 __const char *__restrict __format, ...)
3355 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
3356extern int obstack_vprintf (struct obstack *__restrict __obstack,
3357 __const char *__restrict __format,
3358 __gnuc_va_list __args)
3359 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));
3360
3361
3362
3363
3364
3365
3366
3367extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
3368
3369
3370
3371extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
3372
3373
3374extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
3375# 903 "/usr/include/stdio.h" 3 4
3376# 1 "/usr/include/bits/stdio.h" 1 3 4
3377# 36 "/usr/include/bits/stdio.h" 3 4
3378extern __inline int
3379vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
3380{
3381 return vfprintf (stdout, __fmt, __arg);
3382}
3383
3384
3385
3386extern __inline int
3387getchar (void)
3388{
3389 return _IO_getc (stdin);
3390}
3391
3392
3393
3394
3395extern __inline int
3396fgetc_unlocked (FILE *__fp)
3397{
3398 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
3399}
3400
3401
3402
3403
3404
3405extern __inline int
3406getc_unlocked (FILE *__fp)
3407{
3408 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
3409}
3410
3411
3412extern __inline int
3413getchar_unlocked (void)
3414{
3415 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
3416}
3417
3418
3419
3420
3421extern __inline int
3422putchar (int __c)
3423{
3424 return _IO_putc (__c, stdout);
3425}
3426
3427
3428
3429
3430extern __inline int
3431fputc_unlocked (int __c, FILE *__stream)
3432{
3433 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
3434}
3435
3436
3437
3438
3439
3440extern __inline int
3441putc_unlocked (int __c, FILE *__stream)
3442{
3443 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
3444}
3445
3446
3447extern __inline int
3448putchar_unlocked (int __c)
3449{
3450 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
3451}
3452
3453
3454
3455
3456
3457extern __inline __ssize_t
3458getline (char **__lineptr, size_t *__n, FILE *__stream)
3459{
3460 return __getdelim (__lineptr, __n, '\n', __stream);
3461}
3462
3463
3464
3465
3466
3467extern __inline int
3468__attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
3469{
3470 return (((__stream)->_flags & 0x10) != 0);
3471}
3472
3473
3474extern __inline int
3475__attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
3476{
3477 return (((__stream)->_flags & 0x20) != 0);
3478}
3479# 904 "/usr/include/stdio.h" 2 3 4
3480# 912 "/usr/include/stdio.h" 3 4
3481
3482# 64 "glheader.h" 2
3483# 1 "/usr/include/string.h" 1 3 4
3484# 28 "/usr/include/string.h" 3 4
3485
3486
3487
3488
3489
3490# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
3491# 34 "/usr/include/string.h" 2 3 4
3492
3493
3494
3495
3496extern void *memcpy (void *__restrict __dest,
3497 __const void *__restrict __src, size_t __n)
3498 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3499
3500
3501extern void *memmove (void *__dest, __const void *__src, size_t __n)
3502 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3503
3504
3505
3506
3507
3508
3509extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
3510 int __c, size_t __n)
3511 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3512
3513
3514
3515
3516
3517extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3518
3519
3520extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
3521 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3522
3523
3524extern void *memchr (__const void *__s, int __c, size_t __n)
3525 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3526
3527
3528
3529
3530
3531extern void *rawmemchr (__const void *__s, int __c)
3532 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3533
3534
3535extern void *memrchr (__const void *__s, int __c, size_t __n)
3536 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3537
3538
3539
3540
3541
3542extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
3543 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3544
3545extern char *strncpy (char *__restrict __dest,
3546 __const char *__restrict __src, size_t __n)
3547 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3548
3549
3550extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
3551 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3552
3553extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
3554 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3555
3556
3557extern int strcmp (__const char *__s1, __const char *__s2)
3558 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3559
3560extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
3561 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3562
3563
3564extern int strcoll (__const char *__s1, __const char *__s2)
3565 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3566
3567extern size_t strxfrm (char *__restrict __dest,
3568 __const char *__restrict __src, size_t __n)
3569 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
3570
3571# 121 "/usr/include/string.h" 3 4
3572extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
3573 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3574
3575extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
3576 __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
3577
3578
3579
3580
3581extern char *strdup (__const char *__s)
3582 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3583
3584
3585
3586
3587
3588
3589extern char *strndup (__const char *__string, size_t __n)
3590 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3591# 165 "/usr/include/string.h" 3 4
3592
3593
3594extern char *strchr (__const char *__s, int __c)
3595 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3596
3597extern char *strrchr (__const char *__s, int __c)
3598 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3599
3600
3601
3602
3603
3604extern char *strchrnul (__const char *__s, int __c)
3605 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3606
3607
3608
3609
3610
3611extern size_t strcspn (__const char *__s, __const char *__reject)
3612 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3613
3614
3615extern size_t strspn (__const char *__s, __const char *__accept)
3616 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3617
3618extern char *strpbrk (__const char *__s, __const char *__accept)
3619 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3620
3621extern char *strstr (__const char *__haystack, __const char *__needle)
3622 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3623
3624
3625
3626extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
3627 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
3628
3629
3630
3631
3632extern char *__strtok_r (char *__restrict __s,
3633 __const char *__restrict __delim,
3634 char **__restrict __save_ptr)
3635 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
3636
3637extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
3638 char **__restrict __save_ptr)
3639 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
3640
3641
3642
3643
3644extern char *strcasestr (__const char *__haystack, __const char *__needle)
3645 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3646
3647
3648
3649
3650
3651
3652extern void *memmem (__const void *__haystack, size_t __haystacklen,
3653 __const void *__needle, size_t __needlelen)
3654 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
3655
3656
3657
3658extern void *__mempcpy (void *__restrict __dest,
3659 __const void *__restrict __src, size_t __n)
3660 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3661extern void *mempcpy (void *__restrict __dest,
3662 __const void *__restrict __src, size_t __n)
3663 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3664
3665
3666
3667
3668
3669extern size_t strlen (__const char *__s)
3670 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3671
3672
3673
3674
3675
3676extern size_t strnlen (__const char *__string, size_t __maxlen)
3677 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3678
3679
3680
3681
3682
3683extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
3684
3685# 281 "/usr/include/string.h" 3 4
3686extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
3687 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
3688
3689
3690
3691
3692
3693extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__));
3694
3695
3696
3697
3698
3699extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3700
3701
3702
3703extern void bcopy (__const void *__src, void *__dest, size_t __n)
3704 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3705
3706
3707extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3708
3709
3710extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
3711 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3712
3713
3714extern char *index (__const char *__s, int __c)
3715 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3716
3717
3718extern char *rindex (__const char *__s, int __c)
3719 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3720
3721
3722
3723extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3724
3725
3726
3727
3728extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3729
3730__extension__ extern int ffsll (long long int __ll)
3731 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3732
3733
3734
3735
3736extern int strcasecmp (__const char *__s1, __const char *__s2)
3737 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3738
3739
3740extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
3741 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3742
3743
3744
3745
3746
3747extern int strcasecmp_l (__const char *__s1, __const char *__s2,
3748 __locale_t __loc)
3749 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3750
3751extern int strncasecmp_l (__const char *__s1, __const char *__s2,
3752 size_t __n, __locale_t __loc)
3753 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
3754
3755
3756
3757
3758
3759extern char *strsep (char **__restrict __stringp,
3760 __const char *__restrict __delim)
3761 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3762
3763
3764
3765
3766extern int strverscmp (__const char *__s1, __const char *__s2)
3767 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3768
3769
3770extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
3771
3772
3773extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
3774 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3775extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
3776 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3777
3778
3779
3780extern char *__stpncpy (char *__restrict __dest,
3781 __const char *__restrict __src, size_t __n)
3782 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3783extern char *stpncpy (char *__restrict __dest,
3784 __const char *__restrict __src, size_t __n)
3785 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3786
3787
3788extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3789
3790
3791extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3792
3793
3794
3795
3796
3797
3798extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3799# 420 "/usr/include/string.h" 3 4
3800# 1 "/usr/include/bits/string.h" 1 3 4
3801# 421 "/usr/include/string.h" 2 3 4
3802
3803
3804# 1 "/usr/include/bits/string2.h" 1 3 4
3805# 394 "/usr/include/bits/string2.h" 3 4
3806extern void *__rawmemchr (const void *__s, int __c);
3807# 969 "/usr/include/bits/string2.h" 3 4
3808extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
3809extern __inline size_t
3810__strcspn_c1 (__const char *__s, int __reject)
3811{
3812 register size_t __result = 0;
3813 while (__s[__result] != '\0' && __s[__result] != __reject)
3814 ++__result;
3815 return __result;
3816}
3817
3818extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
3819 int __reject2);
3820extern __inline size_t
3821__strcspn_c2 (__const char *__s, int __reject1, int __reject2)
3822{
3823 register size_t __result = 0;
3824 while (__s[__result] != '\0' && __s[__result] != __reject1
3825 && __s[__result] != __reject2)
3826 ++__result;
3827 return __result;
3828}
3829
3830extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
3831 int __reject2, int __reject3);
3832extern __inline size_t
3833__strcspn_c3 (__const char *__s, int __reject1, int __reject2,
3834 int __reject3)
3835{
3836 register size_t __result = 0;
3837 while (__s[__result] != '\0' && __s[__result] != __reject1
3838 && __s[__result] != __reject2 && __s[__result] != __reject3)
3839 ++__result;
3840 return __result;
3841}
3842# 1045 "/usr/include/bits/string2.h" 3 4
3843extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
3844extern __inline size_t
3845__strspn_c1 (__const char *__s, int __accept)
3846{
3847 register size_t __result = 0;
3848
3849 while (__s[__result] == __accept)
3850 ++__result;
3851 return __result;
3852}
3853
3854extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
3855 int __accept2);
3856extern __inline size_t
3857__strspn_c2 (__const char *__s, int __accept1, int __accept2)
3858{
3859 register size_t __result = 0;
3860
3861 while (__s[__result] == __accept1 || __s[__result] == __accept2)
3862 ++__result;
3863 return __result;
3864}
3865
3866extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
3867 int __accept2, int __accept3);
3868extern __inline size_t
3869__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
3870{
3871 register size_t __result = 0;
3872
3873 while (__s[__result] == __accept1 || __s[__result] == __accept2
3874 || __s[__result] == __accept3)
3875 ++__result;
3876 return __result;
3877}
3878# 1121 "/usr/include/bits/string2.h" 3 4
3879extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
3880 int __accept2);
3881extern __inline char *
3882__strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
3883{
3884
3885 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
3886 ++__s;
3887 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
3888}
3889
3890extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
3891 int __accept2, int __accept3);
3892extern __inline char *
3893__strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
3894 int __accept3)
3895{
3896
3897 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
3898 && *__s != __accept3)
3899 ++__s;
3900 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
3901}
3902# 1172 "/usr/include/bits/string2.h" 3 4
3903extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
3904extern __inline char *
3905__strtok_r_1c (char *__s, char __sep, char **__nextp)
3906{
3907 char *__result;
3908 if (__s == ((void *)0))
3909 __s = *__nextp;
3910 while (*__s == __sep)
3911 ++__s;
3912 __result = ((void *)0);
3913 if (*__s != '\0')
3914 {
3915 __result = __s++;
3916 while (*__s != '\0')
3917 if (*__s++ == __sep)
3918 {
3919 __s[-1] = '\0';
3920 break;
3921 }
3922 }
3923 *__nextp = __s;
3924 return __result;
3925}
3926# 1204 "/usr/include/bits/string2.h" 3 4
3927extern char *__strsep_g (char **__stringp, __const char *__delim);
3928# 1222 "/usr/include/bits/string2.h" 3 4
3929extern __inline char *__strsep_1c (char **__s, char __reject);
3930extern __inline char *
3931__strsep_1c (char **__s, char __reject)
3932{
3933 register char *__retval = *__s;
3934 if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
3935 *(*__s)++ = '\0';
3936 return __retval;
3937}
3938
3939extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
3940extern __inline char *
3941__strsep_2c (char **__s, char __reject1, char __reject2)
3942{
3943 register char *__retval = *__s;
3944 if (__retval != ((void *)0))
3945 {
3946 register char *__cp = __retval;
3947 while (1)
3948 {
3949 if (*__cp == '\0')
3950 {
3951 __cp = ((void *)0);
3952 break;
3953 }
3954 if (*__cp == __reject1 || *__cp == __reject2)
3955 {
3956 *__cp++ = '\0';
3957 break;
3958 }
3959 ++__cp;
3960 }
3961 *__s = __cp;
3962 }
3963 return __retval;
3964}
3965
3966extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
3967 char __reject3);
3968extern __inline char *
3969__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
3970{
3971 register char *__retval = *__s;
3972 if (__retval != ((void *)0))
3973 {
3974 register char *__cp = __retval;
3975 while (1)
3976 {
3977 if (*__cp == '\0')
3978 {
3979 __cp = ((void *)0);
3980 break;
3981 }
3982 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
3983 {
3984 *__cp++ = '\0';
3985 break;
3986 }
3987 ++__cp;
3988 }
3989 *__s = __cp;
3990 }
3991 return __retval;
3992}
3993# 1303 "/usr/include/bits/string2.h" 3 4
3994extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
3995# 1322 "/usr/include/bits/string2.h" 3 4
3996extern char *__strndup (__const char *__string, size_t __n)
3997 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
3998# 424 "/usr/include/string.h" 2 3 4
3999# 432 "/usr/include/string.h" 3 4
4000
4001# 65 "glheader.h" 2
4002
4003
4004
4005# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/float.h" 1 3 4
4006# 69 "glheader.h" 2
4007# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stdarg.h" 1 3 4
4008# 70 "glheader.h" 2
4009# 81 "glheader.h"
4010# 1 "/usr/include/inttypes.h" 1 3 4
4011# 28 "/usr/include/inttypes.h" 3 4
4012# 1 "/usr/include/stdint.h" 1 3 4
4013# 27 "/usr/include/stdint.h" 3 4
4014# 1 "/usr/include/bits/wchar.h" 1 3 4
4015# 28 "/usr/include/stdint.h" 2 3 4
4016# 1 "/usr/include/bits/wordsize.h" 1 3 4
4017# 29 "/usr/include/stdint.h" 2 3 4
4018# 49 "/usr/include/stdint.h" 3 4
4019typedef unsigned char uint8_t;
4020typedef unsigned short int uint16_t;
4021
4022typedef unsigned int uint32_t;
4023
4024
4025
4026typedef unsigned long int uint64_t;
4027# 66 "/usr/include/stdint.h" 3 4
4028typedef signed char int_least8_t;
4029typedef short int int_least16_t;
4030typedef int int_least32_t;
4031
4032typedef long int int_least64_t;
4033
4034
4035
4036
4037
4038
4039typedef unsigned char uint_least8_t;
4040typedef unsigned short int uint_least16_t;
4041typedef unsigned int uint_least32_t;
4042
4043typedef unsigned long int uint_least64_t;
4044# 91 "/usr/include/stdint.h" 3 4
4045typedef signed char int_fast8_t;
4046
4047typedef long int int_fast16_t;
4048typedef long int int_fast32_t;
4049typedef long int int_fast64_t;
4050# 104 "/usr/include/stdint.h" 3 4
4051typedef unsigned char uint_fast8_t;
4052
4053typedef unsigned long int uint_fast16_t;
4054typedef unsigned long int uint_fast32_t;
4055typedef unsigned long int uint_fast64_t;
4056# 120 "/usr/include/stdint.h" 3 4
4057typedef long int intptr_t;
4058
4059
4060typedef unsigned long int uintptr_t;
4061# 135 "/usr/include/stdint.h" 3 4
4062typedef long int intmax_t;
4063typedef unsigned long int uintmax_t;
4064# 29 "/usr/include/inttypes.h" 2 3 4
4065
4066
4067
4068
4069
4070
4071typedef int __gwchar_t;
4072# 274 "/usr/include/inttypes.h" 3 4
4073
4074
4075
4076
4077
4078typedef struct
4079 {
4080 long int quot;
4081 long int rem;
4082 } imaxdiv_t;
4083# 298 "/usr/include/inttypes.h" 3 4
4084extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
4085
4086
4087extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
4088 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
4089
4090
4091extern intmax_t strtoimax (__const char *__restrict __nptr,
4092 char **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
4093
4094
4095extern uintmax_t strtoumax (__const char *__restrict __nptr,
4096 char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__));
4097
4098
4099extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr,
4100 __gwchar_t **__restrict __endptr, int __base)
4101 __attribute__ ((__nothrow__));
4102
4103
4104extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr,
4105 __gwchar_t ** __restrict __endptr, int __base)
4106 __attribute__ ((__nothrow__));
4107
4108
4109
4110
4111
4112extern long int __strtol_internal (__const char *__restrict __nptr,
4113 char **__restrict __endptr,
4114 int __base, int __group)
4115 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
4116
4117extern __inline intmax_t
4118__attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base)
4119
4120{
4121 return __strtol_internal (nptr, endptr, base, 0);
4122}
4123
4124extern unsigned long int __strtoul_internal (__const char *
4125 __restrict __nptr,
4126 char ** __restrict __endptr,
4127 int __base, int __group)
4128 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
4129
4130extern __inline uintmax_t
4131__attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base)
4132
4133{
4134 return __strtoul_internal (nptr, endptr, base, 0);
4135}
4136
4137extern long int __wcstol_internal (__const __gwchar_t * __restrict __nptr,
4138 __gwchar_t **__restrict __endptr,
4139 int __base, int __group)
4140 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
4141
4142extern __inline intmax_t
4143__attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
4144
4145{
4146 return __wcstol_internal (nptr, endptr, base, 0);
4147}
4148
4149extern unsigned long int __wcstoul_internal (__const __gwchar_t *
4150 __restrict __nptr,
4151 __gwchar_t **
4152 __restrict __endptr,
4153 int __base, int __group)
4154 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
4155
4156extern __inline uintmax_t
4157__attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
4158
4159{
4160 return __wcstoul_internal (nptr, endptr, base, 0);
4161}
4162# 442 "/usr/include/inttypes.h" 3 4
4163
4164# 82 "glheader.h" 2
4165# 144 "glheader.h"
4166# 1 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h" 1
4167# 147 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
4168typedef unsigned int GLenum;
4169typedef unsigned char GLboolean;
4170typedef unsigned int GLbitfield;
4171typedef void GLvoid;
4172typedef signed char GLbyte;
4173typedef short GLshort;
4174typedef int GLint;
4175typedef unsigned char GLubyte;
4176typedef unsigned short GLushort;
4177typedef unsigned int GLuint;
4178typedef int GLsizei;
4179typedef float GLfloat;
4180typedef float GLclampf;
4181typedef double GLdouble;
4182typedef double GLclampd;
4183# 774 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
4184__attribute__((visibility("default"))) void glClearIndex( GLfloat c );
4185
4186__attribute__((visibility("default"))) void glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
4187
4188__attribute__((visibility("default"))) void glClear( GLbitfield mask );
4189
4190__attribute__((visibility("default"))) void glIndexMask( GLuint mask );
4191
4192__attribute__((visibility("default"))) void glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha );
4193
4194__attribute__((visibility("default"))) void glAlphaFunc( GLenum func, GLclampf ref );
4195
4196__attribute__((visibility("default"))) void glBlendFunc( GLenum sfactor, GLenum dfactor );
4197
4198__attribute__((visibility("default"))) void glLogicOp( GLenum opcode );
4199
4200__attribute__((visibility("default"))) void glCullFace( GLenum mode );
4201
4202__attribute__((visibility("default"))) void glFrontFace( GLenum mode );
4203
4204__attribute__((visibility("default"))) void glPointSize( GLfloat size );
4205
4206__attribute__((visibility("default"))) void glLineWidth( GLfloat width );
4207
4208__attribute__((visibility("default"))) void glLineStipple( GLint factor, GLushort pattern );
4209
4210__attribute__((visibility("default"))) void glPolygonMode( GLenum face, GLenum mode );
4211
4212__attribute__((visibility("default"))) void glPolygonOffset( GLfloat factor, GLfloat units );
4213
4214__attribute__((visibility("default"))) void glPolygonStipple( const GLubyte *mask );
4215
4216__attribute__((visibility("default"))) void glGetPolygonStipple( GLubyte *mask );
4217
4218__attribute__((visibility("default"))) void glEdgeFlag( GLboolean flag );
4219
4220__attribute__((visibility("default"))) void glEdgeFlagv( const GLboolean *flag );
4221
4222__attribute__((visibility("default"))) void glScissor( GLint x, GLint y, GLsizei width, GLsizei height);
4223
4224__attribute__((visibility("default"))) void glClipPlane( GLenum plane, const GLdouble *equation );
4225
4226__attribute__((visibility("default"))) void glGetClipPlane( GLenum plane, GLdouble *equation );
4227
4228__attribute__((visibility("default"))) void glDrawBuffer( GLenum mode );
4229
4230__attribute__((visibility("default"))) void glReadBuffer( GLenum mode );
4231
4232__attribute__((visibility("default"))) void glEnable( GLenum cap );
4233
4234__attribute__((visibility("default"))) void glDisable( GLenum cap );
4235
4236__attribute__((visibility("default"))) GLboolean glIsEnabled( GLenum cap );
4237
4238
4239__attribute__((visibility("default"))) void glEnableClientState( GLenum cap );
4240
4241__attribute__((visibility("default"))) void glDisableClientState( GLenum cap );
4242
4243
4244__attribute__((visibility("default"))) void glGetBooleanv( GLenum pname, GLboolean *params );
4245
4246__attribute__((visibility("default"))) void glGetDoublev( GLenum pname, GLdouble *params );
4247
4248__attribute__((visibility("default"))) void glGetFloatv( GLenum pname, GLfloat *params );
4249
4250__attribute__((visibility("default"))) void glGetIntegerv( GLenum pname, GLint *params );
4251
4252
4253__attribute__((visibility("default"))) void glPushAttrib( GLbitfield mask );
4254
4255__attribute__((visibility("default"))) void glPopAttrib( void );
4256
4257
4258__attribute__((visibility("default"))) void glPushClientAttrib( GLbitfield mask );
4259
4260__attribute__((visibility("default"))) void glPopClientAttrib( void );
4261
4262
4263__attribute__((visibility("default"))) GLint glRenderMode( GLenum mode );
4264
4265__attribute__((visibility("default"))) GLenum glGetError( void );
4266
4267__attribute__((visibility("default"))) const GLubyte * glGetString( GLenum name );
4268
4269__attribute__((visibility("default"))) void glFinish( void );
4270
4271__attribute__((visibility("default"))) void glFlush( void );
4272
4273__attribute__((visibility("default"))) void glHint( GLenum target, GLenum mode );
4274
4275
4276
4277
4278
4279
4280__attribute__((visibility("default"))) void glClearDepth( GLclampd depth );
4281
4282__attribute__((visibility("default"))) void glDepthFunc( GLenum func );
4283
4284__attribute__((visibility("default"))) void glDepthMask( GLboolean flag );
4285
4286__attribute__((visibility("default"))) void glDepthRange( GLclampd near_val, GLclampd far_val );
4287
4288
4289
4290
4291
4292
4293__attribute__((visibility("default"))) void glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
4294
4295__attribute__((visibility("default"))) void glAccum( GLenum op, GLfloat value );
4296
4297
4298
4299
4300
4301
4302__attribute__((visibility("default"))) void glMatrixMode( GLenum mode );
4303
4304__attribute__((visibility("default"))) void glOrtho( GLdouble left, GLdouble right,
4305 GLdouble bottom, GLdouble top,
4306 GLdouble near_val, GLdouble far_val );
4307
4308__attribute__((visibility("default"))) void glFrustum( GLdouble left, GLdouble right,
4309 GLdouble bottom, GLdouble top,
4310 GLdouble near_val, GLdouble far_val );
4311
4312__attribute__((visibility("default"))) void glViewport( GLint x, GLint y,
4313 GLsizei width, GLsizei height );
4314
4315__attribute__((visibility("default"))) void glPushMatrix( void );
4316
4317__attribute__((visibility("default"))) void glPopMatrix( void );
4318
4319__attribute__((visibility("default"))) void glLoadIdentity( void );
4320
4321__attribute__((visibility("default"))) void glLoadMatrixd( const GLdouble *m );
4322__attribute__((visibility("default"))) void glLoadMatrixf( const GLfloat *m );
4323
4324__attribute__((visibility("default"))) void glMultMatrixd( const GLdouble *m );
4325__attribute__((visibility("default"))) void glMultMatrixf( const GLfloat *m );
4326
4327__attribute__((visibility("default"))) void glRotated( GLdouble angle,
4328 GLdouble x, GLdouble y, GLdouble z );
4329__attribute__((visibility("default"))) void glRotatef( GLfloat angle,
4330 GLfloat x, GLfloat y, GLfloat z );
4331
4332__attribute__((visibility("default"))) void glScaled( GLdouble x, GLdouble y, GLdouble z );
4333__attribute__((visibility("default"))) void glScalef( GLfloat x, GLfloat y, GLfloat z );
4334
4335__attribute__((visibility("default"))) void glTranslated( GLdouble x, GLdouble y, GLdouble z );
4336__attribute__((visibility("default"))) void glTranslatef( GLfloat x, GLfloat y, GLfloat z );
4337
4338
4339
4340
4341
4342
4343__attribute__((visibility("default"))) GLboolean glIsList( GLuint list );
4344
4345__attribute__((visibility("default"))) void glDeleteLists( GLuint list, GLsizei range );
4346
4347__attribute__((visibility("default"))) GLuint glGenLists( GLsizei range );
4348
4349__attribute__((visibility("default"))) void glNewList( GLuint list, GLenum mode );
4350
4351__attribute__((visibility("default"))) void glEndList( void );
4352
4353__attribute__((visibility("default"))) void glCallList( GLuint list );
4354
4355__attribute__((visibility("default"))) void glCallLists( GLsizei n, GLenum type,
4356 const GLvoid *lists );
4357
4358__attribute__((visibility("default"))) void glListBase( GLuint base );
4359
4360
4361
4362
4363
4364
4365__attribute__((visibility("default"))) void glBegin( GLenum mode );
4366
4367__attribute__((visibility("default"))) void glEnd( void );
4368
4369
4370__attribute__((visibility("default"))) void glVertex2d( GLdouble x, GLdouble y );
4371__attribute__((visibility("default"))) void glVertex2f( GLfloat x, GLfloat y );
4372__attribute__((visibility("default"))) void glVertex2i( GLint x, GLint y );
4373__attribute__((visibility("default"))) void glVertex2s( GLshort x, GLshort y );
4374
4375__attribute__((visibility("default"))) void glVertex3d( GLdouble x, GLdouble y, GLdouble z );
4376__attribute__((visibility("default"))) void glVertex3f( GLfloat x, GLfloat y, GLfloat z );
4377__attribute__((visibility("default"))) void glVertex3i( GLint x, GLint y, GLint z );
4378__attribute__((visibility("default"))) void glVertex3s( GLshort x, GLshort y, GLshort z );
4379
4380__attribute__((visibility("default"))) void glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
4381__attribute__((visibility("default"))) void glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
4382__attribute__((visibility("default"))) void glVertex4i( GLint x, GLint y, GLint z, GLint w );
4383__attribute__((visibility("default"))) void glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
4384
4385__attribute__((visibility("default"))) void glVertex2dv( const GLdouble *v );
4386__attribute__((visibility("default"))) void glVertex2fv( const GLfloat *v );
4387__attribute__((visibility("default"))) void glVertex2iv( const GLint *v );
4388__attribute__((visibility("default"))) void glVertex2sv( const GLshort *v );
4389
4390__attribute__((visibility("default"))) void glVertex3dv( const GLdouble *v );
4391__attribute__((visibility("default"))) void glVertex3fv( const GLfloat *v );
4392__attribute__((visibility("default"))) void glVertex3iv( const GLint *v );
4393__attribute__((visibility("default"))) void glVertex3sv( const GLshort *v );
4394
4395__attribute__((visibility("default"))) void glVertex4dv( const GLdouble *v );
4396__attribute__((visibility("default"))) void glVertex4fv( const GLfloat *v );
4397__attribute__((visibility("default"))) void glVertex4iv( const GLint *v );
4398__attribute__((visibility("default"))) void glVertex4sv( const GLshort *v );
4399
4400
4401__attribute__((visibility("default"))) void glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
4402__attribute__((visibility("default"))) void glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
4403__attribute__((visibility("default"))) void glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
4404__attribute__((visibility("default"))) void glNormal3i( GLint nx, GLint ny, GLint nz );
4405__attribute__((visibility("default"))) void glNormal3s( GLshort nx, GLshort ny, GLshort nz );
4406
4407__attribute__((visibility("default"))) void glNormal3bv( const GLbyte *v );
4408__attribute__((visibility("default"))) void glNormal3dv( const GLdouble *v );
4409__attribute__((visibility("default"))) void glNormal3fv( const GLfloat *v );
4410__attribute__((visibility("default"))) void glNormal3iv( const GLint *v );
4411__attribute__((visibility("default"))) void glNormal3sv( const GLshort *v );
4412
4413
4414__attribute__((visibility("default"))) void glIndexd( GLdouble c );
4415__attribute__((visibility("default"))) void glIndexf( GLfloat c );
4416__attribute__((visibility("default"))) void glIndexi( GLint c );
4417__attribute__((visibility("default"))) void glIndexs( GLshort c );
4418__attribute__((visibility("default"))) void glIndexub( GLubyte c );
4419
4420__attribute__((visibility("default"))) void glIndexdv( const GLdouble *c );
4421__attribute__((visibility("default"))) void glIndexfv( const GLfloat *c );
4422__attribute__((visibility("default"))) void glIndexiv( const GLint *c );
4423__attribute__((visibility("default"))) void glIndexsv( const GLshort *c );
4424__attribute__((visibility("default"))) void glIndexubv( const GLubyte *c );
4425
4426__attribute__((visibility("default"))) void glColor3b( GLbyte red, GLbyte green, GLbyte blue );
4427__attribute__((visibility("default"))) void glColor3d( GLdouble red, GLdouble green, GLdouble blue );
4428__attribute__((visibility("default"))) void glColor3f( GLfloat red, GLfloat green, GLfloat blue );
4429__attribute__((visibility("default"))) void glColor3i( GLint red, GLint green, GLint blue );
4430__attribute__((visibility("default"))) void glColor3s( GLshort red, GLshort green, GLshort blue );
4431__attribute__((visibility("default"))) void glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
4432__attribute__((visibility("default"))) void glColor3ui( GLuint red, GLuint green, GLuint blue );
4433__attribute__((visibility("default"))) void glColor3us( GLushort red, GLushort green, GLushort blue );
4434
4435__attribute__((visibility("default"))) void glColor4b( GLbyte red, GLbyte green,
4436 GLbyte blue, GLbyte alpha );
4437__attribute__((visibility("default"))) void glColor4d( GLdouble red, GLdouble green,
4438 GLdouble blue, GLdouble alpha );
4439__attribute__((visibility("default"))) void glColor4f( GLfloat red, GLfloat green,
4440 GLfloat blue, GLfloat alpha );
4441__attribute__((visibility("default"))) void glColor4i( GLint red, GLint green,
4442 GLint blue, GLint alpha );
4443__attribute__((visibility("default"))) void glColor4s( GLshort red, GLshort green,
4444 GLshort blue, GLshort alpha );
4445__attribute__((visibility("default"))) void glColor4ub( GLubyte red, GLubyte green,
4446 GLubyte blue, GLubyte alpha );
4447__attribute__((visibility("default"))) void glColor4ui( GLuint red, GLuint green,
4448 GLuint blue, GLuint alpha );
4449__attribute__((visibility("default"))) void glColor4us( GLushort red, GLushort green,
4450 GLushort blue, GLushort alpha );
4451
4452
4453__attribute__((visibility("default"))) void glColor3bv( const GLbyte *v );
4454__attribute__((visibility("default"))) void glColor3dv( const GLdouble *v );
4455__attribute__((visibility("default"))) void glColor3fv( const GLfloat *v );
4456__attribute__((visibility("default"))) void glColor3iv( const GLint *v );
4457__attribute__((visibility("default"))) void glColor3sv( const GLshort *v );
4458__attribute__((visibility("default"))) void glColor3ubv( const GLubyte *v );
4459__attribute__((visibility("default"))) void glColor3uiv( const GLuint *v );
4460__attribute__((visibility("default"))) void glColor3usv( const GLushort *v );
4461
4462__attribute__((visibility("default"))) void glColor4bv( const GLbyte *v );
4463__attribute__((visibility("default"))) void glColor4dv( const GLdouble *v );
4464__attribute__((visibility("default"))) void glColor4fv( const GLfloat *v );
4465__attribute__((visibility("default"))) void glColor4iv( const GLint *v );
4466__attribute__((visibility("default"))) void glColor4sv( const GLshort *v );
4467__attribute__((visibility("default"))) void glColor4ubv( const GLubyte *v );
4468__attribute__((visibility("default"))) void glColor4uiv( const GLuint *v );
4469__attribute__((visibility("default"))) void glColor4usv( const GLushort *v );
4470
4471
4472__attribute__((visibility("default"))) void glTexCoord1d( GLdouble s );
4473__attribute__((visibility("default"))) void glTexCoord1f( GLfloat s );
4474__attribute__((visibility("default"))) void glTexCoord1i( GLint s );
4475__attribute__((visibility("default"))) void glTexCoord1s( GLshort s );
4476
4477__attribute__((visibility("default"))) void glTexCoord2d( GLdouble s, GLdouble t );
4478__attribute__((visibility("default"))) void glTexCoord2f( GLfloat s, GLfloat t );
4479__attribute__((visibility("default"))) void glTexCoord2i( GLint s, GLint t );
4480__attribute__((visibility("default"))) void glTexCoord2s( GLshort s, GLshort t );
4481
4482__attribute__((visibility("default"))) void glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
4483__attribute__((visibility("default"))) void glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
4484__attribute__((visibility("default"))) void glTexCoord3i( GLint s, GLint t, GLint r );
4485__attribute__((visibility("default"))) void glTexCoord3s( GLshort s, GLshort t, GLshort r );
4486
4487__attribute__((visibility("default"))) void glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
4488__attribute__((visibility("default"))) void glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
4489__attribute__((visibility("default"))) void glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
4490__attribute__((visibility("default"))) void glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
4491
4492__attribute__((visibility("default"))) void glTexCoord1dv( const GLdouble *v );
4493__attribute__((visibility("default"))) void glTexCoord1fv( const GLfloat *v );
4494__attribute__((visibility("default"))) void glTexCoord1iv( const GLint *v );
4495__attribute__((visibility("default"))) void glTexCoord1sv( const GLshort *v );
4496
4497__attribute__((visibility("default"))) void glTexCoord2dv( const GLdouble *v );
4498__attribute__((visibility("default"))) void glTexCoord2fv( const GLfloat *v );
4499__attribute__((visibility("default"))) void glTexCoord2iv( const GLint *v );
4500__attribute__((visibility("default"))) void glTexCoord2sv( const GLshort *v );
4501
4502__attribute__((visibility("default"))) void glTexCoord3dv( const GLdouble *v );
4503__attribute__((visibility("default"))) void glTexCoord3fv( const GLfloat *v );
4504__attribute__((visibility("default"))) void glTexCoord3iv( const GLint *v );
4505__attribute__((visibility("default"))) void glTexCoord3sv( const GLshort *v );
4506
4507__attribute__((visibility("default"))) void glTexCoord4dv( const GLdouble *v );
4508__attribute__((visibility("default"))) void glTexCoord4fv( const GLfloat *v );
4509__attribute__((visibility("default"))) void glTexCoord4iv( const GLint *v );
4510__attribute__((visibility("default"))) void glTexCoord4sv( const GLshort *v );
4511
4512
4513__attribute__((visibility("default"))) void glRasterPos2d( GLdouble x, GLdouble y );
4514__attribute__((visibility("default"))) void glRasterPos2f( GLfloat x, GLfloat y );
4515__attribute__((visibility("default"))) void glRasterPos2i( GLint x, GLint y );
4516__attribute__((visibility("default"))) void glRasterPos2s( GLshort x, GLshort y );
4517
4518__attribute__((visibility("default"))) void glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
4519__attribute__((visibility("default"))) void glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
4520__attribute__((visibility("default"))) void glRasterPos3i( GLint x, GLint y, GLint z );
4521__attribute__((visibility("default"))) void glRasterPos3s( GLshort x, GLshort y, GLshort z );
4522
4523__attribute__((visibility("default"))) void glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
4524__attribute__((visibility("default"))) void glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
4525__attribute__((visibility("default"))) void glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
4526__attribute__((visibility("default"))) void glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
4527
4528__attribute__((visibility("default"))) void glRasterPos2dv( const GLdouble *v );
4529__attribute__((visibility("default"))) void glRasterPos2fv( const GLfloat *v );
4530__attribute__((visibility("default"))) void glRasterPos2iv( const GLint *v );
4531__attribute__((visibility("default"))) void glRasterPos2sv( const GLshort *v );
4532
4533__attribute__((visibility("default"))) void glRasterPos3dv( const GLdouble *v );
4534__attribute__((visibility("default"))) void glRasterPos3fv( const GLfloat *v );
4535__attribute__((visibility("default"))) void glRasterPos3iv( const GLint *v );
4536__attribute__((visibility("default"))) void glRasterPos3sv( const GLshort *v );
4537
4538__attribute__((visibility("default"))) void glRasterPos4dv( const GLdouble *v );
4539__attribute__((visibility("default"))) void glRasterPos4fv( const GLfloat *v );
4540__attribute__((visibility("default"))) void glRasterPos4iv( const GLint *v );
4541__attribute__((visibility("default"))) void glRasterPos4sv( const GLshort *v );
4542
4543
4544__attribute__((visibility("default"))) void glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
4545__attribute__((visibility("default"))) void glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
4546__attribute__((visibility("default"))) void glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
4547__attribute__((visibility("default"))) void glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
4548
4549
4550__attribute__((visibility("default"))) void glRectdv( const GLdouble *v1, const GLdouble *v2 );
4551__attribute__((visibility("default"))) void glRectfv( const GLfloat *v1, const GLfloat *v2 );
4552__attribute__((visibility("default"))) void glRectiv( const GLint *v1, const GLint *v2 );
4553__attribute__((visibility("default"))) void glRectsv( const GLshort *v1, const GLshort *v2 );
4554
4555
4556
4557
4558
4559
4560__attribute__((visibility("default"))) void glVertexPointer( GLint size, GLenum type,
4561 GLsizei stride, const GLvoid *ptr );
4562
4563__attribute__((visibility("default"))) void glNormalPointer( GLenum type, GLsizei stride,
4564 const GLvoid *ptr );
4565
4566__attribute__((visibility("default"))) void glColorPointer( GLint size, GLenum type,
4567 GLsizei stride, const GLvoid *ptr );
4568
4569__attribute__((visibility("default"))) void glIndexPointer( GLenum type, GLsizei stride,
4570 const GLvoid *ptr );
4571
4572__attribute__((visibility("default"))) void glTexCoordPointer( GLint size, GLenum type,
4573 GLsizei stride, const GLvoid *ptr );
4574
4575__attribute__((visibility("default"))) void glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
4576
4577__attribute__((visibility("default"))) void glGetPointerv( GLenum pname, GLvoid **params );
4578
4579__attribute__((visibility("default"))) void glArrayElement( GLint i );
4580
4581__attribute__((visibility("default"))) void glDrawArrays( GLenum mode, GLint first, GLsizei count );
4582
4583__attribute__((visibility("default"))) void glDrawElements( GLenum mode, GLsizei count,
4584 GLenum type, const GLvoid *indices );
4585
4586__attribute__((visibility("default"))) void glInterleavedArrays( GLenum format, GLsizei stride,
4587 const GLvoid *pointer );
4588
4589
4590
4591
4592
4593__attribute__((visibility("default"))) void glShadeModel( GLenum mode );
4594
4595__attribute__((visibility("default"))) void glLightf( GLenum light, GLenum pname, GLfloat param );
4596__attribute__((visibility("default"))) void glLighti( GLenum light, GLenum pname, GLint param );
4597__attribute__((visibility("default"))) void glLightfv( GLenum light, GLenum pname,
4598 const GLfloat *params );
4599__attribute__((visibility("default"))) void glLightiv( GLenum light, GLenum pname,
4600 const GLint *params );
4601
4602__attribute__((visibility("default"))) void glGetLightfv( GLenum light, GLenum pname,
4603 GLfloat *params );
4604__attribute__((visibility("default"))) void glGetLightiv( GLenum light, GLenum pname,
4605 GLint *params );
4606
4607__attribute__((visibility("default"))) void glLightModelf( GLenum pname, GLfloat param );
4608__attribute__((visibility("default"))) void glLightModeli( GLenum pname, GLint param );
4609__attribute__((visibility("default"))) void glLightModelfv( GLenum pname, const GLfloat *params );
4610__attribute__((visibility("default"))) void glLightModeliv( GLenum pname, const GLint *params );
4611
4612__attribute__((visibility("default"))) void glMaterialf( GLenum face, GLenum pname, GLfloat param );
4613__attribute__((visibility("default"))) void glMateriali( GLenum face, GLenum pname, GLint param );
4614__attribute__((visibility("default"))) void glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
4615__attribute__((visibility("default"))) void glMaterialiv( GLenum face, GLenum pname, const GLint *params );
4616
4617__attribute__((visibility("default"))) void glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
4618__attribute__((visibility("default"))) void glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
4619
4620__attribute__((visibility("default"))) void glColorMaterial( GLenum face, GLenum mode );
4621
4622
4623
4624
4625
4626
4627__attribute__((visibility("default"))) void glPixelZoom( GLfloat xfactor, GLfloat yfactor );
4628
4629__attribute__((visibility("default"))) void glPixelStoref( GLenum pname, GLfloat param );
4630__attribute__((visibility("default"))) void glPixelStorei( GLenum pname, GLint param );
4631
4632__attribute__((visibility("default"))) void glPixelTransferf( GLenum pname, GLfloat param );
4633__attribute__((visibility("default"))) void glPixelTransferi( GLenum pname, GLint param );
4634
4635__attribute__((visibility("default"))) void glPixelMapfv( GLenum map, GLsizei mapsize,
4636 const GLfloat *values );
4637__attribute__((visibility("default"))) void glPixelMapuiv( GLenum map, GLsizei mapsize,
4638 const GLuint *values );
4639__attribute__((visibility("default"))) void glPixelMapusv( GLenum map, GLsizei mapsize,
4640 const GLushort *values );
4641
4642__attribute__((visibility("default"))) void glGetPixelMapfv( GLenum map, GLfloat *values );
4643__attribute__((visibility("default"))) void glGetPixelMapuiv( GLenum map, GLuint *values );
4644__attribute__((visibility("default"))) void glGetPixelMapusv( GLenum map, GLushort *values );
4645
4646__attribute__((visibility("default"))) void glBitmap( GLsizei width, GLsizei height,
4647 GLfloat xorig, GLfloat yorig,
4648 GLfloat xmove, GLfloat ymove,
4649 const GLubyte *bitmap );
4650
4651__attribute__((visibility("default"))) void glReadPixels( GLint x, GLint y,
4652 GLsizei width, GLsizei height,
4653 GLenum format, GLenum type,
4654 GLvoid *pixels );
4655
4656__attribute__((visibility("default"))) void glDrawPixels( GLsizei width, GLsizei height,
4657 GLenum format, GLenum type,
4658 const GLvoid *pixels );
4659
4660__attribute__((visibility("default"))) void glCopyPixels( GLint x, GLint y,
4661 GLsizei width, GLsizei height,
4662 GLenum type );
4663
4664
4665
4666
4667
4668__attribute__((visibility("default"))) void glStencilFunc( GLenum func, GLint ref, GLuint mask );
4669
4670__attribute__((visibility("default"))) void glStencilMask( GLuint mask );
4671
4672__attribute__((visibility("default"))) void glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
4673
4674__attribute__((visibility("default"))) void glClearStencil( GLint s );
4675
4676
4677
4678
4679
4680
4681
4682__attribute__((visibility("default"))) void glTexGend( GLenum coord, GLenum pname, GLdouble param );
4683__attribute__((visibility("default"))) void glTexGenf( GLenum coord, GLenum pname, GLfloat param );
4684__attribute__((visibility("default"))) void glTexGeni( GLenum coord, GLenum pname, GLint param );
4685
4686__attribute__((visibility("default"))) void glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
4687__attribute__((visibility("default"))) void glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
4688__attribute__((visibility("default"))) void glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
4689
4690__attribute__((visibility("default"))) void glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
4691__attribute__((visibility("default"))) void glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
4692__attribute__((visibility("default"))) void glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
4693
4694
4695__attribute__((visibility("default"))) void glTexEnvf( GLenum target, GLenum pname, GLfloat param );
4696__attribute__((visibility("default"))) void glTexEnvi( GLenum target, GLenum pname, GLint param );
4697
4698__attribute__((visibility("default"))) void glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
4699__attribute__((visibility("default"))) void glTexEnviv( GLenum target, GLenum pname, const GLint *params );
4700
4701__attribute__((visibility("default"))) void glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
4702__attribute__((visibility("default"))) void glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
4703
4704
4705__attribute__((visibility("default"))) void glTexParameterf( GLenum target, GLenum pname, GLfloat param );
4706__attribute__((visibility("default"))) void glTexParameteri( GLenum target, GLenum pname, GLint param );
4707
4708__attribute__((visibility("default"))) void glTexParameterfv( GLenum target, GLenum pname,
4709 const GLfloat *params );
4710__attribute__((visibility("default"))) void glTexParameteriv( GLenum target, GLenum pname,
4711 const GLint *params );
4712
4713__attribute__((visibility("default"))) void glGetTexParameterfv( GLenum target,
4714 GLenum pname, GLfloat *params);
4715__attribute__((visibility("default"))) void glGetTexParameteriv( GLenum target,
4716 GLenum pname, GLint *params );
4717
4718__attribute__((visibility("default"))) void glGetTexLevelParameterfv( GLenum target, GLint level,
4719 GLenum pname, GLfloat *params );
4720__attribute__((visibility("default"))) void glGetTexLevelParameteriv( GLenum target, GLint level,
4721 GLenum pname, GLint *params );
4722
4723
4724__attribute__((visibility("default"))) void glTexImage1D( GLenum target, GLint level,
4725 GLint internalFormat,
4726 GLsizei width, GLint border,
4727 GLenum format, GLenum type,
4728 const GLvoid *pixels );
4729
4730__attribute__((visibility("default"))) void glTexImage2D( GLenum target, GLint level,
4731 GLint internalFormat,
4732 GLsizei width, GLsizei height,
4733 GLint border, GLenum format, GLenum type,
4734 const GLvoid *pixels );
4735
4736__attribute__((visibility("default"))) void glGetTexImage( GLenum target, GLint level,
4737 GLenum format, GLenum type,
4738 GLvoid *pixels );
4739
4740
4741
4742
4743__attribute__((visibility("default"))) void glGenTextures( GLsizei n, GLuint *textures );
4744
4745__attribute__((visibility("default"))) void glDeleteTextures( GLsizei n, const GLuint *textures);
4746
4747__attribute__((visibility("default"))) void glBindTexture( GLenum target, GLuint texture );
4748
4749__attribute__((visibility("default"))) void glPrioritizeTextures( GLsizei n,
4750 const GLuint *textures,
4751 const GLclampf *priorities );
4752
4753__attribute__((visibility("default"))) GLboolean glAreTexturesResident( GLsizei n,
4754 const GLuint *textures,
4755 GLboolean *residences );
4756
4757__attribute__((visibility("default"))) GLboolean glIsTexture( GLuint texture );
4758
4759
4760__attribute__((visibility("default"))) void glTexSubImage1D( GLenum target, GLint level,
4761 GLint xoffset,
4762 GLsizei width, GLenum format,
4763 GLenum type, const GLvoid *pixels );
4764
4765
4766__attribute__((visibility("default"))) void glTexSubImage2D( GLenum target, GLint level,
4767 GLint xoffset, GLint yoffset,
4768 GLsizei width, GLsizei height,
4769 GLenum format, GLenum type,
4770 const GLvoid *pixels );
4771
4772
4773__attribute__((visibility("default"))) void glCopyTexImage1D( GLenum target, GLint level,
4774 GLenum internalformat,
4775 GLint x, GLint y,
4776 GLsizei width, GLint border );
4777
4778
4779__attribute__((visibility("default"))) void glCopyTexImage2D( GLenum target, GLint level,
4780 GLenum internalformat,
4781 GLint x, GLint y,
4782 GLsizei width, GLsizei height,
4783 GLint border );
4784
4785
4786__attribute__((visibility("default"))) void glCopyTexSubImage1D( GLenum target, GLint level,
4787 GLint xoffset, GLint x, GLint y,
4788 GLsizei width );
4789
4790
4791__attribute__((visibility("default"))) void glCopyTexSubImage2D( GLenum target, GLint level,
4792 GLint xoffset, GLint yoffset,
4793 GLint x, GLint y,
4794 GLsizei width, GLsizei height );
4795
4796
4797
4798
4799
4800
4801__attribute__((visibility("default"))) void glMap1d( GLenum target, GLdouble u1, GLdouble u2,
4802 GLint stride,
4803 GLint order, const GLdouble *points );
4804__attribute__((visibility("default"))) void glMap1f( GLenum target, GLfloat u1, GLfloat u2,
4805 GLint stride,
4806 GLint order, const GLfloat *points );
4807
4808__attribute__((visibility("default"))) void glMap2d( GLenum target,
4809 GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
4810 GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
4811 const GLdouble *points );
4812__attribute__((visibility("default"))) void glMap2f( GLenum target,
4813 GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
4814 GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
4815 const GLfloat *points );
4816
4817__attribute__((visibility("default"))) void glGetMapdv( GLenum target, GLenum query, GLdouble *v );
4818__attribute__((visibility("default"))) void glGetMapfv( GLenum target, GLenum query, GLfloat *v );
4819__attribute__((visibility("default"))) void glGetMapiv( GLenum target, GLenum query, GLint *v );
4820
4821__attribute__((visibility("default"))) void glEvalCoord1d( GLdouble u );
4822__attribute__((visibility("default"))) void glEvalCoord1f( GLfloat u );
4823
4824__attribute__((visibility("default"))) void glEvalCoord1dv( const GLdouble *u );
4825__attribute__((visibility("default"))) void glEvalCoord1fv( const GLfloat *u );
4826
4827__attribute__((visibility("default"))) void glEvalCoord2d( GLdouble u, GLdouble v );
4828__attribute__((visibility("default"))) void glEvalCoord2f( GLfloat u, GLfloat v );
4829
4830__attribute__((visibility("default"))) void glEvalCoord2dv( const GLdouble *u );
4831__attribute__((visibility("default"))) void glEvalCoord2fv( const GLfloat *u );
4832
4833__attribute__((visibility("default"))) void glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
4834__attribute__((visibility("default"))) void glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
4835
4836__attribute__((visibility("default"))) void glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
4837 GLint vn, GLdouble v1, GLdouble v2 );
4838__attribute__((visibility("default"))) void glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
4839 GLint vn, GLfloat v1, GLfloat v2 );
4840
4841__attribute__((visibility("default"))) void glEvalPoint1( GLint i );
4842
4843__attribute__((visibility("default"))) void glEvalPoint2( GLint i, GLint j );
4844
4845__attribute__((visibility("default"))) void glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
4846
4847__attribute__((visibility("default"))) void glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
4848
4849
4850
4851
4852
4853
4854__attribute__((visibility("default"))) void glFogf( GLenum pname, GLfloat param );
4855
4856__attribute__((visibility("default"))) void glFogi( GLenum pname, GLint param );
4857
4858__attribute__((visibility("default"))) void glFogfv( GLenum pname, const GLfloat *params );
4859
4860__attribute__((visibility("default"))) void glFogiv( GLenum pname, const GLint *params );
4861
4862
4863
4864
4865
4866
4867__attribute__((visibility("default"))) void glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
4868
4869__attribute__((visibility("default"))) void glPassThrough( GLfloat token );
4870
4871__attribute__((visibility("default"))) void glSelectBuffer( GLsizei size, GLuint *buffer );
4872
4873__attribute__((visibility("default"))) void glInitNames( void );
4874
4875__attribute__((visibility("default"))) void glLoadName( GLuint name );
4876
4877__attribute__((visibility("default"))) void glPushName( GLuint name );
4878
4879__attribute__((visibility("default"))) void glPopName( void );
4880# 1519 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
4881__attribute__((visibility("default"))) void glDrawRangeElements( GLenum mode, GLuint start,
4882 GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
4883
4884__attribute__((visibility("default"))) void glTexImage3D( GLenum target, GLint level,
4885 GLint internalFormat,
4886 GLsizei width, GLsizei height,
4887 GLsizei depth, GLint border,
4888 GLenum format, GLenum type,
4889 const GLvoid *pixels );
4890
4891__attribute__((visibility("default"))) void glTexSubImage3D( GLenum target, GLint level,
4892 GLint xoffset, GLint yoffset,
4893 GLint zoffset, GLsizei width,
4894 GLsizei height, GLsizei depth,
4895 GLenum format,
4896 GLenum type, const GLvoid *pixels);
4897
4898__attribute__((visibility("default"))) void glCopyTexSubImage3D( GLenum target, GLint level,
4899 GLint xoffset, GLint yoffset,
4900 GLint zoffset, GLint x,
4901 GLint y, GLsizei width,
4902 GLsizei height );
4903
4904typedef void ( * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
4905typedef void ( * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
4906typedef void ( * PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
4907typedef void ( * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
4908# 1629 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
4909__attribute__((visibility("default"))) void glColorTable( GLenum target, GLenum internalformat,
4910 GLsizei width, GLenum format,
4911 GLenum type, const GLvoid *table );
4912
4913__attribute__((visibility("default"))) void glColorSubTable( GLenum target,
4914 GLsizei start, GLsizei count,
4915 GLenum format, GLenum type,
4916 const GLvoid *data );
4917
4918__attribute__((visibility("default"))) void glColorTableParameteriv(GLenum target, GLenum pname,
4919 const GLint *params);
4920
4921__attribute__((visibility("default"))) void glColorTableParameterfv(GLenum target, GLenum pname,
4922 const GLfloat *params);
4923
4924__attribute__((visibility("default"))) void glCopyColorSubTable( GLenum target, GLsizei start,
4925 GLint x, GLint y, GLsizei width );
4926
4927__attribute__((visibility("default"))) void glCopyColorTable( GLenum target, GLenum internalformat,
4928 GLint x, GLint y, GLsizei width );
4929
4930__attribute__((visibility("default"))) void glGetColorTable( GLenum target, GLenum format,
4931 GLenum type, GLvoid *table );
4932
4933__attribute__((visibility("default"))) void glGetColorTableParameterfv( GLenum target, GLenum pname,
4934 GLfloat *params );
4935
4936__attribute__((visibility("default"))) void glGetColorTableParameteriv( GLenum target, GLenum pname,
4937 GLint *params );
4938
4939__attribute__((visibility("default"))) void glBlendEquation( GLenum mode );
4940
4941__attribute__((visibility("default"))) void glBlendColor( GLclampf red, GLclampf green,
4942 GLclampf blue, GLclampf alpha );
4943
4944__attribute__((visibility("default"))) void glHistogram( GLenum target, GLsizei width,
4945 GLenum internalformat, GLboolean sink );
4946
4947__attribute__((visibility("default"))) void glResetHistogram( GLenum target );
4948
4949__attribute__((visibility("default"))) void glGetHistogram( GLenum target, GLboolean reset,
4950 GLenum format, GLenum type,
4951 GLvoid *values );
4952
4953__attribute__((visibility("default"))) void glGetHistogramParameterfv( GLenum target, GLenum pname,
4954 GLfloat *params );
4955
4956__attribute__((visibility("default"))) void glGetHistogramParameteriv( GLenum target, GLenum pname,
4957 GLint *params );
4958
4959__attribute__((visibility("default"))) void glMinmax( GLenum target, GLenum internalformat,
4960 GLboolean sink );
4961
4962__attribute__((visibility("default"))) void glResetMinmax( GLenum target );
4963
4964__attribute__((visibility("default"))) void glGetMinmax( GLenum target, GLboolean reset,
4965 GLenum format, GLenum types,
4966 GLvoid *values );
4967
4968__attribute__((visibility("default"))) void glGetMinmaxParameterfv( GLenum target, GLenum pname,
4969 GLfloat *params );
4970
4971__attribute__((visibility("default"))) void glGetMinmaxParameteriv( GLenum target, GLenum pname,
4972 GLint *params );
4973
4974__attribute__((visibility("default"))) void glConvolutionFilter1D( GLenum target,
4975 GLenum internalformat, GLsizei width, GLenum format, GLenum type,
4976 const GLvoid *image );
4977
4978__attribute__((visibility("default"))) void glConvolutionFilter2D( GLenum target,
4979 GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
4980 GLenum type, const GLvoid *image );
4981
4982__attribute__((visibility("default"))) void glConvolutionParameterf( GLenum target, GLenum pname,
4983 GLfloat params );
4984
4985__attribute__((visibility("default"))) void glConvolutionParameterfv( GLenum target, GLenum pname,
4986 const GLfloat *params );
4987
4988__attribute__((visibility("default"))) void glConvolutionParameteri( GLenum target, GLenum pname,
4989 GLint params );
4990
4991__attribute__((visibility("default"))) void glConvolutionParameteriv( GLenum target, GLenum pname,
4992 const GLint *params );
4993
4994__attribute__((visibility("default"))) void glCopyConvolutionFilter1D( GLenum target,
4995 GLenum internalformat, GLint x, GLint y, GLsizei width );
4996
4997__attribute__((visibility("default"))) void glCopyConvolutionFilter2D( GLenum target,
4998 GLenum internalformat, GLint x, GLint y, GLsizei width,
4999 GLsizei height);
5000
5001__attribute__((visibility("default"))) void glGetConvolutionFilter( GLenum target, GLenum format,
5002 GLenum type, GLvoid *image );
5003
5004__attribute__((visibility("default"))) void glGetConvolutionParameterfv( GLenum target, GLenum pname,
5005 GLfloat *params );
5006
5007__attribute__((visibility("default"))) void glGetConvolutionParameteriv( GLenum target, GLenum pname,
5008 GLint *params );
5009
5010__attribute__((visibility("default"))) void glSeparableFilter2D( GLenum target,
5011 GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
5012 GLenum type, const GLvoid *row, const GLvoid *column );
5013
5014__attribute__((visibility("default"))) void glGetSeparableFilter( GLenum target, GLenum format,
5015 GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
5016
5017typedef void ( * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
5018typedef void ( * PFNGLBLENDEQUATIONPROC) (GLenum mode);
5019typedef void ( * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
5020typedef void ( * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
5021typedef void ( * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
5022typedef void ( * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
5023typedef void ( * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
5024typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
5025typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
5026typedef void ( * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
5027typedef void ( * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
5028typedef void ( * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
5029typedef void ( * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
5030typedef void ( * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
5031typedef void ( * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
5032typedef void ( * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
5033typedef void ( * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
5034typedef void ( * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
5035typedef void ( * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
5036typedef void ( * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
5037typedef void ( * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
5038typedef void ( * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
5039typedef void ( * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
5040typedef void ( * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
5041typedef void ( * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
5042typedef void ( * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
5043typedef void ( * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
5044typedef void ( * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
5045typedef void ( * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
5046typedef void ( * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
5047typedef void ( * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
5048typedef void ( * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
5049typedef void ( * PFNGLRESETHISTOGRAMPROC) (GLenum target);
5050typedef void ( * PFNGLRESETMINMAXPROC) (GLenum target);
5051# 1883 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
5052__attribute__((visibility("default"))) void glActiveTexture( GLenum texture );
5053
5054__attribute__((visibility("default"))) void glClientActiveTexture( GLenum texture );
5055
5056__attribute__((visibility("default"))) void glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
5057
5058__attribute__((visibility("default"))) void glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
5059
5060__attribute__((visibility("default"))) void glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
5061
5062__attribute__((visibility("default"))) void glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
5063
5064__attribute__((visibility("default"))) void glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
5065
5066__attribute__((visibility("default"))) void glCompressedTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data );
5067
5068__attribute__((visibility("default"))) void glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img );
5069
5070__attribute__((visibility("default"))) void glMultiTexCoord1d( GLenum target, GLdouble s );
5071
5072__attribute__((visibility("default"))) void glMultiTexCoord1dv( GLenum target, const GLdouble *v );
5073
5074__attribute__((visibility("default"))) void glMultiTexCoord1f( GLenum target, GLfloat s );
5075
5076__attribute__((visibility("default"))) void glMultiTexCoord1fv( GLenum target, const GLfloat *v );
5077
5078__attribute__((visibility("default"))) void glMultiTexCoord1i( GLenum target, GLint s );
5079
5080__attribute__((visibility("default"))) void glMultiTexCoord1iv( GLenum target, const GLint *v );
5081
5082__attribute__((visibility("default"))) void glMultiTexCoord1s( GLenum target, GLshort s );
5083
5084__attribute__((visibility("default"))) void glMultiTexCoord1sv( GLenum target, const GLshort *v );
5085
5086__attribute__((visibility("default"))) void glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t );
5087
5088__attribute__((visibility("default"))) void glMultiTexCoord2dv( GLenum target, const GLdouble *v );
5089
5090__attribute__((visibility("default"))) void glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t );
5091
5092__attribute__((visibility("default"))) void glMultiTexCoord2fv( GLenum target, const GLfloat *v );
5093
5094__attribute__((visibility("default"))) void glMultiTexCoord2i( GLenum target, GLint s, GLint t );
5095
5096__attribute__((visibility("default"))) void glMultiTexCoord2iv( GLenum target, const GLint *v );
5097
5098__attribute__((visibility("default"))) void glMultiTexCoord2s( GLenum target, GLshort s, GLshort t );
5099
5100__attribute__((visibility("default"))) void glMultiTexCoord2sv( GLenum target, const GLshort *v );
5101
5102__attribute__((visibility("default"))) void glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r );
5103
5104__attribute__((visibility("default"))) void glMultiTexCoord3dv( GLenum target, const GLdouble *v );
5105
5106__attribute__((visibility("default"))) void glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r );
5107
5108__attribute__((visibility("default"))) void glMultiTexCoord3fv( GLenum target, const GLfloat *v );
5109
5110__attribute__((visibility("default"))) void glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r );
5111
5112__attribute__((visibility("default"))) void glMultiTexCoord3iv( GLenum target, const GLint *v );
5113
5114__attribute__((visibility("default"))) void glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r );
5115
5116__attribute__((visibility("default"))) void glMultiTexCoord3sv( GLenum target, const GLshort *v );
5117
5118__attribute__((visibility("default"))) void glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q );
5119
5120__attribute__((visibility("default"))) void glMultiTexCoord4dv( GLenum target, const GLdouble *v );
5121
5122__attribute__((visibility("default"))) void glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
5123
5124__attribute__((visibility("default"))) void glMultiTexCoord4fv( GLenum target, const GLfloat *v );
5125
5126__attribute__((visibility("default"))) void glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q );
5127
5128__attribute__((visibility("default"))) void glMultiTexCoord4iv( GLenum target, const GLint *v );
5129
5130__attribute__((visibility("default"))) void glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q );
5131
5132__attribute__((visibility("default"))) void glMultiTexCoord4sv( GLenum target, const GLshort *v );
5133
5134
5135__attribute__((visibility("default"))) void glLoadTransposeMatrixd( const GLdouble m[16] );
5136
5137__attribute__((visibility("default"))) void glLoadTransposeMatrixf( const GLfloat m[16] );
5138
5139__attribute__((visibility("default"))) void glMultTransposeMatrixd( const GLdouble m[16] );
5140
5141__attribute__((visibility("default"))) void glMultTransposeMatrixf( const GLfloat m[16] );
5142
5143__attribute__((visibility("default"))) void glSampleCoverage( GLclampf value, GLboolean invert );
5144
5145typedef void ( * PFNGLACTIVETEXTUREPROC) (GLenum texture);
5146typedef void ( * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
5147typedef void ( * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
5148typedef void ( * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
5149typedef void ( * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
5150typedef void ( * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
5151typedef void ( * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
5152typedef void ( * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
5153typedef void ( * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
5154typedef void ( * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
5155typedef void ( * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
5156typedef void ( * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
5157typedef void ( * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
5158typedef void ( * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
5159typedef void ( * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
5160typedef void ( * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
5161typedef void ( * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
5162typedef void ( * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
5163typedef void ( * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
5164typedef void ( * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
5165typedef void ( * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
5166typedef void ( * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
5167typedef void ( * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
5168typedef void ( * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
5169typedef void ( * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
5170typedef void ( * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
5171typedef void ( * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
5172typedef void ( * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
5173typedef void ( * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
5174typedef void ( * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
5175typedef void ( * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
5176typedef void ( * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
5177typedef void ( * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
5178typedef void ( * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
5179typedef void ( * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
5180typedef void ( * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
5181typedef void ( * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
5182typedef void ( * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
5183typedef void ( * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
5184typedef void ( * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
5185typedef void ( * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
5186typedef void ( * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
5187typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
5188typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
5189typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
5190typedef void ( * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
5191# 2066 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
5192__attribute__((visibility("default"))) void glActiveTextureARB(GLenum texture);
5193__attribute__((visibility("default"))) void glClientActiveTextureARB(GLenum texture);
5194__attribute__((visibility("default"))) void glMultiTexCoord1dARB(GLenum target, GLdouble s);
5195__attribute__((visibility("default"))) void glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
5196__attribute__((visibility("default"))) void glMultiTexCoord1fARB(GLenum target, GLfloat s);
5197__attribute__((visibility("default"))) void glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
5198__attribute__((visibility("default"))) void glMultiTexCoord1iARB(GLenum target, GLint s);
5199__attribute__((visibility("default"))) void glMultiTexCoord1ivARB(GLenum target, const GLint *v);
5200__attribute__((visibility("default"))) void glMultiTexCoord1sARB(GLenum target, GLshort s);
5201__attribute__((visibility("default"))) void glMultiTexCoord1svARB(GLenum target, const GLshort *v);
5202__attribute__((visibility("default"))) void glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
5203__attribute__((visibility("default"))) void glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
5204__attribute__((visibility("default"))) void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
5205__attribute__((visibility("default"))) void glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
5206__attribute__((visibility("default"))) void glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
5207__attribute__((visibility("default"))) void glMultiTexCoord2ivARB(GLenum target, const GLint *v);
5208__attribute__((visibility("default"))) void glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
5209__attribute__((visibility("default"))) void glMultiTexCoord2svARB(GLenum target, const GLshort *v);
5210__attribute__((visibility("default"))) void glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
5211__attribute__((visibility("default"))) void glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
5212__attribute__((visibility("default"))) void glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
5213__attribute__((visibility("default"))) void glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
5214__attribute__((visibility("default"))) void glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
5215__attribute__((visibility("default"))) void glMultiTexCoord3ivARB(GLenum target, const GLint *v);
5216__attribute__((visibility("default"))) void glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
5217__attribute__((visibility("default"))) void glMultiTexCoord3svARB(GLenum target, const GLshort *v);
5218__attribute__((visibility("default"))) void glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
5219__attribute__((visibility("default"))) void glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
5220__attribute__((visibility("default"))) void glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
5221__attribute__((visibility("default"))) void glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
5222__attribute__((visibility("default"))) void glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
5223__attribute__((visibility("default"))) void glMultiTexCoord4ivARB(GLenum target, const GLint *v);
5224__attribute__((visibility("default"))) void glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
5225__attribute__((visibility("default"))) void glMultiTexCoord4svARB(GLenum target, const GLshort *v);
5226
5227typedef void ( * PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
5228typedef void ( * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
5229typedef void ( * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
5230typedef void ( * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
5231typedef void ( * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
5232typedef void ( * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
5233typedef void ( * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
5234typedef void ( * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
5235typedef void ( * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
5236typedef void ( * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
5237typedef void ( * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
5238typedef void ( * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
5239typedef void ( * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
5240typedef void ( * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
5241typedef void ( * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
5242typedef void ( * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
5243typedef void ( * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
5244typedef void ( * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
5245typedef void ( * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
5246typedef void ( * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
5247typedef void ( * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
5248typedef void ( * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
5249typedef void ( * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
5250typedef void ( * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
5251typedef void ( * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
5252typedef void ( * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
5253typedef void ( * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
5254typedef void ( * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
5255typedef void ( * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
5256typedef void ( * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
5257typedef void ( * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
5258typedef void ( * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
5259typedef void ( * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
5260typedef void ( * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
5261# 2150 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
5262# 1 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h" 1
5263# 3385 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5264# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 1 3 4
5265# 152 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/stddef.h" 3 4
5266typedef long int ptrdiff_t;
5267# 3386 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h" 2
5268
5269
5270typedef char GLchar;
5271
5272
5273
5274
5275typedef ptrdiff_t GLintptr;
5276typedef ptrdiff_t GLsizeiptr;
5277
5278
5279
5280
5281typedef ptrdiff_t GLintptrARB;
5282typedef ptrdiff_t GLsizeiptrARB;
5283
5284
5285
5286
5287typedef char GLcharARB;
5288typedef unsigned int GLhandleARB;
5289
5290
5291
5292
5293typedef unsigned short GLhalfARB;
5294
5295
5296
5297typedef unsigned short GLhalfNV;
5298# 3456 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5299typedef int64_t GLint64EXT;
5300typedef uint64_t GLuint64EXT;
5301# 3643 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5302__attribute__((visibility("default"))) void glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum);
5303__attribute__((visibility("default"))) void glFogCoordf (GLfloat);
5304__attribute__((visibility("default"))) void glFogCoordfv (const GLfloat *);
5305__attribute__((visibility("default"))) void glFogCoordd (GLdouble);
5306__attribute__((visibility("default"))) void glFogCoorddv (const GLdouble *);
5307__attribute__((visibility("default"))) void glFogCoordPointer (GLenum, GLsizei, const GLvoid *);
5308__attribute__((visibility("default"))) void glMultiDrawArrays (GLenum, GLint *, GLsizei *, GLsizei);
5309__attribute__((visibility("default"))) void glMultiDrawElements (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
5310__attribute__((visibility("default"))) void glPointParameterf (GLenum, GLfloat);
5311__attribute__((visibility("default"))) void glPointParameterfv (GLenum, const GLfloat *);
5312__attribute__((visibility("default"))) void glPointParameteri (GLenum, GLint);
5313__attribute__((visibility("default"))) void glPointParameteriv (GLenum, const GLint *);
5314__attribute__((visibility("default"))) void glSecondaryColor3b (GLbyte, GLbyte, GLbyte);
5315__attribute__((visibility("default"))) void glSecondaryColor3bv (const GLbyte *);
5316__attribute__((visibility("default"))) void glSecondaryColor3d (GLdouble, GLdouble, GLdouble);
5317__attribute__((visibility("default"))) void glSecondaryColor3dv (const GLdouble *);
5318__attribute__((visibility("default"))) void glSecondaryColor3f (GLfloat, GLfloat, GLfloat);
5319__attribute__((visibility("default"))) void glSecondaryColor3fv (const GLfloat *);
5320__attribute__((visibility("default"))) void glSecondaryColor3i (GLint, GLint, GLint);
5321__attribute__((visibility("default"))) void glSecondaryColor3iv (const GLint *);
5322__attribute__((visibility("default"))) void glSecondaryColor3s (GLshort, GLshort, GLshort);
5323__attribute__((visibility("default"))) void glSecondaryColor3sv (const GLshort *);
5324__attribute__((visibility("default"))) void glSecondaryColor3ub (GLubyte, GLubyte, GLubyte);
5325__attribute__((visibility("default"))) void glSecondaryColor3ubv (const GLubyte *);
5326__attribute__((visibility("default"))) void glSecondaryColor3ui (GLuint, GLuint, GLuint);
5327__attribute__((visibility("default"))) void glSecondaryColor3uiv (const GLuint *);
5328__attribute__((visibility("default"))) void glSecondaryColor3us (GLushort, GLushort, GLushort);
5329__attribute__((visibility("default"))) void glSecondaryColor3usv (const GLushort *);
5330__attribute__((visibility("default"))) void glSecondaryColorPointer (GLint, GLenum, GLsizei, const GLvoid *);
5331__attribute__((visibility("default"))) void glWindowPos2d (GLdouble, GLdouble);
5332__attribute__((visibility("default"))) void glWindowPos2dv (const GLdouble *);
5333__attribute__((visibility("default"))) void glWindowPos2f (GLfloat, GLfloat);
5334__attribute__((visibility("default"))) void glWindowPos2fv (const GLfloat *);
5335__attribute__((visibility("default"))) void glWindowPos2i (GLint, GLint);
5336__attribute__((visibility("default"))) void glWindowPos2iv (const GLint *);
5337__attribute__((visibility("default"))) void glWindowPos2s (GLshort, GLshort);
5338__attribute__((visibility("default"))) void glWindowPos2sv (const GLshort *);
5339__attribute__((visibility("default"))) void glWindowPos3d (GLdouble, GLdouble, GLdouble);
5340__attribute__((visibility("default"))) void glWindowPos3dv (const GLdouble *);
5341__attribute__((visibility("default"))) void glWindowPos3f (GLfloat, GLfloat, GLfloat);
5342__attribute__((visibility("default"))) void glWindowPos3fv (const GLfloat *);
5343__attribute__((visibility("default"))) void glWindowPos3i (GLint, GLint, GLint);
5344__attribute__((visibility("default"))) void glWindowPos3iv (const GLint *);
5345__attribute__((visibility("default"))) void glWindowPos3s (GLshort, GLshort, GLshort);
5346__attribute__((visibility("default"))) void glWindowPos3sv (const GLshort *);
5347
5348typedef void ( * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
5349typedef void ( * PFNGLFOGCOORDFPROC) (GLfloat coord);
5350typedef void ( * PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
5351typedef void ( * PFNGLFOGCOORDDPROC) (GLdouble coord);
5352typedef void ( * PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
5353typedef void ( * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
5354typedef void ( * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
5355typedef void ( * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
5356typedef void ( * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
5357typedef void ( * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
5358typedef void ( * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
5359typedef void ( * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
5360typedef void ( * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
5361typedef void ( * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
5362typedef void ( * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
5363typedef void ( * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
5364typedef void ( * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
5365typedef void ( * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
5366typedef void ( * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
5367typedef void ( * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
5368typedef void ( * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
5369typedef void ( * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
5370typedef void ( * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
5371typedef void ( * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
5372typedef void ( * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
5373typedef void ( * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
5374typedef void ( * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
5375typedef void ( * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
5376typedef void ( * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5377typedef void ( * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
5378typedef void ( * PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
5379typedef void ( * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
5380typedef void ( * PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
5381typedef void ( * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
5382typedef void ( * PFNGLWINDOWPOS2IVPROC) (const GLint *v);
5383typedef void ( * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
5384typedef void ( * PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
5385typedef void ( * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
5386typedef void ( * PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
5387typedef void ( * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
5388typedef void ( * PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
5389typedef void ( * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
5390typedef void ( * PFNGLWINDOWPOS3IVPROC) (const GLint *v);
5391typedef void ( * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
5392typedef void ( * PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
5393
5394
5395
5396
5397
5398__attribute__((visibility("default"))) void glGenQueries (GLsizei, GLuint *);
5399__attribute__((visibility("default"))) void glDeleteQueries (GLsizei, const GLuint *);
5400__attribute__((visibility("default"))) GLboolean glIsQuery (GLuint);
5401__attribute__((visibility("default"))) void glBeginQuery (GLenum, GLuint);
5402__attribute__((visibility("default"))) void glEndQuery (GLenum);
5403__attribute__((visibility("default"))) void glGetQueryiv (GLenum, GLenum, GLint *);
5404__attribute__((visibility("default"))) void glGetQueryObjectiv (GLuint, GLenum, GLint *);
5405__attribute__((visibility("default"))) void glGetQueryObjectuiv (GLuint, GLenum, GLuint *);
5406__attribute__((visibility("default"))) void glBindBuffer (GLenum, GLuint);
5407__attribute__((visibility("default"))) void glDeleteBuffers (GLsizei, const GLuint *);
5408__attribute__((visibility("default"))) void glGenBuffers (GLsizei, GLuint *);
5409__attribute__((visibility("default"))) GLboolean glIsBuffer (GLuint);
5410__attribute__((visibility("default"))) void glBufferData (GLenum, GLsizeiptr, const GLvoid *, GLenum);
5411__attribute__((visibility("default"))) void glBufferSubData (GLenum, GLintptr, GLsizeiptr, const GLvoid *);
5412__attribute__((visibility("default"))) void glGetBufferSubData (GLenum, GLintptr, GLsizeiptr, GLvoid *);
5413__attribute__((visibility("default"))) GLvoid* glMapBuffer (GLenum, GLenum);
5414__attribute__((visibility("default"))) GLboolean glUnmapBuffer (GLenum);
5415__attribute__((visibility("default"))) void glGetBufferParameteriv (GLenum, GLenum, GLint *);
5416__attribute__((visibility("default"))) void glGetBufferPointerv (GLenum, GLenum, GLvoid* *);
5417
5418typedef void ( * PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
5419typedef void ( * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
5420typedef GLboolean ( * PFNGLISQUERYPROC) (GLuint id);
5421typedef void ( * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
5422typedef void ( * PFNGLENDQUERYPROC) (GLenum target);
5423typedef void ( * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
5424typedef void ( * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
5425typedef void ( * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
5426typedef void ( * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
5427typedef void ( * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
5428typedef void ( * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
5429typedef GLboolean ( * PFNGLISBUFFERPROC) (GLuint buffer);
5430typedef void ( * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
5431typedef void ( * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
5432typedef void ( * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
5433typedef GLvoid* ( * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
5434typedef GLboolean ( * PFNGLUNMAPBUFFERPROC) (GLenum target);
5435typedef void ( * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
5436typedef void ( * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
5437
5438
5439
5440
5441
5442__attribute__((visibility("default"))) void glBlendEquationSeparate (GLenum, GLenum);
5443__attribute__((visibility("default"))) void glDrawBuffers (GLsizei, const GLenum *);
5444__attribute__((visibility("default"))) void glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum);
5445__attribute__((visibility("default"))) void glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint);
5446__attribute__((visibility("default"))) void glStencilMaskSeparate (GLenum, GLuint);
5447__attribute__((visibility("default"))) void glAttachShader (GLuint, GLuint);
5448__attribute__((visibility("default"))) void glBindAttribLocation (GLuint, GLuint, const GLchar *);
5449__attribute__((visibility("default"))) void glCompileShader (GLuint);
5450__attribute__((visibility("default"))) GLuint glCreateProgram (void);
5451__attribute__((visibility("default"))) GLuint glCreateShader (GLenum);
5452__attribute__((visibility("default"))) void glDeleteProgram (GLuint);
5453__attribute__((visibility("default"))) void glDeleteShader (GLuint);
5454__attribute__((visibility("default"))) void glDetachShader (GLuint, GLuint);
5455__attribute__((visibility("default"))) void glDisableVertexAttribArray (GLuint);
5456__attribute__((visibility("default"))) void glEnableVertexAttribArray (GLuint);
5457__attribute__((visibility("default"))) void glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
5458__attribute__((visibility("default"))) void glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
5459__attribute__((visibility("default"))) void glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *);
5460__attribute__((visibility("default"))) GLint glGetAttribLocation (GLuint, const GLchar *);
5461__attribute__((visibility("default"))) void glGetProgramiv (GLuint, GLenum, GLint *);
5462__attribute__((visibility("default"))) void glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
5463__attribute__((visibility("default"))) void glGetShaderiv (GLuint, GLenum, GLint *);
5464__attribute__((visibility("default"))) void glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
5465__attribute__((visibility("default"))) void glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *);
5466__attribute__((visibility("default"))) GLint glGetUniformLocation (GLuint, const GLchar *);
5467__attribute__((visibility("default"))) void glGetUniformfv (GLuint, GLint, GLfloat *);
5468__attribute__((visibility("default"))) void glGetUniformiv (GLuint, GLint, GLint *);
5469__attribute__((visibility("default"))) void glGetVertexAttribdv (GLuint, GLenum, GLdouble *);
5470__attribute__((visibility("default"))) void glGetVertexAttribfv (GLuint, GLenum, GLfloat *);
5471__attribute__((visibility("default"))) void glGetVertexAttribiv (GLuint, GLenum, GLint *);
5472__attribute__((visibility("default"))) void glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *);
5473__attribute__((visibility("default"))) GLboolean glIsProgram (GLuint);
5474__attribute__((visibility("default"))) GLboolean glIsShader (GLuint);
5475__attribute__((visibility("default"))) void glLinkProgram (GLuint);
5476__attribute__((visibility("default"))) void glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *);
5477__attribute__((visibility("default"))) void glUseProgram (GLuint);
5478__attribute__((visibility("default"))) void glUniform1f (GLint, GLfloat);
5479__attribute__((visibility("default"))) void glUniform2f (GLint, GLfloat, GLfloat);
5480__attribute__((visibility("default"))) void glUniform3f (GLint, GLfloat, GLfloat, GLfloat);
5481__attribute__((visibility("default"))) void glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat);
5482__attribute__((visibility("default"))) void glUniform1i (GLint, GLint);
5483__attribute__((visibility("default"))) void glUniform2i (GLint, GLint, GLint);
5484__attribute__((visibility("default"))) void glUniform3i (GLint, GLint, GLint, GLint);
5485__attribute__((visibility("default"))) void glUniform4i (GLint, GLint, GLint, GLint, GLint);
5486__attribute__((visibility("default"))) void glUniform1fv (GLint, GLsizei, const GLfloat *);
5487__attribute__((visibility("default"))) void glUniform2fv (GLint, GLsizei, const GLfloat *);
5488__attribute__((visibility("default"))) void glUniform3fv (GLint, GLsizei, const GLfloat *);
5489__attribute__((visibility("default"))) void glUniform4fv (GLint, GLsizei, const GLfloat *);
5490__attribute__((visibility("default"))) void glUniform1iv (GLint, GLsizei, const GLint *);
5491__attribute__((visibility("default"))) void glUniform2iv (GLint, GLsizei, const GLint *);
5492__attribute__((visibility("default"))) void glUniform3iv (GLint, GLsizei, const GLint *);
5493__attribute__((visibility("default"))) void glUniform4iv (GLint, GLsizei, const GLint *);
5494__attribute__((visibility("default"))) void glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *);
5495__attribute__((visibility("default"))) void glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *);
5496__attribute__((visibility("default"))) void glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *);
5497__attribute__((visibility("default"))) void glValidateProgram (GLuint);
5498__attribute__((visibility("default"))) void glVertexAttrib1d (GLuint, GLdouble);
5499__attribute__((visibility("default"))) void glVertexAttrib1dv (GLuint, const GLdouble *);
5500__attribute__((visibility("default"))) void glVertexAttrib1f (GLuint, GLfloat);
5501__attribute__((visibility("default"))) void glVertexAttrib1fv (GLuint, const GLfloat *);
5502__attribute__((visibility("default"))) void glVertexAttrib1s (GLuint, GLshort);
5503__attribute__((visibility("default"))) void glVertexAttrib1sv (GLuint, const GLshort *);
5504__attribute__((visibility("default"))) void glVertexAttrib2d (GLuint, GLdouble, GLdouble);
5505__attribute__((visibility("default"))) void glVertexAttrib2dv (GLuint, const GLdouble *);
5506__attribute__((visibility("default"))) void glVertexAttrib2f (GLuint, GLfloat, GLfloat);
5507__attribute__((visibility("default"))) void glVertexAttrib2fv (GLuint, const GLfloat *);
5508__attribute__((visibility("default"))) void glVertexAttrib2s (GLuint, GLshort, GLshort);
5509__attribute__((visibility("default"))) void glVertexAttrib2sv (GLuint, const GLshort *);
5510__attribute__((visibility("default"))) void glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble);
5511__attribute__((visibility("default"))) void glVertexAttrib3dv (GLuint, const GLdouble *);
5512__attribute__((visibility("default"))) void glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat);
5513__attribute__((visibility("default"))) void glVertexAttrib3fv (GLuint, const GLfloat *);
5514__attribute__((visibility("default"))) void glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort);
5515__attribute__((visibility("default"))) void glVertexAttrib3sv (GLuint, const GLshort *);
5516__attribute__((visibility("default"))) void glVertexAttrib4Nbv (GLuint, const GLbyte *);
5517__attribute__((visibility("default"))) void glVertexAttrib4Niv (GLuint, const GLint *);
5518__attribute__((visibility("default"))) void glVertexAttrib4Nsv (GLuint, const GLshort *);
5519__attribute__((visibility("default"))) void glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
5520__attribute__((visibility("default"))) void glVertexAttrib4Nubv (GLuint, const GLubyte *);
5521__attribute__((visibility("default"))) void glVertexAttrib4Nuiv (GLuint, const GLuint *);
5522__attribute__((visibility("default"))) void glVertexAttrib4Nusv (GLuint, const GLushort *);
5523__attribute__((visibility("default"))) void glVertexAttrib4bv (GLuint, const GLbyte *);
5524__attribute__((visibility("default"))) void glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
5525__attribute__((visibility("default"))) void glVertexAttrib4dv (GLuint, const GLdouble *);
5526__attribute__((visibility("default"))) void glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
5527__attribute__((visibility("default"))) void glVertexAttrib4fv (GLuint, const GLfloat *);
5528__attribute__((visibility("default"))) void glVertexAttrib4iv (GLuint, const GLint *);
5529__attribute__((visibility("default"))) void glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort);
5530__attribute__((visibility("default"))) void glVertexAttrib4sv (GLuint, const GLshort *);
5531__attribute__((visibility("default"))) void glVertexAttrib4ubv (GLuint, const GLubyte *);
5532__attribute__((visibility("default"))) void glVertexAttrib4uiv (GLuint, const GLuint *);
5533__attribute__((visibility("default"))) void glVertexAttrib4usv (GLuint, const GLushort *);
5534__attribute__((visibility("default"))) void glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
5535
5536typedef void ( * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
5537typedef void ( * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
5538typedef void ( * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
5539typedef void ( * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
5540typedef void ( * PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
5541typedef void ( * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
5542typedef void ( * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
5543typedef void ( * PFNGLCOMPILESHADERPROC) (GLuint shader);
5544typedef GLuint ( * PFNGLCREATEPROGRAMPROC) (void);
5545typedef GLuint ( * PFNGLCREATESHADERPROC) (GLenum type);
5546typedef void ( * PFNGLDELETEPROGRAMPROC) (GLuint program);
5547typedef void ( * PFNGLDELETESHADERPROC) (GLuint shader);
5548typedef void ( * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
5549typedef void ( * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
5550typedef void ( * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
5551typedef void ( * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
5552typedef void ( * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
5553typedef void ( * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
5554typedef GLint ( * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
5555typedef void ( * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
5556typedef void ( * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
5557typedef void ( * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
5558typedef void ( * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
5559typedef void ( * PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
5560typedef GLint ( * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
5561typedef void ( * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
5562typedef void ( * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
5563typedef void ( * PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
5564typedef void ( * PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
5565typedef void ( * PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
5566typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
5567typedef GLboolean ( * PFNGLISPROGRAMPROC) (GLuint program);
5568typedef GLboolean ( * PFNGLISSHADERPROC) (GLuint shader);
5569typedef void ( * PFNGLLINKPROGRAMPROC) (GLuint program);
5570typedef void ( * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
5571typedef void ( * PFNGLUSEPROGRAMPROC) (GLuint program);
5572typedef void ( * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
5573typedef void ( * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
5574typedef void ( * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
5575typedef void ( * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
5576typedef void ( * PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
5577typedef void ( * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
5578typedef void ( * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
5579typedef void ( * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
5580typedef void ( * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
5581typedef void ( * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
5582typedef void ( * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
5583typedef void ( * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
5584typedef void ( * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
5585typedef void ( * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
5586typedef void ( * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
5587typedef void ( * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
5588typedef void ( * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5589typedef void ( * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5590typedef void ( * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5591typedef void ( * PFNGLVALIDATEPROGRAMPROC) (GLuint program);
5592typedef void ( * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
5593typedef void ( * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
5594typedef void ( * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
5595typedef void ( * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
5596typedef void ( * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
5597typedef void ( * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
5598typedef void ( * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
5599typedef void ( * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
5600typedef void ( * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
5601typedef void ( * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
5602typedef void ( * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
5603typedef void ( * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
5604typedef void ( * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
5605typedef void ( * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
5606typedef void ( * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
5607typedef void ( * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
5608typedef void ( * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
5609typedef void ( * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
5610typedef void ( * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
5611typedef void ( * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
5612typedef void ( * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
5613typedef void ( * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
5614typedef void ( * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
5615typedef void ( * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
5616typedef void ( * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
5617typedef void ( * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
5618typedef void ( * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5619typedef void ( * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
5620typedef void ( * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5621typedef void ( * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
5622typedef void ( * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
5623typedef void ( * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
5624typedef void ( * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
5625typedef void ( * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
5626typedef void ( * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
5627typedef void ( * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
5628typedef void ( * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
5629
5630
5631
5632
5633
5634__attribute__((visibility("default"))) void glUniformMatrix2x3fv (GLint, GLsizei, GLboolean, const GLfloat *);
5635__attribute__((visibility("default"))) void glUniformMatrix3x2fv (GLint, GLsizei, GLboolean, const GLfloat *);
5636__attribute__((visibility("default"))) void glUniformMatrix2x4fv (GLint, GLsizei, GLboolean, const GLfloat *);
5637__attribute__((visibility("default"))) void glUniformMatrix4x2fv (GLint, GLsizei, GLboolean, const GLfloat *);
5638__attribute__((visibility("default"))) void glUniformMatrix3x4fv (GLint, GLsizei, GLboolean, const GLfloat *);
5639__attribute__((visibility("default"))) void glUniformMatrix4x3fv (GLint, GLsizei, GLboolean, const GLfloat *);
5640
5641typedef void ( * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5642typedef void ( * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5643typedef void ( * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5644typedef void ( * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5645typedef void ( * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5646typedef void ( * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5647# 4067 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5648__attribute__((visibility("default"))) void glLoadTransposeMatrixfARB (const GLfloat *);
5649__attribute__((visibility("default"))) void glLoadTransposeMatrixdARB (const GLdouble *);
5650__attribute__((visibility("default"))) void glMultTransposeMatrixfARB (const GLfloat *);
5651__attribute__((visibility("default"))) void glMultTransposeMatrixdARB (const GLdouble *);
5652
5653typedef void ( * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
5654typedef void ( * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
5655typedef void ( * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
5656typedef void ( * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
5657
5658
5659
5660
5661
5662__attribute__((visibility("default"))) void glSampleCoverageARB (GLclampf, GLboolean);
5663
5664typedef void ( * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert);
5665# 4097 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5666__attribute__((visibility("default"))) void glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
5667__attribute__((visibility("default"))) void glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
5668__attribute__((visibility("default"))) void glCompressedTexImage1DARB (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *);
5669__attribute__((visibility("default"))) void glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
5670__attribute__((visibility("default"))) void glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
5671__attribute__((visibility("default"))) void glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *);
5672__attribute__((visibility("default"))) void glGetCompressedTexImageARB (GLenum, GLint, GLvoid *);
5673
5674typedef void ( * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
5675typedef void ( * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
5676typedef void ( * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
5677typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
5678typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
5679typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
5680typedef void ( * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img);
5681# 4121 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5682__attribute__((visibility("default"))) void glPointParameterfARB (GLenum, GLfloat);
5683__attribute__((visibility("default"))) void glPointParameterfvARB (GLenum, const GLfloat *);
5684
5685typedef void ( * PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
5686typedef void ( * PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
5687
5688
5689
5690
5691
5692__attribute__((visibility("default"))) void glWeightbvARB (GLint, const GLbyte *);
5693__attribute__((visibility("default"))) void glWeightsvARB (GLint, const GLshort *);
5694__attribute__((visibility("default"))) void glWeightivARB (GLint, const GLint *);
5695__attribute__((visibility("default"))) void glWeightfvARB (GLint, const GLfloat *);
5696__attribute__((visibility("default"))) void glWeightdvARB (GLint, const GLdouble *);
5697__attribute__((visibility("default"))) void glWeightubvARB (GLint, const GLubyte *);
5698__attribute__((visibility("default"))) void glWeightusvARB (GLint, const GLushort *);
5699__attribute__((visibility("default"))) void glWeightuivARB (GLint, const GLuint *);
5700__attribute__((visibility("default"))) void glWeightPointerARB (GLint, GLenum, GLsizei, const GLvoid *);
5701__attribute__((visibility("default"))) void glVertexBlendARB (GLint);
5702
5703typedef void ( * PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
5704typedef void ( * PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
5705typedef void ( * PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
5706typedef void ( * PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
5707typedef void ( * PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
5708typedef void ( * PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
5709typedef void ( * PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
5710typedef void ( * PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
5711typedef void ( * PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5712typedef void ( * PFNGLVERTEXBLENDARBPROC) (GLint count);
5713
5714
5715
5716
5717
5718__attribute__((visibility("default"))) void glCurrentPaletteMatrixARB (GLint);
5719__attribute__((visibility("default"))) void glMatrixIndexubvARB (GLint, const GLubyte *);
5720__attribute__((visibility("default"))) void glMatrixIndexusvARB (GLint, const GLushort *);
5721__attribute__((visibility("default"))) void glMatrixIndexuivARB (GLint, const GLuint *);
5722__attribute__((visibility("default"))) void glMatrixIndexPointerARB (GLint, GLenum, GLsizei, const GLvoid *);
5723
5724typedef void ( * PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
5725typedef void ( * PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices);
5726typedef void ( * PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices);
5727typedef void ( * PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices);
5728typedef void ( * PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5729# 4201 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5730__attribute__((visibility("default"))) void glWindowPos2dARB (GLdouble, GLdouble);
5731__attribute__((visibility("default"))) void glWindowPos2dvARB (const GLdouble *);
5732__attribute__((visibility("default"))) void glWindowPos2fARB (GLfloat, GLfloat);
5733__attribute__((visibility("default"))) void glWindowPos2fvARB (const GLfloat *);
5734__attribute__((visibility("default"))) void glWindowPos2iARB (GLint, GLint);
5735__attribute__((visibility("default"))) void glWindowPos2ivARB (const GLint *);
5736__attribute__((visibility("default"))) void glWindowPos2sARB (GLshort, GLshort);
5737__attribute__((visibility("default"))) void glWindowPos2svARB (const GLshort *);
5738__attribute__((visibility("default"))) void glWindowPos3dARB (GLdouble, GLdouble, GLdouble);
5739__attribute__((visibility("default"))) void glWindowPos3dvARB (const GLdouble *);
5740__attribute__((visibility("default"))) void glWindowPos3fARB (GLfloat, GLfloat, GLfloat);
5741__attribute__((visibility("default"))) void glWindowPos3fvARB (const GLfloat *);
5742__attribute__((visibility("default"))) void glWindowPos3iARB (GLint, GLint, GLint);
5743__attribute__((visibility("default"))) void glWindowPos3ivARB (const GLint *);
5744__attribute__((visibility("default"))) void glWindowPos3sARB (GLshort, GLshort, GLshort);
5745__attribute__((visibility("default"))) void glWindowPos3svARB (const GLshort *);
5746
5747typedef void ( * PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
5748typedef void ( * PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v);
5749typedef void ( * PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
5750typedef void ( * PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v);
5751typedef void ( * PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
5752typedef void ( * PFNGLWINDOWPOS2IVARBPROC) (const GLint *v);
5753typedef void ( * PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
5754typedef void ( * PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v);
5755typedef void ( * PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
5756typedef void ( * PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v);
5757typedef void ( * PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
5758typedef void ( * PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v);
5759typedef void ( * PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
5760typedef void ( * PFNGLWINDOWPOS3IVARBPROC) (const GLint *v);
5761typedef void ( * PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
5762typedef void ( * PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v);
5763
5764
5765
5766
5767
5768__attribute__((visibility("default"))) void glVertexAttrib1dARB (GLuint, GLdouble);
5769__attribute__((visibility("default"))) void glVertexAttrib1dvARB (GLuint, const GLdouble *);
5770__attribute__((visibility("default"))) void glVertexAttrib1fARB (GLuint, GLfloat);
5771__attribute__((visibility("default"))) void glVertexAttrib1fvARB (GLuint, const GLfloat *);
5772__attribute__((visibility("default"))) void glVertexAttrib1sARB (GLuint, GLshort);
5773__attribute__((visibility("default"))) void glVertexAttrib1svARB (GLuint, const GLshort *);
5774__attribute__((visibility("default"))) void glVertexAttrib2dARB (GLuint, GLdouble, GLdouble);
5775__attribute__((visibility("default"))) void glVertexAttrib2dvARB (GLuint, const GLdouble *);
5776__attribute__((visibility("default"))) void glVertexAttrib2fARB (GLuint, GLfloat, GLfloat);
5777__attribute__((visibility("default"))) void glVertexAttrib2fvARB (GLuint, const GLfloat *);
5778__attribute__((visibility("default"))) void glVertexAttrib2sARB (GLuint, GLshort, GLshort);
5779__attribute__((visibility("default"))) void glVertexAttrib2svARB (GLuint, const GLshort *);
5780__attribute__((visibility("default"))) void glVertexAttrib3dARB (GLuint, GLdouble, GLdouble, GLdouble);
5781__attribute__((visibility("default"))) void glVertexAttrib3dvARB (GLuint, const GLdouble *);
5782__attribute__((visibility("default"))) void glVertexAttrib3fARB (GLuint, GLfloat, GLfloat, GLfloat);
5783__attribute__((visibility("default"))) void glVertexAttrib3fvARB (GLuint, const GLfloat *);
5784__attribute__((visibility("default"))) void glVertexAttrib3sARB (GLuint, GLshort, GLshort, GLshort);
5785__attribute__((visibility("default"))) void glVertexAttrib3svARB (GLuint, const GLshort *);
5786__attribute__((visibility("default"))) void glVertexAttrib4NbvARB (GLuint, const GLbyte *);
5787__attribute__((visibility("default"))) void glVertexAttrib4NivARB (GLuint, const GLint *);
5788__attribute__((visibility("default"))) void glVertexAttrib4NsvARB (GLuint, const GLshort *);
5789__attribute__((visibility("default"))) void glVertexAttrib4NubARB (GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
5790__attribute__((visibility("default"))) void glVertexAttrib4NubvARB (GLuint, const GLubyte *);
5791__attribute__((visibility("default"))) void glVertexAttrib4NuivARB (GLuint, const GLuint *);
5792__attribute__((visibility("default"))) void glVertexAttrib4NusvARB (GLuint, const GLushort *);
5793__attribute__((visibility("default"))) void glVertexAttrib4bvARB (GLuint, const GLbyte *);
5794__attribute__((visibility("default"))) void glVertexAttrib4dARB (GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
5795__attribute__((visibility("default"))) void glVertexAttrib4dvARB (GLuint, const GLdouble *);
5796__attribute__((visibility("default"))) void glVertexAttrib4fARB (GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
5797__attribute__((visibility("default"))) void glVertexAttrib4fvARB (GLuint, const GLfloat *);
5798__attribute__((visibility("default"))) void glVertexAttrib4ivARB (GLuint, const GLint *);
5799__attribute__((visibility("default"))) void glVertexAttrib4sARB (GLuint, GLshort, GLshort, GLshort, GLshort);
5800__attribute__((visibility("default"))) void glVertexAttrib4svARB (GLuint, const GLshort *);
5801__attribute__((visibility("default"))) void glVertexAttrib4ubvARB (GLuint, const GLubyte *);
5802__attribute__((visibility("default"))) void glVertexAttrib4uivARB (GLuint, const GLuint *);
5803__attribute__((visibility("default"))) void glVertexAttrib4usvARB (GLuint, const GLushort *);
5804__attribute__((visibility("default"))) void glVertexAttribPointerARB (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
5805__attribute__((visibility("default"))) void glEnableVertexAttribArrayARB (GLuint);
5806__attribute__((visibility("default"))) void glDisableVertexAttribArrayARB (GLuint);
5807__attribute__((visibility("default"))) void glProgramStringARB (GLenum, GLenum, GLsizei, const GLvoid *);
5808__attribute__((visibility("default"))) void glBindProgramARB (GLenum, GLuint);
5809__attribute__((visibility("default"))) void glDeleteProgramsARB (GLsizei, const GLuint *);
5810__attribute__((visibility("default"))) void glGenProgramsARB (GLsizei, GLuint *);
5811__attribute__((visibility("default"))) void glProgramEnvParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
5812__attribute__((visibility("default"))) void glProgramEnvParameter4dvARB (GLenum, GLuint, const GLdouble *);
5813__attribute__((visibility("default"))) void glProgramEnvParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
5814__attribute__((visibility("default"))) void glProgramEnvParameter4fvARB (GLenum, GLuint, const GLfloat *);
5815__attribute__((visibility("default"))) void glProgramLocalParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
5816__attribute__((visibility("default"))) void glProgramLocalParameter4dvARB (GLenum, GLuint, const GLdouble *);
5817__attribute__((visibility("default"))) void glProgramLocalParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
5818__attribute__((visibility("default"))) void glProgramLocalParameter4fvARB (GLenum, GLuint, const GLfloat *);
5819__attribute__((visibility("default"))) void glGetProgramEnvParameterdvARB (GLenum, GLuint, GLdouble *);
5820__attribute__((visibility("default"))) void glGetProgramEnvParameterfvARB (GLenum, GLuint, GLfloat *);
5821__attribute__((visibility("default"))) void glGetProgramLocalParameterdvARB (GLenum, GLuint, GLdouble *);
5822__attribute__((visibility("default"))) void glGetProgramLocalParameterfvARB (GLenum, GLuint, GLfloat *);
5823__attribute__((visibility("default"))) void glGetProgramivARB (GLenum, GLenum, GLint *);
5824__attribute__((visibility("default"))) void glGetProgramStringARB (GLenum, GLenum, GLvoid *);
5825__attribute__((visibility("default"))) void glGetVertexAttribdvARB (GLuint, GLenum, GLdouble *);
5826__attribute__((visibility("default"))) void glGetVertexAttribfvARB (GLuint, GLenum, GLfloat *);
5827__attribute__((visibility("default"))) void glGetVertexAttribivARB (GLuint, GLenum, GLint *);
5828__attribute__((visibility("default"))) void glGetVertexAttribPointervARB (GLuint, GLenum, GLvoid* *);
5829__attribute__((visibility("default"))) GLboolean glIsProgramARB (GLuint);
5830
5831typedef void ( * PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
5832typedef void ( * PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
5833typedef void ( * PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
5834typedef void ( * PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
5835typedef void ( * PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
5836typedef void ( * PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
5837typedef void ( * PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
5838typedef void ( * PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
5839typedef void ( * PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
5840typedef void ( * PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
5841typedef void ( * PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
5842typedef void ( * PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
5843typedef void ( * PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
5844typedef void ( * PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
5845typedef void ( * PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
5846typedef void ( * PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
5847typedef void ( * PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
5848typedef void ( * PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
5849typedef void ( * PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
5850typedef void ( * PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
5851typedef void ( * PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
5852typedef void ( * PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
5853typedef void ( * PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
5854typedef void ( * PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
5855typedef void ( * PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
5856typedef void ( * PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
5857typedef void ( * PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5858typedef void ( * PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
5859typedef void ( * PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5860typedef void ( * PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
5861typedef void ( * PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
5862typedef void ( * PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
5863typedef void ( * PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
5864typedef void ( * PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
5865typedef void ( * PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
5866typedef void ( * PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
5867typedef void ( * PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
5868typedef void ( * PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
5869typedef void ( * PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
5870typedef void ( * PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
5871typedef void ( * PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
5872typedef void ( * PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
5873typedef void ( * PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
5874typedef void ( * PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5875typedef void ( * PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
5876typedef void ( * PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5877typedef void ( * PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
5878typedef void ( * PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5879typedef void ( * PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
5880typedef void ( * PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5881typedef void ( * PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
5882typedef void ( * PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
5883typedef void ( * PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
5884typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
5885typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
5886typedef void ( * PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
5887typedef void ( * PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string);
5888typedef void ( * PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
5889typedef void ( * PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
5890typedef void ( * PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
5891typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
5892typedef GLboolean ( * PFNGLISPROGRAMARBPROC) (GLuint program);
5893# 4374 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
5894__attribute__((visibility("default"))) void glBindBufferARB (GLenum, GLuint);
5895__attribute__((visibility("default"))) void glDeleteBuffersARB (GLsizei, const GLuint *);
5896__attribute__((visibility("default"))) void glGenBuffersARB (GLsizei, GLuint *);
5897__attribute__((visibility("default"))) GLboolean glIsBufferARB (GLuint);
5898__attribute__((visibility("default"))) void glBufferDataARB (GLenum, GLsizeiptrARB, const GLvoid *, GLenum);
5899__attribute__((visibility("default"))) void glBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *);
5900__attribute__((visibility("default"))) void glGetBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *);
5901__attribute__((visibility("default"))) GLvoid* glMapBufferARB (GLenum, GLenum);
5902__attribute__((visibility("default"))) GLboolean glUnmapBufferARB (GLenum);
5903__attribute__((visibility("default"))) void glGetBufferParameterivARB (GLenum, GLenum, GLint *);
5904__attribute__((visibility("default"))) void glGetBufferPointervARB (GLenum, GLenum, GLvoid* *);
5905
5906typedef void ( * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
5907typedef void ( * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
5908typedef void ( * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
5909typedef GLboolean ( * PFNGLISBUFFERARBPROC) (GLuint buffer);
5910typedef void ( * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
5911typedef void ( * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
5912typedef void ( * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
5913typedef GLvoid* ( * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
5914typedef GLboolean ( * PFNGLUNMAPBUFFERARBPROC) (GLenum target);
5915typedef void ( * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
5916typedef void ( * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params);
5917
5918
5919
5920
5921
5922__attribute__((visibility("default"))) void glGenQueriesARB (GLsizei, GLuint *);
5923__attribute__((visibility("default"))) void glDeleteQueriesARB (GLsizei, const GLuint *);
5924__attribute__((visibility("default"))) GLboolean glIsQueryARB (GLuint);
5925__attribute__((visibility("default"))) void glBeginQueryARB (GLenum, GLuint);
5926__attribute__((visibility("default"))) void glEndQueryARB (GLenum);
5927__attribute__((visibility("default"))) void glGetQueryivARB (GLenum, GLenum, GLint *);
5928__attribute__((visibility("default"))) void glGetQueryObjectivARB (GLuint, GLenum, GLint *);
5929__attribute__((visibility("default"))) void glGetQueryObjectuivARB (GLuint, GLenum, GLuint *);
5930
5931typedef void ( * PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids);
5932typedef void ( * PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids);
5933typedef GLboolean ( * PFNGLISQUERYARBPROC) (GLuint id);
5934typedef void ( * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
5935typedef void ( * PFNGLENDQUERYARBPROC) (GLenum target);
5936typedef void ( * PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
5937typedef void ( * PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params);
5938typedef void ( * PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params);
5939
5940
5941
5942
5943
5944__attribute__((visibility("default"))) void glDeleteObjectARB (GLhandleARB);
5945__attribute__((visibility("default"))) GLhandleARB glGetHandleARB (GLenum);
5946__attribute__((visibility("default"))) void glDetachObjectARB (GLhandleARB, GLhandleARB);
5947__attribute__((visibility("default"))) GLhandleARB glCreateShaderObjectARB (GLenum);
5948__attribute__((visibility("default"))) void glShaderSourceARB (GLhandleARB, GLsizei, const GLcharARB* *, const GLint *);
5949__attribute__((visibility("default"))) void glCompileShaderARB (GLhandleARB);
5950__attribute__((visibility("default"))) GLhandleARB glCreateProgramObjectARB (void);
5951__attribute__((visibility("default"))) void glAttachObjectARB (GLhandleARB, GLhandleARB);
5952__attribute__((visibility("default"))) void glLinkProgramARB (GLhandleARB);
5953__attribute__((visibility("default"))) void glUseProgramObjectARB (GLhandleARB);
5954__attribute__((visibility("default"))) void glValidateProgramARB (GLhandleARB);
5955__attribute__((visibility("default"))) void glUniform1fARB (GLint, GLfloat);
5956__attribute__((visibility("default"))) void glUniform2fARB (GLint, GLfloat, GLfloat);
5957__attribute__((visibility("default"))) void glUniform3fARB (GLint, GLfloat, GLfloat, GLfloat);
5958__attribute__((visibility("default"))) void glUniform4fARB (GLint, GLfloat, GLfloat, GLfloat, GLfloat);
5959__attribute__((visibility("default"))) void glUniform1iARB (GLint, GLint);
5960__attribute__((visibility("default"))) void glUniform2iARB (GLint, GLint, GLint);
5961__attribute__((visibility("default"))) void glUniform3iARB (GLint, GLint, GLint, GLint);
5962__attribute__((visibility("default"))) void glUniform4iARB (GLint, GLint, GLint, GLint, GLint);
5963__attribute__((visibility("default"))) void glUniform1fvARB (GLint, GLsizei, const GLfloat *);
5964__attribute__((visibility("default"))) void glUniform2fvARB (GLint, GLsizei, const GLfloat *);
5965__attribute__((visibility("default"))) void glUniform3fvARB (GLint, GLsizei, const GLfloat *);
5966__attribute__((visibility("default"))) void glUniform4fvARB (GLint, GLsizei, const GLfloat *);
5967__attribute__((visibility("default"))) void glUniform1ivARB (GLint, GLsizei, const GLint *);
5968__attribute__((visibility("default"))) void glUniform2ivARB (GLint, GLsizei, const GLint *);
5969__attribute__((visibility("default"))) void glUniform3ivARB (GLint, GLsizei, const GLint *);
5970__attribute__((visibility("default"))) void glUniform4ivARB (GLint, GLsizei, const GLint *);
5971__attribute__((visibility("default"))) void glUniformMatrix2fvARB (GLint, GLsizei, GLboolean, const GLfloat *);
5972__attribute__((visibility("default"))) void glUniformMatrix3fvARB (GLint, GLsizei, GLboolean, const GLfloat *);
5973__attribute__((visibility("default"))) void glUniformMatrix4fvARB (GLint, GLsizei, GLboolean, const GLfloat *);
5974__attribute__((visibility("default"))) void glGetObjectParameterfvARB (GLhandleARB, GLenum, GLfloat *);
5975__attribute__((visibility("default"))) void glGetObjectParameterivARB (GLhandleARB, GLenum, GLint *);
5976__attribute__((visibility("default"))) void glGetInfoLogARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *);
5977__attribute__((visibility("default"))) void glGetAttachedObjectsARB (GLhandleARB, GLsizei, GLsizei *, GLhandleARB *);
5978__attribute__((visibility("default"))) GLint glGetUniformLocationARB (GLhandleARB, const GLcharARB *);
5979__attribute__((visibility("default"))) void glGetActiveUniformARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *);
5980__attribute__((visibility("default"))) void glGetUniformfvARB (GLhandleARB, GLint, GLfloat *);
5981__attribute__((visibility("default"))) void glGetUniformivARB (GLhandleARB, GLint, GLint *);
5982__attribute__((visibility("default"))) void glGetShaderSourceARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *);
5983
5984typedef void ( * PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
5985typedef GLhandleARB ( * PFNGLGETHANDLEARBPROC) (GLenum pname);
5986typedef void ( * PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
5987typedef GLhandleARB ( * PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
5988typedef void ( * PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length);
5989typedef void ( * PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
5990typedef GLhandleARB ( * PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
5991typedef void ( * PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
5992typedef void ( * PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
5993typedef void ( * PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
5994typedef void ( * PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
5995typedef void ( * PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
5996typedef void ( * PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
5997typedef void ( * PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
5998typedef void ( * PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
5999typedef void ( * PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
6000typedef void ( * PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
6001typedef void ( * PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
6002typedef void ( * PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
6003typedef void ( * PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
6004typedef void ( * PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
6005typedef void ( * PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
6006typedef void ( * PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
6007typedef void ( * PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value);
6008typedef void ( * PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value);
6009typedef void ( * PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value);
6010typedef void ( * PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value);
6011typedef void ( * PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
6012typedef void ( * PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
6013typedef void ( * PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
6014typedef void ( * PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params);
6015typedef void ( * PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params);
6016typedef void ( * PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
6017typedef void ( * PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
6018typedef GLint ( * PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
6019typedef void ( * PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
6020typedef void ( * PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params);
6021typedef void ( * PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params);
6022typedef void ( * PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
6023
6024
6025
6026
6027
6028__attribute__((visibility("default"))) void glBindAttribLocationARB (GLhandleARB, GLuint, const GLcharARB *);
6029__attribute__((visibility("default"))) void glGetActiveAttribARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *);
6030__attribute__((visibility("default"))) GLint glGetAttribLocationARB (GLhandleARB, const GLcharARB *);
6031
6032typedef void ( * PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
6033typedef void ( * PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
6034typedef GLint ( * PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
6035# 4540 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6036__attribute__((visibility("default"))) void glDrawBuffersARB (GLsizei, const GLenum *);
6037
6038typedef void ( * PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
6039# 4552 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6040__attribute__((visibility("default"))) void glClampColorARB (GLenum, GLenum);
6041
6042typedef void ( * PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
6043# 4576 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6044__attribute__((visibility("default"))) void glBlendColorEXT (GLclampf, GLclampf, GLclampf, GLclampf);
6045
6046typedef void ( * PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
6047
6048
6049
6050
6051
6052__attribute__((visibility("default"))) void glPolygonOffsetEXT (GLfloat, GLfloat);
6053
6054typedef void ( * PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias);
6055# 4596 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6056__attribute__((visibility("default"))) void glTexImage3DEXT (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
6057__attribute__((visibility("default"))) void glTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
6058
6059typedef void ( * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
6060typedef void ( * PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
6061
6062
6063
6064
6065
6066__attribute__((visibility("default"))) void glGetTexFilterFuncSGIS (GLenum, GLenum, GLfloat *);
6067__attribute__((visibility("default"))) void glTexFilterFuncSGIS (GLenum, GLenum, GLsizei, const GLfloat *);
6068
6069typedef void ( * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights);
6070typedef void ( * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
6071
6072
6073
6074
6075
6076__attribute__((visibility("default"))) void glTexSubImage1DEXT (GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
6077__attribute__((visibility("default"))) void glTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
6078
6079typedef void ( * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
6080typedef void ( * PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
6081
6082
6083
6084
6085
6086__attribute__((visibility("default"))) void glCopyTexImage1DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
6087__attribute__((visibility("default"))) void glCopyTexImage2DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
6088__attribute__((visibility("default"))) void glCopyTexSubImage1DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei);
6089__attribute__((visibility("default"))) void glCopyTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
6090__attribute__((visibility("default"))) void glCopyTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
6091
6092typedef void ( * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
6093typedef void ( * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
6094typedef void ( * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
6095typedef void ( * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
6096typedef void ( * PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
6097
6098
6099
6100
6101
6102__attribute__((visibility("default"))) void glGetHistogramEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *);
6103__attribute__((visibility("default"))) void glGetHistogramParameterfvEXT (GLenum, GLenum, GLfloat *);
6104__attribute__((visibility("default"))) void glGetHistogramParameterivEXT (GLenum, GLenum, GLint *);
6105__attribute__((visibility("default"))) void glGetMinmaxEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *);
6106__attribute__((visibility("default"))) void glGetMinmaxParameterfvEXT (GLenum, GLenum, GLfloat *);
6107__attribute__((visibility("default"))) void glGetMinmaxParameterivEXT (GLenum, GLenum, GLint *);
6108__attribute__((visibility("default"))) void glHistogramEXT (GLenum, GLsizei, GLenum, GLboolean);
6109__attribute__((visibility("default"))) void glMinmaxEXT (GLenum, GLenum, GLboolean);
6110__attribute__((visibility("default"))) void glResetHistogramEXT (GLenum);
6111__attribute__((visibility("default"))) void glResetMinmaxEXT (GLenum);
6112
6113typedef void ( * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
6114typedef void ( * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
6115typedef void ( * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
6116typedef void ( * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
6117typedef void ( * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
6118typedef void ( * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
6119typedef void ( * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
6120typedef void ( * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink);
6121typedef void ( * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
6122typedef void ( * PFNGLRESETMINMAXEXTPROC) (GLenum target);
6123
6124
6125
6126
6127
6128__attribute__((visibility("default"))) void glConvolutionFilter1DEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
6129__attribute__((visibility("default"))) void glConvolutionFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
6130__attribute__((visibility("default"))) void glConvolutionParameterfEXT (GLenum, GLenum, GLfloat);
6131__attribute__((visibility("default"))) void glConvolutionParameterfvEXT (GLenum, GLenum, const GLfloat *);
6132__attribute__((visibility("default"))) void glConvolutionParameteriEXT (GLenum, GLenum, GLint);
6133__attribute__((visibility("default"))) void glConvolutionParameterivEXT (GLenum, GLenum, const GLint *);
6134__attribute__((visibility("default"))) void glCopyConvolutionFilter1DEXT (GLenum, GLenum, GLint, GLint, GLsizei);
6135__attribute__((visibility("default"))) void glCopyConvolutionFilter2DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei);
6136__attribute__((visibility("default"))) void glGetConvolutionFilterEXT (GLenum, GLenum, GLenum, GLvoid *);
6137__attribute__((visibility("default"))) void glGetConvolutionParameterfvEXT (GLenum, GLenum, GLfloat *);
6138__attribute__((visibility("default"))) void glGetConvolutionParameterivEXT (GLenum, GLenum, GLint *);
6139__attribute__((visibility("default"))) void glGetSeparableFilterEXT (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *);
6140__attribute__((visibility("default"))) void glSeparableFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *);
6141
6142typedef void ( * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
6143typedef void ( * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
6144typedef void ( * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params);
6145typedef void ( * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
6146typedef void ( * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params);
6147typedef void ( * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
6148typedef void ( * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
6149typedef void ( * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
6150typedef void ( * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
6151typedef void ( * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
6152typedef void ( * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
6153typedef void ( * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
6154typedef void ( * PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
6155# 4704 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6156__attribute__((visibility("default"))) void glColorTableSGI (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
6157__attribute__((visibility("default"))) void glColorTableParameterfvSGI (GLenum, GLenum, const GLfloat *);
6158__attribute__((visibility("default"))) void glColorTableParameterivSGI (GLenum, GLenum, const GLint *);
6159__attribute__((visibility("default"))) void glCopyColorTableSGI (GLenum, GLenum, GLint, GLint, GLsizei);
6160__attribute__((visibility("default"))) void glGetColorTableSGI (GLenum, GLenum, GLenum, GLvoid *);
6161__attribute__((visibility("default"))) void glGetColorTableParameterfvSGI (GLenum, GLenum, GLfloat *);
6162__attribute__((visibility("default"))) void glGetColorTableParameterivSGI (GLenum, GLenum, GLint *);
6163
6164typedef void ( * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
6165typedef void ( * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params);
6166typedef void ( * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params);
6167typedef void ( * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
6168typedef void ( * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
6169typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params);
6170typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params);
6171
6172
6173
6174
6175
6176__attribute__((visibility("default"))) void glPixelTexGenSGIX (GLenum);
6177
6178typedef void ( * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
6179
6180
6181
6182
6183
6184__attribute__((visibility("default"))) void glPixelTexGenParameteriSGIS (GLenum, GLint);
6185__attribute__((visibility("default"))) void glPixelTexGenParameterivSGIS (GLenum, const GLint *);
6186__attribute__((visibility("default"))) void glPixelTexGenParameterfSGIS (GLenum, GLfloat);
6187__attribute__((visibility("default"))) void glPixelTexGenParameterfvSGIS (GLenum, const GLfloat *);
6188__attribute__((visibility("default"))) void glGetPixelTexGenParameterivSGIS (GLenum, GLint *);
6189__attribute__((visibility("default"))) void glGetPixelTexGenParameterfvSGIS (GLenum, GLfloat *);
6190
6191typedef void ( * PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param);
6192typedef void ( * PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params);
6193typedef void ( * PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
6194typedef void ( * PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
6195typedef void ( * PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params);
6196typedef void ( * PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params);
6197
6198
6199
6200
6201
6202__attribute__((visibility("default"))) void glTexImage4DSGIS (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
6203__attribute__((visibility("default"))) void glTexSubImage4DSGIS (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
6204
6205typedef void ( * PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
6206typedef void ( * PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels);
6207# 4768 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6208__attribute__((visibility("default"))) GLboolean glAreTexturesResidentEXT (GLsizei, const GLuint *, GLboolean *);
6209__attribute__((visibility("default"))) void glBindTextureEXT (GLenum, GLuint);
6210__attribute__((visibility("default"))) void glDeleteTexturesEXT (GLsizei, const GLuint *);
6211__attribute__((visibility("default"))) void glGenTexturesEXT (GLsizei, GLuint *);
6212__attribute__((visibility("default"))) GLboolean glIsTextureEXT (GLuint);
6213__attribute__((visibility("default"))) void glPrioritizeTexturesEXT (GLsizei, const GLuint *, const GLclampf *);
6214
6215typedef GLboolean ( * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences);
6216typedef void ( * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture);
6217typedef void ( * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures);
6218typedef void ( * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures);
6219typedef GLboolean ( * PFNGLISTEXTUREEXTPROC) (GLuint texture);
6220typedef void ( * PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities);
6221
6222
6223
6224
6225
6226__attribute__((visibility("default"))) void glDetailTexFuncSGIS (GLenum, GLsizei, const GLfloat *);
6227__attribute__((visibility("default"))) void glGetDetailTexFuncSGIS (GLenum, GLfloat *);
6228
6229typedef void ( * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
6230typedef void ( * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
6231
6232
6233
6234
6235
6236__attribute__((visibility("default"))) void glSharpenTexFuncSGIS (GLenum, GLsizei, const GLfloat *);
6237__attribute__((visibility("default"))) void glGetSharpenTexFuncSGIS (GLenum, GLfloat *);
6238
6239typedef void ( * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
6240typedef void ( * PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
6241# 4814 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6242__attribute__((visibility("default"))) void glSampleMaskSGIS (GLclampf, GLboolean);
6243__attribute__((visibility("default"))) void glSamplePatternSGIS (GLenum);
6244
6245typedef void ( * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert);
6246typedef void ( * PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
6247# 4828 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6248__attribute__((visibility("default"))) void glArrayElementEXT (GLint);
6249__attribute__((visibility("default"))) void glColorPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
6250__attribute__((visibility("default"))) void glDrawArraysEXT (GLenum, GLint, GLsizei);
6251__attribute__((visibility("default"))) void glEdgeFlagPointerEXT (GLsizei, GLsizei, const GLboolean *);
6252__attribute__((visibility("default"))) void glGetPointervEXT (GLenum, GLvoid* *);
6253__attribute__((visibility("default"))) void glIndexPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *);
6254__attribute__((visibility("default"))) void glNormalPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *);
6255__attribute__((visibility("default"))) void glTexCoordPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
6256__attribute__((visibility("default"))) void glVertexPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *);
6257
6258typedef void ( * PFNGLARRAYELEMENTEXTPROC) (GLint i);
6259typedef void ( * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
6260typedef void ( * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
6261typedef void ( * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
6262typedef void ( * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
6263typedef void ( * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
6264typedef void ( * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
6265typedef void ( * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
6266typedef void ( * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
6267# 4876 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6268__attribute__((visibility("default"))) void glBlendEquationEXT (GLenum);
6269
6270typedef void ( * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
6271# 4904 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6272__attribute__((visibility("default"))) void glSpriteParameterfSGIX (GLenum, GLfloat);
6273__attribute__((visibility("default"))) void glSpriteParameterfvSGIX (GLenum, const GLfloat *);
6274__attribute__((visibility("default"))) void glSpriteParameteriSGIX (GLenum, GLint);
6275__attribute__((visibility("default"))) void glSpriteParameterivSGIX (GLenum, const GLint *);
6276
6277typedef void ( * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param);
6278typedef void ( * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params);
6279typedef void ( * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param);
6280typedef void ( * PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params);
6281# 4922 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6282__attribute__((visibility("default"))) void glPointParameterfEXT (GLenum, GLfloat);
6283__attribute__((visibility("default"))) void glPointParameterfvEXT (GLenum, const GLfloat *);
6284
6285typedef void ( * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
6286typedef void ( * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
6287
6288
6289
6290
6291
6292__attribute__((visibility("default"))) void glPointParameterfSGIS (GLenum, GLfloat);
6293__attribute__((visibility("default"))) void glPointParameterfvSGIS (GLenum, const GLfloat *);
6294
6295typedef void ( * PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
6296typedef void ( * PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
6297
6298
6299
6300
6301
6302__attribute__((visibility("default"))) GLint glGetInstrumentsSGIX (void);
6303__attribute__((visibility("default"))) void glInstrumentsBufferSGIX (GLsizei, GLint *);
6304__attribute__((visibility("default"))) GLint glPollInstrumentsSGIX (GLint *);
6305__attribute__((visibility("default"))) void glReadInstrumentsSGIX (GLint);
6306__attribute__((visibility("default"))) void glStartInstrumentsSGIX (void);
6307__attribute__((visibility("default"))) void glStopInstrumentsSGIX (GLint);
6308
6309typedef GLint ( * PFNGLGETINSTRUMENTSSGIXPROC) (void);
6310typedef void ( * PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer);
6311typedef GLint ( * PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p);
6312typedef void ( * PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker);
6313typedef void ( * PFNGLSTARTINSTRUMENTSSGIXPROC) (void);
6314typedef void ( * PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker);
6315# 4964 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6316__attribute__((visibility("default"))) void glFrameZoomSGIX (GLint);
6317
6318typedef void ( * PFNGLFRAMEZOOMSGIXPROC) (GLint factor);
6319
6320
6321
6322
6323
6324__attribute__((visibility("default"))) void glTagSampleBufferSGIX (void);
6325
6326typedef void ( * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void);
6327
6328
6329
6330
6331
6332__attribute__((visibility("default"))) void glDeformationMap3dSGIX (GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
6333__attribute__((visibility("default"))) void glDeformationMap3fSGIX (GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
6334__attribute__((visibility("default"))) void glDeformSGIX (GLbitfield);
6335__attribute__((visibility("default"))) void glLoadIdentityDeformationMapSGIX (GLbitfield);
6336
6337typedef void ( * PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
6338typedef void ( * PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
6339typedef void ( * PFNGLDEFORMSGIXPROC) (GLbitfield mask);
6340typedef void ( * PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask);
6341
6342
6343
6344
6345
6346__attribute__((visibility("default"))) void glReferencePlaneSGIX (const GLdouble *);
6347
6348typedef void ( * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation);
6349
6350
6351
6352
6353
6354__attribute__((visibility("default"))) void glFlushRasterSGIX (void);
6355
6356typedef void ( * PFNGLFLUSHRASTERSGIXPROC) (void);
6357# 5014 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6358__attribute__((visibility("default"))) void glFogFuncSGIS (GLsizei, const GLfloat *);
6359__attribute__((visibility("default"))) void glGetFogFuncSGIS (GLfloat *);
6360
6361typedef void ( * PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points);
6362typedef void ( * PFNGLGETFOGFUNCSGISPROC) (GLfloat *points);
6363# 5028 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6364__attribute__((visibility("default"))) void glImageTransformParameteriHP (GLenum, GLenum, GLint);
6365__attribute__((visibility("default"))) void glImageTransformParameterfHP (GLenum, GLenum, GLfloat);
6366__attribute__((visibility("default"))) void glImageTransformParameterivHP (GLenum, GLenum, const GLint *);
6367__attribute__((visibility("default"))) void glImageTransformParameterfvHP (GLenum, GLenum, const GLfloat *);
6368__attribute__((visibility("default"))) void glGetImageTransformParameterivHP (GLenum, GLenum, GLint *);
6369__attribute__((visibility("default"))) void glGetImageTransformParameterfvHP (GLenum, GLenum, GLfloat *);
6370
6371typedef void ( * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param);
6372typedef void ( * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param);
6373typedef void ( * PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params);
6374typedef void ( * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params);
6375typedef void ( * PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params);
6376typedef void ( * PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params);
6377# 5054 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6378__attribute__((visibility("default"))) void glColorSubTableEXT (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
6379__attribute__((visibility("default"))) void glCopyColorSubTableEXT (GLenum, GLsizei, GLint, GLint, GLsizei);
6380
6381typedef void ( * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
6382typedef void ( * PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
6383# 5068 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6384__attribute__((visibility("default"))) void glHintPGI (GLenum, GLint);
6385
6386typedef void ( * PFNGLHINTPGIPROC) (GLenum target, GLint mode);
6387
6388
6389
6390
6391
6392__attribute__((visibility("default"))) void glColorTableEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
6393__attribute__((visibility("default"))) void glGetColorTableEXT (GLenum, GLenum, GLenum, GLvoid *);
6394__attribute__((visibility("default"))) void glGetColorTableParameterivEXT (GLenum, GLenum, GLint *);
6395__attribute__((visibility("default"))) void glGetColorTableParameterfvEXT (GLenum, GLenum, GLfloat *);
6396
6397typedef void ( * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
6398typedef void ( * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data);
6399typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
6400typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
6401# 5094 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6402__attribute__((visibility("default"))) void glGetListParameterfvSGIX (GLuint, GLenum, GLfloat *);
6403__attribute__((visibility("default"))) void glGetListParameterivSGIX (GLuint, GLenum, GLint *);
6404__attribute__((visibility("default"))) void glListParameterfSGIX (GLuint, GLenum, GLfloat);
6405__attribute__((visibility("default"))) void glListParameterfvSGIX (GLuint, GLenum, const GLfloat *);
6406__attribute__((visibility("default"))) void glListParameteriSGIX (GLuint, GLenum, GLint);
6407__attribute__((visibility("default"))) void glListParameterivSGIX (GLuint, GLenum, const GLint *);
6408
6409typedef void ( * PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params);
6410typedef void ( * PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params);
6411typedef void ( * PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param);
6412typedef void ( * PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params);
6413typedef void ( * PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param);
6414typedef void ( * PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params);
6415# 5132 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6416__attribute__((visibility("default"))) void glIndexMaterialEXT (GLenum, GLenum);
6417
6418typedef void ( * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode);
6419
6420
6421
6422
6423
6424__attribute__((visibility("default"))) void glIndexFuncEXT (GLenum, GLclampf);
6425
6426typedef void ( * PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref);
6427# 5152 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6428__attribute__((visibility("default"))) void glLockArraysEXT (GLint, GLsizei);
6429__attribute__((visibility("default"))) void glUnlockArraysEXT (void);
6430
6431typedef void ( * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
6432typedef void ( * PFNGLUNLOCKARRAYSEXTPROC) (void);
6433
6434
6435
6436
6437
6438__attribute__((visibility("default"))) void glCullParameterdvEXT (GLenum, GLdouble *);
6439__attribute__((visibility("default"))) void glCullParameterfvEXT (GLenum, GLfloat *);
6440
6441typedef void ( * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params);
6442typedef void ( * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params);
6443# 5176 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6444__attribute__((visibility("default"))) void glFragmentColorMaterialSGIX (GLenum, GLenum);
6445__attribute__((visibility("default"))) void glFragmentLightfSGIX (GLenum, GLenum, GLfloat);
6446__attribute__((visibility("default"))) void glFragmentLightfvSGIX (GLenum, GLenum, const GLfloat *);
6447__attribute__((visibility("default"))) void glFragmentLightiSGIX (GLenum, GLenum, GLint);
6448__attribute__((visibility("default"))) void glFragmentLightivSGIX (GLenum, GLenum, const GLint *);
6449__attribute__((visibility("default"))) void glFragmentLightModelfSGIX (GLenum, GLfloat);
6450__attribute__((visibility("default"))) void glFragmentLightModelfvSGIX (GLenum, const GLfloat *);
6451__attribute__((visibility("default"))) void glFragmentLightModeliSGIX (GLenum, GLint);
6452__attribute__((visibility("default"))) void glFragmentLightModelivSGIX (GLenum, const GLint *);
6453__attribute__((visibility("default"))) void glFragmentMaterialfSGIX (GLenum, GLenum, GLfloat);
6454__attribute__((visibility("default"))) void glFragmentMaterialfvSGIX (GLenum, GLenum, const GLfloat *);
6455__attribute__((visibility("default"))) void glFragmentMaterialiSGIX (GLenum, GLenum, GLint);
6456__attribute__((visibility("default"))) void glFragmentMaterialivSGIX (GLenum, GLenum, const GLint *);
6457__attribute__((visibility("default"))) void glGetFragmentLightfvSGIX (GLenum, GLenum, GLfloat *);
6458__attribute__((visibility("default"))) void glGetFragmentLightivSGIX (GLenum, GLenum, GLint *);
6459__attribute__((visibility("default"))) void glGetFragmentMaterialfvSGIX (GLenum, GLenum, GLfloat *);
6460__attribute__((visibility("default"))) void glGetFragmentMaterialivSGIX (GLenum, GLenum, GLint *);
6461__attribute__((visibility("default"))) void glLightEnviSGIX (GLenum, GLint);
6462
6463typedef void ( * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode);
6464typedef void ( * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param);
6465typedef void ( * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
6466typedef void ( * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
6467typedef void ( * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
6468typedef void ( * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
6469typedef void ( * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
6470typedef void ( * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
6471typedef void ( * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
6472typedef void ( * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
6473typedef void ( * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params);
6474typedef void ( * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
6475typedef void ( * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params);
6476typedef void ( * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params);
6477typedef void ( * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params);
6478typedef void ( * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
6479typedef void ( * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
6480typedef void ( * PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param);
6481# 5226 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6482__attribute__((visibility("default"))) void glDrawRangeElementsEXT (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *);
6483
6484typedef void ( * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
6485# 5242 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6486__attribute__((visibility("default"))) void glApplyTextureEXT (GLenum);
6487__attribute__((visibility("default"))) void glTextureLightEXT (GLenum);
6488__attribute__((visibility("default"))) void glTextureMaterialEXT (GLenum, GLenum);
6489
6490typedef void ( * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode);
6491typedef void ( * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname);
6492typedef void ( * PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode);
6493# 5262 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6494__attribute__((visibility("default"))) void glAsyncMarkerSGIX (GLuint);
6495__attribute__((visibility("default"))) GLint glFinishAsyncSGIX (GLuint *);
6496__attribute__((visibility("default"))) GLint glPollAsyncSGIX (GLuint *);
6497__attribute__((visibility("default"))) GLuint glGenAsyncMarkersSGIX (GLsizei);
6498__attribute__((visibility("default"))) void glDeleteAsyncMarkersSGIX (GLuint, GLsizei);
6499__attribute__((visibility("default"))) GLboolean glIsAsyncMarkerSGIX (GLuint);
6500
6501typedef void ( * PFNGLASYNCMARKERSGIXPROC) (GLuint marker);
6502typedef GLint ( * PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp);
6503typedef GLint ( * PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp);
6504typedef GLuint ( * PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range);
6505typedef void ( * PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range);
6506typedef GLboolean ( * PFNGLISASYNCMARKERSGIXPROC) (GLuint marker);
6507# 5288 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6508__attribute__((visibility("default"))) void glVertexPointervINTEL (GLint, GLenum, const GLvoid* *);
6509__attribute__((visibility("default"))) void glNormalPointervINTEL (GLenum, const GLvoid* *);
6510__attribute__((visibility("default"))) void glColorPointervINTEL (GLint, GLenum, const GLvoid* *);
6511__attribute__((visibility("default"))) void glTexCoordPointervINTEL (GLint, GLenum, const GLvoid* *);
6512
6513typedef void ( * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
6514typedef void ( * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer);
6515typedef void ( * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
6516typedef void ( * PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
6517# 5306 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6518__attribute__((visibility("default"))) void glPixelTransformParameteriEXT (GLenum, GLenum, GLint);
6519__attribute__((visibility("default"))) void glPixelTransformParameterfEXT (GLenum, GLenum, GLfloat);
6520__attribute__((visibility("default"))) void glPixelTransformParameterivEXT (GLenum, GLenum, const GLint *);
6521__attribute__((visibility("default"))) void glPixelTransformParameterfvEXT (GLenum, GLenum, const GLfloat *);
6522
6523typedef void ( * PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param);
6524typedef void ( * PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param);
6525typedef void ( * PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
6526typedef void ( * PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
6527# 5332 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6528__attribute__((visibility("default"))) void glSecondaryColor3bEXT (GLbyte, GLbyte, GLbyte);
6529__attribute__((visibility("default"))) void glSecondaryColor3bvEXT (const GLbyte *);
6530__attribute__((visibility("default"))) void glSecondaryColor3dEXT (GLdouble, GLdouble, GLdouble);
6531__attribute__((visibility("default"))) void glSecondaryColor3dvEXT (const GLdouble *);
6532__attribute__((visibility("default"))) void glSecondaryColor3fEXT (GLfloat, GLfloat, GLfloat);
6533__attribute__((visibility("default"))) void glSecondaryColor3fvEXT (const GLfloat *);
6534__attribute__((visibility("default"))) void glSecondaryColor3iEXT (GLint, GLint, GLint);
6535__attribute__((visibility("default"))) void glSecondaryColor3ivEXT (const GLint *);
6536__attribute__((visibility("default"))) void glSecondaryColor3sEXT (GLshort, GLshort, GLshort);
6537__attribute__((visibility("default"))) void glSecondaryColor3svEXT (const GLshort *);
6538__attribute__((visibility("default"))) void glSecondaryColor3ubEXT (GLubyte, GLubyte, GLubyte);
6539__attribute__((visibility("default"))) void glSecondaryColor3ubvEXT (const GLubyte *);
6540__attribute__((visibility("default"))) void glSecondaryColor3uiEXT (GLuint, GLuint, GLuint);
6541__attribute__((visibility("default"))) void glSecondaryColor3uivEXT (const GLuint *);
6542__attribute__((visibility("default"))) void glSecondaryColor3usEXT (GLushort, GLushort, GLushort);
6543__attribute__((visibility("default"))) void glSecondaryColor3usvEXT (const GLushort *);
6544__attribute__((visibility("default"))) void glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *);
6545
6546typedef void ( * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue);
6547typedef void ( * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v);
6548typedef void ( * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue);
6549typedef void ( * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v);
6550typedef void ( * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
6551typedef void ( * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
6552typedef void ( * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue);
6553typedef void ( * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v);
6554typedef void ( * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue);
6555typedef void ( * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v);
6556typedef void ( * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
6557typedef void ( * PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v);
6558typedef void ( * PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue);
6559typedef void ( * PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v);
6560typedef void ( * PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue);
6561typedef void ( * PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v);
6562typedef void ( * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
6563
6564
6565
6566
6567
6568__attribute__((visibility("default"))) void glTextureNormalEXT (GLenum);
6569
6570typedef void ( * PFNGLTEXTURENORMALEXTPROC) (GLenum mode);
6571
6572
6573
6574
6575
6576__attribute__((visibility("default"))) void glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
6577__attribute__((visibility("default"))) void glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
6578
6579typedef void ( * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
6580typedef void ( * PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
6581
6582
6583
6584
6585
6586__attribute__((visibility("default"))) void glFogCoordfEXT (GLfloat);
6587__attribute__((visibility("default"))) void glFogCoordfvEXT (const GLfloat *);
6588__attribute__((visibility("default"))) void glFogCoorddEXT (GLdouble);
6589__attribute__((visibility("default"))) void glFogCoorddvEXT (const GLdouble *);
6590__attribute__((visibility("default"))) void glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *);
6591
6592typedef void ( * PFNGLFOGCOORDFEXTPROC) (GLfloat coord);
6593typedef void ( * PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord);
6594typedef void ( * PFNGLFOGCOORDDEXTPROC) (GLdouble coord);
6595typedef void ( * PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord);
6596typedef void ( * PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
6597# 5410 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6598__attribute__((visibility("default"))) void glTangent3bEXT (GLbyte, GLbyte, GLbyte);
6599__attribute__((visibility("default"))) void glTangent3bvEXT (const GLbyte *);
6600__attribute__((visibility("default"))) void glTangent3dEXT (GLdouble, GLdouble, GLdouble);
6601__attribute__((visibility("default"))) void glTangent3dvEXT (const GLdouble *);
6602__attribute__((visibility("default"))) void glTangent3fEXT (GLfloat, GLfloat, GLfloat);
6603__attribute__((visibility("default"))) void glTangent3fvEXT (const GLfloat *);
6604__attribute__((visibility("default"))) void glTangent3iEXT (GLint, GLint, GLint);
6605__attribute__((visibility("default"))) void glTangent3ivEXT (const GLint *);
6606__attribute__((visibility("default"))) void glTangent3sEXT (GLshort, GLshort, GLshort);
6607__attribute__((visibility("default"))) void glTangent3svEXT (const GLshort *);
6608__attribute__((visibility("default"))) void glBinormal3bEXT (GLbyte, GLbyte, GLbyte);
6609__attribute__((visibility("default"))) void glBinormal3bvEXT (const GLbyte *);
6610__attribute__((visibility("default"))) void glBinormal3dEXT (GLdouble, GLdouble, GLdouble);
6611__attribute__((visibility("default"))) void glBinormal3dvEXT (const GLdouble *);
6612__attribute__((visibility("default"))) void glBinormal3fEXT (GLfloat, GLfloat, GLfloat);
6613__attribute__((visibility("default"))) void glBinormal3fvEXT (const GLfloat *);
6614__attribute__((visibility("default"))) void glBinormal3iEXT (GLint, GLint, GLint);
6615__attribute__((visibility("default"))) void glBinormal3ivEXT (const GLint *);
6616__attribute__((visibility("default"))) void glBinormal3sEXT (GLshort, GLshort, GLshort);
6617__attribute__((visibility("default"))) void glBinormal3svEXT (const GLshort *);
6618__attribute__((visibility("default"))) void glTangentPointerEXT (GLenum, GLsizei, const GLvoid *);
6619__attribute__((visibility("default"))) void glBinormalPointerEXT (GLenum, GLsizei, const GLvoid *);
6620
6621typedef void ( * PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz);
6622typedef void ( * PFNGLTANGENT3BVEXTPROC) (const GLbyte *v);
6623typedef void ( * PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz);
6624typedef void ( * PFNGLTANGENT3DVEXTPROC) (const GLdouble *v);
6625typedef void ( * PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz);
6626typedef void ( * PFNGLTANGENT3FVEXTPROC) (const GLfloat *v);
6627typedef void ( * PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz);
6628typedef void ( * PFNGLTANGENT3IVEXTPROC) (const GLint *v);
6629typedef void ( * PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz);
6630typedef void ( * PFNGLTANGENT3SVEXTPROC) (const GLshort *v);
6631typedef void ( * PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz);
6632typedef void ( * PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v);
6633typedef void ( * PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz);
6634typedef void ( * PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v);
6635typedef void ( * PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz);
6636typedef void ( * PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v);
6637typedef void ( * PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz);
6638typedef void ( * PFNGLBINORMAL3IVEXTPROC) (const GLint *v);
6639typedef void ( * PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz);
6640typedef void ( * PFNGLBINORMAL3SVEXTPROC) (const GLshort *v);
6641typedef void ( * PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
6642typedef void ( * PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
6643# 5476 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6644__attribute__((visibility("default"))) void glFinishTextureSUNX (void);
6645
6646typedef void ( * PFNGLFINISHTEXTURESUNXPROC) (void);
6647
6648
6649
6650
6651
6652__attribute__((visibility("default"))) void glGlobalAlphaFactorbSUN (GLbyte);
6653__attribute__((visibility("default"))) void glGlobalAlphaFactorsSUN (GLshort);
6654__attribute__((visibility("default"))) void glGlobalAlphaFactoriSUN (GLint);
6655__attribute__((visibility("default"))) void glGlobalAlphaFactorfSUN (GLfloat);
6656__attribute__((visibility("default"))) void glGlobalAlphaFactordSUN (GLdouble);
6657__attribute__((visibility("default"))) void glGlobalAlphaFactorubSUN (GLubyte);
6658__attribute__((visibility("default"))) void glGlobalAlphaFactorusSUN (GLushort);
6659__attribute__((visibility("default"))) void glGlobalAlphaFactoruiSUN (GLuint);
6660
6661typedef void ( * PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor);
6662typedef void ( * PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor);
6663typedef void ( * PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor);
6664typedef void ( * PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor);
6665typedef void ( * PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor);
6666typedef void ( * PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor);
6667typedef void ( * PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor);
6668typedef void ( * PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor);
6669
6670
6671
6672
6673
6674__attribute__((visibility("default"))) void glReplacementCodeuiSUN (GLuint);
6675__attribute__((visibility("default"))) void glReplacementCodeusSUN (GLushort);
6676__attribute__((visibility("default"))) void glReplacementCodeubSUN (GLubyte);
6677__attribute__((visibility("default"))) void glReplacementCodeuivSUN (const GLuint *);
6678__attribute__((visibility("default"))) void glReplacementCodeusvSUN (const GLushort *);
6679__attribute__((visibility("default"))) void glReplacementCodeubvSUN (const GLubyte *);
6680__attribute__((visibility("default"))) void glReplacementCodePointerSUN (GLenum, GLsizei, const GLvoid* *);
6681
6682typedef void ( * PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code);
6683typedef void ( * PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code);
6684typedef void ( * PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code);
6685typedef void ( * PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code);
6686typedef void ( * PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code);
6687typedef void ( * PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code);
6688typedef void ( * PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer);
6689
6690
6691
6692
6693
6694__attribute__((visibility("default"))) void glColor4ubVertex2fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat);
6695__attribute__((visibility("default"))) void glColor4ubVertex2fvSUN (const GLubyte *, const GLfloat *);
6696__attribute__((visibility("default"))) void glColor4ubVertex3fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat);
6697__attribute__((visibility("default"))) void glColor4ubVertex3fvSUN (const GLubyte *, const GLfloat *);
6698__attribute__((visibility("default"))) void glColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6699__attribute__((visibility("default"))) void glColor3fVertex3fvSUN (const GLfloat *, const GLfloat *);
6700__attribute__((visibility("default"))) void glNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6701__attribute__((visibility("default"))) void glNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *);
6702__attribute__((visibility("default"))) void glColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6703__attribute__((visibility("default"))) void glColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *);
6704__attribute__((visibility("default"))) void glTexCoord2fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6705__attribute__((visibility("default"))) void glTexCoord2fVertex3fvSUN (const GLfloat *, const GLfloat *);
6706__attribute__((visibility("default"))) void glTexCoord4fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6707__attribute__((visibility("default"))) void glTexCoord4fVertex4fvSUN (const GLfloat *, const GLfloat *);
6708__attribute__((visibility("default"))) void glTexCoord2fColor4ubVertex3fSUN (GLfloat, GLfloat, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat);
6709__attribute__((visibility("default"))) void glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *, const GLubyte *, const GLfloat *);
6710__attribute__((visibility("default"))) void glTexCoord2fColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6711__attribute__((visibility("default"))) void glTexCoord2fColor3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *);
6712__attribute__((visibility("default"))) void glTexCoord2fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6713__attribute__((visibility("default"))) void glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *);
6714__attribute__((visibility("default"))) void glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6715__attribute__((visibility("default"))) void glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *);
6716__attribute__((visibility("default"))) void glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6717__attribute__((visibility("default"))) void glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *);
6718__attribute__((visibility("default"))) void glReplacementCodeuiVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat);
6719__attribute__((visibility("default"))) void glReplacementCodeuiVertex3fvSUN (const GLuint *, const GLfloat *);
6720__attribute__((visibility("default"))) void glReplacementCodeuiColor4ubVertex3fSUN (GLuint, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat);
6721__attribute__((visibility("default"))) void glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *, const GLubyte *, const GLfloat *);
6722__attribute__((visibility("default"))) void glReplacementCodeuiColor3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6723__attribute__((visibility("default"))) void glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *);
6724__attribute__((visibility("default"))) void glReplacementCodeuiNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6725__attribute__((visibility("default"))) void glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *);
6726__attribute__((visibility("default"))) void glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6727__attribute__((visibility("default"))) void glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *);
6728__attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6729__attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *);
6730__attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6731__attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *);
6732__attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat);
6733__attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *);
6734
6735typedef void ( * PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
6736typedef void ( * PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v);
6737typedef void ( * PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
6738typedef void ( * PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v);
6739typedef void ( * PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
6740typedef void ( * PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v);
6741typedef void ( * PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6742typedef void ( * PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v);
6743typedef void ( * PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6744typedef void ( * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v);
6745typedef void ( * PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
6746typedef void ( * PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
6747typedef void ( * PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
6748typedef void ( * PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
6749typedef void ( * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
6750typedef void ( * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
6751typedef void ( * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
6752typedef void ( * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
6753typedef void ( * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6754typedef void ( * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
6755typedef void ( * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6756typedef void ( * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
6757typedef void ( * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
6758typedef void ( * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
6759typedef void ( * PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
6760typedef void ( * PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v);
6761typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
6762typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v);
6763typedef void ( * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
6764typedef void ( * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v);
6765typedef void ( * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6766typedef void ( * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v);
6767typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6768typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
6769typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
6770typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
6771typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6772typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
6773typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
6774typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
6775
6776
6777
6778
6779
6780__attribute__((visibility("default"))) void glBlendFuncSeparateEXT (GLenum, GLenum, GLenum, GLenum);
6781
6782typedef void ( * PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
6783
6784
6785
6786
6787
6788__attribute__((visibility("default"))) void glBlendFuncSeparateINGR (GLenum, GLenum, GLenum, GLenum);
6789
6790typedef void ( * PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
6791# 5664 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6792__attribute__((visibility("default"))) void glVertexWeightfEXT (GLfloat);
6793__attribute__((visibility("default"))) void glVertexWeightfvEXT (const GLfloat *);
6794__attribute__((visibility("default"))) void glVertexWeightPointerEXT (GLsizei, GLenum, GLsizei, const GLvoid *);
6795
6796typedef void ( * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight);
6797typedef void ( * PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight);
6798typedef void ( * PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer);
6799# 5680 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6800__attribute__((visibility("default"))) void glFlushVertexArrayRangeNV (void);
6801__attribute__((visibility("default"))) void glVertexArrayRangeNV (GLsizei, const GLvoid *);
6802
6803typedef void ( * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void);
6804typedef void ( * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer);
6805
6806
6807
6808
6809
6810__attribute__((visibility("default"))) void glCombinerParameterfvNV (GLenum, const GLfloat *);
6811__attribute__((visibility("default"))) void glCombinerParameterfNV (GLenum, GLfloat);
6812__attribute__((visibility("default"))) void glCombinerParameterivNV (GLenum, const GLint *);
6813__attribute__((visibility("default"))) void glCombinerParameteriNV (GLenum, GLint);
6814__attribute__((visibility("default"))) void glCombinerInputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum);
6815__attribute__((visibility("default"))) void glCombinerOutputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean);
6816__attribute__((visibility("default"))) void glFinalCombinerInputNV (GLenum, GLenum, GLenum, GLenum);
6817__attribute__((visibility("default"))) void glGetCombinerInputParameterfvNV (GLenum, GLenum, GLenum, GLenum, GLfloat *);
6818__attribute__((visibility("default"))) void glGetCombinerInputParameterivNV (GLenum, GLenum, GLenum, GLenum, GLint *);
6819__attribute__((visibility("default"))) void glGetCombinerOutputParameterfvNV (GLenum, GLenum, GLenum, GLfloat *);
6820__attribute__((visibility("default"))) void glGetCombinerOutputParameterivNV (GLenum, GLenum, GLenum, GLint *);
6821__attribute__((visibility("default"))) void glGetFinalCombinerInputParameterfvNV (GLenum, GLenum, GLfloat *);
6822__attribute__((visibility("default"))) void glGetFinalCombinerInputParameterivNV (GLenum, GLenum, GLint *);
6823
6824typedef void ( * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
6825typedef void ( * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
6826typedef void ( * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
6827typedef void ( * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
6828typedef void ( * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
6829typedef void ( * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
6830typedef void ( * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
6831typedef void ( * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
6832typedef void ( * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
6833typedef void ( * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
6834typedef void ( * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params);
6835typedef void ( * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params);
6836typedef void ( * PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params);
6837# 5738 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6838__attribute__((visibility("default"))) void glResizeBuffersMESA (void);
6839
6840typedef void ( * PFNGLRESIZEBUFFERSMESAPROC) (void);
6841
6842
6843
6844
6845
6846__attribute__((visibility("default"))) void glWindowPos2dMESA (GLdouble, GLdouble);
6847__attribute__((visibility("default"))) void glWindowPos2dvMESA (const GLdouble *);
6848__attribute__((visibility("default"))) void glWindowPos2fMESA (GLfloat, GLfloat);
6849__attribute__((visibility("default"))) void glWindowPos2fvMESA (const GLfloat *);
6850__attribute__((visibility("default"))) void glWindowPos2iMESA (GLint, GLint);
6851__attribute__((visibility("default"))) void glWindowPos2ivMESA (const GLint *);
6852__attribute__((visibility("default"))) void glWindowPos2sMESA (GLshort, GLshort);
6853__attribute__((visibility("default"))) void glWindowPos2svMESA (const GLshort *);
6854__attribute__((visibility("default"))) void glWindowPos3dMESA (GLdouble, GLdouble, GLdouble);
6855__attribute__((visibility("default"))) void glWindowPos3dvMESA (const GLdouble *);
6856__attribute__((visibility("default"))) void glWindowPos3fMESA (GLfloat, GLfloat, GLfloat);
6857__attribute__((visibility("default"))) void glWindowPos3fvMESA (const GLfloat *);
6858__attribute__((visibility("default"))) void glWindowPos3iMESA (GLint, GLint, GLint);
6859__attribute__((visibility("default"))) void glWindowPos3ivMESA (const GLint *);
6860__attribute__((visibility("default"))) void glWindowPos3sMESA (GLshort, GLshort, GLshort);
6861__attribute__((visibility("default"))) void glWindowPos3svMESA (const GLshort *);
6862__attribute__((visibility("default"))) void glWindowPos4dMESA (GLdouble, GLdouble, GLdouble, GLdouble);
6863__attribute__((visibility("default"))) void glWindowPos4dvMESA (const GLdouble *);
6864__attribute__((visibility("default"))) void glWindowPos4fMESA (GLfloat, GLfloat, GLfloat, GLfloat);
6865__attribute__((visibility("default"))) void glWindowPos4fvMESA (const GLfloat *);
6866__attribute__((visibility("default"))) void glWindowPos4iMESA (GLint, GLint, GLint, GLint);
6867__attribute__((visibility("default"))) void glWindowPos4ivMESA (const GLint *);
6868__attribute__((visibility("default"))) void glWindowPos4sMESA (GLshort, GLshort, GLshort, GLshort);
6869__attribute__((visibility("default"))) void glWindowPos4svMESA (const GLshort *);
6870
6871typedef void ( * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y);
6872typedef void ( * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v);
6873typedef void ( * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y);
6874typedef void ( * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v);
6875typedef void ( * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y);
6876typedef void ( * PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v);
6877typedef void ( * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y);
6878typedef void ( * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v);
6879typedef void ( * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z);
6880typedef void ( * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v);
6881typedef void ( * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z);
6882typedef void ( * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v);
6883typedef void ( * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z);
6884typedef void ( * PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v);
6885typedef void ( * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z);
6886typedef void ( * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v);
6887typedef void ( * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
6888typedef void ( * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v);
6889typedef void ( * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
6890typedef void ( * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v);
6891typedef void ( * PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w);
6892typedef void ( * PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v);
6893typedef void ( * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w);
6894typedef void ( * PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v);
6895# 5804 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6896__attribute__((visibility("default"))) void glMultiModeDrawArraysIBM (const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint);
6897__attribute__((visibility("default"))) void glMultiModeDrawElementsIBM (const GLenum *, const GLsizei *, GLenum, const GLvoid* const *, GLsizei, GLint);
6898
6899typedef void ( * PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
6900typedef void ( * PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride);
6901
6902
6903
6904
6905
6906__attribute__((visibility("default"))) void glColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint);
6907__attribute__((visibility("default"))) void glSecondaryColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint);
6908__attribute__((visibility("default"))) void glEdgeFlagPointerListIBM (GLint, const GLboolean* *, GLint);
6909__attribute__((visibility("default"))) void glFogCoordPointerListIBM (GLenum, GLint, const GLvoid* *, GLint);
6910__attribute__((visibility("default"))) void glIndexPointerListIBM (GLenum, GLint, const GLvoid* *, GLint);
6911__attribute__((visibility("default"))) void glNormalPointerListIBM (GLenum, GLint, const GLvoid* *, GLint);
6912__attribute__((visibility("default"))) void glTexCoordPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint);
6913__attribute__((visibility("default"))) void glVertexPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint);
6914
6915typedef void ( * PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6916typedef void ( * PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6917typedef void ( * PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride);
6918typedef void ( * PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6919typedef void ( * PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6920typedef void ( * PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6921typedef void ( * PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6922typedef void ( * PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
6923# 5860 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6924__attribute__((visibility("default"))) void glTbufferMask3DFX (GLuint);
6925
6926typedef void ( * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
6927
6928
6929
6930
6931
6932__attribute__((visibility("default"))) void glSampleMaskEXT (GLclampf, GLboolean);
6933__attribute__((visibility("default"))) void glSamplePatternEXT (GLenum);
6934
6935typedef void ( * PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert);
6936typedef void ( * PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern);
6937# 5894 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6938__attribute__((visibility("default"))) void glTextureColorMaskSGIS (GLboolean, GLboolean, GLboolean, GLboolean);
6939
6940typedef void ( * PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
6941
6942
6943
6944
6945
6946__attribute__((visibility("default"))) void glIglooInterfaceSGIX (GLenum, const GLvoid *);
6947
6948typedef void ( * PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params);
6949# 5918 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6950__attribute__((visibility("default"))) void glDeleteFencesNV (GLsizei, const GLuint *);
6951__attribute__((visibility("default"))) void glGenFencesNV (GLsizei, GLuint *);
6952__attribute__((visibility("default"))) GLboolean glIsFenceNV (GLuint);
6953__attribute__((visibility("default"))) GLboolean glTestFenceNV (GLuint);
6954__attribute__((visibility("default"))) void glGetFenceivNV (GLuint, GLenum, GLint *);
6955__attribute__((visibility("default"))) void glFinishFenceNV (GLuint);
6956__attribute__((visibility("default"))) void glSetFenceNV (GLuint, GLenum);
6957
6958typedef void ( * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
6959typedef void ( * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
6960typedef GLboolean ( * PFNGLISFENCENVPROC) (GLuint fence);
6961typedef GLboolean ( * PFNGLTESTFENCENVPROC) (GLuint fence);
6962typedef void ( * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
6963typedef void ( * PFNGLFINISHFENCENVPROC) (GLuint fence);
6964typedef void ( * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
6965
6966
6967
6968
6969
6970__attribute__((visibility("default"))) void glMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLint, GLint, GLboolean, const GLvoid *);
6971__attribute__((visibility("default"))) void glMapParameterivNV (GLenum, GLenum, const GLint *);
6972__attribute__((visibility("default"))) void glMapParameterfvNV (GLenum, GLenum, const GLfloat *);
6973__attribute__((visibility("default"))) void glGetMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLboolean, GLvoid *);
6974__attribute__((visibility("default"))) void glGetMapParameterivNV (GLenum, GLenum, GLint *);
6975__attribute__((visibility("default"))) void glGetMapParameterfvNV (GLenum, GLenum, GLfloat *);
6976__attribute__((visibility("default"))) void glGetMapAttribParameterivNV (GLenum, GLuint, GLenum, GLint *);
6977__attribute__((visibility("default"))) void glGetMapAttribParameterfvNV (GLenum, GLuint, GLenum, GLfloat *);
6978__attribute__((visibility("default"))) void glEvalMapsNV (GLenum, GLenum);
6979
6980typedef void ( * PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points);
6981typedef void ( * PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params);
6982typedef void ( * PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params);
6983typedef void ( * PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points);
6984typedef void ( * PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params);
6985typedef void ( * PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params);
6986typedef void ( * PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
6987typedef void ( * PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
6988typedef void ( * PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode);
6989# 5966 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6990__attribute__((visibility("default"))) void glCombinerStageParameterfvNV (GLenum, GLenum, const GLfloat *);
6991__attribute__((visibility("default"))) void glGetCombinerStageParameterfvNV (GLenum, GLenum, GLfloat *);
6992
6993typedef void ( * PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params);
6994typedef void ( * PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params);
6995# 5996 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
6996__attribute__((visibility("default"))) GLboolean glAreProgramsResidentNV (GLsizei, const GLuint *, GLboolean *);
6997__attribute__((visibility("default"))) void glBindProgramNV (GLenum, GLuint);
6998__attribute__((visibility("default"))) void glDeleteProgramsNV (GLsizei, const GLuint *);
6999__attribute__((visibility("default"))) void glExecuteProgramNV (GLenum, GLuint, const GLfloat *);
7000__attribute__((visibility("default"))) void glGenProgramsNV (GLsizei, GLuint *);
7001__attribute__((visibility("default"))) void glGetProgramParameterdvNV (GLenum, GLuint, GLenum, GLdouble *);
7002__attribute__((visibility("default"))) void glGetProgramParameterfvNV (GLenum, GLuint, GLenum, GLfloat *);
7003__attribute__((visibility("default"))) void glGetProgramivNV (GLuint, GLenum, GLint *);
7004__attribute__((visibility("default"))) void glGetProgramStringNV (GLuint, GLenum, GLubyte *);
7005__attribute__((visibility("default"))) void glGetTrackMatrixivNV (GLenum, GLuint, GLenum, GLint *);
7006__attribute__((visibility("default"))) void glGetVertexAttribdvNV (GLuint, GLenum, GLdouble *);
7007__attribute__((visibility("default"))) void glGetVertexAttribfvNV (GLuint, GLenum, GLfloat *);
7008__attribute__((visibility("default"))) void glGetVertexAttribivNV (GLuint, GLenum, GLint *);
7009__attribute__((visibility("default"))) void glGetVertexAttribPointervNV (GLuint, GLenum, GLvoid* *);
7010__attribute__((visibility("default"))) GLboolean glIsProgramNV (GLuint);
7011__attribute__((visibility("default"))) void glLoadProgramNV (GLenum, GLuint, GLsizei, const GLubyte *);
7012__attribute__((visibility("default"))) void glProgramParameter4dNV (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
7013__attribute__((visibility("default"))) void glProgramParameter4dvNV (GLenum, GLuint, const GLdouble *);
7014__attribute__((visibility("default"))) void glProgramParameter4fNV (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
7015__attribute__((visibility("default"))) void glProgramParameter4fvNV (GLenum, GLuint, const GLfloat *);
7016__attribute__((visibility("default"))) void glProgramParameters4dvNV (GLenum, GLuint, GLuint, const GLdouble *);
7017__attribute__((visibility("default"))) void glProgramParameters4fvNV (GLenum, GLuint, GLuint, const GLfloat *);
7018__attribute__((visibility("default"))) void glRequestResidentProgramsNV (GLsizei, const GLuint *);
7019__attribute__((visibility("default"))) void glTrackMatrixNV (GLenum, GLuint, GLenum, GLenum);
7020__attribute__((visibility("default"))) void glVertexAttribPointerNV (GLuint, GLint, GLenum, GLsizei, const GLvoid *);
7021__attribute__((visibility("default"))) void glVertexAttrib1dNV (GLuint, GLdouble);
7022__attribute__((visibility("default"))) void glVertexAttrib1dvNV (GLuint, const GLdouble *);
7023__attribute__((visibility("default"))) void glVertexAttrib1fNV (GLuint, GLfloat);
7024__attribute__((visibility("default"))) void glVertexAttrib1fvNV (GLuint, const GLfloat *);
7025__attribute__((visibility("default"))) void glVertexAttrib1sNV (GLuint, GLshort);
7026__attribute__((visibility("default"))) void glVertexAttrib1svNV (GLuint, const GLshort *);
7027__attribute__((visibility("default"))) void glVertexAttrib2dNV (GLuint, GLdouble, GLdouble);
7028__attribute__((visibility("default"))) void glVertexAttrib2dvNV (GLuint, const GLdouble *);
7029__attribute__((visibility("default"))) void glVertexAttrib2fNV (GLuint, GLfloat, GLfloat);
7030__attribute__((visibility("default"))) void glVertexAttrib2fvNV (GLuint, const GLfloat *);
7031__attribute__((visibility("default"))) void glVertexAttrib2sNV (GLuint, GLshort, GLshort);
7032__attribute__((visibility("default"))) void glVertexAttrib2svNV (GLuint, const GLshort *);
7033__attribute__((visibility("default"))) void glVertexAttrib3dNV (GLuint, GLdouble, GLdouble, GLdouble);
7034__attribute__((visibility("default"))) void glVertexAttrib3dvNV (GLuint, const GLdouble *);
7035__attribute__((visibility("default"))) void glVertexAttrib3fNV (GLuint, GLfloat, GLfloat, GLfloat);
7036__attribute__((visibility("default"))) void glVertexAttrib3fvNV (GLuint, const GLfloat *);
7037__attribute__((visibility("default"))) void glVertexAttrib3sNV (GLuint, GLshort, GLshort, GLshort);
7038__attribute__((visibility("default"))) void glVertexAttrib3svNV (GLuint, const GLshort *);
7039__attribute__((visibility("default"))) void glVertexAttrib4dNV (GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
7040__attribute__((visibility("default"))) void glVertexAttrib4dvNV (GLuint, const GLdouble *);
7041__attribute__((visibility("default"))) void glVertexAttrib4fNV (GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
7042__attribute__((visibility("default"))) void glVertexAttrib4fvNV (GLuint, const GLfloat *);
7043__attribute__((visibility("default"))) void glVertexAttrib4sNV (GLuint, GLshort, GLshort, GLshort, GLshort);
7044__attribute__((visibility("default"))) void glVertexAttrib4svNV (GLuint, const GLshort *);
7045__attribute__((visibility("default"))) void glVertexAttrib4ubNV (GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
7046__attribute__((visibility("default"))) void glVertexAttrib4ubvNV (GLuint, const GLubyte *);
7047__attribute__((visibility("default"))) void glVertexAttribs1dvNV (GLuint, GLsizei, const GLdouble *);
7048__attribute__((visibility("default"))) void glVertexAttribs1fvNV (GLuint, GLsizei, const GLfloat *);
7049__attribute__((visibility("default"))) void glVertexAttribs1svNV (GLuint, GLsizei, const GLshort *);
7050__attribute__((visibility("default"))) void glVertexAttribs2dvNV (GLuint, GLsizei, const GLdouble *);
7051__attribute__((visibility("default"))) void glVertexAttribs2fvNV (GLuint, GLsizei, const GLfloat *);
7052__attribute__((visibility("default"))) void glVertexAttribs2svNV (GLuint, GLsizei, const GLshort *);
7053__attribute__((visibility("default"))) void glVertexAttribs3dvNV (GLuint, GLsizei, const GLdouble *);
7054__attribute__((visibility("default"))) void glVertexAttribs3fvNV (GLuint, GLsizei, const GLfloat *);
7055__attribute__((visibility("default"))) void glVertexAttribs3svNV (GLuint, GLsizei, const GLshort *);
7056__attribute__((visibility("default"))) void glVertexAttribs4dvNV (GLuint, GLsizei, const GLdouble *);
7057__attribute__((visibility("default"))) void glVertexAttribs4fvNV (GLuint, GLsizei, const GLfloat *);
7058__attribute__((visibility("default"))) void glVertexAttribs4svNV (GLuint, GLsizei, const GLshort *);
7059__attribute__((visibility("default"))) void glVertexAttribs4ubvNV (GLuint, GLsizei, const GLubyte *);
7060
7061typedef GLboolean ( * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences);
7062typedef void ( * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id);
7063typedef void ( * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
7064typedef void ( * PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params);
7065typedef void ( * PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs);
7066typedef void ( * PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params);
7067typedef void ( * PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
7068typedef void ( * PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params);
7069typedef void ( * PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program);
7070typedef void ( * PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params);
7071typedef void ( * PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params);
7072typedef void ( * PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params);
7073typedef void ( * PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params);
7074typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
7075typedef GLboolean ( * PFNGLISPROGRAMNVPROC) (GLuint id);
7076typedef void ( * PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
7077typedef void ( * PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
7078typedef void ( * PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v);
7079typedef void ( * PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
7080typedef void ( * PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v);
7081typedef void ( * PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLuint count, const GLdouble *v);
7082typedef void ( * PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat *v);
7083typedef void ( * PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
7084typedef void ( * PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
7085typedef void ( * PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer);
7086typedef void ( * PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x);
7087typedef void ( * PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v);
7088typedef void ( * PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x);
7089typedef void ( * PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v);
7090typedef void ( * PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x);
7091typedef void ( * PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v);
7092typedef void ( * PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y);
7093typedef void ( * PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v);
7094typedef void ( * PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y);
7095typedef void ( * PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v);
7096typedef void ( * PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y);
7097typedef void ( * PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v);
7098typedef void ( * PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
7099typedef void ( * PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v);
7100typedef void ( * PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
7101typedef void ( * PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v);
7102typedef void ( * PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
7103typedef void ( * PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v);
7104typedef void ( * PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
7105typedef void ( * PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v);
7106typedef void ( * PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
7107typedef void ( * PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v);
7108typedef void ( * PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
7109typedef void ( * PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v);
7110typedef void ( * PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
7111typedef void ( * PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v);
7112typedef void ( * PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
7113typedef void ( * PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
7114typedef void ( * PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
7115typedef void ( * PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
7116typedef void ( * PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
7117typedef void ( * PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
7118typedef void ( * PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
7119typedef void ( * PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
7120typedef void ( * PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
7121typedef void ( * PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
7122typedef void ( * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
7123typedef void ( * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
7124typedef void ( * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v);
7125# 6154 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7126__attribute__((visibility("default"))) void glTexBumpParameterivATI (GLenum, const GLint *);
7127__attribute__((visibility("default"))) void glTexBumpParameterfvATI (GLenum, const GLfloat *);
7128__attribute__((visibility("default"))) void glGetTexBumpParameterivATI (GLenum, GLint *);
7129__attribute__((visibility("default"))) void glGetTexBumpParameterfvATI (GLenum, GLfloat *);
7130
7131typedef void ( * PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param);
7132typedef void ( * PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param);
7133typedef void ( * PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
7134typedef void ( * PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
7135
7136
7137
7138
7139
7140__attribute__((visibility("default"))) GLuint glGenFragmentShadersATI (GLuint);
7141__attribute__((visibility("default"))) void glBindFragmentShaderATI (GLuint);
7142__attribute__((visibility("default"))) void glDeleteFragmentShaderATI (GLuint);
7143__attribute__((visibility("default"))) void glBeginFragmentShaderATI (void);
7144__attribute__((visibility("default"))) void glEndFragmentShaderATI (void);
7145__attribute__((visibility("default"))) void glPassTexCoordATI (GLuint, GLuint, GLenum);
7146__attribute__((visibility("default"))) void glSampleMapATI (GLuint, GLuint, GLenum);
7147__attribute__((visibility("default"))) void glColorFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint);
7148__attribute__((visibility("default"))) void glColorFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint);
7149__attribute__((visibility("default"))) void glColorFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint);
7150__attribute__((visibility("default"))) void glAlphaFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint);
7151__attribute__((visibility("default"))) void glAlphaFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint);
7152__attribute__((visibility("default"))) void glAlphaFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint);
7153__attribute__((visibility("default"))) void glSetFragmentShaderConstantATI (GLuint, const GLfloat *);
7154
7155typedef GLuint ( * PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range);
7156typedef void ( * PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id);
7157typedef void ( * PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id);
7158typedef void ( * PFNGLBEGINFRAGMENTSHADERATIPROC) (void);
7159typedef void ( * PFNGLENDFRAGMENTSHADERATIPROC) (void);
7160typedef void ( * PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
7161typedef void ( * PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
7162typedef void ( * PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
7163typedef void ( * PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
7164typedef void ( * PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
7165typedef void ( * PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
7166typedef void ( * PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
7167typedef void ( * PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
7168typedef void ( * PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value);
7169
7170
7171
7172
7173
7174__attribute__((visibility("default"))) void glPNTrianglesiATI (GLenum, GLint);
7175__attribute__((visibility("default"))) void glPNTrianglesfATI (GLenum, GLfloat);
7176
7177typedef void ( * PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param);
7178typedef void ( * PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param);
7179
7180
7181
7182
7183
7184__attribute__((visibility("default"))) GLuint glNewObjectBufferATI (GLsizei, const GLvoid *, GLenum);
7185__attribute__((visibility("default"))) GLboolean glIsObjectBufferATI (GLuint);
7186__attribute__((visibility("default"))) void glUpdateObjectBufferATI (GLuint, GLuint, GLsizei, const GLvoid *, GLenum);
7187__attribute__((visibility("default"))) void glGetObjectBufferfvATI (GLuint, GLenum, GLfloat *);
7188__attribute__((visibility("default"))) void glGetObjectBufferivATI (GLuint, GLenum, GLint *);
7189__attribute__((visibility("default"))) void glFreeObjectBufferATI (GLuint);
7190__attribute__((visibility("default"))) void glArrayObjectATI (GLenum, GLint, GLenum, GLsizei, GLuint, GLuint);
7191__attribute__((visibility("default"))) void glGetArrayObjectfvATI (GLenum, GLenum, GLfloat *);
7192__attribute__((visibility("default"))) void glGetArrayObjectivATI (GLenum, GLenum, GLint *);
7193__attribute__((visibility("default"))) void glVariantArrayObjectATI (GLuint, GLenum, GLsizei, GLuint, GLuint);
7194__attribute__((visibility("default"))) void glGetVariantArrayObjectfvATI (GLuint, GLenum, GLfloat *);
7195__attribute__((visibility("default"))) void glGetVariantArrayObjectivATI (GLuint, GLenum, GLint *);
7196
7197typedef GLuint ( * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage);
7198typedef GLboolean ( * PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer);
7199typedef void ( * PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve);
7200typedef void ( * PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params);
7201typedef void ( * PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params);
7202typedef void ( * PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer);
7203typedef void ( * PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
7204typedef void ( * PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params);
7205typedef void ( * PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params);
7206typedef void ( * PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
7207typedef void ( * PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params);
7208typedef void ( * PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params);
7209
7210
7211
7212
7213
7214__attribute__((visibility("default"))) void glBeginVertexShaderEXT (void);
7215__attribute__((visibility("default"))) void glEndVertexShaderEXT (void);
7216__attribute__((visibility("default"))) void glBindVertexShaderEXT (GLuint);
7217__attribute__((visibility("default"))) GLuint glGenVertexShadersEXT (GLuint);
7218__attribute__((visibility("default"))) void glDeleteVertexShaderEXT (GLuint);
7219__attribute__((visibility("default"))) void glShaderOp1EXT (GLenum, GLuint, GLuint);
7220__attribute__((visibility("default"))) void glShaderOp2EXT (GLenum, GLuint, GLuint, GLuint);
7221__attribute__((visibility("default"))) void glShaderOp3EXT (GLenum, GLuint, GLuint, GLuint, GLuint);
7222__attribute__((visibility("default"))) void glSwizzleEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum);
7223__attribute__((visibility("default"))) void glWriteMaskEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum);
7224__attribute__((visibility("default"))) void glInsertComponentEXT (GLuint, GLuint, GLuint);
7225__attribute__((visibility("default"))) void glExtractComponentEXT (GLuint, GLuint, GLuint);
7226__attribute__((visibility("default"))) GLuint glGenSymbolsEXT (GLenum, GLenum, GLenum, GLuint);
7227__attribute__((visibility("default"))) void glSetInvariantEXT (GLuint, GLenum, const GLvoid *);
7228__attribute__((visibility("default"))) void glSetLocalConstantEXT (GLuint, GLenum, const GLvoid *);
7229__attribute__((visibility("default"))) void glVariantbvEXT (GLuint, const GLbyte *);
7230__attribute__((visibility("default"))) void glVariantsvEXT (GLuint, const GLshort *);
7231__attribute__((visibility("default"))) void glVariantivEXT (GLuint, const GLint *);
7232__attribute__((visibility("default"))) void glVariantfvEXT (GLuint, const GLfloat *);
7233__attribute__((visibility("default"))) void glVariantdvEXT (GLuint, const GLdouble *);
7234__attribute__((visibility("default"))) void glVariantubvEXT (GLuint, const GLubyte *);
7235__attribute__((visibility("default"))) void glVariantusvEXT (GLuint, const GLushort *);
7236__attribute__((visibility("default"))) void glVariantuivEXT (GLuint, const GLuint *);
7237__attribute__((visibility("default"))) void glVariantPointerEXT (GLuint, GLenum, GLuint, const GLvoid *);
7238__attribute__((visibility("default"))) void glEnableVariantClientStateEXT (GLuint);
7239__attribute__((visibility("default"))) void glDisableVariantClientStateEXT (GLuint);
7240__attribute__((visibility("default"))) GLuint glBindLightParameterEXT (GLenum, GLenum);
7241__attribute__((visibility("default"))) GLuint glBindMaterialParameterEXT (GLenum, GLenum);
7242__attribute__((visibility("default"))) GLuint glBindTexGenParameterEXT (GLenum, GLenum, GLenum);
7243__attribute__((visibility("default"))) GLuint glBindTextureUnitParameterEXT (GLenum, GLenum);
7244__attribute__((visibility("default"))) GLuint glBindParameterEXT (GLenum);
7245__attribute__((visibility("default"))) GLboolean glIsVariantEnabledEXT (GLuint, GLenum);
7246__attribute__((visibility("default"))) void glGetVariantBooleanvEXT (GLuint, GLenum, GLboolean *);
7247__attribute__((visibility("default"))) void glGetVariantIntegervEXT (GLuint, GLenum, GLint *);
7248__attribute__((visibility("default"))) void glGetVariantFloatvEXT (GLuint, GLenum, GLfloat *);
7249__attribute__((visibility("default"))) void glGetVariantPointervEXT (GLuint, GLenum, GLvoid* *);
7250__attribute__((visibility("default"))) void glGetInvariantBooleanvEXT (GLuint, GLenum, GLboolean *);
7251__attribute__((visibility("default"))) void glGetInvariantIntegervEXT (GLuint, GLenum, GLint *);
7252__attribute__((visibility("default"))) void glGetInvariantFloatvEXT (GLuint, GLenum, GLfloat *);
7253__attribute__((visibility("default"))) void glGetLocalConstantBooleanvEXT (GLuint, GLenum, GLboolean *);
7254__attribute__((visibility("default"))) void glGetLocalConstantIntegervEXT (GLuint, GLenum, GLint *);
7255__attribute__((visibility("default"))) void glGetLocalConstantFloatvEXT (GLuint, GLenum, GLfloat *);
7256
7257typedef void ( * PFNGLBEGINVERTEXSHADEREXTPROC) (void);
7258typedef void ( * PFNGLENDVERTEXSHADEREXTPROC) (void);
7259typedef void ( * PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id);
7260typedef GLuint ( * PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range);
7261typedef void ( * PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id);
7262typedef void ( * PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
7263typedef void ( * PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
7264typedef void ( * PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
7265typedef void ( * PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
7266typedef void ( * PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
7267typedef void ( * PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
7268typedef void ( * PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
7269typedef GLuint ( * PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
7270typedef void ( * PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr);
7271typedef void ( * PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr);
7272typedef void ( * PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr);
7273typedef void ( * PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr);
7274typedef void ( * PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr);
7275typedef void ( * PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr);
7276typedef void ( * PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr);
7277typedef void ( * PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr);
7278typedef void ( * PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr);
7279typedef void ( * PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr);
7280typedef void ( * PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr);
7281typedef void ( * PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
7282typedef void ( * PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
7283typedef GLuint ( * PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value);
7284typedef GLuint ( * PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value);
7285typedef GLuint ( * PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value);
7286typedef GLuint ( * PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value);
7287typedef GLuint ( * PFNGLBINDPARAMETEREXTPROC) (GLenum value);
7288typedef GLboolean ( * PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap);
7289typedef void ( * PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
7290typedef void ( * PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
7291typedef void ( * PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
7292typedef void ( * PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data);
7293typedef void ( * PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
7294typedef void ( * PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
7295typedef void ( * PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
7296typedef void ( * PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
7297typedef void ( * PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
7298typedef void ( * PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
7299
7300
7301
7302
7303
7304__attribute__((visibility("default"))) void glVertexStream1sATI (GLenum, GLshort);
7305__attribute__((visibility("default"))) void glVertexStream1svATI (GLenum, const GLshort *);
7306__attribute__((visibility("default"))) void glVertexStream1iATI (GLenum, GLint);
7307__attribute__((visibility("default"))) void glVertexStream1ivATI (GLenum, const GLint *);
7308__attribute__((visibility("default"))) void glVertexStream1fATI (GLenum, GLfloat);
7309__attribute__((visibility("default"))) void glVertexStream1fvATI (GLenum, const GLfloat *);
7310__attribute__((visibility("default"))) void glVertexStream1dATI (GLenum, GLdouble);
7311__attribute__((visibility("default"))) void glVertexStream1dvATI (GLenum, const GLdouble *);
7312__attribute__((visibility("default"))) void glVertexStream2sATI (GLenum, GLshort, GLshort);
7313__attribute__((visibility("default"))) void glVertexStream2svATI (GLenum, const GLshort *);
7314__attribute__((visibility("default"))) void glVertexStream2iATI (GLenum, GLint, GLint);
7315__attribute__((visibility("default"))) void glVertexStream2ivATI (GLenum, const GLint *);
7316__attribute__((visibility("default"))) void glVertexStream2fATI (GLenum, GLfloat, GLfloat);
7317__attribute__((visibility("default"))) void glVertexStream2fvATI (GLenum, const GLfloat *);
7318__attribute__((visibility("default"))) void glVertexStream2dATI (GLenum, GLdouble, GLdouble);
7319__attribute__((visibility("default"))) void glVertexStream2dvATI (GLenum, const GLdouble *);
7320__attribute__((visibility("default"))) void glVertexStream3sATI (GLenum, GLshort, GLshort, GLshort);
7321__attribute__((visibility("default"))) void glVertexStream3svATI (GLenum, const GLshort *);
7322__attribute__((visibility("default"))) void glVertexStream3iATI (GLenum, GLint, GLint, GLint);
7323__attribute__((visibility("default"))) void glVertexStream3ivATI (GLenum, const GLint *);
7324__attribute__((visibility("default"))) void glVertexStream3fATI (GLenum, GLfloat, GLfloat, GLfloat);
7325__attribute__((visibility("default"))) void glVertexStream3fvATI (GLenum, const GLfloat *);
7326__attribute__((visibility("default"))) void glVertexStream3dATI (GLenum, GLdouble, GLdouble, GLdouble);
7327__attribute__((visibility("default"))) void glVertexStream3dvATI (GLenum, const GLdouble *);
7328__attribute__((visibility("default"))) void glVertexStream4sATI (GLenum, GLshort, GLshort, GLshort, GLshort);
7329__attribute__((visibility("default"))) void glVertexStream4svATI (GLenum, const GLshort *);
7330__attribute__((visibility("default"))) void glVertexStream4iATI (GLenum, GLint, GLint, GLint, GLint);
7331__attribute__((visibility("default"))) void glVertexStream4ivATI (GLenum, const GLint *);
7332__attribute__((visibility("default"))) void glVertexStream4fATI (GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
7333__attribute__((visibility("default"))) void glVertexStream4fvATI (GLenum, const GLfloat *);
7334__attribute__((visibility("default"))) void glVertexStream4dATI (GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
7335__attribute__((visibility("default"))) void glVertexStream4dvATI (GLenum, const GLdouble *);
7336__attribute__((visibility("default"))) void glNormalStream3bATI (GLenum, GLbyte, GLbyte, GLbyte);
7337__attribute__((visibility("default"))) void glNormalStream3bvATI (GLenum, const GLbyte *);
7338__attribute__((visibility("default"))) void glNormalStream3sATI (GLenum, GLshort, GLshort, GLshort);
7339__attribute__((visibility("default"))) void glNormalStream3svATI (GLenum, const GLshort *);
7340__attribute__((visibility("default"))) void glNormalStream3iATI (GLenum, GLint, GLint, GLint);
7341__attribute__((visibility("default"))) void glNormalStream3ivATI (GLenum, const GLint *);
7342__attribute__((visibility("default"))) void glNormalStream3fATI (GLenum, GLfloat, GLfloat, GLfloat);
7343__attribute__((visibility("default"))) void glNormalStream3fvATI (GLenum, const GLfloat *);
7344__attribute__((visibility("default"))) void glNormalStream3dATI (GLenum, GLdouble, GLdouble, GLdouble);
7345__attribute__((visibility("default"))) void glNormalStream3dvATI (GLenum, const GLdouble *);
7346__attribute__((visibility("default"))) void glClientActiveVertexStreamATI (GLenum);
7347__attribute__((visibility("default"))) void glVertexBlendEnviATI (GLenum, GLint);
7348__attribute__((visibility("default"))) void glVertexBlendEnvfATI (GLenum, GLfloat);
7349
7350typedef void ( * PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x);
7351typedef void ( * PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords);
7352typedef void ( * PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x);
7353typedef void ( * PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords);
7354typedef void ( * PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x);
7355typedef void ( * PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords);
7356typedef void ( * PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x);
7357typedef void ( * PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords);
7358typedef void ( * PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y);
7359typedef void ( * PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords);
7360typedef void ( * PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y);
7361typedef void ( * PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords);
7362typedef void ( * PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y);
7363typedef void ( * PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords);
7364typedef void ( * PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y);
7365typedef void ( * PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords);
7366typedef void ( * PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
7367typedef void ( * PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
7368typedef void ( * PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
7369typedef void ( * PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
7370typedef void ( * PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
7371typedef void ( * PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
7372typedef void ( * PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
7373typedef void ( * PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
7374typedef void ( * PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
7375typedef void ( * PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords);
7376typedef void ( * PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
7377typedef void ( * PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords);
7378typedef void ( * PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
7379typedef void ( * PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords);
7380typedef void ( * PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
7381typedef void ( * PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords);
7382typedef void ( * PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
7383typedef void ( * PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords);
7384typedef void ( * PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
7385typedef void ( * PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
7386typedef void ( * PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz);
7387typedef void ( * PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
7388typedef void ( * PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
7389typedef void ( * PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
7390typedef void ( * PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
7391typedef void ( * PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
7392typedef void ( * PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream);
7393typedef void ( * PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param);
7394typedef void ( * PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param);
7395
7396
7397
7398
7399
7400__attribute__((visibility("default"))) void glElementPointerATI (GLenum, const GLvoid *);
7401__attribute__((visibility("default"))) void glDrawElementArrayATI (GLenum, GLsizei);
7402__attribute__((visibility("default"))) void glDrawRangeElementArrayATI (GLenum, GLuint, GLuint, GLsizei);
7403
7404typedef void ( * PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer);
7405typedef void ( * PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
7406typedef void ( * PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
7407
7408
7409
7410
7411
7412__attribute__((visibility("default"))) void glDrawMeshArraysSUN (GLenum, GLint, GLsizei, GLsizei);
7413
7414typedef void ( * PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width);
7415# 6460 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7416__attribute__((visibility("default"))) void glGenOcclusionQueriesNV (GLsizei, GLuint *);
7417__attribute__((visibility("default"))) void glDeleteOcclusionQueriesNV (GLsizei, const GLuint *);
7418__attribute__((visibility("default"))) GLboolean glIsOcclusionQueryNV (GLuint);
7419__attribute__((visibility("default"))) void glBeginOcclusionQueryNV (GLuint);
7420__attribute__((visibility("default"))) void glEndOcclusionQueryNV (void);
7421__attribute__((visibility("default"))) void glGetOcclusionQueryivNV (GLuint, GLenum, GLint *);
7422__attribute__((visibility("default"))) void glGetOcclusionQueryuivNV (GLuint, GLenum, GLuint *);
7423
7424typedef void ( * PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
7425typedef void ( * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
7426typedef GLboolean ( * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id);
7427typedef void ( * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
7428typedef void ( * PFNGLENDOCCLUSIONQUERYNVPROC) (void);
7429typedef void ( * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
7430typedef void ( * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
7431
7432
7433
7434
7435
7436__attribute__((visibility("default"))) void glPointParameteriNV (GLenum, GLint);
7437__attribute__((visibility("default"))) void glPointParameterivNV (GLenum, const GLint *);
7438
7439typedef void ( * PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param);
7440typedef void ( * PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
7441# 6502 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7442__attribute__((visibility("default"))) void glActiveStencilFaceEXT (GLenum);
7443
7444typedef void ( * PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face);
7445# 6518 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7446__attribute__((visibility("default"))) void glElementPointerAPPLE (GLenum, const GLvoid *);
7447__attribute__((visibility("default"))) void glDrawElementArrayAPPLE (GLenum, GLint, GLsizei);
7448__attribute__((visibility("default"))) void glDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, GLint, GLsizei);
7449__attribute__((visibility("default"))) void glMultiDrawElementArrayAPPLE (GLenum, const GLint *, const GLsizei *, GLsizei);
7450__attribute__((visibility("default"))) void glMultiDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, const GLint *, const GLsizei *, GLsizei);
7451
7452typedef void ( * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer);
7453typedef void ( * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
7454typedef void ( * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
7455typedef void ( * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
7456typedef void ( * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
7457
7458
7459
7460
7461
7462__attribute__((visibility("default"))) void glGenFencesAPPLE (GLsizei, GLuint *);
7463__attribute__((visibility("default"))) void glDeleteFencesAPPLE (GLsizei, const GLuint *);
7464__attribute__((visibility("default"))) void glSetFenceAPPLE (GLuint);
7465__attribute__((visibility("default"))) GLboolean glIsFenceAPPLE (GLuint);
7466__attribute__((visibility("default"))) GLboolean glTestFenceAPPLE (GLuint);
7467__attribute__((visibility("default"))) void glFinishFenceAPPLE (GLuint);
7468__attribute__((visibility("default"))) GLboolean glTestObjectAPPLE (GLenum, GLuint);
7469__attribute__((visibility("default"))) void glFinishObjectAPPLE (GLenum, GLint);
7470
7471typedef void ( * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences);
7472typedef void ( * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences);
7473typedef void ( * PFNGLSETFENCEAPPLEPROC) (GLuint fence);
7474typedef GLboolean ( * PFNGLISFENCEAPPLEPROC) (GLuint fence);
7475typedef GLboolean ( * PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
7476typedef void ( * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
7477typedef GLboolean ( * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
7478typedef void ( * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
7479
7480
7481
7482
7483
7484__attribute__((visibility("default"))) void glBindVertexArrayAPPLE (GLuint);
7485__attribute__((visibility("default"))) void glDeleteVertexArraysAPPLE (GLsizei, const GLuint *);
7486__attribute__((visibility("default"))) void glGenVertexArraysAPPLE (GLsizei, GLuint *);
7487__attribute__((visibility("default"))) GLboolean glIsVertexArrayAPPLE (GLuint);
7488
7489typedef void ( * PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
7490typedef void ( * PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays);
7491typedef void ( * PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays);
7492typedef GLboolean ( * PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
7493
7494
7495
7496
7497
7498__attribute__((visibility("default"))) void glVertexArrayRangeAPPLE (GLsizei, GLvoid *);
7499__attribute__((visibility("default"))) void glFlushVertexArrayRangeAPPLE (GLsizei, GLvoid *);
7500__attribute__((visibility("default"))) void glVertexArrayParameteriAPPLE (GLenum, GLint);
7501
7502typedef void ( * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer);
7503typedef void ( * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer);
7504typedef void ( * PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
7505# 6590 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7506__attribute__((visibility("default"))) void glDrawBuffersATI (GLsizei, const GLenum *);
7507
7508typedef void ( * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
7509# 6618 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7510__attribute__((visibility("default"))) void glProgramNamedParameter4fNV (GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat);
7511__attribute__((visibility("default"))) void glProgramNamedParameter4dNV (GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble);
7512__attribute__((visibility("default"))) void glProgramNamedParameter4fvNV (GLuint, GLsizei, const GLubyte *, const GLfloat *);
7513__attribute__((visibility("default"))) void glProgramNamedParameter4dvNV (GLuint, GLsizei, const GLubyte *, const GLdouble *);
7514__attribute__((visibility("default"))) void glGetProgramNamedParameterfvNV (GLuint, GLsizei, const GLubyte *, GLfloat *);
7515__attribute__((visibility("default"))) void glGetProgramNamedParameterdvNV (GLuint, GLsizei, const GLubyte *, GLdouble *);
7516
7517typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
7518typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
7519typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
7520typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
7521typedef void ( * PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
7522typedef void ( * PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
7523
7524
7525
7526
7527
7528__attribute__((visibility("default"))) void glVertex2hNV (GLhalfNV, GLhalfNV);
7529__attribute__((visibility("default"))) void glVertex2hvNV (const GLhalfNV *);
7530__attribute__((visibility("default"))) void glVertex3hNV (GLhalfNV, GLhalfNV, GLhalfNV);
7531__attribute__((visibility("default"))) void glVertex3hvNV (const GLhalfNV *);
7532__attribute__((visibility("default"))) void glVertex4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV);
7533__attribute__((visibility("default"))) void glVertex4hvNV (const GLhalfNV *);
7534__attribute__((visibility("default"))) void glNormal3hNV (GLhalfNV, GLhalfNV, GLhalfNV);
7535__attribute__((visibility("default"))) void glNormal3hvNV (const GLhalfNV *);
7536__attribute__((visibility("default"))) void glColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV);
7537__attribute__((visibility("default"))) void glColor3hvNV (const GLhalfNV *);
7538__attribute__((visibility("default"))) void glColor4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV);
7539__attribute__((visibility("default"))) void glColor4hvNV (const GLhalfNV *);
7540__attribute__((visibility("default"))) void glTexCoord1hNV (GLhalfNV);
7541__attribute__((visibility("default"))) void glTexCoord1hvNV (const GLhalfNV *);
7542__attribute__((visibility("default"))) void glTexCoord2hNV (GLhalfNV, GLhalfNV);
7543__attribute__((visibility("default"))) void glTexCoord2hvNV (const GLhalfNV *);
7544__attribute__((visibility("default"))) void glTexCoord3hNV (GLhalfNV, GLhalfNV, GLhalfNV);
7545__attribute__((visibility("default"))) void glTexCoord3hvNV (const GLhalfNV *);
7546__attribute__((visibility("default"))) void glTexCoord4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV);
7547__attribute__((visibility("default"))) void glTexCoord4hvNV (const GLhalfNV *);
7548__attribute__((visibility("default"))) void glMultiTexCoord1hNV (GLenum, GLhalfNV);
7549__attribute__((visibility("default"))) void glMultiTexCoord1hvNV (GLenum, const GLhalfNV *);
7550__attribute__((visibility("default"))) void glMultiTexCoord2hNV (GLenum, GLhalfNV, GLhalfNV);
7551__attribute__((visibility("default"))) void glMultiTexCoord2hvNV (GLenum, const GLhalfNV *);
7552__attribute__((visibility("default"))) void glMultiTexCoord3hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV);
7553__attribute__((visibility("default"))) void glMultiTexCoord3hvNV (GLenum, const GLhalfNV *);
7554__attribute__((visibility("default"))) void glMultiTexCoord4hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV);
7555__attribute__((visibility("default"))) void glMultiTexCoord4hvNV (GLenum, const GLhalfNV *);
7556__attribute__((visibility("default"))) void glFogCoordhNV (GLhalfNV);
7557__attribute__((visibility("default"))) void glFogCoordhvNV (const GLhalfNV *);
7558__attribute__((visibility("default"))) void glSecondaryColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV);
7559__attribute__((visibility("default"))) void glSecondaryColor3hvNV (const GLhalfNV *);
7560__attribute__((visibility("default"))) void glVertexWeighthNV (GLhalfNV);
7561__attribute__((visibility("default"))) void glVertexWeighthvNV (const GLhalfNV *);
7562__attribute__((visibility("default"))) void glVertexAttrib1hNV (GLuint, GLhalfNV);
7563__attribute__((visibility("default"))) void glVertexAttrib1hvNV (GLuint, const GLhalfNV *);
7564__attribute__((visibility("default"))) void glVertexAttrib2hNV (GLuint, GLhalfNV, GLhalfNV);
7565__attribute__((visibility("default"))) void glVertexAttrib2hvNV (GLuint, const GLhalfNV *);
7566__attribute__((visibility("default"))) void glVertexAttrib3hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV);
7567__attribute__((visibility("default"))) void glVertexAttrib3hvNV (GLuint, const GLhalfNV *);
7568__attribute__((visibility("default"))) void glVertexAttrib4hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV);
7569__attribute__((visibility("default"))) void glVertexAttrib4hvNV (GLuint, const GLhalfNV *);
7570__attribute__((visibility("default"))) void glVertexAttribs1hvNV (GLuint, GLsizei, const GLhalfNV *);
7571__attribute__((visibility("default"))) void glVertexAttribs2hvNV (GLuint, GLsizei, const GLhalfNV *);
7572__attribute__((visibility("default"))) void glVertexAttribs3hvNV (GLuint, GLsizei, const GLhalfNV *);
7573__attribute__((visibility("default"))) void glVertexAttribs4hvNV (GLuint, GLsizei, const GLhalfNV *);
7574
7575typedef void ( * PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y);
7576typedef void ( * PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v);
7577typedef void ( * PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z);
7578typedef void ( * PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v);
7579typedef void ( * PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
7580typedef void ( * PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v);
7581typedef void ( * PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
7582typedef void ( * PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v);
7583typedef void ( * PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
7584typedef void ( * PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v);
7585typedef void ( * PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
7586typedef void ( * PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v);
7587typedef void ( * PFNGLTEXCOORD1HNVPROC) (GLhalfNV s);
7588typedef void ( * PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v);
7589typedef void ( * PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t);
7590typedef void ( * PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v);
7591typedef void ( * PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r);
7592typedef void ( * PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v);
7593typedef void ( * PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
7594typedef void ( * PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v);
7595typedef void ( * PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s);
7596typedef void ( * PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v);
7597typedef void ( * PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t);
7598typedef void ( * PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v);
7599typedef void ( * PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
7600typedef void ( * PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v);
7601typedef void ( * PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
7602typedef void ( * PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v);
7603typedef void ( * PFNGLFOGCOORDHNVPROC) (GLhalfNV fog);
7604typedef void ( * PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog);
7605typedef void ( * PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
7606typedef void ( * PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v);
7607typedef void ( * PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight);
7608typedef void ( * PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight);
7609typedef void ( * PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x);
7610typedef void ( * PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v);
7611typedef void ( * PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y);
7612typedef void ( * PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v);
7613typedef void ( * PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
7614typedef void ( * PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v);
7615typedef void ( * PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
7616typedef void ( * PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v);
7617typedef void ( * PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
7618typedef void ( * PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
7619typedef void ( * PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
7620typedef void ( * PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
7621
7622
7623
7624
7625
7626__attribute__((visibility("default"))) void glPixelDataRangeNV (GLenum, GLsizei, GLvoid *);
7627__attribute__((visibility("default"))) void glFlushPixelDataRangeNV (GLenum);
7628
7629typedef void ( * PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer);
7630typedef void ( * PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target);
7631
7632
7633
7634
7635
7636__attribute__((visibility("default"))) void glPrimitiveRestartNV (void);
7637__attribute__((visibility("default"))) void glPrimitiveRestartIndexNV (GLuint);
7638
7639typedef void ( * PFNGLPRIMITIVERESTARTNVPROC) (void);
7640typedef void ( * PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
7641# 6762 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7642__attribute__((visibility("default"))) GLvoid* glMapObjectBufferATI (GLuint);
7643__attribute__((visibility("default"))) void glUnmapObjectBufferATI (GLuint);
7644
7645typedef GLvoid* ( * PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer);
7646typedef void ( * PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer);
7647
7648
7649
7650
7651
7652__attribute__((visibility("default"))) void glStencilOpSeparateATI (GLenum, GLenum, GLenum, GLenum);
7653__attribute__((visibility("default"))) void glStencilFuncSeparateATI (GLenum, GLenum, GLint, GLuint);
7654
7655typedef void ( * PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
7656typedef void ( * PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
7657
7658
7659
7660
7661
7662__attribute__((visibility("default"))) void glVertexAttribArrayObjectATI (GLuint, GLint, GLenum, GLboolean, GLsizei, GLuint, GLuint);
7663__attribute__((visibility("default"))) void glGetVertexAttribArrayObjectfvATI (GLuint, GLenum, GLfloat *);
7664__attribute__((visibility("default"))) void glGetVertexAttribArrayObjectivATI (GLuint, GLenum, GLint *);
7665
7666typedef void ( * PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
7667typedef void ( * PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params);
7668typedef void ( * PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
7669# 6798 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7670__attribute__((visibility("default"))) void glDepthBoundsEXT (GLclampd, GLclampd);
7671
7672typedef void ( * PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax);
7673# 6810 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7674__attribute__((visibility("default"))) void glBlendEquationSeparateEXT (GLenum, GLenum);
7675
7676typedef void ( * PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha);
7677# 6846 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7678__attribute__((visibility("default"))) GLboolean glIsRenderbufferEXT (GLuint);
7679__attribute__((visibility("default"))) void glBindRenderbufferEXT (GLenum, GLuint);
7680__attribute__((visibility("default"))) void glDeleteRenderbuffersEXT (GLsizei, const GLuint *);
7681__attribute__((visibility("default"))) void glGenRenderbuffersEXT (GLsizei, GLuint *);
7682__attribute__((visibility("default"))) void glRenderbufferStorageEXT (GLenum, GLenum, GLsizei, GLsizei);
7683__attribute__((visibility("default"))) void glGetRenderbufferParameterivEXT (GLenum, GLenum, GLint *);
7684__attribute__((visibility("default"))) GLboolean glIsFramebufferEXT (GLuint);
7685__attribute__((visibility("default"))) void glBindFramebufferEXT (GLenum, GLuint);
7686__attribute__((visibility("default"))) void glDeleteFramebuffersEXT (GLsizei, const GLuint *);
7687__attribute__((visibility("default"))) void glGenFramebuffersEXT (GLsizei, GLuint *);
7688__attribute__((visibility("default"))) GLenum glCheckFramebufferStatusEXT (GLenum);
7689__attribute__((visibility("default"))) void glFramebufferTexture1DEXT (GLenum, GLenum, GLenum, GLuint, GLint);
7690__attribute__((visibility("default"))) void glFramebufferTexture2DEXT (GLenum, GLenum, GLenum, GLuint, GLint);
7691__attribute__((visibility("default"))) void glFramebufferTexture3DEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLint);
7692__attribute__((visibility("default"))) void glFramebufferRenderbufferEXT (GLenum, GLenum, GLenum, GLuint);
7693__attribute__((visibility("default"))) void glGetFramebufferAttachmentParameterivEXT (GLenum, GLenum, GLenum, GLint *);
7694__attribute__((visibility("default"))) void glGenerateMipmapEXT (GLenum);
7695
7696typedef GLboolean ( * PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer);
7697typedef void ( * PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer);
7698typedef void ( * PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers);
7699typedef void ( * PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers);
7700typedef void ( * PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
7701typedef void ( * PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
7702typedef GLboolean ( * PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer);
7703typedef void ( * PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer);
7704typedef void ( * PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers);
7705typedef void ( * PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers);
7706typedef GLenum ( * PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target);
7707typedef void ( * PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
7708typedef void ( * PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
7709typedef void ( * PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
7710typedef void ( * PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
7711typedef void ( * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
7712typedef void ( * PFNGLGENERATEMIPMAPEXTPROC) (GLenum target);
7713
7714
7715
7716
7717
7718__attribute__((visibility("default"))) void glStringMarkerGREMEDY (GLsizei, const GLvoid *);
7719
7720typedef void ( * PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string);
7721# 6898 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7722__attribute__((visibility("default"))) void glStencilClearTagEXT (GLsizei, GLuint);
7723
7724typedef void ( * PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag);
7725# 6910 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7726__attribute__((visibility("default"))) void glBlitFramebufferEXT (GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
7727
7728typedef void ( * PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
7729
7730
7731
7732
7733
7734__attribute__((visibility("default"))) void glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
7735
7736typedef void ( * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
7737# 6930 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7738__attribute__((visibility("default"))) void glGetQueryObjecti64vEXT (GLuint, GLenum, GLint64EXT *);
7739__attribute__((visibility("default"))) void glGetQueryObjectui64vEXT (GLuint, GLenum, GLuint64EXT *);
7740
7741typedef void ( * PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params);
7742typedef void ( * PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params);
7743
7744
7745
7746
7747
7748__attribute__((visibility("default"))) void glProgramEnvParameters4fvEXT (GLenum, GLuint, GLsizei, const GLfloat *);
7749__attribute__((visibility("default"))) void glProgramLocalParameters4fvEXT (GLenum, GLuint, GLsizei, const GLfloat *);
7750
7751typedef void ( * PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
7752typedef void ( * PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
7753
7754
7755
7756
7757
7758__attribute__((visibility("default"))) void glBufferParameteriAPPLE (GLenum, GLenum, GLint);
7759__attribute__((visibility("default"))) void glFlushMappedBufferRangeAPPLE (GLenum, GLintptr, GLsizeiptr);
7760
7761typedef void ( * PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
7762typedef void ( * PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
7763
7764
7765
7766
7767
7768__attribute__((visibility("default"))) void glProgramLocalParameterI4iNV (GLenum, GLuint, GLint, GLint, GLint, GLint);
7769__attribute__((visibility("default"))) void glProgramLocalParameterI4ivNV (GLenum, GLuint, const GLint *);
7770__attribute__((visibility("default"))) void glProgramLocalParametersI4ivNV (GLenum, GLuint, GLsizei, const GLint *);
7771__attribute__((visibility("default"))) void glProgramLocalParameterI4uiNV (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint);
7772__attribute__((visibility("default"))) void glProgramLocalParameterI4uivNV (GLenum, GLuint, const GLuint *);
7773__attribute__((visibility("default"))) void glProgramLocalParametersI4uivNV (GLenum, GLuint, GLsizei, const GLuint *);
7774__attribute__((visibility("default"))) void glProgramEnvParameterI4iNV (GLenum, GLuint, GLint, GLint, GLint, GLint);
7775__attribute__((visibility("default"))) void glProgramEnvParameterI4ivNV (GLenum, GLuint, const GLint *);
7776__attribute__((visibility("default"))) void glProgramEnvParametersI4ivNV (GLenum, GLuint, GLsizei, const GLint *);
7777__attribute__((visibility("default"))) void glProgramEnvParameterI4uiNV (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint);
7778__attribute__((visibility("default"))) void glProgramEnvParameterI4uivNV (GLenum, GLuint, const GLuint *);
7779__attribute__((visibility("default"))) void glProgramEnvParametersI4uivNV (GLenum, GLuint, GLsizei, const GLuint *);
7780__attribute__((visibility("default"))) void glGetProgramLocalParameterIivNV (GLenum, GLuint, GLint *);
7781__attribute__((visibility("default"))) void glGetProgramLocalParameterIuivNV (GLenum, GLuint, GLuint *);
7782__attribute__((visibility("default"))) void glGetProgramEnvParameterIivNV (GLenum, GLuint, GLint *);
7783__attribute__((visibility("default"))) void glGetProgramEnvParameterIuivNV (GLenum, GLuint, GLuint *);
7784
7785typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
7786typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
7787typedef void ( * PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
7788typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
7789typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
7790typedef void ( * PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
7791typedef void ( * PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
7792typedef void ( * PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
7793typedef void ( * PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
7794typedef void ( * PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
7795typedef void ( * PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
7796typedef void ( * PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
7797typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
7798typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
7799typedef void ( * PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
7800typedef void ( * PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
7801
7802
7803
7804
7805
7806__attribute__((visibility("default"))) void glProgramVertexLimitNV (GLenum, GLint);
7807__attribute__((visibility("default"))) void glFramebufferTextureEXT (GLenum, GLenum, GLuint, GLint);
7808__attribute__((visibility("default"))) void glFramebufferTextureLayerEXT (GLenum, GLenum, GLuint, GLint, GLint);
7809__attribute__((visibility("default"))) void glFramebufferTextureFaceEXT (GLenum, GLenum, GLuint, GLint, GLenum);
7810
7811typedef void ( * PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit);
7812typedef void ( * PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
7813typedef void ( * PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
7814typedef void ( * PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
7815
7816
7817
7818
7819
7820__attribute__((visibility("default"))) void glProgramParameteriEXT (GLuint, GLenum, GLint);
7821
7822typedef void ( * PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
7823
7824
7825
7826
7827
7828__attribute__((visibility("default"))) void glVertexAttribI1iEXT (GLuint, GLint);
7829__attribute__((visibility("default"))) void glVertexAttribI2iEXT (GLuint, GLint, GLint);
7830__attribute__((visibility("default"))) void glVertexAttribI3iEXT (GLuint, GLint, GLint, GLint);
7831__attribute__((visibility("default"))) void glVertexAttribI4iEXT (GLuint, GLint, GLint, GLint, GLint);
7832__attribute__((visibility("default"))) void glVertexAttribI1uiEXT (GLuint, GLuint);
7833__attribute__((visibility("default"))) void glVertexAttribI2uiEXT (GLuint, GLuint, GLuint);
7834__attribute__((visibility("default"))) void glVertexAttribI3uiEXT (GLuint, GLuint, GLuint, GLuint);
7835__attribute__((visibility("default"))) void glVertexAttribI4uiEXT (GLuint, GLuint, GLuint, GLuint, GLuint);
7836__attribute__((visibility("default"))) void glVertexAttribI1ivEXT (GLuint, const GLint *);
7837__attribute__((visibility("default"))) void glVertexAttribI2ivEXT (GLuint, const GLint *);
7838__attribute__((visibility("default"))) void glVertexAttribI3ivEXT (GLuint, const GLint *);
7839__attribute__((visibility("default"))) void glVertexAttribI4ivEXT (GLuint, const GLint *);
7840__attribute__((visibility("default"))) void glVertexAttribI1uivEXT (GLuint, const GLuint *);
7841__attribute__((visibility("default"))) void glVertexAttribI2uivEXT (GLuint, const GLuint *);
7842__attribute__((visibility("default"))) void glVertexAttribI3uivEXT (GLuint, const GLuint *);
7843__attribute__((visibility("default"))) void glVertexAttribI4uivEXT (GLuint, const GLuint *);
7844__attribute__((visibility("default"))) void glVertexAttribI4bvEXT (GLuint, const GLbyte *);
7845__attribute__((visibility("default"))) void glVertexAttribI4svEXT (GLuint, const GLshort *);
7846__attribute__((visibility("default"))) void glVertexAttribI4ubvEXT (GLuint, const GLubyte *);
7847__attribute__((visibility("default"))) void glVertexAttribI4usvEXT (GLuint, const GLushort *);
7848__attribute__((visibility("default"))) void glVertexAttribIPointerEXT (GLuint, GLint, GLenum, GLsizei, const GLvoid *);
7849__attribute__((visibility("default"))) void glGetVertexAttribIivEXT (GLuint, GLenum, GLint *);
7850__attribute__((visibility("default"))) void glGetVertexAttribIuivEXT (GLuint, GLenum, GLuint *);
7851
7852typedef void ( * PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x);
7853typedef void ( * PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y);
7854typedef void ( * PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z);
7855typedef void ( * PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
7856typedef void ( * PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x);
7857typedef void ( * PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y);
7858typedef void ( * PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
7859typedef void ( * PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
7860typedef void ( * PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v);
7861typedef void ( * PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v);
7862typedef void ( * PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v);
7863typedef void ( * PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v);
7864typedef void ( * PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v);
7865typedef void ( * PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v);
7866typedef void ( * PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v);
7867typedef void ( * PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v);
7868typedef void ( * PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v);
7869typedef void ( * PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v);
7870typedef void ( * PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v);
7871typedef void ( * PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v);
7872typedef void ( * PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
7873typedef void ( * PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params);
7874typedef void ( * PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params);
7875
7876
7877
7878
7879
7880__attribute__((visibility("default"))) void glGetUniformuivEXT (GLuint, GLint, GLuint *);
7881__attribute__((visibility("default"))) void glBindFragDataLocationEXT (GLuint, GLuint, const GLchar *);
7882__attribute__((visibility("default"))) GLint glGetFragDataLocationEXT (GLuint, const GLchar *);
7883__attribute__((visibility("default"))) void glUniform1uiEXT (GLint, GLuint);
7884__attribute__((visibility("default"))) void glUniform2uiEXT (GLint, GLuint, GLuint);
7885__attribute__((visibility("default"))) void glUniform3uiEXT (GLint, GLuint, GLuint, GLuint);
7886__attribute__((visibility("default"))) void glUniform4uiEXT (GLint, GLuint, GLuint, GLuint, GLuint);
7887__attribute__((visibility("default"))) void glUniform1uivEXT (GLint, GLsizei, const GLuint *);
7888__attribute__((visibility("default"))) void glUniform2uivEXT (GLint, GLsizei, const GLuint *);
7889__attribute__((visibility("default"))) void glUniform3uivEXT (GLint, GLsizei, const GLuint *);
7890__attribute__((visibility("default"))) void glUniform4uivEXT (GLint, GLsizei, const GLuint *);
7891
7892typedef void ( * PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params);
7893typedef void ( * PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
7894typedef GLint ( * PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name);
7895typedef void ( * PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0);
7896typedef void ( * PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1);
7897typedef void ( * PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
7898typedef void ( * PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
7899typedef void ( * PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
7900typedef void ( * PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
7901typedef void ( * PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
7902typedef void ( * PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
7903
7904
7905
7906
7907
7908__attribute__((visibility("default"))) void glDrawArraysInstancedEXT (GLenum, GLint, GLsizei, GLsizei);
7909__attribute__((visibility("default"))) void glDrawElementsInstancedEXT (GLenum, GLsizei, GLenum, const GLvoid *, GLsizei);
7910
7911typedef void ( * PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
7912typedef void ( * PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
7913# 7118 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7914__attribute__((visibility("default"))) void glTexBufferEXT (GLenum, GLenum, GLuint);
7915
7916typedef void ( * PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
7917# 7138 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7918__attribute__((visibility("default"))) void glDepthRangedNV (GLdouble, GLdouble);
7919__attribute__((visibility("default"))) void glClearDepthdNV (GLdouble);
7920__attribute__((visibility("default"))) void glDepthBoundsdNV (GLdouble, GLdouble);
7921
7922typedef void ( * PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar);
7923typedef void ( * PFNGLCLEARDEPTHDNVPROC) (GLdouble depth);
7924typedef void ( * PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax);
7925# 7154 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7926__attribute__((visibility("default"))) void glRenderbufferStorageMultisampleCoverageNV (GLenum, GLsizei, GLsizei, GLenum, GLsizei, GLsizei);
7927
7928typedef void ( * PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
7929# 7170 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/glext.h"
7930__attribute__((visibility("default"))) void glProgramBufferParametersfvNV (GLenum, GLuint, GLuint, GLsizei, const GLfloat *);
7931__attribute__((visibility("default"))) void glProgramBufferParametersIivNV (GLenum, GLuint, GLuint, GLsizei, const GLint *);
7932__attribute__((visibility("default"))) void glProgramBufferParametersIuivNV (GLenum, GLuint, GLuint, GLsizei, const GLuint *);
7933
7934typedef void ( * PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params);
7935typedef void ( * PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params);
7936typedef void ( * PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params);
7937
7938
7939
7940
7941
7942__attribute__((visibility("default"))) void glColorMaskIndexedEXT (GLuint, GLboolean, GLboolean, GLboolean, GLboolean);
7943__attribute__((visibility("default"))) void glGetBooleanIndexedvEXT (GLenum, GLuint, GLboolean *);
7944__attribute__((visibility("default"))) void glGetIntegerIndexedvEXT (GLenum, GLuint, GLint *);
7945__attribute__((visibility("default"))) void glEnableIndexedEXT (GLenum, GLuint);
7946__attribute__((visibility("default"))) void glDisableIndexedEXT (GLenum, GLuint);
7947__attribute__((visibility("default"))) GLboolean glIsEnabledIndexedEXT (GLenum, GLuint);
7948
7949typedef void ( * PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
7950typedef void ( * PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data);
7951typedef void ( * PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data);
7952typedef void ( * PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
7953typedef void ( * PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
7954typedef GLboolean ( * PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index);
7955
7956
7957
7958
7959
7960__attribute__((visibility("default"))) void glBeginTransformFeedbackNV (GLenum);
7961__attribute__((visibility("default"))) void glEndTransformFeedbackNV (void);
7962__attribute__((visibility("default"))) void glTransformFeedbackAttribsNV (GLuint, const GLint *, GLenum);
7963__attribute__((visibility("default"))) void glBindBufferRangeNV (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr);
7964__attribute__((visibility("default"))) void glBindBufferOffsetNV (GLenum, GLuint, GLuint, GLintptr);
7965__attribute__((visibility("default"))) void glBindBufferBaseNV (GLenum, GLuint, GLuint);
7966__attribute__((visibility("default"))) void glTransformFeedbackVaryingsNV (GLuint, GLsizei, const GLint *, GLenum);
7967__attribute__((visibility("default"))) void glActiveVaryingNV (GLuint, const GLchar *);
7968__attribute__((visibility("default"))) GLint glGetVaryingLocationNV (GLuint, const GLchar *);
7969__attribute__((visibility("default"))) void glGetActiveVaryingNV (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *);
7970__attribute__((visibility("default"))) void glGetTransformFeedbackVaryingNV (GLuint, GLuint, GLint *);
7971
7972typedef void ( * PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode);
7973typedef void ( * PFNGLENDTRANSFORMFEEDBACKNVPROC) (void);
7974typedef void ( * PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode);
7975typedef void ( * PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
7976typedef void ( * PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
7977typedef void ( * PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer);
7978typedef void ( * PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
7979typedef void ( * PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name);
7980typedef GLint ( * PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name);
7981typedef void ( * PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
7982typedef void ( * PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location);
7983
7984
7985
7986
7987
7988__attribute__((visibility("default"))) void glUniformBufferEXT (GLuint, GLint, GLuint);
7989__attribute__((visibility("default"))) GLint glGetUniformBufferSizeEXT (GLuint, GLint);
7990__attribute__((visibility("default"))) GLintptr glGetUniformOffsetEXT (GLuint, GLint);
7991
7992typedef void ( * PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer);
7993typedef GLint ( * PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location);
7994typedef GLintptr ( * PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location);
7995
7996
7997
7998
7999
8000__attribute__((visibility("default"))) void glTexParameterIivEXT (GLenum, GLenum, const GLint *);
8001__attribute__((visibility("default"))) void glTexParameterIuivEXT (GLenum, GLenum, const GLuint *);
8002__attribute__((visibility("default"))) void glGetTexParameterIivEXT (GLenum, GLenum, GLint *);
8003__attribute__((visibility("default"))) void glGetTexParameterIuivEXT (GLenum, GLenum, GLuint *);
8004__attribute__((visibility("default"))) void glClearColorIiEXT (GLint, GLint, GLint, GLint);
8005__attribute__((visibility("default"))) void glClearColorIuiEXT (GLuint, GLuint, GLuint, GLuint);
8006
8007typedef void ( * PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
8008typedef void ( * PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
8009typedef void ( * PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
8010typedef void ( * PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
8011typedef void ( * PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha);
8012typedef void ( * PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha);
8013# 2151 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h" 2
8014# 2165 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
8015__attribute__((visibility("default"))) GLhandleARB glCreateDebugObjectMESA (void);
8016__attribute__((visibility("default"))) void glClearDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType);
8017__attribute__((visibility("default"))) void glGetDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType, GLsizei maxLength,
8018 GLsizei *length, GLcharARB *debugLog);
8019__attribute__((visibility("default"))) GLsizei glGetDebugLogLengthMESA (GLhandleARB obj, GLenum logType, GLenum shaderType);
8020# 2204 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
8021typedef void (*GLprogramcallbackMESA)(GLenum target, GLvoid *data);
8022
8023__attribute__((visibility("default"))) void glProgramCallbackMESA(GLenum target, GLprogramcallbackMESA callback, GLvoid *data);
8024
8025__attribute__((visibility("default"))) void glGetProgramRegisterfvMESA(GLenum target, GLsizei len, const GLubyte *name, GLfloat *v);
8026# 2218 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/gl.h"
8027__attribute__((visibility("default"))) void glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA );
8028typedef void ( * PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA);
8029# 145 "glheader.h" 2
8030# 258 "glheader.h"
8031# 1 "config.h" 1
8032# 259 "glheader.h" 2
8033# 29 "texenvprogram.c" 2
8034# 1 "macros.h" 1
8035# 34 "macros.h"
8036# 1 "imports.h" 1
8037# 42 "imports.h"
8038# 1 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/internal/glcore.h" 1
8039# 45 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/internal/glcore.h"
8040typedef struct __GLcontextRec __GLcontext;
8041# 70 "/var/tmp/portage/x11-base/xorg-server-1.4.2/work/Mesa-7.0.2/include/GL/internal/glcore.h"
8042typedef struct __GLcontextModesRec {
8043 struct __GLcontextModesRec * next;
8044
8045 GLboolean rgbMode;
8046 GLboolean floatMode;
8047 GLboolean colorIndexMode;
8048 GLuint doubleBufferMode;
8049 GLuint stereoMode;
8050
8051 GLboolean haveAccumBuffer;
8052 GLboolean haveDepthBuffer;
8053 GLboolean haveStencilBuffer;
8054
8055 GLint redBits, greenBits, blueBits, alphaBits;
8056 GLuint redMask, greenMask, blueMask, alphaMask;
8057 GLint rgbBits;
8058 GLint indexBits;
8059
8060 GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits;
8061 GLint depthBits;
8062 GLint stencilBits;
8063
8064 GLint numAuxBuffers;
8065
8066 GLint level;
8067
8068 GLint pixmapMode;
8069
8070
8071 GLint visualID;
8072 GLint visualType;
8073
8074
8075
8076
8077 GLint visualRating;
8078
8079
8080 GLint transparentPixel;
8081
8082 GLint transparentRed, transparentGreen, transparentBlue, transparentAlpha;
8083 GLint transparentIndex;
8084
8085
8086 GLint sampleBuffers;
8087 GLint samples;
8088
8089
8090 GLint drawableType;
8091 GLint renderType;
8092 GLint xRenderable;
8093 GLint fbconfigID;
8094
8095
8096 GLint maxPbufferWidth;
8097 GLint maxPbufferHeight;
8098 GLint maxPbufferPixels;
8099 GLint optimalPbufferWidth;
8100 GLint optimalPbufferHeight;
8101
8102
8103 GLint visualSelectGroup;
8104
8105
8106 GLint swapMethod;
8107
8108 GLint screen;
8109
8110
8111 GLint bindToTextureRgb;
8112 GLint bindToTextureRgba;
8113 GLint bindToMipmapTexture;
8114 GLint bindToTextureTargets;
8115 GLint yInverted;
8116} __GLcontextModes;
8117# 43 "imports.h" 2
8118# 122 "imports.h"
8119typedef union { GLfloat f; GLint i; } fi_type;
8120# 214 "imports.h"
8121static __inline__ GLfloat LOG2(GLfloat val)
8122{
8123 fi_type num;
8124 GLint log_2;
8125 num.f = val;
8126 log_2 = ((num.i >> 23) & 255) - 128;
8127 num.i &= ~(255 << 23);
8128 num.i += 127 << 23;
8129 num.f = ((-1.0f/3) * num.f + 2) * num.f - 2.0f/3;
8130 return num.f + log_2;
8131}
8132# 238 "imports.h"
8133static __inline__ int IS_INF_OR_NAN( float x )
8134{
8135 fi_type tmp;
8136 tmp.f = x;
8137 return !(int)((unsigned int)((tmp.i & 0x7fffffff)-0x7f800000) >> 31);
8138}
8139# 261 "imports.h"
8140static __inline__ int GET_FLOAT_BITS( float x )
8141{
8142 fi_type fi;
8143 fi.f = x;
8144 return fi.i;
8145}
8146# 395 "imports.h"
8147static __inline__ int ifloor(float f)
8148{
8149 int ai, bi;
8150 double af, bf;
8151 fi_type u;
8152
8153 af = (3 << 22) + 0.5 + (double)f;
8154 bf = (3 << 22) + 0.5 - (double)f;
8155 u.f = (float) af; ai = u.i;
8156 u.f = (float) bf; bi = u.i;
8157 return (ai - bi) >> 1;
8158}
8159# 442 "imports.h"
8160static __inline__ int iceil(float f)
8161{
8162 int ai, bi;
8163 double af, bf;
8164 fi_type u;
8165 af = (3 << 22) + 0.5 + (double)f;
8166 bf = (3 << 22) + 0.5 - (double)f;
8167 u.f = (float) af; ai = u.i;
8168 u.f = (float) bf; bi = u.i;
8169 return (ai - bi + 1) >> 1;
8170}
8171# 610 "imports.h"
8172static __inline__ GLboolean
8173_mesa_little_endian(void)
8174{
8175 const GLuint ui = 1;
8176 return *((const GLubyte *) &ui);
8177}
8178
8179
8180
8181
8182
8183
8184
8185extern void *
8186_mesa_malloc( size_t bytes );
8187
8188extern void *
8189_mesa_calloc( size_t bytes );
8190
8191extern void
8192_mesa_free( void *ptr );
8193
8194extern void *
8195_mesa_align_malloc( size_t bytes, unsigned long alignment );
8196
8197extern void *
8198_mesa_align_calloc( size_t bytes, unsigned long alignment );
8199
8200extern void
8201_mesa_align_free( void *ptr );
8202
8203extern void *
8204_mesa_align_realloc(void *oldBuffer, size_t oldSize, size_t newSize,
8205 unsigned long alignment);
8206
8207extern void *
8208_mesa_exec_malloc( GLuint size );
8209
8210extern void
8211_mesa_exec_free( void *addr );
8212
8213extern void *
8214_mesa_realloc( void *oldBuffer, size_t oldSize, size_t newSize );
8215
8216extern void *
8217_mesa_memcpy( void *dest, const void *src, size_t n );
8218
8219extern void
8220_mesa_memset( void *dst, int val, size_t n );
8221
8222extern void
8223_mesa_memset16( unsigned short *dst, unsigned short val, size_t n );
8224
8225extern void
8226_mesa_bzero( void *dst, size_t n );
8227
8228extern int
8229_mesa_memcmp( const void *s1, const void *s2, size_t n );
8230
8231extern double
8232_mesa_sin(double a);
8233
8234extern float
8235_mesa_sinf(float a);
8236
8237extern double
8238_mesa_cos(double a);
8239
8240extern float
8241_mesa_asinf(float x);
8242
8243extern float
8244_mesa_atanf(float x);
8245
8246extern double
8247_mesa_sqrtd(double x);
8248
8249extern float
8250_mesa_sqrtf(float x);
8251
8252extern float
8253_mesa_inv_sqrtf(float x);
8254
8255extern void
8256_mesa_init_sqrt_table(void);
8257
8258extern double
8259_mesa_pow(double x, double y);
8260
8261extern int
8262_mesa_ffs(int i);
8263
8264extern int
8265
8266
8267
8268_mesa_ffsll(long long i);
8269
8270
8271extern unsigned int
8272_mesa_bitcount(unsigned int n);
8273
8274extern GLhalfARB
8275_mesa_float_to_half(float f);
8276
8277extern float
8278_mesa_half_to_float(GLhalfARB h);
8279
8280
8281extern void *
8282_mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size,
8283 int (*compar)(const void *, const void *) );
8284
8285extern char *
8286_mesa_getenv( const char *var );
8287
8288extern char *
8289_mesa_strstr( const char *haystack, const char *needle );
8290
8291extern char *
8292_mesa_strncat( char *dest, const char *src, size_t n );
8293
8294extern char *
8295_mesa_strcpy( char *dest, const char *src );
8296
8297extern char *
8298_mesa_strncpy( char *dest, const char *src, size_t n );
8299
8300extern size_t
8301_mesa_strlen( const char *s );
8302
8303extern int
8304_mesa_strcmp( const char *s1, const char *s2 );
8305
8306extern int
8307_mesa_strncmp( const char *s1, const char *s2, size_t n );
8308
8309extern char *
8310_mesa_strdup( const char *s );
8311
8312extern int
8313_mesa_atoi( const char *s );
8314
8315extern double
8316_mesa_strtod( const char *s, char **end );
8317
8318extern int
8319_mesa_sprintf( char *str, const char *fmt, ... );
8320
8321extern void
8322_mesa_printf( const char *fmtString, ... );
8323
8324extern int
8325_mesa_vsprintf( char *str, const char *fmt, va_list args );
8326
8327
8328extern void
8329_mesa_warning( __GLcontext *gc, const char *fmtString, ... );
8330
8331extern void
8332_mesa_problem( const __GLcontext *ctx, const char *fmtString, ... );
8333
8334extern void
8335_mesa_error( __GLcontext *ctx, GLenum error, const char *fmtString, ... );
8336
8337extern void
8338_mesa_debug( const __GLcontext *ctx, const char *fmtString, ... );
8339
8340extern void
8341_mesa_exit( int status );
8342# 35 "macros.h" 2
8343# 43 "macros.h"
8344extern GLfloat _mesa_ubyte_to_float_color_tab[256];
8345# 30 "texenvprogram.c" 2
8346# 1 "enums.h" 1
8347# 42 "enums.h"
8348extern const char *_mesa_lookup_enum_by_nr( int nr );
8349extern int _mesa_lookup_enum_by_name( const char *symbol );
8350# 31 "texenvprogram.c" 2
8351# 1 "../shader/prog_parameter.h" 1
8352# 34 "../shader/prog_parameter.h"
8353# 1 "./mtypes.h" 1
8354# 38 "./mtypes.h"
8355# 1 "./glheader.h" 1
8356# 39 "./mtypes.h" 2
8357
8358# 1 "./config.h" 1
8359# 41 "./mtypes.h" 2
8360# 1 "../glapi/glapitable.h" 1
8361# 40 "../glapi/glapitable.h"
8362typedef void (*_glapi_proc)(void);
8363
8364struct _glapi_table
8365{
8366 void ( * NewList)(GLuint list, GLenum mode);
8367 void ( * EndList)(void);
8368 void ( * CallList)(GLuint list);
8369 void ( * CallLists)(GLsizei n, GLenum type, const GLvoid * lists);
8370 void ( * DeleteLists)(GLuint list, GLsizei range);
8371 GLuint ( * GenLists)(GLsizei range);
8372 void ( * ListBase)(GLuint base);
8373 void ( * Begin)(GLenum mode);
8374 void ( * Bitmap)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap);
8375 void ( * Color3b)(GLbyte red, GLbyte green, GLbyte blue);
8376 void ( * Color3bv)(const GLbyte * v);
8377 void ( * Color3d)(GLdouble red, GLdouble green, GLdouble blue);
8378 void ( * Color3dv)(const GLdouble * v);
8379 void ( * Color3f)(GLfloat red, GLfloat green, GLfloat blue);
8380 void ( * Color3fv)(const GLfloat * v);
8381 void ( * Color3i)(GLint red, GLint green, GLint blue);
8382 void ( * Color3iv)(const GLint * v);
8383 void ( * Color3s)(GLshort red, GLshort green, GLshort blue);
8384 void ( * Color3sv)(const GLshort * v);
8385 void ( * Color3ub)(GLubyte red, GLubyte green, GLubyte blue);
8386 void ( * Color3ubv)(const GLubyte * v);
8387 void ( * Color3ui)(GLuint red, GLuint green, GLuint blue);
8388 void ( * Color3uiv)(const GLuint * v);
8389 void ( * Color3us)(GLushort red, GLushort green, GLushort blue);
8390 void ( * Color3usv)(const GLushort * v);
8391 void ( * Color4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
8392 void ( * Color4bv)(const GLbyte * v);
8393 void ( * Color4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
8394 void ( * Color4dv)(const GLdouble * v);
8395 void ( * Color4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
8396 void ( * Color4fv)(const GLfloat * v);
8397 void ( * Color4i)(GLint red, GLint green, GLint blue, GLint alpha);
8398 void ( * Color4iv)(const GLint * v);
8399 void ( * Color4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha);
8400 void ( * Color4sv)(const GLshort * v);
8401 void ( * Color4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
8402 void ( * Color4ubv)(const GLubyte * v);
8403 void ( * Color4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha);
8404 void ( * Color4uiv)(const GLuint * v);
8405 void ( * Color4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha);
8406 void ( * Color4usv)(const GLushort * v);
8407 void ( * EdgeFlag)(GLboolean flag);
8408 void ( * EdgeFlagv)(const GLboolean * flag);
8409 void ( * End)(void);
8410 void ( * Indexd)(GLdouble c);
8411 void ( * Indexdv)(const GLdouble * c);
8412 void ( * Indexf)(GLfloat c);
8413 void ( * Indexfv)(const GLfloat * c);
8414 void ( * Indexi)(GLint c);
8415 void ( * Indexiv)(const GLint * c);
8416 void ( * Indexs)(GLshort c);
8417 void ( * Indexsv)(const GLshort * c);
8418 void ( * Normal3b)(GLbyte nx, GLbyte ny, GLbyte nz);
8419 void ( * Normal3bv)(const GLbyte * v);
8420 void ( * Normal3d)(GLdouble nx, GLdouble ny, GLdouble nz);
8421 void ( * Normal3dv)(const GLdouble * v);
8422 void ( * Normal3f)(GLfloat nx, GLfloat ny, GLfloat nz);
8423 void ( * Normal3fv)(const GLfloat * v);
8424 void ( * Normal3i)(GLint nx, GLint ny, GLint nz);
8425 void ( * Normal3iv)(const GLint * v);
8426 void ( * Normal3s)(GLshort nx, GLshort ny, GLshort nz);
8427 void ( * Normal3sv)(const GLshort * v);
8428 void ( * RasterPos2d)(GLdouble x, GLdouble y);
8429 void ( * RasterPos2dv)(const GLdouble * v);
8430 void ( * RasterPos2f)(GLfloat x, GLfloat y);
8431 void ( * RasterPos2fv)(const GLfloat * v);
8432 void ( * RasterPos2i)(GLint x, GLint y);
8433 void ( * RasterPos2iv)(const GLint * v);
8434 void ( * RasterPos2s)(GLshort x, GLshort y);
8435 void ( * RasterPos2sv)(const GLshort * v);
8436 void ( * RasterPos3d)(GLdouble x, GLdouble y, GLdouble z);
8437 void ( * RasterPos3dv)(const GLdouble * v);
8438 void ( * RasterPos3f)(GLfloat x, GLfloat y, GLfloat z);
8439 void ( * RasterPos3fv)(const GLfloat * v);
8440 void ( * RasterPos3i)(GLint x, GLint y, GLint z);
8441 void ( * RasterPos3iv)(const GLint * v);
8442 void ( * RasterPos3s)(GLshort x, GLshort y, GLshort z);
8443 void ( * RasterPos3sv)(const GLshort * v);
8444 void ( * RasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
8445 void ( * RasterPos4dv)(const GLdouble * v);
8446 void ( * RasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
8447 void ( * RasterPos4fv)(const GLfloat * v);
8448 void ( * RasterPos4i)(GLint x, GLint y, GLint z, GLint w);
8449 void ( * RasterPos4iv)(const GLint * v);
8450 void ( * RasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w);
8451 void ( * RasterPos4sv)(const GLshort * v);
8452 void ( * Rectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
8453 void ( * Rectdv)(const GLdouble * v1, const GLdouble * v2);
8454 void ( * Rectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
8455 void ( * Rectfv)(const GLfloat * v1, const GLfloat * v2);
8456 void ( * Recti)(GLint x1, GLint y1, GLint x2, GLint y2);
8457 void ( * Rectiv)(const GLint * v1, const GLint * v2);
8458 void ( * Rects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
8459 void ( * Rectsv)(const GLshort * v1, const GLshort * v2);
8460 void ( * TexCoord1d)(GLdouble s);
8461 void ( * TexCoord1dv)(const GLdouble * v);
8462 void ( * TexCoord1f)(GLfloat s);
8463 void ( * TexCoord1fv)(const GLfloat * v);
8464 void ( * TexCoord1i)(GLint s);
8465 void ( * TexCoord1iv)(const GLint * v);
8466 void ( * TexCoord1s)(GLshort s);
8467 void ( * TexCoord1sv)(const GLshort * v);
8468 void ( * TexCoord2d)(GLdouble s, GLdouble t);
8469 void ( * TexCoord2dv)(const GLdouble * v);
8470 void ( * TexCoord2f)(GLfloat s, GLfloat t);
8471 void ( * TexCoord2fv)(const GLfloat * v);
8472 void ( * TexCoord2i)(GLint s, GLint t);
8473 void ( * TexCoord2iv)(const GLint * v);
8474 void ( * TexCoord2s)(GLshort s, GLshort t);
8475 void ( * TexCoord2sv)(const GLshort * v);
8476 void ( * TexCoord3d)(GLdouble s, GLdouble t, GLdouble r);
8477 void ( * TexCoord3dv)(const GLdouble * v);
8478 void ( * TexCoord3f)(GLfloat s, GLfloat t, GLfloat r);
8479 void ( * TexCoord3fv)(const GLfloat * v);
8480 void ( * TexCoord3i)(GLint s, GLint t, GLint r);
8481 void ( * TexCoord3iv)(const GLint * v);
8482 void ( * TexCoord3s)(GLshort s, GLshort t, GLshort r);
8483 void ( * TexCoord3sv)(const GLshort * v);
8484 void ( * TexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
8485 void ( * TexCoord4dv)(const GLdouble * v);
8486 void ( * TexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
8487 void ( * TexCoord4fv)(const GLfloat * v);
8488 void ( * TexCoord4i)(GLint s, GLint t, GLint r, GLint q);
8489 void ( * TexCoord4iv)(const GLint * v);
8490 void ( * TexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q);
8491 void ( * TexCoord4sv)(const GLshort * v);
8492 void ( * Vertex2d)(GLdouble x, GLdouble y);
8493 void ( * Vertex2dv)(const GLdouble * v);
8494 void ( * Vertex2f)(GLfloat x, GLfloat y);
8495 void ( * Vertex2fv)(const GLfloat * v);
8496 void ( * Vertex2i)(GLint x, GLint y);
8497 void ( * Vertex2iv)(const GLint * v);
8498 void ( * Vertex2s)(GLshort x, GLshort y);
8499 void ( * Vertex2sv)(const GLshort * v);
8500 void ( * Vertex3d)(GLdouble x, GLdouble y, GLdouble z);
8501 void ( * Vertex3dv)(const GLdouble * v);
8502 void ( * Vertex3f)(GLfloat x, GLfloat y, GLfloat z);
8503 void ( * Vertex3fv)(const GLfloat * v);
8504 void ( * Vertex3i)(GLint x, GLint y, GLint z);
8505 void ( * Vertex3iv)(const GLint * v);
8506 void ( * Vertex3s)(GLshort x, GLshort y, GLshort z);
8507 void ( * Vertex3sv)(const GLshort * v);
8508 void ( * Vertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
8509 void ( * Vertex4dv)(const GLdouble * v);
8510 void ( * Vertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
8511 void ( * Vertex4fv)(const GLfloat * v);
8512 void ( * Vertex4i)(GLint x, GLint y, GLint z, GLint w);
8513 void ( * Vertex4iv)(const GLint * v);
8514 void ( * Vertex4s)(GLshort x, GLshort y, GLshort z, GLshort w);
8515 void ( * Vertex4sv)(const GLshort * v);
8516 void ( * ClipPlane)(GLenum plane, const GLdouble * equation);
8517 void ( * ColorMaterial)(GLenum face, GLenum mode);
8518 void ( * CullFace)(GLenum mode);
8519 void ( * Fogf)(GLenum pname, GLfloat param);
8520 void ( * Fogfv)(GLenum pname, const GLfloat * params);
8521 void ( * Fogi)(GLenum pname, GLint param);
8522 void ( * Fogiv)(GLenum pname, const GLint * params);
8523 void ( * FrontFace)(GLenum mode);
8524 void ( * Hint)(GLenum target, GLenum mode);
8525 void ( * Lightf)(GLenum light, GLenum pname, GLfloat param);
8526 void ( * Lightfv)(GLenum light, GLenum pname, const GLfloat * params);
8527 void ( * Lighti)(GLenum light, GLenum pname, GLint param);
8528 void ( * Lightiv)(GLenum light, GLenum pname, const GLint * params);
8529 void ( * LightModelf)(GLenum pname, GLfloat param);
8530 void ( * LightModelfv)(GLenum pname, const GLfloat * params);
8531 void ( * LightModeli)(GLenum pname, GLint param);
8532 void ( * LightModeliv)(GLenum pname, const GLint * params);
8533 void ( * LineStipple)(GLint factor, GLushort pattern);
8534 void ( * LineWidth)(GLfloat width);
8535 void ( * Materialf)(GLenum face, GLenum pname, GLfloat param);
8536 void ( * Materialfv)(GLenum face, GLenum pname, const GLfloat * params);
8537 void ( * Materiali)(GLenum face, GLenum pname, GLint param);
8538 void ( * Materialiv)(GLenum face, GLenum pname, const GLint * params);
8539 void ( * PointSize)(GLfloat size);
8540 void ( * PolygonMode)(GLenum face, GLenum mode);
8541 void ( * PolygonStipple)(const GLubyte * mask);
8542 void ( * Scissor)(GLint x, GLint y, GLsizei width, GLsizei height);
8543 void ( * ShadeModel)(GLenum mode);
8544 void ( * TexParameterf)(GLenum target, GLenum pname, GLfloat param);
8545 void ( * TexParameterfv)(GLenum target, GLenum pname, const GLfloat * params);
8546 void ( * TexParameteri)(GLenum target, GLenum pname, GLint param);
8547 void ( * TexParameteriv)(GLenum target, GLenum pname, const GLint * params);
8548 void ( * TexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
8549 void ( * TexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
8550 void ( * TexEnvf)(GLenum target, GLenum pname, GLfloat param);
8551 void ( * TexEnvfv)(GLenum target, GLenum pname, const GLfloat * params);
8552 void ( * TexEnvi)(GLenum target, GLenum pname, GLint param);
8553 void ( * TexEnviv)(GLenum target, GLenum pname, const GLint * params);
8554 void ( * TexGend)(GLenum coord, GLenum pname, GLdouble param);
8555 void ( * TexGendv)(GLenum coord, GLenum pname, const GLdouble * params);
8556 void ( * TexGenf)(GLenum coord, GLenum pname, GLfloat param);
8557 void ( * TexGenfv)(GLenum coord, GLenum pname, const GLfloat * params);
8558 void ( * TexGeni)(GLenum coord, GLenum pname, GLint param);
8559 void ( * TexGeniv)(GLenum coord, GLenum pname, const GLint * params);
8560 void ( * FeedbackBuffer)(GLsizei size, GLenum type, GLfloat * buffer);
8561 void ( * SelectBuffer)(GLsizei size, GLuint * buffer);
8562 GLint ( * RenderMode)(GLenum mode);
8563 void ( * InitNames)(void);
8564 void ( * LoadName)(GLuint name);
8565 void ( * PassThrough)(GLfloat token);
8566 void ( * PopName)(void);
8567 void ( * PushName)(GLuint name);
8568 void ( * DrawBuffer)(GLenum mode);
8569 void ( * Clear)(GLbitfield mask);
8570 void ( * ClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
8571 void ( * ClearIndex)(GLfloat c);
8572 void ( * ClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
8573 void ( * ClearStencil)(GLint s);
8574 void ( * ClearDepth)(GLclampd depth);
8575 void ( * StencilMask)(GLuint mask);
8576 void ( * ColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
8577 void ( * DepthMask)(GLboolean flag);
8578 void ( * IndexMask)(GLuint mask);
8579 void ( * Accum)(GLenum op, GLfloat value);
8580 void ( * Disable)(GLenum cap);
8581 void ( * Enable)(GLenum cap);
8582 void ( * Finish)(void);
8583 void ( * Flush)(void);
8584 void ( * PopAttrib)(void);
8585 void ( * PushAttrib)(GLbitfield mask);
8586 void ( * Map1d)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points);
8587 void ( * Map1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points);
8588 void ( * Map2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points);
8589 void ( * Map2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points);
8590 void ( * MapGrid1d)(GLint un, GLdouble u1, GLdouble u2);
8591 void ( * MapGrid1f)(GLint un, GLfloat u1, GLfloat u2);
8592 void ( * MapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
8593 void ( * MapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
8594 void ( * EvalCoord1d)(GLdouble u);
8595 void ( * EvalCoord1dv)(const GLdouble * u);
8596 void ( * EvalCoord1f)(GLfloat u);
8597 void ( * EvalCoord1fv)(const GLfloat * u);
8598 void ( * EvalCoord2d)(GLdouble u, GLdouble v);
8599 void ( * EvalCoord2dv)(const GLdouble * u);
8600 void ( * EvalCoord2f)(GLfloat u, GLfloat v);
8601 void ( * EvalCoord2fv)(const GLfloat * u);
8602 void ( * EvalMesh1)(GLenum mode, GLint i1, GLint i2);
8603 void ( * EvalPoint1)(GLint i);
8604 void ( * EvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
8605 void ( * EvalPoint2)(GLint i, GLint j);
8606 void ( * AlphaFunc)(GLenum func, GLclampf ref);
8607 void ( * BlendFunc)(GLenum sfactor, GLenum dfactor);
8608 void ( * LogicOp)(GLenum opcode);
8609 void ( * StencilFunc)(GLenum func, GLint ref, GLuint mask);
8610 void ( * StencilOp)(GLenum fail, GLenum zfail, GLenum zpass);
8611 void ( * DepthFunc)(GLenum func);
8612 void ( * PixelZoom)(GLfloat xfactor, GLfloat yfactor);
8613 void ( * PixelTransferf)(GLenum pname, GLfloat param);
8614 void ( * PixelTransferi)(GLenum pname, GLint param);
8615 void ( * PixelStoref)(GLenum pname, GLfloat param);
8616 void ( * PixelStorei)(GLenum pname, GLint param);
8617 void ( * PixelMapfv)(GLenum map, GLsizei mapsize, const GLfloat * values);
8618 void ( * PixelMapuiv)(GLenum map, GLsizei mapsize, const GLuint * values);
8619 void ( * PixelMapusv)(GLenum map, GLsizei mapsize, const GLushort * values);
8620 void ( * ReadBuffer)(GLenum mode);
8621 void ( * CopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
8622 void ( * ReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels);
8623 void ( * DrawPixels)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
8624 void ( * GetBooleanv)(GLenum pname, GLboolean * params);
8625 void ( * GetClipPlane)(GLenum plane, GLdouble * equation);
8626 void ( * GetDoublev)(GLenum pname, GLdouble * params);
8627 GLenum ( * GetError)(void);
8628 void ( * GetFloatv)(GLenum pname, GLfloat * params);
8629 void ( * GetIntegerv)(GLenum pname, GLint * params);
8630 void ( * GetLightfv)(GLenum light, GLenum pname, GLfloat * params);
8631 void ( * GetLightiv)(GLenum light, GLenum pname, GLint * params);
8632 void ( * GetMapdv)(GLenum target, GLenum query, GLdouble * v);
8633 void ( * GetMapfv)(GLenum target, GLenum query, GLfloat * v);
8634 void ( * GetMapiv)(GLenum target, GLenum query, GLint * v);
8635 void ( * GetMaterialfv)(GLenum face, GLenum pname, GLfloat * params);
8636 void ( * GetMaterialiv)(GLenum face, GLenum pname, GLint * params);
8637 void ( * GetPixelMapfv)(GLenum map, GLfloat * values);
8638 void ( * GetPixelMapuiv)(GLenum map, GLuint * values);
8639 void ( * GetPixelMapusv)(GLenum map, GLushort * values);
8640 void ( * GetPolygonStipple)(GLubyte * mask);
8641 const GLubyte * ( * GetString)(GLenum name);
8642 void ( * GetTexEnvfv)(GLenum target, GLenum pname, GLfloat * params);
8643 void ( * GetTexEnviv)(GLenum target, GLenum pname, GLint * params);
8644 void ( * GetTexGendv)(GLenum coord, GLenum pname, GLdouble * params);
8645 void ( * GetTexGenfv)(GLenum coord, GLenum pname, GLfloat * params);
8646 void ( * GetTexGeniv)(GLenum coord, GLenum pname, GLint * params);
8647 void ( * GetTexImage)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels);
8648 void ( * GetTexParameterfv)(GLenum target, GLenum pname, GLfloat * params);
8649 void ( * GetTexParameteriv)(GLenum target, GLenum pname, GLint * params);
8650 void ( * GetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat * params);
8651 void ( * GetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint * params);
8652 GLboolean ( * IsEnabled)(GLenum cap);
8653 GLboolean ( * IsList)(GLuint list);
8654 void ( * DepthRange)(GLclampd zNear, GLclampd zFar);
8655 void ( * Frustum)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
8656 void ( * LoadIdentity)(void);
8657 void ( * LoadMatrixf)(const GLfloat * m);
8658 void ( * LoadMatrixd)(const GLdouble * m);
8659 void ( * MatrixMode)(GLenum mode);
8660 void ( * MultMatrixf)(const GLfloat * m);
8661 void ( * MultMatrixd)(const GLdouble * m);
8662 void ( * Ortho)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
8663 void ( * PopMatrix)(void);
8664 void ( * PushMatrix)(void);
8665 void ( * Rotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
8666 void ( * Rotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
8667 void ( * Scaled)(GLdouble x, GLdouble y, GLdouble z);
8668 void ( * Scalef)(GLfloat x, GLfloat y, GLfloat z);
8669 void ( * Translated)(GLdouble x, GLdouble y, GLdouble z);
8670 void ( * Translatef)(GLfloat x, GLfloat y, GLfloat z);
8671 void ( * Viewport)(GLint x, GLint y, GLsizei width, GLsizei height);
8672 void ( * ArrayElement)(GLint i);
8673 void ( * BindTexture)(GLenum target, GLuint texture);
8674 void ( * ColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
8675 void ( * DisableClientState)(GLenum array);
8676 void ( * DrawArrays)(GLenum mode, GLint first, GLsizei count);
8677 void ( * DrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices);
8678 void ( * EdgeFlagPointer)(GLsizei stride, const GLvoid * pointer);
8679 void ( * EnableClientState)(GLenum array);
8680 void ( * IndexPointer)(GLenum type, GLsizei stride, const GLvoid * pointer);
8681 void ( * Indexub)(GLubyte c);
8682 void ( * Indexubv)(const GLubyte * c);
8683 void ( * InterleavedArrays)(GLenum format, GLsizei stride, const GLvoid * pointer);
8684 void ( * NormalPointer)(GLenum type, GLsizei stride, const GLvoid * pointer);
8685 void ( * PolygonOffset)(GLfloat factor, GLfloat units);
8686 void ( * TexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
8687 void ( * VertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
8688 GLboolean ( * AreTexturesResident)(GLsizei n, const GLuint * textures, GLboolean * residences);
8689 void ( * CopyTexImage1D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
8690 void ( * CopyTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
8691 void ( * CopyTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
8692 void ( * CopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
8693 void ( * DeleteTextures)(GLsizei n, const GLuint * textures);
8694 void ( * GenTextures)(GLsizei n, GLuint * textures);
8695 void ( * GetPointerv)(GLenum pname, GLvoid ** params);
8696 GLboolean ( * IsTexture)(GLuint texture);
8697 void ( * PrioritizeTextures)(GLsizei n, const GLuint * textures, const GLclampf * priorities);
8698 void ( * TexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels);
8699 void ( * TexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
8700 void ( * PopClientAttrib)(void);
8701 void ( * PushClientAttrib)(GLbitfield mask);
8702 void ( * BlendColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
8703 void ( * BlendEquation)(GLenum mode);
8704 void ( * DrawRangeElements)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices);
8705 void ( * ColorTable)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table);
8706 void ( * ColorTableParameterfv)(GLenum target, GLenum pname, const GLfloat * params);
8707 void ( * ColorTableParameteriv)(GLenum target, GLenum pname, const GLint * params);
8708 void ( * CopyColorTable)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
8709 void ( * GetColorTable)(GLenum target, GLenum format, GLenum type, GLvoid * table);
8710 void ( * GetColorTableParameterfv)(GLenum target, GLenum pname, GLfloat * params);
8711 void ( * GetColorTableParameteriv)(GLenum target, GLenum pname, GLint * params);
8712 void ( * ColorSubTable)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
8713 void ( * CopyColorSubTable)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
8714 void ( * ConvolutionFilter1D)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image);
8715 void ( * ConvolutionFilter2D)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image);
8716 void ( * ConvolutionParameterf)(GLenum target, GLenum pname, GLfloat params);
8717 void ( * ConvolutionParameterfv)(GLenum target, GLenum pname, const GLfloat * params);
8718 void ( * ConvolutionParameteri)(GLenum target, GLenum pname, GLint params);
8719 void ( * ConvolutionParameteriv)(GLenum target, GLenum pname, const GLint * params);
8720 void ( * CopyConvolutionFilter1D)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
8721 void ( * CopyConvolutionFilter2D)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
8722 void ( * GetConvolutionFilter)(GLenum target, GLenum format, GLenum type, GLvoid * image);
8723 void ( * GetConvolutionParameterfv)(GLenum target, GLenum pname, GLfloat * params);
8724 void ( * GetConvolutionParameteriv)(GLenum target, GLenum pname, GLint * params);
8725 void ( * GetSeparableFilter)(GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
8726 void ( * SeparableFilter2D)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column);
8727 void ( * GetHistogram)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
8728 void ( * GetHistogramParameterfv)(GLenum target, GLenum pname, GLfloat * params);
8729 void ( * GetHistogramParameteriv)(GLenum target, GLenum pname, GLint * params);
8730 void ( * GetMinmax)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
8731 void ( * GetMinmaxParameterfv)(GLenum target, GLenum pname, GLfloat * params);
8732 void ( * GetMinmaxParameteriv)(GLenum target, GLenum pname, GLint * params);
8733 void ( * Histogram)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
8734 void ( * Minmax)(GLenum target, GLenum internalformat, GLboolean sink);
8735 void ( * ResetHistogram)(GLenum target);
8736 void ( * ResetMinmax)(GLenum target);
8737 void ( * TexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
8738 void ( * TexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
8739 void ( * CopyTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
8740 void ( * ActiveTextureARB)(GLenum texture);
8741 void ( * ClientActiveTextureARB)(GLenum texture);
8742 void ( * MultiTexCoord1dARB)(GLenum target, GLdouble s);
8743 void ( * MultiTexCoord1dvARB)(GLenum target, const GLdouble * v);
8744 void ( * MultiTexCoord1fARB)(GLenum target, GLfloat s);
8745 void ( * MultiTexCoord1fvARB)(GLenum target, const GLfloat * v);
8746 void ( * MultiTexCoord1iARB)(GLenum target, GLint s);
8747 void ( * MultiTexCoord1ivARB)(GLenum target, const GLint * v);
8748 void ( * MultiTexCoord1sARB)(GLenum target, GLshort s);
8749 void ( * MultiTexCoord1svARB)(GLenum target, const GLshort * v);
8750 void ( * MultiTexCoord2dARB)(GLenum target, GLdouble s, GLdouble t);
8751 void ( * MultiTexCoord2dvARB)(GLenum target, const GLdouble * v);
8752 void ( * MultiTexCoord2fARB)(GLenum target, GLfloat s, GLfloat t);
8753 void ( * MultiTexCoord2fvARB)(GLenum target, const GLfloat * v);
8754 void ( * MultiTexCoord2iARB)(GLenum target, GLint s, GLint t);
8755 void ( * MultiTexCoord2ivARB)(GLenum target, const GLint * v);
8756 void ( * MultiTexCoord2sARB)(GLenum target, GLshort s, GLshort t);
8757 void ( * MultiTexCoord2svARB)(GLenum target, const GLshort * v);
8758 void ( * MultiTexCoord3dARB)(GLenum target, GLdouble s, GLdouble t, GLdouble r);
8759 void ( * MultiTexCoord3dvARB)(GLenum target, const GLdouble * v);
8760 void ( * MultiTexCoord3fARB)(GLenum target, GLfloat s, GLfloat t, GLfloat r);
8761 void ( * MultiTexCoord3fvARB)(GLenum target, const GLfloat * v);
8762 void ( * MultiTexCoord3iARB)(GLenum target, GLint s, GLint t, GLint r);
8763 void ( * MultiTexCoord3ivARB)(GLenum target, const GLint * v);
8764 void ( * MultiTexCoord3sARB)(GLenum target, GLshort s, GLshort t, GLshort r);
8765 void ( * MultiTexCoord3svARB)(GLenum target, const GLshort * v);
8766 void ( * MultiTexCoord4dARB)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
8767 void ( * MultiTexCoord4dvARB)(GLenum target, const GLdouble * v);
8768 void ( * MultiTexCoord4fARB)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
8769 void ( * MultiTexCoord4fvARB)(GLenum target, const GLfloat * v);
8770 void ( * MultiTexCoord4iARB)(GLenum target, GLint s, GLint t, GLint r, GLint q);
8771 void ( * MultiTexCoord4ivARB)(GLenum target, const GLint * v);
8772 void ( * MultiTexCoord4sARB)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
8773 void ( * MultiTexCoord4svARB)(GLenum target, const GLshort * v);
8774 void ( * AttachShader)(GLuint program, GLuint shader);
8775 GLuint ( * CreateProgram)(void);
8776 GLuint ( * CreateShader)(GLenum type);
8777 void ( * DeleteProgram)(GLuint program);
8778 void ( * DeleteShader)(GLuint program);
8779 void ( * DetachShader)(GLuint program, GLuint shader);
8780 void ( * GetAttachedShaders)(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * obj);
8781 void ( * GetProgramInfoLog)(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog);
8782 void ( * GetProgramiv)(GLuint program, GLenum pname, GLint * params);
8783 void ( * GetShaderInfoLog)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog);
8784 void ( * GetShaderiv)(GLuint shader, GLenum pname, GLint * params);
8785 GLboolean ( * IsProgram)(GLuint program);
8786 GLboolean ( * IsShader)(GLuint shader);
8787 void ( * StencilFuncSeparate)(GLenum face, GLenum func, GLint ref, GLuint mask);
8788 void ( * StencilMaskSeparate)(GLenum face, GLuint mask);
8789 void ( * StencilOpSeparate)(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass);
8790 void ( * UniformMatrix2x3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8791 void ( * UniformMatrix2x4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8792 void ( * UniformMatrix3x2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8793 void ( * UniformMatrix3x4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8794 void ( * UniformMatrix4x2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8795 void ( * UniformMatrix4x3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8796 void ( * LoadTransposeMatrixdARB)(const GLdouble * m);
8797 void ( * LoadTransposeMatrixfARB)(const GLfloat * m);
8798 void ( * MultTransposeMatrixdARB)(const GLdouble * m);
8799 void ( * MultTransposeMatrixfARB)(const GLfloat * m);
8800 void ( * SampleCoverageARB)(GLclampf value, GLboolean invert);
8801 void ( * CompressedTexImage1DARB)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data);
8802 void ( * CompressedTexImage2DARB)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
8803 void ( * CompressedTexImage3DARB)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data);
8804 void ( * CompressedTexSubImage1DARB)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data);
8805 void ( * CompressedTexSubImage2DARB)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
8806 void ( * CompressedTexSubImage3DARB)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data);
8807 void ( * GetCompressedTexImageARB)(GLenum target, GLint level, GLvoid * img);
8808 void ( * DisableVertexAttribArrayARB)(GLuint index);
8809 void ( * EnableVertexAttribArrayARB)(GLuint index);
8810 void ( * GetProgramEnvParameterdvARB)(GLenum target, GLuint index, GLdouble * params);
8811 void ( * GetProgramEnvParameterfvARB)(GLenum target, GLuint index, GLfloat * params);
8812 void ( * GetProgramLocalParameterdvARB)(GLenum target, GLuint index, GLdouble * params);
8813 void ( * GetProgramLocalParameterfvARB)(GLenum target, GLuint index, GLfloat * params);
8814 void ( * GetProgramStringARB)(GLenum target, GLenum pname, GLvoid * string);
8815 void ( * GetProgramivARB)(GLenum target, GLenum pname, GLint * params);
8816 void ( * GetVertexAttribdvARB)(GLuint index, GLenum pname, GLdouble * params);
8817 void ( * GetVertexAttribfvARB)(GLuint index, GLenum pname, GLfloat * params);
8818 void ( * GetVertexAttribivARB)(GLuint index, GLenum pname, GLint * params);
8819 void ( * ProgramEnvParameter4dARB)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
8820 void ( * ProgramEnvParameter4dvARB)(GLenum target, GLuint index, const GLdouble * params);
8821 void ( * ProgramEnvParameter4fARB)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
8822 void ( * ProgramEnvParameter4fvARB)(GLenum target, GLuint index, const GLfloat * params);
8823 void ( * ProgramLocalParameter4dARB)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
8824 void ( * ProgramLocalParameter4dvARB)(GLenum target, GLuint index, const GLdouble * params);
8825 void ( * ProgramLocalParameter4fARB)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
8826 void ( * ProgramLocalParameter4fvARB)(GLenum target, GLuint index, const GLfloat * params);
8827 void ( * ProgramStringARB)(GLenum target, GLenum format, GLsizei len, const GLvoid * string);
8828 void ( * VertexAttrib1dARB)(GLuint index, GLdouble x);
8829 void ( * VertexAttrib1dvARB)(GLuint index, const GLdouble * v);
8830 void ( * VertexAttrib1fARB)(GLuint index, GLfloat x);
8831 void ( * VertexAttrib1fvARB)(GLuint index, const GLfloat * v);
8832 void ( * VertexAttrib1sARB)(GLuint index, GLshort x);
8833 void ( * VertexAttrib1svARB)(GLuint index, const GLshort * v);
8834 void ( * VertexAttrib2dARB)(GLuint index, GLdouble x, GLdouble y);
8835 void ( * VertexAttrib2dvARB)(GLuint index, const GLdouble * v);
8836 void ( * VertexAttrib2fARB)(GLuint index, GLfloat x, GLfloat y);
8837 void ( * VertexAttrib2fvARB)(GLuint index, const GLfloat * v);
8838 void ( * VertexAttrib2sARB)(GLuint index, GLshort x, GLshort y);
8839 void ( * VertexAttrib2svARB)(GLuint index, const GLshort * v);
8840 void ( * VertexAttrib3dARB)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
8841 void ( * VertexAttrib3dvARB)(GLuint index, const GLdouble * v);
8842 void ( * VertexAttrib3fARB)(GLuint index, GLfloat x, GLfloat y, GLfloat z);
8843 void ( * VertexAttrib3fvARB)(GLuint index, const GLfloat * v);
8844 void ( * VertexAttrib3sARB)(GLuint index, GLshort x, GLshort y, GLshort z);
8845 void ( * VertexAttrib3svARB)(GLuint index, const GLshort * v);
8846 void ( * VertexAttrib4NbvARB)(GLuint index, const GLbyte * v);
8847 void ( * VertexAttrib4NivARB)(GLuint index, const GLint * v);
8848 void ( * VertexAttrib4NsvARB)(GLuint index, const GLshort * v);
8849 void ( * VertexAttrib4NubARB)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
8850 void ( * VertexAttrib4NubvARB)(GLuint index, const GLubyte * v);
8851 void ( * VertexAttrib4NuivARB)(GLuint index, const GLuint * v);
8852 void ( * VertexAttrib4NusvARB)(GLuint index, const GLushort * v);
8853 void ( * VertexAttrib4bvARB)(GLuint index, const GLbyte * v);
8854 void ( * VertexAttrib4dARB)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
8855 void ( * VertexAttrib4dvARB)(GLuint index, const GLdouble * v);
8856 void ( * VertexAttrib4fARB)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
8857 void ( * VertexAttrib4fvARB)(GLuint index, const GLfloat * v);
8858 void ( * VertexAttrib4ivARB)(GLuint index, const GLint * v);
8859 void ( * VertexAttrib4sARB)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
8860 void ( * VertexAttrib4svARB)(GLuint index, const GLshort * v);
8861 void ( * VertexAttrib4ubvARB)(GLuint index, const GLubyte * v);
8862 void ( * VertexAttrib4uivARB)(GLuint index, const GLuint * v);
8863 void ( * VertexAttrib4usvARB)(GLuint index, const GLushort * v);
8864 void ( * VertexAttribPointerARB)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer);
8865 void ( * BindBufferARB)(GLenum target, GLuint buffer);
8866 void ( * BufferDataARB)(GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage);
8867 void ( * BufferSubDataARB)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data);
8868 void ( * DeleteBuffersARB)(GLsizei n, const GLuint * buffer);
8869 void ( * GenBuffersARB)(GLsizei n, GLuint * buffer);
8870 void ( * GetBufferParameterivARB)(GLenum target, GLenum pname, GLint * params);
8871 void ( * GetBufferPointervARB)(GLenum target, GLenum pname, GLvoid ** params);
8872 void ( * GetBufferSubDataARB)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid * data);
8873 GLboolean ( * IsBufferARB)(GLuint buffer);
8874 GLvoid * ( * MapBufferARB)(GLenum target, GLenum access);
8875 GLboolean ( * UnmapBufferARB)(GLenum target);
8876 void ( * BeginQueryARB)(GLenum target, GLuint id);
8877 void ( * DeleteQueriesARB)(GLsizei n, const GLuint * ids);
8878 void ( * EndQueryARB)(GLenum target);
8879 void ( * GenQueriesARB)(GLsizei n, GLuint * ids);
8880 void ( * GetQueryObjectivARB)(GLuint id, GLenum pname, GLint * params);
8881 void ( * GetQueryObjectuivARB)(GLuint id, GLenum pname, GLuint * params);
8882 void ( * GetQueryivARB)(GLenum target, GLenum pname, GLint * params);
8883 GLboolean ( * IsQueryARB)(GLuint id);
8884 void ( * AttachObjectARB)(GLhandleARB containerObj, GLhandleARB obj);
8885 void ( * CompileShaderARB)(GLhandleARB shader);
8886 GLhandleARB ( * CreateProgramObjectARB)(void);
8887 GLhandleARB ( * CreateShaderObjectARB)(GLenum shaderType);
8888 void ( * DeleteObjectARB)(GLhandleARB obj);
8889 void ( * DetachObjectARB)(GLhandleARB containerObj, GLhandleARB attachedObj);
8890 void ( * GetActiveUniformARB)(GLhandleARB program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name);
8891 void ( * GetAttachedObjectsARB)(GLhandleARB containerObj, GLsizei maxLength, GLsizei * length, GLhandleARB * infoLog);
8892 GLhandleARB ( * GetHandleARB)(GLenum pname);
8893 void ( * GetInfoLogARB)(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog);
8894 void ( * GetObjectParameterfvARB)(GLhandleARB obj, GLenum pname, GLfloat * params);
8895 void ( * GetObjectParameterivARB)(GLhandleARB obj, GLenum pname, GLint * params);
8896 void ( * GetShaderSourceARB)(GLhandleARB shader, GLsizei bufSize, GLsizei * length, GLcharARB * source);
8897 GLint ( * GetUniformLocationARB)(GLhandleARB program, const GLcharARB * name);
8898 void ( * GetUniformfvARB)(GLhandleARB program, GLint location, GLfloat * params);
8899 void ( * GetUniformivARB)(GLhandleARB program, GLint location, GLint * params);
8900 void ( * LinkProgramARB)(GLhandleARB program);
8901 void ( * ShaderSourceARB)(GLhandleARB shader, GLsizei count, const GLcharARB ** string, const GLint * length);
8902 void ( * Uniform1fARB)(GLint location, GLfloat v0);
8903 void ( * Uniform1fvARB)(GLint location, GLsizei count, const GLfloat * value);
8904 void ( * Uniform1iARB)(GLint location, GLint v0);
8905 void ( * Uniform1ivARB)(GLint location, GLsizei count, const GLint * value);
8906 void ( * Uniform2fARB)(GLint location, GLfloat v0, GLfloat v1);
8907 void ( * Uniform2fvARB)(GLint location, GLsizei count, const GLfloat * value);
8908 void ( * Uniform2iARB)(GLint location, GLint v0, GLint v1);
8909 void ( * Uniform2ivARB)(GLint location, GLsizei count, const GLint * value);
8910 void ( * Uniform3fARB)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
8911 void ( * Uniform3fvARB)(GLint location, GLsizei count, const GLfloat * value);
8912 void ( * Uniform3iARB)(GLint location, GLint v0, GLint v1, GLint v2);
8913 void ( * Uniform3ivARB)(GLint location, GLsizei count, const GLint * value);
8914 void ( * Uniform4fARB)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
8915 void ( * Uniform4fvARB)(GLint location, GLsizei count, const GLfloat * value);
8916 void ( * Uniform4iARB)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
8917 void ( * Uniform4ivARB)(GLint location, GLsizei count, const GLint * value);
8918 void ( * UniformMatrix2fvARB)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8919 void ( * UniformMatrix3fvARB)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8920 void ( * UniformMatrix4fvARB)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
8921 void ( * UseProgramObjectARB)(GLhandleARB program);
8922 void ( * ValidateProgramARB)(GLhandleARB program);
8923 void ( * BindAttribLocationARB)(GLhandleARB program, GLuint index, const GLcharARB * name);
8924 void ( * GetActiveAttribARB)(GLhandleARB program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name);
8925 GLint ( * GetAttribLocationARB)(GLhandleARB program, const GLcharARB * name);
8926 void ( * DrawBuffersARB)(GLsizei n, const GLenum * bufs);
8927 void ( * PolygonOffsetEXT)(GLfloat factor, GLfloat bias);
8928 void ( * GetPixelTexGenParameterfvSGIS)(GLenum pname, GLfloat * params);
8929 void ( * GetPixelTexGenParameterivSGIS)(GLenum pname, GLint * params);
8930 void ( * PixelTexGenParameterfSGIS)(GLenum pname, GLfloat param);
8931 void ( * PixelTexGenParameterfvSGIS)(GLenum pname, const GLfloat * params);
8932 void ( * PixelTexGenParameteriSGIS)(GLenum pname, GLint param);
8933 void ( * PixelTexGenParameterivSGIS)(GLenum pname, const GLint * params);
8934 void ( * SampleMaskSGIS)(GLclampf value, GLboolean invert);
8935 void ( * SamplePatternSGIS)(GLenum pattern);
8936 void ( * ColorPointerEXT)(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
8937 void ( * EdgeFlagPointerEXT)(GLsizei stride, GLsizei count, const GLboolean * pointer);
8938 void ( * IndexPointerEXT)(GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
8939 void ( * NormalPointerEXT)(GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
8940 void ( * TexCoordPointerEXT)(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
8941 void ( * VertexPointerEXT)(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer);
8942 void ( * PointParameterfEXT)(GLenum pname, GLfloat param);
8943 void ( * PointParameterfvEXT)(GLenum pname, const GLfloat * params);
8944 void ( * LockArraysEXT)(GLint first, GLsizei count);
8945 void ( * UnlockArraysEXT)(void);
8946 void ( * CullParameterdvEXT)(GLenum pname, GLdouble * params);
8947 void ( * CullParameterfvEXT)(GLenum pname, GLfloat * params);
8948 void ( * SecondaryColor3bEXT)(GLbyte red, GLbyte green, GLbyte blue);
8949 void ( * SecondaryColor3bvEXT)(const GLbyte * v);
8950 void ( * SecondaryColor3dEXT)(GLdouble red, GLdouble green, GLdouble blue);
8951 void ( * SecondaryColor3dvEXT)(const GLdouble * v);
8952 void ( * SecondaryColor3fEXT)(GLfloat red, GLfloat green, GLfloat blue);
8953 void ( * SecondaryColor3fvEXT)(const GLfloat * v);
8954 void ( * SecondaryColor3iEXT)(GLint red, GLint green, GLint blue);
8955 void ( * SecondaryColor3ivEXT)(const GLint * v);
8956 void ( * SecondaryColor3sEXT)(GLshort red, GLshort green, GLshort blue);
8957 void ( * SecondaryColor3svEXT)(const GLshort * v);
8958 void ( * SecondaryColor3ubEXT)(GLubyte red, GLubyte green, GLubyte blue);
8959 void ( * SecondaryColor3ubvEXT)(const GLubyte * v);
8960 void ( * SecondaryColor3uiEXT)(GLuint red, GLuint green, GLuint blue);
8961 void ( * SecondaryColor3uivEXT)(const GLuint * v);
8962 void ( * SecondaryColor3usEXT)(GLushort red, GLushort green, GLushort blue);
8963 void ( * SecondaryColor3usvEXT)(const GLushort * v);
8964 void ( * SecondaryColorPointerEXT)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
8965 void ( * MultiDrawArraysEXT)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount);
8966 void ( * MultiDrawElementsEXT)(GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount);
8967 void ( * FogCoordPointerEXT)(GLenum type, GLsizei stride, const GLvoid * pointer);
8968 void ( * FogCoorddEXT)(GLdouble coord);
8969 void ( * FogCoorddvEXT)(const GLdouble * coord);
8970 void ( * FogCoordfEXT)(GLfloat coord);
8971 void ( * FogCoordfvEXT)(const GLfloat * coord);
8972 void ( * PixelTexGenSGIX)(GLenum mode);
8973 void ( * BlendFuncSeparateEXT)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
8974 void ( * FlushVertexArrayRangeNV)(void);
8975 void ( * VertexArrayRangeNV)(GLsizei length, const GLvoid * pointer);
8976 void ( * CombinerInputNV)(GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
8977 void ( * CombinerOutputNV)(GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
8978 void ( * CombinerParameterfNV)(GLenum pname, GLfloat param);
8979 void ( * CombinerParameterfvNV)(GLenum pname, const GLfloat * params);
8980 void ( * CombinerParameteriNV)(GLenum pname, GLint param);
8981 void ( * CombinerParameterivNV)(GLenum pname, const GLint * params);
8982 void ( * FinalCombinerInputNV)(GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
8983 void ( * GetCombinerInputParameterfvNV)(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params);
8984 void ( * GetCombinerInputParameterivNV)(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params);
8985 void ( * GetCombinerOutputParameterfvNV)(GLenum stage, GLenum portion, GLenum pname, GLfloat * params);
8986 void ( * GetCombinerOutputParameterivNV)(GLenum stage, GLenum portion, GLenum pname, GLint * params);
8987 void ( * GetFinalCombinerInputParameterfvNV)(GLenum variable, GLenum pname, GLfloat * params);
8988 void ( * GetFinalCombinerInputParameterivNV)(GLenum variable, GLenum pname, GLint * params);
8989 void ( * ResizeBuffersMESA)(void);
8990 void ( * WindowPos2dMESA)(GLdouble x, GLdouble y);
8991 void ( * WindowPos2dvMESA)(const GLdouble * v);
8992 void ( * WindowPos2fMESA)(GLfloat x, GLfloat y);
8993 void ( * WindowPos2fvMESA)(const GLfloat * v);
8994 void ( * WindowPos2iMESA)(GLint x, GLint y);
8995 void ( * WindowPos2ivMESA)(const GLint * v);
8996 void ( * WindowPos2sMESA)(GLshort x, GLshort y);
8997 void ( * WindowPos2svMESA)(const GLshort * v);
8998 void ( * WindowPos3dMESA)(GLdouble x, GLdouble y, GLdouble z);
8999 void ( * WindowPos3dvMESA)(const GLdouble * v);
9000 void ( * WindowPos3fMESA)(GLfloat x, GLfloat y, GLfloat z);
9001 void ( * WindowPos3fvMESA)(const GLfloat * v);
9002 void ( * WindowPos3iMESA)(GLint x, GLint y, GLint z);
9003 void ( * WindowPos3ivMESA)(const GLint * v);
9004 void ( * WindowPos3sMESA)(GLshort x, GLshort y, GLshort z);
9005 void ( * WindowPos3svMESA)(const GLshort * v);
9006 void ( * WindowPos4dMESA)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
9007 void ( * WindowPos4dvMESA)(const GLdouble * v);
9008 void ( * WindowPos4fMESA)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
9009 void ( * WindowPos4fvMESA)(const GLfloat * v);
9010 void ( * WindowPos4iMESA)(GLint x, GLint y, GLint z, GLint w);
9011 void ( * WindowPos4ivMESA)(const GLint * v);
9012 void ( * WindowPos4sMESA)(GLshort x, GLshort y, GLshort z, GLshort w);
9013 void ( * WindowPos4svMESA)(const GLshort * v);
9014 void ( * MultiModeDrawArraysIBM)(const GLenum * mode, const GLint * first, const GLsizei * count, GLsizei primcount, GLint modestride);
9015 void ( * MultiModeDrawElementsIBM)(const GLenum * mode, const GLsizei * count, GLenum type, const GLvoid * const * indices, GLsizei primcount, GLint modestride);
9016 void ( * DeleteFencesNV)(GLsizei n, const GLuint * fences);
9017 void ( * FinishFenceNV)(GLuint fence);
9018 void ( * GenFencesNV)(GLsizei n, GLuint * fences);
9019 void ( * GetFenceivNV)(GLuint fence, GLenum pname, GLint * params);
9020 GLboolean ( * IsFenceNV)(GLuint fence);
9021 void ( * SetFenceNV)(GLuint fence, GLenum condition);
9022 GLboolean ( * TestFenceNV)(GLuint fence);
9023 GLboolean ( * AreProgramsResidentNV)(GLsizei n, const GLuint * ids, GLboolean * residences);
9024 void ( * BindProgramNV)(GLenum target, GLuint program);
9025 void ( * DeleteProgramsNV)(GLsizei n, const GLuint * programs);
9026 void ( * ExecuteProgramNV)(GLenum target, GLuint id, const GLfloat * params);
9027 void ( * GenProgramsNV)(GLsizei n, GLuint * programs);
9028 void ( * GetProgramParameterdvNV)(GLenum target, GLuint index, GLenum pname, GLdouble * params);
9029 void ( * GetProgramParameterfvNV)(GLenum target, GLuint index, GLenum pname, GLfloat * params);
9030 void ( * GetProgramStringNV)(GLuint id, GLenum pname, GLubyte * program);
9031 void ( * GetProgramivNV)(GLuint id, GLenum pname, GLint * params);
9032 void ( * GetTrackMatrixivNV)(GLenum target, GLuint address, GLenum pname, GLint * params);
9033 void ( * GetVertexAttribPointervNV)(GLuint index, GLenum pname, GLvoid ** pointer);
9034 void ( * GetVertexAttribdvNV)(GLuint index, GLenum pname, GLdouble * params);
9035 void ( * GetVertexAttribfvNV)(GLuint index, GLenum pname, GLfloat * params);
9036 void ( * GetVertexAttribivNV)(GLuint index, GLenum pname, GLint * params);
9037 GLboolean ( * IsProgramNV)(GLuint program);
9038 void ( * LoadProgramNV)(GLenum target, GLuint id, GLsizei len, const GLubyte * program);
9039 void ( * ProgramParameter4dNV)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
9040 void ( * ProgramParameter4dvNV)(GLenum target, GLuint index, const GLdouble * params);
9041 void ( * ProgramParameter4fNV)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
9042 void ( * ProgramParameter4fvNV)(GLenum target, GLuint index, const GLfloat * params);
9043 void ( * ProgramParameters4dvNV)(GLenum target, GLuint index, GLuint num, const GLdouble * params);
9044 void ( * ProgramParameters4fvNV)(GLenum target, GLuint index, GLuint num, const GLfloat * params);
9045 void ( * RequestResidentProgramsNV)(GLsizei n, const GLuint * ids);
9046 void ( * TrackMatrixNV)(GLenum target, GLuint address, GLenum matrix, GLenum transform);
9047 void ( * VertexAttrib1dNV)(GLuint index, GLdouble x);
9048 void ( * VertexAttrib1dvNV)(GLuint index, const GLdouble * v);
9049 void ( * VertexAttrib1fNV)(GLuint index, GLfloat x);
9050 void ( * VertexAttrib1fvNV)(GLuint index, const GLfloat * v);
9051 void ( * VertexAttrib1sNV)(GLuint index, GLshort x);
9052 void ( * VertexAttrib1svNV)(GLuint index, const GLshort * v);
9053 void ( * VertexAttrib2dNV)(GLuint index, GLdouble x, GLdouble y);
9054 void ( * VertexAttrib2dvNV)(GLuint index, const GLdouble * v);
9055 void ( * VertexAttrib2fNV)(GLuint index, GLfloat x, GLfloat y);
9056 void ( * VertexAttrib2fvNV)(GLuint index, const GLfloat * v);
9057 void ( * VertexAttrib2sNV)(GLuint index, GLshort x, GLshort y);
9058 void ( * VertexAttrib2svNV)(GLuint index, const GLshort * v);
9059 void ( * VertexAttrib3dNV)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
9060 void ( * VertexAttrib3dvNV)(GLuint index, const GLdouble * v);
9061 void ( * VertexAttrib3fNV)(GLuint index, GLfloat x, GLfloat y, GLfloat z);
9062 void ( * VertexAttrib3fvNV)(GLuint index, const GLfloat * v);
9063 void ( * VertexAttrib3sNV)(GLuint index, GLshort x, GLshort y, GLshort z);
9064 void ( * VertexAttrib3svNV)(GLuint index, const GLshort * v);
9065 void ( * VertexAttrib4dNV)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
9066 void ( * VertexAttrib4dvNV)(GLuint index, const GLdouble * v);
9067 void ( * VertexAttrib4fNV)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
9068 void ( * VertexAttrib4fvNV)(GLuint index, const GLfloat * v);
9069 void ( * VertexAttrib4sNV)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
9070 void ( * VertexAttrib4svNV)(GLuint index, const GLshort * v);
9071 void ( * VertexAttrib4ubNV)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
9072 void ( * VertexAttrib4ubvNV)(GLuint index, const GLubyte * v);
9073 void ( * VertexAttribPointerNV)(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
9074 void ( * VertexAttribs1dvNV)(GLuint index, GLsizei n, const GLdouble * v);
9075 void ( * VertexAttribs1fvNV)(GLuint index, GLsizei n, const GLfloat * v);
9076 void ( * VertexAttribs1svNV)(GLuint index, GLsizei n, const GLshort * v);
9077 void ( * VertexAttribs2dvNV)(GLuint index, GLsizei n, const GLdouble * v);
9078 void ( * VertexAttribs2fvNV)(GLuint index, GLsizei n, const GLfloat * v);
9079 void ( * VertexAttribs2svNV)(GLuint index, GLsizei n, const GLshort * v);
9080 void ( * VertexAttribs3dvNV)(GLuint index, GLsizei n, const GLdouble * v);
9081 void ( * VertexAttribs3fvNV)(GLuint index, GLsizei n, const GLfloat * v);
9082 void ( * VertexAttribs3svNV)(GLuint index, GLsizei n, const GLshort * v);
9083 void ( * VertexAttribs4dvNV)(GLuint index, GLsizei n, const GLdouble * v);
9084 void ( * VertexAttribs4fvNV)(GLuint index, GLsizei n, const GLfloat * v);
9085 void ( * VertexAttribs4svNV)(GLuint index, GLsizei n, const GLshort * v);
9086 void ( * VertexAttribs4ubvNV)(GLuint index, GLsizei n, const GLubyte * v);
9087 void ( * AlphaFragmentOp1ATI)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
9088 void ( * AlphaFragmentOp2ATI)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
9089 void ( * AlphaFragmentOp3ATI)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
9090 void ( * BeginFragmentShaderATI)(void);
9091 void ( * BindFragmentShaderATI)(GLuint id);
9092 void ( * ColorFragmentOp1ATI)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
9093 void ( * ColorFragmentOp2ATI)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
9094 void ( * ColorFragmentOp3ATI)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
9095 void ( * DeleteFragmentShaderATI)(GLuint id);
9096 void ( * EndFragmentShaderATI)(void);
9097 GLuint ( * GenFragmentShadersATI)(GLuint range);
9098 void ( * PassTexCoordATI)(GLuint dst, GLuint coord, GLenum swizzle);
9099 void ( * SampleMapATI)(GLuint dst, GLuint interp, GLenum swizzle);
9100 void ( * SetFragmentShaderConstantATI)(GLuint dst, const GLfloat * value);
9101 void ( * PointParameteriNV)(GLenum pname, GLint param);
9102 void ( * PointParameterivNV)(GLenum pname, const GLint * params);
9103 void ( * ActiveStencilFaceEXT)(GLenum face);
9104 void ( * BindVertexArrayAPPLE)(GLuint array);
9105 void ( * DeleteVertexArraysAPPLE)(GLsizei n, const GLuint * arrays);
9106 void ( * GenVertexArraysAPPLE)(GLsizei n, GLuint * arrays);
9107 GLboolean ( * IsVertexArrayAPPLE)(GLuint array);
9108 void ( * GetProgramNamedParameterdvNV)(GLuint id, GLsizei len, const GLubyte * name, GLdouble * params);
9109 void ( * GetProgramNamedParameterfvNV)(GLuint id, GLsizei len, const GLubyte * name, GLfloat * params);
9110 void ( * ProgramNamedParameter4dNV)(GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
9111 void ( * ProgramNamedParameter4dvNV)(GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v);
9112 void ( * ProgramNamedParameter4fNV)(GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
9113 void ( * ProgramNamedParameter4fvNV)(GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v);
9114 void ( * DepthBoundsEXT)(GLclampd zmin, GLclampd zmax);
9115 void ( * BlendEquationSeparateEXT)(GLenum modeRGB, GLenum modeA);
9116 void ( * BindFramebufferEXT)(GLenum target, GLuint framebuffer);
9117 void ( * BindRenderbufferEXT)(GLenum target, GLuint renderbuffer);
9118 GLenum ( * CheckFramebufferStatusEXT)(GLenum target);
9119 void ( * DeleteFramebuffersEXT)(GLsizei n, const GLuint * framebuffers);
9120 void ( * DeleteRenderbuffersEXT)(GLsizei n, const GLuint * renderbuffers);
9121 void ( * FramebufferRenderbufferEXT)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
9122 void ( * FramebufferTexture1DEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
9123 void ( * FramebufferTexture2DEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
9124 void ( * FramebufferTexture3DEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
9125 void ( * GenFramebuffersEXT)(GLsizei n, GLuint * framebuffers);
9126 void ( * GenRenderbuffersEXT)(GLsizei n, GLuint * renderbuffers);
9127 void ( * GenerateMipmapEXT)(GLenum target);
9128 void ( * GetFramebufferAttachmentParameterivEXT)(GLenum target, GLenum attachment, GLenum pname, GLint * params);
9129 void ( * GetRenderbufferParameterivEXT)(GLenum target, GLenum pname, GLint * params);
9130 GLboolean ( * IsFramebufferEXT)(GLuint framebuffer);
9131 GLboolean ( * IsRenderbufferEXT)(GLuint renderbuffer);
9132 void ( * RenderbufferStorageEXT)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
9133 void ( * BlitFramebufferEXT)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
9134 void ( * StencilFuncSeparateATI)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
9135 void ( * ProgramEnvParameters4fvEXT)(GLenum target, GLuint index, GLsizei count, const GLfloat * params);
9136 void ( * ProgramLocalParameters4fvEXT)(GLenum target, GLuint index, GLsizei count, const GLfloat * params);
9137 void ( * GetQueryObjecti64vEXT)(GLuint id, GLenum pname, GLint64EXT * params);
9138 void ( * GetQueryObjectui64vEXT)(GLuint id, GLenum pname, GLuint64EXT * params);
9139};
9140# 42 "./mtypes.h" 2
9141# 1 "../glapi/glthread.h" 1
9142# 262 "../glapi/glthread.h"
9143typedef GLuint _glthread_TSD;
9144
9145typedef GLuint _glthread_Thread;
9146
9147typedef GLuint _glthread_Mutex;
9148# 286 "../glapi/glthread.h"
9149extern unsigned long
9150_glthread_GetID(void);
9151
9152
9153extern void
9154_glthread_InitTSD(_glthread_TSD *);
9155
9156
9157extern void *
9158_glthread_GetTSD(_glthread_TSD *);
9159
9160
9161extern void
9162_glthread_SetTSD(_glthread_TSD *, void *);
9163# 43 "./mtypes.h" 2
9164# 1 "../math/m_matrix.h" 1
9165# 55 "../math/m_matrix.h"
9166enum GLmatrixtype {
9167 MATRIX_GENERAL,
9168 MATRIX_IDENTITY,
9169 MATRIX_3D_NO_ROT,
9170 MATRIX_PERSPECTIVE,
9171 MATRIX_2D,
9172 MATRIX_2D_NO_ROT,
9173 MATRIX_3D
9174} ;
9175
9176
9177
9178
9179typedef struct {
9180 GLfloat *m;
9181 GLfloat *inv;
9182 GLuint flags;
9183
9184
9185 enum GLmatrixtype type;
9186} GLmatrix;
9187
9188
9189
9190
9191extern void
9192_math_matrix_ctr( GLmatrix *m );
9193
9194extern void
9195_math_matrix_dtr( GLmatrix *m );
9196
9197extern void
9198_math_matrix_alloc_inv( GLmatrix *m );
9199
9200extern void
9201_math_matrix_mul_matrix( GLmatrix *dest, const GLmatrix *a, const GLmatrix *b );
9202
9203extern void
9204_math_matrix_mul_floats( GLmatrix *dest, const GLfloat *b );
9205
9206extern void
9207_math_matrix_loadf( GLmatrix *mat, const GLfloat *m );
9208
9209extern void
9210_math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
9211
9212extern void
9213_math_matrix_rotate( GLmatrix *m, GLfloat angle,
9214 GLfloat x, GLfloat y, GLfloat z );
9215
9216extern void
9217_math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
9218
9219extern void
9220_math_matrix_ortho( GLmatrix *mat,
9221 GLfloat left, GLfloat right,
9222 GLfloat bottom, GLfloat top,
9223 GLfloat nearval, GLfloat farval );
9224
9225extern void
9226_math_matrix_frustum( GLmatrix *mat,
9227 GLfloat left, GLfloat right,
9228 GLfloat bottom, GLfloat top,
9229 GLfloat nearval, GLfloat farval );
9230
9231extern void
9232_math_matrix_viewport(GLmatrix *m, GLint x, GLint y, GLint width, GLint height,
9233 GLfloat zNear, GLfloat zFar, GLfloat depthMax);
9234
9235extern void
9236_math_matrix_set_identity( GLmatrix *dest );
9237
9238extern void
9239_math_matrix_copy( GLmatrix *to, const GLmatrix *from );
9240
9241extern void
9242_math_matrix_analyse( GLmatrix *mat );
9243
9244extern void
9245_math_matrix_print( const GLmatrix *m );
9246
9247extern GLboolean
9248_math_matrix_is_length_preserving( const GLmatrix *m );
9249
9250extern GLboolean
9251_math_matrix_has_rotation( const GLmatrix *m );
9252
9253extern GLboolean
9254_math_matrix_is_general_scale( const GLmatrix *m );
9255
9256extern GLboolean
9257_math_matrix_is_dirty( const GLmatrix *m );
9258
9259
9260
9261
9262
9263
9264
9265extern void
9266_math_transposef( GLfloat to[16], const GLfloat from[16] );
9267
9268extern void
9269_math_transposed( GLdouble to[16], const GLdouble from[16] );
9270
9271extern void
9272_math_transposefd( GLfloat to[16], const GLdouble from[16] );
9273# 44 "./mtypes.h" 2
9274# 1 "./bitset.h" 1
9275# 45 "./mtypes.h" 2
9276# 57 "./mtypes.h"
9277 typedef GLubyte GLchan;
9278# 80 "./mtypes.h"
9279 typedef GLubyte GLstencil;
9280# 91 "./mtypes.h"
9281typedef int GLfixed;
9282# 124 "./mtypes.h"
9283struct _mesa_HashTable;
9284struct gl_pixelstore_attrib;
9285struct gl_texture_format;
9286struct gl_texture_image;
9287struct gl_texture_object;
9288typedef struct __GLcontextRec GLcontext;
9289typedef struct __GLcontextModesRec GLvisual;
9290typedef struct gl_framebuffer GLframebuffer;
9291# 143 "./mtypes.h"
9292enum
9293{
9294 VERT_ATTRIB_POS = 0,
9295 VERT_ATTRIB_WEIGHT = 1,
9296 VERT_ATTRIB_NORMAL = 2,
9297 VERT_ATTRIB_COLOR0 = 3,
9298 VERT_ATTRIB_COLOR1 = 4,
9299 VERT_ATTRIB_FOG = 5,
9300 VERT_ATTRIB_COLOR_INDEX = 6,
9301 VERT_ATTRIB_EDGEFLAG = 7,
9302 VERT_ATTRIB_TEX0 = 8,
9303 VERT_ATTRIB_TEX1 = 9,
9304 VERT_ATTRIB_TEX2 = 10,
9305 VERT_ATTRIB_TEX3 = 11,
9306 VERT_ATTRIB_TEX4 = 12,
9307 VERT_ATTRIB_TEX5 = 13,
9308 VERT_ATTRIB_TEX6 = 14,
9309 VERT_ATTRIB_TEX7 = 15,
9310 VERT_ATTRIB_GENERIC0 = 16,
9311 VERT_ATTRIB_GENERIC1 = 17,
9312 VERT_ATTRIB_GENERIC2 = 18,
9313 VERT_ATTRIB_GENERIC3 = 19,
9314 VERT_ATTRIB_GENERIC4 = 20,
9315 VERT_ATTRIB_GENERIC5 = 21,
9316 VERT_ATTRIB_GENERIC6 = 22,
9317 VERT_ATTRIB_GENERIC7 = 23,
9318 VERT_ATTRIB_GENERIC8 = 24,
9319 VERT_ATTRIB_GENERIC9 = 25,
9320 VERT_ATTRIB_GENERIC10 = 26,
9321 VERT_ATTRIB_GENERIC11 = 27,
9322 VERT_ATTRIB_GENERIC12 = 28,
9323 VERT_ATTRIB_GENERIC13 = 29,
9324 VERT_ATTRIB_GENERIC14 = 30,
9325 VERT_ATTRIB_GENERIC15 = 31,
9326 VERT_ATTRIB_MAX = 32
9327};
9328# 251 "./mtypes.h"
9329enum
9330{
9331 FRAG_ATTRIB_WPOS = 0,
9332 FRAG_ATTRIB_COL0 = 1,
9333 FRAG_ATTRIB_COL1 = 2,
9334 FRAG_ATTRIB_FOGC = 3,
9335 FRAG_ATTRIB_TEX0 = 4,
9336 FRAG_ATTRIB_TEX1 = 5,
9337 FRAG_ATTRIB_TEX2 = 6,
9338 FRAG_ATTRIB_TEX3 = 7,
9339 FRAG_ATTRIB_TEX4 = 8,
9340 FRAG_ATTRIB_TEX5 = 9,
9341 FRAG_ATTRIB_TEX6 = 10,
9342 FRAG_ATTRIB_TEX7 = 11,
9343 FRAG_ATTRIB_VAR0 = 12,
9344 FRAG_ATTRIB_MAX = (FRAG_ATTRIB_VAR0 + 8)
9345};
9346# 304 "./mtypes.h"
9347enum
9348{
9349 FRAG_RESULT_COLR = 0,
9350 FRAG_RESULT_COLH = 1,
9351 FRAG_RESULT_DEPR = 2,
9352 FRAG_RESULT_DATA0 = 3,
9353 FRAG_RESULT_MAX = (FRAG_RESULT_DATA0 + 4)
9354};
9355
9356
9357
9358
9359
9360enum {
9361 BUFFER_FRONT_LEFT = 0,
9362 BUFFER_BACK_LEFT = 1,
9363 BUFFER_FRONT_RIGHT = 2,
9364 BUFFER_BACK_RIGHT = 3,
9365 BUFFER_AUX0 = 4,
9366 BUFFER_AUX1 = 5,
9367 BUFFER_AUX2 = 6,
9368 BUFFER_AUX3 = 7,
9369 BUFFER_DEPTH = 8,
9370 BUFFER_STENCIL = 9,
9371 BUFFER_ACCUM = 10,
9372 BUFFER_COLOR0 = 11,
9373 BUFFER_COLOR1 = 12,
9374 BUFFER_COLOR2 = 13,
9375 BUFFER_COLOR3 = 14,
9376 BUFFER_COLOR4 = 15,
9377 BUFFER_COLOR5 = 16,
9378 BUFFER_COLOR6 = 17,
9379 BUFFER_COLOR7 = 18,
9380 BUFFER_COUNT = 19
9381};
9382# 396 "./mtypes.h"
9383struct gl_color_table
9384{
9385 GLenum InternalFormat;
9386 GLenum _BaseFormat;
9387 GLuint Size;
9388 GLfloat *TableF;
9389 GLubyte *TableUB;
9390 GLubyte RedSize;
9391 GLubyte GreenSize;
9392 GLubyte BlueSize;
9393 GLubyte AlphaSize;
9394 GLubyte LuminanceSize;
9395 GLubyte IntensitySize;
9396};
9397# 479 "./mtypes.h"
9398struct gl_shine_tab
9399{
9400 struct gl_shine_tab *next, *prev;
9401 GLfloat tab[256 +1];
9402 GLfloat shininess;
9403 GLuint refcount;
9404};
9405
9406
9407
9408
9409
9410struct gl_light
9411{
9412 struct gl_light *next;
9413 struct gl_light *prev;
9414
9415 GLfloat Ambient[4];
9416 GLfloat Diffuse[4];
9417 GLfloat Specular[4];
9418 GLfloat EyePosition[4];
9419 GLfloat EyeDirection[4];
9420 GLfloat SpotExponent;
9421 GLfloat SpotCutoff;
9422 GLfloat _CosCutoffNeg;
9423 GLfloat _CosCutoff;
9424 GLfloat ConstantAttenuation;
9425 GLfloat LinearAttenuation;
9426 GLfloat QuadraticAttenuation;
9427 GLboolean Enabled;
9428
9429
9430
9431
9432
9433 GLbitfield _Flags;
9434
9435 GLfloat _Position[4];
9436 GLfloat _VP_inf_norm[3];
9437 GLfloat _h_inf_norm[3];
9438 GLfloat _NormDirection[4];
9439 GLfloat _VP_inf_spot_attenuation;
9440
9441 GLfloat _SpotExpTable[512][2];
9442 GLfloat _MatAmbient[2][3];
9443 GLfloat _MatDiffuse[2][3];
9444 GLfloat _MatSpecular[2][3];
9445 GLfloat _dli;
9446 GLfloat _sli;
9447
9448};
9449
9450
9451
9452
9453
9454struct gl_lightmodel
9455{
9456 GLfloat Ambient[4];
9457 GLboolean LocalViewer;
9458 GLboolean TwoSide;
9459 GLenum ColorControl;
9460
9461};
9462
9463
9464
9465
9466
9467struct gl_material
9468{
9469 GLfloat Attrib[12][4];
9470};
9471
9472
9473
9474
9475
9476struct gl_accum_attrib
9477{
9478 GLfloat ClearColor[4];
9479};
9480
9481
9482
9483
9484
9485struct gl_colorbuffer_attrib
9486{
9487 GLuint ClearIndex;
9488 GLclampf ClearColor[4];
9489
9490 GLuint IndexMask;
9491 GLubyte ColorMask[4];
9492
9493 GLenum DrawBuffer[4];
9494
9495
9496
9497
9498
9499 GLboolean AlphaEnabled;
9500 GLenum AlphaFunc;
9501 GLclampf AlphaRef;
9502
9503
9504
9505
9506
9507
9508 GLboolean BlendEnabled;
9509 GLenum BlendSrcRGB;
9510 GLenum BlendDstRGB;
9511 GLenum BlendSrcA;
9512 GLenum BlendDstA;
9513 GLenum BlendEquationRGB;
9514 GLenum BlendEquationA;
9515 GLfloat BlendColor[4];
9516
9517
9518
9519
9520
9521
9522 GLenum LogicOp;
9523 GLboolean IndexLogicOpEnabled;
9524 GLboolean ColorLogicOpEnabled;
9525 GLboolean _LogicOpEnabled;
9526
9527
9528 GLboolean DitherFlag;
9529
9530 GLenum ClampFragmentColor;
9531 GLenum ClampReadColor;
9532};
9533
9534
9535
9536
9537
9538struct gl_current_attrib
9539{
9540
9541
9542
9543
9544
9545
9546
9547 GLfloat Attrib[VERT_ATTRIB_MAX][4];
9548
9549
9550
9551
9552
9553
9554
9555 GLfloat RasterPos[4];
9556 GLfloat RasterDistance;
9557 GLfloat RasterColor[4];
9558 GLfloat RasterSecondaryColor[4];
9559 GLfloat RasterIndex;
9560 GLfloat RasterTexCoords[8][4];
9561 GLboolean RasterPosValid;
9562
9563};
9564
9565
9566
9567
9568
9569struct gl_depthbuffer_attrib
9570{
9571 GLenum Func;
9572 GLclampd Clear;
9573 GLboolean Test;
9574 GLboolean Mask;
9575 GLboolean BoundsTest;
9576 GLfloat BoundsMin, BoundsMax;
9577};
9578
9579
9580
9581
9582
9583struct gl_enable_attrib
9584{
9585 GLboolean AlphaTest;
9586 GLboolean AutoNormal;
9587 GLboolean Blend;
9588 GLbitfield ClipPlanes;
9589 GLboolean ColorMaterial;
9590 GLboolean ColorTable[3];
9591 GLboolean Convolution1D;
9592 GLboolean Convolution2D;
9593 GLboolean Separable2D;
9594 GLboolean CullFace;
9595 GLboolean DepthTest;
9596 GLboolean Dither;
9597 GLboolean Fog;
9598 GLboolean Histogram;
9599 GLboolean Light[8];
9600 GLboolean Lighting;
9601 GLboolean LineSmooth;
9602 GLboolean LineStipple;
9603 GLboolean IndexLogicOp;
9604 GLboolean ColorLogicOp;
9605 GLboolean Map1Color4;
9606 GLboolean Map1Index;
9607 GLboolean Map1Normal;
9608 GLboolean Map1TextureCoord1;
9609 GLboolean Map1TextureCoord2;
9610 GLboolean Map1TextureCoord3;
9611 GLboolean Map1TextureCoord4;
9612 GLboolean Map1Vertex3;
9613 GLboolean Map1Vertex4;
9614 GLboolean Map1Attrib[16];
9615 GLboolean Map2Color4;
9616 GLboolean Map2Index;
9617 GLboolean Map2Normal;
9618 GLboolean Map2TextureCoord1;
9619 GLboolean Map2TextureCoord2;
9620 GLboolean Map2TextureCoord3;
9621 GLboolean Map2TextureCoord4;
9622 GLboolean Map2Vertex3;
9623 GLboolean Map2Vertex4;
9624 GLboolean Map2Attrib[16];
9625 GLboolean MinMax;
9626 GLboolean Normalize;
9627 GLboolean PixelTexture;
9628 GLboolean PointSmooth;
9629 GLboolean PolygonOffsetPoint;
9630 GLboolean PolygonOffsetLine;
9631 GLboolean PolygonOffsetFill;
9632 GLboolean PolygonSmooth;
9633 GLboolean PolygonStipple;
9634 GLboolean RescaleNormals;
9635 GLboolean Scissor;
9636 GLboolean Stencil;
9637 GLboolean StencilTwoSide;
9638 GLboolean MultisampleEnabled;
9639 GLboolean SampleAlphaToCoverage;
9640 GLboolean SampleAlphaToOne;
9641 GLboolean SampleCoverage;
9642 GLboolean SampleCoverageInvert;
9643 GLboolean RasterPositionUnclipped;
9644 GLuint Texture[8];
9645 GLuint TexGen[8];
9646
9647 GLboolean TextureColorTable[8];
9648
9649 GLboolean VertexProgram;
9650 GLboolean VertexProgramPointSize;
9651 GLboolean VertexProgramTwoSide;
9652
9653 GLboolean PointSprite;
9654 GLboolean FragmentShaderATI;
9655};
9656
9657
9658
9659
9660
9661struct gl_eval_attrib
9662{
9663
9664
9665
9666
9667 GLboolean Map1Color4;
9668 GLboolean Map1Index;
9669 GLboolean Map1Normal;
9670 GLboolean Map1TextureCoord1;
9671 GLboolean Map1TextureCoord2;
9672 GLboolean Map1TextureCoord3;
9673 GLboolean Map1TextureCoord4;
9674 GLboolean Map1Vertex3;
9675 GLboolean Map1Vertex4;
9676 GLboolean Map1Attrib[16];
9677 GLboolean Map2Color4;
9678 GLboolean Map2Index;
9679 GLboolean Map2Normal;
9680 GLboolean Map2TextureCoord1;
9681 GLboolean Map2TextureCoord2;
9682 GLboolean Map2TextureCoord3;
9683 GLboolean Map2TextureCoord4;
9684 GLboolean Map2Vertex3;
9685 GLboolean Map2Vertex4;
9686 GLboolean Map2Attrib[16];
9687 GLboolean AutoNormal;
9688
9689
9690
9691
9692
9693
9694 GLint MapGrid1un;
9695 GLfloat MapGrid1u1, MapGrid1u2, MapGrid1du;
9696 GLint MapGrid2un, MapGrid2vn;
9697 GLfloat MapGrid2u1, MapGrid2u2, MapGrid2du;
9698 GLfloat MapGrid2v1, MapGrid2v2, MapGrid2dv;
9699
9700};
9701
9702
9703
9704
9705
9706struct gl_fog_attrib
9707{
9708 GLboolean Enabled;
9709 GLfloat Color[4];
9710 GLfloat Density;
9711 GLfloat Start;
9712 GLfloat End;
9713 GLfloat Index;
9714 GLenum Mode;
9715 GLboolean ColorSumEnabled;
9716 GLenum FogCoordinateSource;
9717 GLfloat _Scale;
9718};
9719
9720
9721
9722
9723
9724
9725
9726struct gl_hint_attrib
9727{
9728 GLenum PerspectiveCorrection;
9729 GLenum PointSmooth;
9730 GLenum LineSmooth;
9731 GLenum PolygonSmooth;
9732 GLenum Fog;
9733 GLenum ClipVolumeClipping;
9734 GLenum TextureCompression;
9735 GLenum GenerateMipmap;
9736 GLenum FragmentShaderDerivative;
9737};
9738
9739
9740
9741
9742
9743struct gl_histogram_attrib
9744{
9745 GLuint Width;
9746 GLint Format;
9747 GLuint Count[256][4];
9748 GLboolean Sink;
9749 GLubyte RedSize;
9750 GLubyte GreenSize;
9751 GLubyte BlueSize;
9752 GLubyte AlphaSize;
9753 GLubyte LuminanceSize;
9754};
9755
9756
9757
9758
9759
9760struct gl_minmax_attrib
9761{
9762 GLenum Format;
9763 GLboolean Sink;
9764 GLfloat Min[4], Max[4];
9765};
9766
9767
9768
9769
9770
9771struct gl_convolution_attrib
9772{
9773 GLenum Format;
9774 GLenum InternalFormat;
9775 GLuint Width;
9776 GLuint Height;
9777 GLfloat Filter[9 * 9 * 4];
9778};
9779# 876 "./mtypes.h"
9780struct gl_light_attrib
9781{
9782 struct gl_light Light[8];
9783 struct gl_lightmodel Model;
9784
9785
9786
9787
9788
9789 struct gl_material Material;
9790
9791
9792 GLboolean Enabled;
9793 GLenum ShadeModel;
9794 GLenum ColorMaterialFace;
9795 GLenum ColorMaterialMode;
9796 GLbitfield ColorMaterialBitmask;
9797 GLboolean ColorMaterialEnabled;
9798 GLenum ClampVertexColor;
9799
9800 struct gl_light EnabledList;
9801
9802
9803
9804
9805
9806 GLboolean _NeedEyeCoords;
9807 GLboolean _NeedVertices;
9808 GLbitfield _Flags;
9809 GLfloat _BaseColor[2][3];
9810
9811};
9812
9813
9814
9815
9816
9817struct gl_line_attrib
9818{
9819 GLboolean SmoothFlag;
9820 GLboolean StippleFlag;
9821 GLushort StipplePattern;
9822 GLint StippleFactor;
9823 GLfloat Width;
9824 GLfloat _Width;
9825};
9826
9827
9828
9829
9830
9831struct gl_list_attrib
9832{
9833 GLuint ListBase;
9834};
9835
9836
9837
9838
9839
9840struct gl_list_instruction
9841{
9842 GLuint Size;
9843 void (*Execute)( GLcontext *ctx, void *data );
9844 void (*Destroy)( GLcontext *ctx, void *data );
9845 void (*Print)( GLcontext *ctx, void *data );
9846};
9847
9848
9849
9850
9851
9852
9853struct gl_list_extensions
9854{
9855 struct gl_list_instruction Opcode[16];
9856 GLuint NumOpcodes;
9857};
9858
9859
9860
9861
9862
9863struct gl_multisample_attrib
9864{
9865 GLboolean Enabled;
9866 GLboolean SampleAlphaToCoverage;
9867 GLboolean SampleAlphaToOne;
9868 GLboolean SampleCoverage;
9869 GLfloat SampleCoverageValue;
9870 GLboolean SampleCoverageInvert;
9871};
9872
9873
9874
9875
9876
9877struct gl_pixelmap
9878{
9879 GLint Size;
9880 GLfloat Map[256];
9881 GLubyte Map8[256];
9882};
9883
9884
9885
9886
9887
9888struct gl_pixelmaps
9889{
9890 struct gl_pixelmap RtoR;
9891 struct gl_pixelmap GtoG;
9892 struct gl_pixelmap BtoB;
9893 struct gl_pixelmap AtoA;
9894 struct gl_pixelmap ItoR;
9895 struct gl_pixelmap ItoG;
9896 struct gl_pixelmap ItoB;
9897 struct gl_pixelmap ItoA;
9898 struct gl_pixelmap ItoI;
9899 struct gl_pixelmap StoS;
9900};
9901
9902
9903
9904
9905
9906struct gl_pixel_attrib
9907{
9908 GLenum ReadBuffer;
9909
9910
9911
9912
9913
9914 GLfloat RedBias, RedScale;
9915 GLfloat GreenBias, GreenScale;
9916 GLfloat BlueBias, BlueScale;
9917 GLfloat AlphaBias, AlphaScale;
9918 GLfloat DepthBias, DepthScale;
9919 GLint IndexShift, IndexOffset;
9920
9921
9922
9923 GLboolean MapColorFlag;
9924 GLboolean MapStencilFlag;
9925
9926
9927 GLboolean ColorTableEnabled[3];
9928 GLfloat ColorTableScale[3][4];
9929 GLfloat ColorTableBias[3][4];
9930
9931
9932 GLboolean Convolution1DEnabled;
9933 GLboolean Convolution2DEnabled;
9934 GLboolean Separable2DEnabled;
9935 GLfloat ConvolutionBorderColor[3][4];
9936 GLenum ConvolutionBorderMode[3];
9937 GLfloat ConvolutionFilterScale[3][4];
9938 GLfloat ConvolutionFilterBias[3][4];
9939 GLfloat PostConvolutionScale[4];
9940 GLfloat PostConvolutionBias[4];
9941
9942
9943
9944 GLfloat PostColorMatrixScale[4];
9945 GLfloat PostColorMatrixBias[4];
9946
9947
9948
9949 GLboolean HistogramEnabled;
9950 GLboolean MinMaxEnabled;
9951
9952
9953
9954
9955 GLfloat ZoomX, ZoomY;
9956
9957
9958 GLfloat TextureColorTableScale[4];
9959 GLfloat TextureColorTableBias[4];
9960};
9961
9962
9963
9964
9965
9966struct gl_point_attrib
9967{
9968 GLboolean SmoothFlag;
9969 GLfloat Size;
9970 GLfloat _Size;
9971 GLfloat Params[3];
9972 GLfloat MinSize, MaxSize;
9973 GLfloat Threshold;
9974 GLboolean _Attenuated;
9975 GLboolean PointSprite;
9976 GLboolean CoordReplace[8];
9977 GLenum SpriteRMode;
9978 GLenum SpriteOrigin;
9979};
9980
9981
9982
9983
9984
9985struct gl_polygon_attrib
9986{
9987 GLenum FrontFace;
9988 GLenum FrontMode;
9989 GLenum BackMode;
9990 GLboolean _FrontBit;
9991 GLboolean CullFlag;
9992 GLboolean SmoothFlag;
9993 GLboolean StippleFlag;
9994 GLenum CullFaceMode;
9995 GLfloat OffsetFactor;
9996 GLfloat OffsetUnits;
9997 GLboolean OffsetPoint;
9998 GLboolean OffsetLine;
9999 GLboolean OffsetFill;
10000};
10001
10002
10003
10004
10005
10006struct gl_scissor_attrib
10007{
10008 GLboolean Enabled;
10009 GLint X, Y;
10010 GLsizei Width, Height;
10011};
10012
10013
10014
10015
10016
10017struct gl_stencil_attrib
10018{
10019 GLboolean Enabled;
10020 GLboolean TestTwoSide;
10021 GLubyte ActiveFace;
10022 GLboolean _TestTwoSide;
10023 GLenum Function[2];
10024 GLenum FailFunc[2];
10025 GLenum ZPassFunc[2];
10026 GLenum ZFailFunc[2];
10027 GLint Ref[2];
10028 GLuint ValueMask[2];
10029 GLuint WriteMask[2];
10030 GLuint Clear;
10031};
10032# 1222 "./mtypes.h"
10033typedef void (*FetchTexelFuncC)( const struct gl_texture_image *texImage,
10034 GLint col, GLint row, GLint img,
10035 GLchan *texelOut );
10036
10037
10038
10039
10040
10041
10042typedef void (*FetchTexelFuncF)( const struct gl_texture_image *texImage,
10043 GLint col, GLint row, GLint img,
10044 GLfloat *texelOut );
10045
10046
10047typedef void (*StoreTexelFunc)(struct gl_texture_image *texImage,
10048 GLint col, GLint row, GLint img,
10049 const void *texel);
10050# 1273 "./mtypes.h"
10051typedef GLboolean (*StoreTexImageFunc)(GLcontext *ctx, GLuint dims, GLenum baseInternalFormat, const struct gl_texture_format *dstFormat, GLvoid *dstAddr, GLint dstXoffset, GLint dstYoffset, GLint dstZoffset, GLint dstRowStride, const GLuint *dstImageOffsets, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking);
10052
10053
10054
10055
10056
10057struct gl_texture_format
10058{
10059 GLint MesaFormat;
10060
10061 GLenum BaseFormat;
10062
10063
10064
10065
10066 GLenum DataType;
10067 GLubyte RedBits;
10068 GLubyte GreenBits;
10069 GLubyte BlueBits;
10070 GLubyte AlphaBits;
10071 GLubyte LuminanceBits;
10072 GLubyte IntensityBits;
10073 GLubyte IndexBits;
10074 GLubyte DepthBits;
10075 GLubyte StencilBits;
10076
10077 GLuint TexelBytes;
10078
10079 StoreTexImageFunc StoreImage;
10080
10081
10082
10083
10084
10085 FetchTexelFuncC FetchTexel1D;
10086 FetchTexelFuncC FetchTexel2D;
10087 FetchTexelFuncC FetchTexel3D;
10088 FetchTexelFuncF FetchTexel1Df;
10089 FetchTexelFuncF FetchTexel2Df;
10090 FetchTexelFuncF FetchTexel3Df;
10091
10092
10093 StoreTexelFunc StoreTexel;
10094};
10095# 1325 "./mtypes.h"
10096struct gl_texture_image
10097{
10098 GLenum _BaseFormat;
10099
10100
10101
10102
10103
10104 GLint InternalFormat;
10105 GLuint Border;
10106 GLuint Width;
10107 GLuint Height;
10108 GLuint Depth;
10109 GLuint Width2;
10110 GLuint Height2;
10111 GLuint Depth2;
10112 GLuint WidthLog2;
10113 GLuint HeightLog2;
10114 GLuint DepthLog2;
10115 GLuint MaxLog2;
10116 GLfloat WidthScale;
10117 GLfloat HeightScale;
10118 GLfloat DepthScale;
10119 GLboolean IsClientData;
10120 GLboolean _IsPowerOfTwo;
10121
10122 const struct gl_texture_format *TexFormat;
10123
10124 struct gl_texture_object *TexObject;
10125
10126 FetchTexelFuncC FetchTexelc;
10127 FetchTexelFuncF FetchTexelf;
10128
10129 GLboolean IsCompressed;
10130 GLuint CompressedSize;
10131
10132 GLuint RowStride;
10133 GLuint *ImageOffsets;
10134
10135 GLvoid *Data;
10136
10137
10138
10139
10140
10141 void *DriverData;
10142
10143};
10144# 1394 "./mtypes.h"
10145struct gl_texture_object
10146{
10147 _glthread_Mutex Mutex;
10148 GLint RefCount;
10149 GLuint Name;
10150 GLenum Target;
10151 GLfloat Priority;
10152 GLfloat BorderColor[4];
10153 GLchan _BorderChan[4];
10154 GLenum WrapS;
10155 GLenum WrapT;
10156 GLenum WrapR;
10157 GLenum MinFilter;
10158 GLenum MagFilter;
10159 GLfloat MinLod;
10160 GLfloat MaxLod;
10161 GLfloat LodBias;
10162 GLint BaseLevel;
10163 GLint MaxLevel;
10164 GLfloat MaxAnisotropy;
10165 GLboolean CompareFlag;
10166 GLenum CompareOperator;
10167 GLfloat ShadowAmbient;
10168 GLenum CompareMode;
10169 GLenum CompareFunc;
10170 GLenum DepthMode;
10171 GLint _MaxLevel;
10172 GLfloat _MaxLambda;
10173 GLboolean GenerateMipmap;
10174 GLboolean Complete;
10175
10176
10177 struct gl_texture_image *Image[6][12];
10178
10179
10180 struct gl_color_table Palette;
10181# 1439 "./mtypes.h"
10182 void *DriverData;
10183};
10184# 1450 "./mtypes.h"
10185struct gl_tex_env_combine_state
10186{
10187 GLenum ModeRGB;
10188 GLenum ModeA;
10189 GLenum SourceRGB[3];
10190 GLenum SourceA[3];
10191 GLenum OperandRGB[3];
10192 GLenum OperandA[3];
10193 GLuint ScaleShiftRGB;
10194 GLuint ScaleShiftA;
10195 GLuint _NumArgsRGB;
10196 GLuint _NumArgsA;
10197};
10198
10199
10200
10201
10202
10203
10204
10205struct gl_texture_unit
10206{
10207 GLbitfield Enabled;
10208 GLbitfield _ReallyEnabled;
10209
10210 GLenum EnvMode;
10211 GLfloat EnvColor[4];
10212 GLbitfield TexGenEnabled;
10213
10214
10215
10216 GLenum GenModeS;
10217 GLenum GenModeT;
10218 GLenum GenModeR;
10219 GLenum GenModeQ;
10220
10221 GLbitfield _GenBitS;
10222 GLbitfield _GenBitT;
10223 GLbitfield _GenBitR;
10224 GLbitfield _GenBitQ;
10225 GLbitfield _GenFlags;
10226 GLfloat ObjectPlaneS[4];
10227 GLfloat ObjectPlaneT[4];
10228 GLfloat ObjectPlaneR[4];
10229 GLfloat ObjectPlaneQ[4];
10230 GLfloat EyePlaneS[4];
10231 GLfloat EyePlaneT[4];
10232 GLfloat EyePlaneR[4];
10233 GLfloat EyePlaneQ[4];
10234 GLfloat LodBias;
10235
10236
10237
10238
10239 struct gl_tex_env_combine_state Combine;
10240
10241
10242
10243
10244
10245 struct gl_tex_env_combine_state _EnvMode;
10246
10247
10248
10249
10250
10251 struct gl_tex_env_combine_state *_CurrentCombine;
10252
10253 struct gl_texture_object *Current1D;
10254 struct gl_texture_object *Current2D;
10255 struct gl_texture_object *Current3D;
10256 struct gl_texture_object *CurrentCubeMap;
10257 struct gl_texture_object *CurrentRect;
10258
10259 struct gl_texture_object *_Current;
10260
10261
10262 struct gl_color_table ColorTable;
10263 struct gl_color_table ProxyColorTable;
10264 GLboolean ColorTableEnabled;
10265};
10266
10267struct texenvprog_cache_item {
10268 GLuint hash;
10269 void *key;
10270 struct gl_fragment_program *data;
10271 struct texenvprog_cache_item *next;
10272};
10273
10274struct texenvprog_cache {
10275 struct texenvprog_cache_item **items;
10276 GLuint size, n_items;
10277 GLcontext *ctx;
10278};
10279
10280
10281
10282
10283struct gl_texture_attrib
10284{
10285
10286
10287
10288
10289 GLuint CurrentUnit;
10290 GLbitfield _EnabledUnits;
10291 GLbitfield _EnabledCoordUnits;
10292 GLbitfield _GenFlags;
10293 GLbitfield _TexGenEnabled;
10294 GLbitfield _TexMatEnabled;
10295
10296
10297 struct gl_texture_unit Unit[8];
10298
10299 struct gl_texture_object *Proxy1D;
10300 struct gl_texture_object *Proxy2D;
10301 struct gl_texture_object *Proxy3D;
10302 struct gl_texture_object *ProxyCubeMap;
10303 struct gl_texture_object *ProxyRect;
10304
10305
10306 GLboolean SharedPalette;
10307 struct gl_color_table Palette;
10308
10309
10310 struct texenvprog_cache env_fp_cache;
10311};
10312
10313
10314
10315
10316
10317struct gl_transform_attrib
10318{
10319 GLenum MatrixMode;
10320 GLfloat EyeUserPlane[6][4];
10321 GLfloat _ClipUserPlane[6][4];
10322 GLbitfield ClipPlanesEnabled;
10323 GLboolean Normalize;
10324 GLboolean RescaleNormals;
10325 GLboolean RasterPositionUnclipped;
10326
10327 GLboolean CullVertexFlag;
10328 GLfloat CullEyePos[4];
10329 GLfloat CullObjPos[4];
10330};
10331
10332
10333
10334
10335
10336struct gl_viewport_attrib
10337{
10338 GLint X, Y;
10339 GLsizei Width, Height;
10340 GLfloat Near, Far;
10341 GLmatrix _WindowMap;
10342};
10343
10344
10345
10346
10347
10348struct gl_attrib_node
10349{
10350 GLbitfield kind;
10351 void *data;
10352 struct gl_attrib_node *next;
10353};
10354
10355
10356
10357
10358
10359struct gl_buffer_object
10360{
10361 GLint RefCount;
10362 GLuint Name;
10363 GLenum Usage;
10364 GLenum Access;
10365 GLvoid *Pointer;
10366 GLsizeiptrARB Size;
10367 GLubyte *Data;
10368 GLboolean OnCard;
10369};
10370
10371
10372
10373
10374
10375
10376struct gl_pixelstore_attrib
10377{
10378 GLint Alignment;
10379 GLint RowLength;
10380 GLint SkipPixels;
10381 GLint SkipRows;
10382 GLint ImageHeight;
10383 GLint SkipImages;
10384 GLboolean SwapBytes;
10385 GLboolean LsbFirst;
10386 GLboolean ClientStorage;
10387 GLboolean Invert;
10388 struct gl_buffer_object *BufferObj;
10389};
10390
10391
10392
10393
10394
10395
10396struct gl_client_array
10397{
10398 GLint Size;
10399 GLenum Type;
10400 GLsizei Stride;
10401 GLsizei StrideB;
10402 const GLubyte *Ptr;
10403 GLboolean Enabled;
10404 GLboolean Normalized;
10405
10406
10407 struct gl_buffer_object *BufferObj;
10408 GLuint _MaxElement;
10409};
10410
10411
10412
10413
10414
10415
10416struct gl_array_object
10417{
10418
10419 GLuint Name;
10420
10421
10422
10423 struct gl_client_array Vertex;
10424 struct gl_client_array Normal;
10425 struct gl_client_array Color;
10426 struct gl_client_array SecondaryColor;
10427 struct gl_client_array FogCoord;
10428 struct gl_client_array Index;
10429 struct gl_client_array EdgeFlag;
10430 struct gl_client_array TexCoord[8];
10431
10432
10433
10434 struct gl_client_array VertexAttrib[VERT_ATTRIB_MAX];
10435
10436
10437 GLbitfield _Enabled;
10438};
10439
10440
10441
10442
10443
10444struct gl_array_attrib
10445{
10446 struct gl_array_object *ArrayObj;
10447 struct gl_array_object *DefaultArrayObj;
10448
10449 GLint ActiveTexture;
10450 GLuint LockFirst;
10451 GLuint LockCount;
10452
10453 GLbitfield NewState;
10454
10455
10456 struct gl_buffer_object *NullBufferObj;
10457 struct gl_buffer_object *ArrayBufferObj;
10458 struct gl_buffer_object *ElementArrayBufferObj;
10459
10460 GLuint _MaxElement;
10461};
10462
10463
10464
10465
10466
10467struct gl_feedback
10468{
10469 GLenum Type;
10470 GLbitfield _Mask;
10471 GLfloat *Buffer;
10472 GLuint BufferSize;
10473 GLuint Count;
10474};
10475
10476
10477
10478
10479
10480struct gl_selection
10481{
10482 GLuint *Buffer;
10483 GLuint BufferSize;
10484 GLuint BufferCount;
10485 GLuint Hits;
10486 GLuint NameStackDepth;
10487 GLuint NameStack[64];
10488 GLboolean HitFlag;
10489 GLfloat HitMinZ;
10490 GLfloat HitMaxZ;
10491};
10492
10493
10494
10495
10496
10497struct gl_1d_map
10498{
10499 GLuint Order;
10500 GLfloat u1, u2, du;
10501 GLfloat *Points;
10502};
10503
10504
10505
10506
10507
10508struct gl_2d_map
10509{
10510 GLuint Uorder;
10511 GLuint Vorder;
10512 GLfloat u1, u2, du;
10513 GLfloat v1, v2, dv;
10514 GLfloat *Points;
10515};
10516
10517
10518
10519
10520
10521struct gl_evaluators
10522{
10523
10524
10525
10526
10527 struct gl_1d_map Map1Vertex3;
10528 struct gl_1d_map Map1Vertex4;
10529 struct gl_1d_map Map1Index;
10530 struct gl_1d_map Map1Color4;
10531 struct gl_1d_map Map1Normal;
10532 struct gl_1d_map Map1Texture1;
10533 struct gl_1d_map Map1Texture2;
10534 struct gl_1d_map Map1Texture3;
10535 struct gl_1d_map Map1Texture4;
10536 struct gl_1d_map Map1Attrib[16];
10537
10538
10539
10540
10541
10542
10543 struct gl_2d_map Map2Vertex3;
10544 struct gl_2d_map Map2Vertex4;
10545 struct gl_2d_map Map2Index;
10546 struct gl_2d_map Map2Color4;
10547 struct gl_2d_map Map2Normal;
10548 struct gl_2d_map Map2Texture1;
10549 struct gl_2d_map Map2Texture2;
10550 struct gl_2d_map Map2Texture3;
10551 struct gl_2d_map Map2Texture4;
10552 struct gl_2d_map Map2Attrib[16];
10553
10554};
10555# 1833 "./mtypes.h"
10556enum register_file
10557{
10558 PROGRAM_TEMPORARY = 0,
10559 PROGRAM_LOCAL_PARAM = 1,
10560 PROGRAM_ENV_PARAM = 2,
10561 PROGRAM_STATE_VAR = 3,
10562 PROGRAM_INPUT = 4,
10563 PROGRAM_OUTPUT = 5,
10564 PROGRAM_NAMED_PARAM = 6,
10565 PROGRAM_CONSTANT = 7,
10566 PROGRAM_UNIFORM = 8,
10567 PROGRAM_VARYING = 9,
10568 PROGRAM_WRITE_ONLY = 10,
10569 PROGRAM_ADDRESS = 11,
10570 PROGRAM_SAMPLER = 12,
10571 PROGRAM_UNDEFINED = 13,
10572 PROGRAM_FILE_MAX
10573};
10574
10575
10576
10577struct prog_instruction;
10578struct gl_program_parameter_list;
10579
10580
10581
10582
10583
10584struct gl_program
10585{
10586 GLuint Id;
10587 GLubyte *String;
10588 GLint RefCount;
10589 GLenum Target;
10590 GLenum Format;
10591 GLboolean Resident;
10592
10593 struct prog_instruction *Instructions;
10594
10595 GLbitfield InputsRead;
10596 GLbitfield OutputsWritten;
10597 GLbitfield TexturesUsed[8];
10598
10599
10600 struct gl_program_parameter_list *Parameters;
10601
10602 GLfloat LocalParams[128][4];
10603
10604
10605 struct gl_program_parameter_list *Varying;
10606
10607 struct gl_program_parameter_list *Attributes;
10608
10609
10610
10611 GLuint NumInstructions;
10612 GLuint NumTemporaries;
10613 GLuint NumParameters;
10614 GLuint NumAttributes;
10615 GLuint NumAddressRegs;
10616 GLuint NumAluInstructions;
10617 GLuint NumTexInstructions;
10618 GLuint NumTexIndirections;
10619
10620
10621
10622 GLuint NumNativeInstructions;
10623 GLuint NumNativeTemporaries;
10624 GLuint NumNativeParameters;
10625 GLuint NumNativeAttributes;
10626 GLuint NumNativeAddressRegs;
10627 GLuint NumNativeAluInstructions;
10628 GLuint NumNativeTexInstructions;
10629 GLuint NumNativeTexIndirections;
10630
10631};
10632
10633
10634
10635struct gl_vertex_program
10636{
10637 struct gl_program Base;
10638 GLboolean IsNVProgram;
10639 GLboolean IsPositionInvariant;
10640 void *TnlData;
10641};
10642
10643
10644
10645struct gl_fragment_program
10646{
10647 struct gl_program Base;
10648 GLenum FogOption;
10649 GLboolean UsesKill;
10650};
10651
10652
10653
10654
10655
10656struct gl_program_state
10657{
10658 GLint ErrorPos;
10659 const char *ErrorString;
10660};
10661
10662
10663
10664
10665
10666struct gl_vertex_program_state
10667{
10668 GLboolean Enabled;
10669 GLboolean _Enabled;
10670 GLboolean PointSizeEnabled;
10671 GLboolean TwoSideEnabled;
10672 struct gl_vertex_program *Current;
10673
10674
10675
10676
10677 struct gl_vertex_program *_Current;
10678
10679 GLfloat Parameters[128][4];
10680
10681
10682 GLenum TrackMatrix[128 / 4];
10683 GLenum TrackMatrixTransform[128 / 4];
10684
10685
10686 GLboolean _MaintainTnlProgram;
10687
10688
10689 struct gl_vertex_program *_TnlProgram;
10690
10691
10692 GLprogramcallbackMESA Callback;
10693 GLvoid *CallbackData;
10694 GLboolean CallbackEnabled;
10695 GLuint CurrentPosition;
10696
10697};
10698
10699
10700
10701
10702
10703struct gl_fragment_program_state
10704{
10705 GLboolean Enabled;
10706 GLboolean _Enabled;
10707 GLboolean _Active;
10708 struct gl_fragment_program *Current;
10709
10710
10711
10712
10713 struct gl_fragment_program *_Current;
10714
10715 GLfloat Parameters[128][4];
10716
10717
10718 GLboolean _MaintainTexEnvProgram;
10719 GLboolean _UseTexEnvProgram;
10720
10721
10722 struct gl_fragment_program *_TexEnvProgram;
10723
10724
10725 GLprogramcallbackMESA Callback;
10726 GLvoid *CallbackData;
10727 GLboolean CallbackEnabled;
10728 GLuint CurrentPosition;
10729
10730};
10731# 2016 "./mtypes.h"
10732struct atifs_instruction;
10733struct atifs_setupinst;
10734
10735
10736
10737
10738struct ati_fragment_shader
10739{
10740 GLuint Id;
10741 GLint RefCount;
10742 struct atifs_instruction *Instructions[2];
10743 struct atifs_setupinst *SetupInst[2];
10744 GLfloat Constants[8][4];
10745 GLbitfield LocalConstDef;
10746 GLubyte numArithInstr[2];
10747 GLubyte regsAssigned[2];
10748 GLubyte NumPasses;
10749 GLubyte cur_pass;
10750 GLubyte last_optype;
10751 GLboolean interpinp1;
10752 GLboolean isValid;
10753 GLuint swizzlerq;
10754};
10755
10756
10757
10758
10759struct gl_ati_fragment_shader_state
10760{
10761 GLboolean Enabled;
10762 GLboolean _Enabled;
10763 GLboolean Compiling;
10764 GLfloat GlobalConstants[8][4];
10765 struct ati_fragment_shader *Current;
10766};
10767
10768
10769
10770
10771
10772struct gl_query_object
10773{
10774 GLuint Id;
10775 GLuint64EXT Result;
10776 GLboolean Active;
10777 GLboolean Ready;
10778};
10779
10780
10781
10782
10783
10784struct gl_query_state
10785{
10786 struct _mesa_HashTable *QueryObjects;
10787 struct gl_query_object *CurrentOcclusionObject;
10788 struct gl_query_object *CurrentTimerObject;
10789};
10790
10791
10792
10793
10794
10795
10796struct gl_shader
10797{
10798 GLenum Type;
10799 GLuint Name;
10800 GLint RefCount;
10801 GLboolean DeletePending;
10802
10803 const GLchar *Source;
10804 GLboolean CompileStatus;
10805 GLuint NumPrograms;
10806 struct gl_program **Programs;
10807 GLchar *InfoLog;
10808};
10809
10810
10811
10812
10813
10814struct gl_shader_program
10815{
10816 GLenum Type;
10817 GLuint Name;
10818 GLint RefCount;
10819 GLboolean DeletePending;
10820
10821 GLuint NumShaders;
10822 struct gl_shader **Shaders;
10823
10824
10825 struct gl_vertex_program *VertexProgram;
10826 struct gl_fragment_program *FragmentProgram;
10827 struct gl_program_parameter_list *Uniforms;
10828 struct gl_program_parameter_list *Varying;
10829 struct gl_program_parameter_list *Attributes;
10830 GLboolean LinkStatus;
10831 GLboolean Validated;
10832 GLchar *InfoLog;
10833};
10834
10835
10836
10837
10838
10839struct gl_shader_state
10840{
10841 struct gl_shader_program *CurrentProgram;
10842
10843 GLboolean EmitHighLevelInstructions;
10844 GLboolean EmitCondCodes;
10845 GLboolean EmitComments;
10846 void *MemPool;
10847};
10848
10849
10850
10851
10852
10853struct gl_shared_state
10854{
10855 _glthread_Mutex Mutex;
10856 GLint RefCount;
10857 struct _mesa_HashTable *DisplayList;
10858 struct _mesa_HashTable *TexObjects;
10859
10860
10861
10862
10863
10864 struct gl_texture_object *Default1D;
10865 struct gl_texture_object *Default2D;
10866 struct gl_texture_object *Default3D;
10867 struct gl_texture_object *DefaultCubeMap;
10868 struct gl_texture_object *DefaultRect;
10869# 2162 "./mtypes.h"
10870 _glthread_Mutex TexMutex;
10871 GLuint TextureStateStamp;
10872# 2172 "./mtypes.h"
10873 struct _mesa_HashTable *Programs;
10874
10875 struct gl_program *DefaultVertexProgram;
10876
10877
10878 struct gl_program *DefaultFragmentProgram;
10879
10880
10881
10882
10883 struct _mesa_HashTable *ATIShaders;
10884 struct ati_fragment_shader *DefaultFragmentShader;
10885
10886
10887
10888 struct _mesa_HashTable *BufferObjects;
10889
10890
10891
10892
10893 struct _mesa_HashTable *ShaderObjects;
10894
10895
10896
10897 struct _mesa_HashTable *RenderBuffers;
10898 struct _mesa_HashTable *FrameBuffers;
10899
10900
10901
10902 struct _mesa_HashTable *ArrayObjects;
10903
10904 void *DriverData;
10905};
10906# 2218 "./mtypes.h"
10907struct gl_renderbuffer
10908{
10909
10910 int Magic;
10911 _glthread_Mutex Mutex;
10912 GLuint ClassID;
10913 GLuint Name;
10914 GLint RefCount;
10915 GLuint Width, Height;
10916 GLenum InternalFormat;
10917 GLenum _ActualFormat;
10918 GLenum _BaseFormat;
10919
10920 GLenum DataType;
10921 GLubyte RedBits;
10922 GLubyte GreenBits;
10923 GLubyte BlueBits;
10924 GLubyte AlphaBits;
10925 GLubyte IndexBits;
10926 GLubyte DepthBits;
10927 GLubyte StencilBits;
10928 GLvoid *Data;
10929
10930
10931 struct gl_renderbuffer *Wrapped;
10932
10933
10934 void (*Delete)(struct gl_renderbuffer *rb);
10935
10936
10937 GLboolean (*AllocStorage)(GLcontext *ctx, struct gl_renderbuffer *rb,
10938 GLenum internalFormat,
10939 GLuint width, GLuint height);
10940# 2261 "./mtypes.h"
10941 void *(*GetPointer)(GLcontext *ctx, struct gl_renderbuffer *rb,
10942 GLint x, GLint y);
10943
10944
10945
10946
10947 void (*GetRow)(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
10948 GLint x, GLint y, void *values);
10949
10950
10951
10952
10953 void (*GetValues)(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
10954 const GLint x[], const GLint y[], void *values);
10955
10956
10957
10958
10959 void (*PutRow)(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
10960 GLint x, GLint y, const void *values, const GLubyte *mask);
10961
10962
10963
10964
10965
10966
10967 void (*PutRowRGB)(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
10968 GLint x, GLint y, const void *values, const GLubyte *mask);
10969
10970
10971
10972
10973
10974 void (*PutMonoRow)(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
10975 GLint x, GLint y, const void *value, const GLubyte *mask);
10976
10977
10978
10979
10980 void (*PutValues)(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
10981 const GLint x[], const GLint y[], const void *values,
10982 const GLubyte *mask);
10983
10984
10985
10986 void (*PutMonoValues)(GLcontext *ctx, struct gl_renderbuffer *rb,
10987 GLuint count, const GLint x[], const GLint y[],
10988 const void *value, const GLubyte *mask);
10989};
10990
10991
10992
10993
10994
10995
10996
10997struct gl_renderbuffer_attachment
10998{
10999 GLenum Type;
11000 GLboolean Complete;
11001
11002
11003 struct gl_renderbuffer *Renderbuffer;
11004
11005
11006 struct gl_texture_object *Texture;
11007 GLuint TextureLevel;
11008 GLuint CubeMapFace;
11009 GLuint Zoffset;
11010};
11011
11012
11013
11014
11015
11016
11017
11018struct gl_framebuffer
11019{
11020 _glthread_Mutex Mutex;
11021 GLuint Name;
11022 GLint RefCount;
11023 GLboolean DeletePending;
11024
11025 GLvisual Visual;
11026
11027
11028
11029 GLboolean Initialized;
11030
11031 GLuint Width, Height;
11032
11033
11034
11035 GLint _Xmin, _Xmax;
11036 GLint _Ymin, _Ymax;
11037
11038
11039
11040
11041 GLuint _DepthMax;
11042 GLfloat _DepthMaxF;
11043 GLfloat _MRD;
11044
11045
11046 GLenum _Status;
11047
11048
11049 struct gl_renderbuffer_attachment Attachment[BUFFER_COUNT];
11050
11051
11052
11053
11054 GLenum ColorDrawBuffer[4];
11055 GLenum ColorReadBuffer;
11056
11057
11058 GLbitfield _ColorDrawBufferMask[4];
11059 GLint _ColorReadBufferIndex;
11060
11061
11062 GLuint _NumColorDrawBuffers[4];
11063 struct gl_renderbuffer *_ColorDrawBuffers[4][4];
11064 struct gl_renderbuffer *_ColorReadBuffer;
11065
11066
11067
11068 struct gl_renderbuffer *_DepthBuffer;
11069 struct gl_renderbuffer *_StencilBuffer;
11070
11071
11072 void (*Delete)(struct gl_framebuffer *fb);
11073};
11074
11075
11076
11077
11078
11079struct gl_program_constants
11080{
11081
11082 GLuint MaxInstructions;
11083 GLuint MaxAluInstructions;
11084 GLuint MaxTexInstructions;
11085 GLuint MaxTexIndirections;
11086 GLuint MaxAttribs;
11087 GLuint MaxTemps;
11088 GLuint MaxAddressRegs;
11089 GLuint MaxParameters;
11090 GLuint MaxLocalParams;
11091 GLuint MaxEnvParams;
11092
11093 GLuint MaxNativeInstructions;
11094 GLuint MaxNativeAluInstructions;
11095 GLuint MaxNativeTexInstructions;
11096 GLuint MaxNativeTexIndirections;
11097 GLuint MaxNativeAttribs;
11098 GLuint MaxNativeTemps;
11099 GLuint MaxNativeAddressRegs;
11100 GLuint MaxNativeParameters;
11101
11102 GLuint MaxUniformComponents;
11103};
11104
11105
11106
11107
11108
11109
11110struct gl_constants
11111{
11112 GLint MaxTextureLevels;
11113 GLint Max3DTextureLevels;
11114 GLint MaxCubeTextureLevels;
11115 GLint MaxTextureRectSize;
11116 GLuint MaxTextureCoordUnits;
11117 GLuint MaxTextureImageUnits;
11118 GLuint MaxTextureUnits;
11119 GLfloat MaxTextureMaxAnisotropy;
11120 GLfloat MaxTextureLodBias;
11121 GLuint MaxArrayLockSize;
11122 GLint SubPixelBits;
11123 GLfloat MinPointSize, MaxPointSize;
11124 GLfloat MinPointSizeAA, MaxPointSizeAA;
11125 GLfloat PointSizeGranularity;
11126 GLfloat MinLineWidth, MaxLineWidth;
11127 GLfloat MinLineWidthAA, MaxLineWidthAA;
11128 GLfloat LineWidthGranularity;
11129 GLuint MaxColorTableSize;
11130 GLuint MaxConvolutionWidth;
11131 GLuint MaxConvolutionHeight;
11132 GLuint MaxClipPlanes;
11133 GLuint MaxLights;
11134 GLfloat MaxShininess;
11135 GLfloat MaxSpotExponent;
11136 GLuint MaxViewportWidth, MaxViewportHeight;
11137 struct gl_program_constants VertexProgram;
11138 struct gl_program_constants FragmentProgram;
11139
11140 GLuint MaxProgramMatrices;
11141 GLuint MaxProgramMatrixStackDepth;
11142
11143 GLboolean CheckArrayBounds;
11144
11145 GLuint MaxDrawBuffers;
11146
11147 GLenum ColorReadFormat;
11148 GLenum ColorReadType;
11149
11150 GLuint MaxColorAttachments;
11151 GLuint MaxRenderbufferSize;
11152
11153 GLuint MaxVertexTextureImageUnits;
11154 GLuint MaxVarying;
11155};
11156
11157
11158
11159
11160
11161
11162struct gl_extensions
11163{
11164
11165
11166
11167
11168
11169
11170 GLboolean dummy;
11171 GLboolean ARB_depth_texture;
11172 GLboolean ARB_draw_buffers;
11173 GLboolean ARB_fragment_program;
11174 GLboolean ARB_fragment_shader;
11175 GLboolean ARB_half_float_pixel;
11176 GLboolean ARB_imaging;
11177 GLboolean ARB_multisample;
11178 GLboolean ARB_multitexture;
11179 GLboolean ARB_occlusion_query;
11180 GLboolean ARB_point_sprite;
11181 GLboolean ARB_shader_objects;
11182 GLboolean ARB_shading_language_100;
11183 GLboolean ARB_shading_language_120;
11184 GLboolean ARB_shadow;
11185 GLboolean ARB_texture_border_clamp;
11186 GLboolean ARB_texture_compression;
11187 GLboolean ARB_texture_cube_map;
11188 GLboolean ARB_texture_env_combine;
11189 GLboolean ARB_texture_env_crossbar;
11190 GLboolean ARB_texture_env_dot3;
11191 GLboolean ARB_texture_float;
11192 GLboolean ARB_texture_mirrored_repeat;
11193 GLboolean ARB_texture_non_power_of_two;
11194 GLboolean ARB_transpose_matrix;
11195 GLboolean ARB_vertex_buffer_object;
11196 GLboolean ARB_vertex_program;
11197 GLboolean ARB_vertex_shader;
11198 GLboolean ARB_window_pos;
11199 GLboolean EXT_abgr;
11200 GLboolean EXT_bgra;
11201 GLboolean EXT_blend_color;
11202 GLboolean EXT_blend_equation_separate;
11203 GLboolean EXT_blend_func_separate;
11204 GLboolean EXT_blend_logic_op;
11205 GLboolean EXT_blend_minmax;
11206 GLboolean EXT_blend_subtract;
11207 GLboolean EXT_clip_volume_hint;
11208 GLboolean EXT_cull_vertex;
11209 GLboolean EXT_convolution;
11210 GLboolean EXT_compiled_vertex_array;
11211 GLboolean EXT_copy_texture;
11212 GLboolean EXT_depth_bounds_test;
11213 GLboolean EXT_draw_range_elements;
11214 GLboolean EXT_framebuffer_object;
11215 GLboolean EXT_fog_coord;
11216 GLboolean EXT_framebuffer_blit;
11217 GLboolean EXT_gpu_program_parameters;
11218 GLboolean EXT_histogram;
11219 GLboolean EXT_multi_draw_arrays;
11220 GLboolean EXT_paletted_texture;
11221 GLboolean EXT_packed_depth_stencil;
11222 GLboolean EXT_packed_pixels;
11223 GLboolean EXT_pixel_buffer_object;
11224 GLboolean EXT_point_parameters;
11225 GLboolean EXT_polygon_offset;
11226 GLboolean EXT_rescale_normal;
11227 GLboolean EXT_shadow_funcs;
11228 GLboolean EXT_secondary_color;
11229 GLboolean EXT_separate_specular_color;
11230 GLboolean EXT_shared_texture_palette;
11231 GLboolean EXT_stencil_wrap;
11232 GLboolean EXT_stencil_two_side;
11233 GLboolean EXT_subtexture;
11234 GLboolean EXT_texture;
11235 GLboolean EXT_texture_object;
11236 GLboolean EXT_texture3D;
11237 GLboolean EXT_texture_compression_s3tc;
11238 GLboolean EXT_texture_env_add;
11239 GLboolean EXT_texture_env_combine;
11240 GLboolean EXT_texture_env_dot3;
11241 GLboolean EXT_texture_filter_anisotropic;
11242 GLboolean EXT_texture_lod_bias;
11243 GLboolean EXT_texture_mirror_clamp;
11244 GLboolean EXT_texture_sRGB;
11245 GLboolean EXT_timer_query;
11246 GLboolean EXT_vertex_array;
11247 GLboolean EXT_vertex_array_set;
11248
11249 GLboolean APPLE_client_storage;
11250 GLboolean APPLE_packed_pixels;
11251 GLboolean APPLE_vertex_array_object;
11252 GLboolean ATI_texture_mirror_once;
11253 GLboolean ATI_texture_env_combine3;
11254 GLboolean ATI_fragment_shader;
11255 GLboolean ATI_separate_stencil;
11256 GLboolean IBM_rasterpos_clip;
11257 GLboolean IBM_multimode_draw_arrays;
11258 GLboolean MESA_pack_invert;
11259 GLboolean MESA_packed_depth_stencil;
11260 GLboolean MESA_program_debug;
11261 GLboolean MESA_resize_buffers;
11262 GLboolean MESA_ycbcr_texture;
11263 GLboolean NV_blend_square;
11264 GLboolean NV_fragment_program;
11265 GLboolean NV_light_max_exponent;
11266 GLboolean NV_point_sprite;
11267 GLboolean NV_texgen_reflection;
11268 GLboolean NV_texture_rectangle;
11269 GLboolean NV_vertex_program;
11270 GLboolean NV_vertex_program1_1;
11271 GLboolean OES_read_format;
11272 GLboolean SGI_color_matrix;
11273 GLboolean SGI_color_table;
11274 GLboolean SGI_texture_color_table;
11275 GLboolean SGIS_generate_mipmap;
11276 GLboolean SGIS_texture_edge_clamp;
11277 GLboolean SGIS_texture_lod;
11278 GLboolean SGIX_depth_texture;
11279 GLboolean SGIX_shadow;
11280 GLboolean SGIX_shadow_ambient;
11281 GLboolean TDFX_texture_compression_FXT1;
11282 GLboolean S3_s3tc;
11283
11284
11285 const GLubyte *String;
11286};
11287
11288
11289
11290
11291
11292struct gl_matrix_stack
11293{
11294 GLmatrix *Top;
11295 GLmatrix *Stack;
11296 GLuint Depth;
11297 GLuint MaxDepth;
11298 GLuint DirtyFlag;
11299};
11300# 2789 "./mtypes.h"
11301union node;
11302typedef union node Node;
11303
11304
11305
11306# 1 "./dd.h" 1
11307# 36 "./dd.h"
11308struct gl_pixelstore_attrib;
11309struct mesa_display_list;
11310# 52 "./dd.h"
11311struct dd_function_table {
11312
11313
11314
11315
11316
11317 const GLubyte * (*GetString)( GLcontext *ctx, GLenum name );
11318
11319
11320
11321
11322
11323
11324
11325 void (*UpdateState)( GLcontext *ctx, GLbitfield new_state );
11326
11327
11328
11329
11330
11331
11332
11333 void (*GetBufferSize)( GLframebuffer *buffer,
11334 GLuint *width, GLuint *height );
11335
11336
11337
11338
11339
11340 void (*ResizeBuffers)( GLcontext *ctx, GLframebuffer *fb,
11341 GLuint width, GLuint height);
11342
11343
11344
11345
11346
11347 void (*Error)( GLcontext *ctx );
11348
11349
11350
11351
11352 void (*Finish)( GLcontext *ctx );
11353
11354
11355
11356
11357 void (*Flush)( GLcontext *ctx );
11358
11359
11360
11361
11362
11363
11364 void (*Clear)( GLcontext *ctx, GLbitfield buffers );
11365
11366
11367
11368
11369 void (*Accum)( GLcontext *ctx, GLenum op, GLfloat value );
11370# 122 "./dd.h"
11371 void (*DrawPixels)( GLcontext *ctx,
11372 GLint x, GLint y, GLsizei width, GLsizei height,
11373 GLenum format, GLenum type,
11374 const struct gl_pixelstore_attrib *unpack,
11375 const GLvoid *pixels );
11376
11377
11378
11379
11380 void (*ReadPixels)( GLcontext *ctx,
11381 GLint x, GLint y, GLsizei width, GLsizei height,
11382 GLenum format, GLenum type,
11383 const struct gl_pixelstore_attrib *unpack,
11384 GLvoid *dest );
11385
11386
11387
11388
11389 void (*CopyPixels)( GLcontext *ctx, GLint srcx, GLint srcy,
11390 GLsizei width, GLsizei height,
11391 GLint dstx, GLint dsty, GLenum type );
11392
11393
11394
11395
11396 void (*Bitmap)( GLcontext *ctx,
11397 GLint x, GLint y, GLsizei width, GLsizei height,
11398 const struct gl_pixelstore_attrib *unpack,
11399 const GLubyte *bitmap );
11400# 166 "./dd.h"
11401 const struct gl_texture_format *(*ChooseTextureFormat)( GLcontext *ctx,
11402 GLint internalFormat, GLenum srcFormat, GLenum srcType );
11403# 186 "./dd.h"
11404 void (*TexImage1D)( GLcontext *ctx, GLenum target, GLint level,
11405 GLint internalFormat,
11406 GLint width, GLint border,
11407 GLenum format, GLenum type, const GLvoid *pixels,
11408 const struct gl_pixelstore_attrib *packing,
11409 struct gl_texture_object *texObj,
11410 struct gl_texture_image *texImage );
11411
11412
11413
11414
11415
11416
11417 void (*TexImage2D)( GLcontext *ctx, GLenum target, GLint level,
11418 GLint internalFormat,
11419 GLint width, GLint height, GLint border,
11420 GLenum format, GLenum type, const GLvoid *pixels,
11421 const struct gl_pixelstore_attrib *packing,
11422 struct gl_texture_object *texObj,
11423 struct gl_texture_image *texImage );
11424
11425
11426
11427
11428
11429
11430 void (*TexImage3D)( GLcontext *ctx, GLenum target, GLint level,
11431 GLint internalFormat,
11432 GLint width, GLint height, GLint depth, GLint border,
11433 GLenum format, GLenum type, const GLvoid *pixels,
11434 const struct gl_pixelstore_attrib *packing,
11435 struct gl_texture_object *texObj,
11436 struct gl_texture_image *texImage );
11437# 241 "./dd.h"
11438 void (*TexSubImage1D)( GLcontext *ctx, GLenum target, GLint level,
11439 GLint xoffset, GLsizei width,
11440 GLenum format, GLenum type,
11441 const GLvoid *pixels,
11442 const struct gl_pixelstore_attrib *packing,
11443 struct gl_texture_object *texObj,
11444 struct gl_texture_image *texImage );
11445
11446
11447
11448
11449
11450
11451 void (*TexSubImage2D)( GLcontext *ctx, GLenum target, GLint level,
11452 GLint xoffset, GLint yoffset,
11453 GLsizei width, GLsizei height,
11454 GLenum format, GLenum type,
11455 const GLvoid *pixels,
11456 const struct gl_pixelstore_attrib *packing,
11457 struct gl_texture_object *texObj,
11458 struct gl_texture_image *texImage );
11459
11460
11461
11462
11463
11464
11465 void (*TexSubImage3D)( GLcontext *ctx, GLenum target, GLint level,
11466 GLint xoffset, GLint yoffset, GLint zoffset,
11467 GLsizei width, GLsizei height, GLint depth,
11468 GLenum format, GLenum type,
11469 const GLvoid *pixels,
11470 const struct gl_pixelstore_attrib *packing,
11471 struct gl_texture_object *texObj,
11472 struct gl_texture_image *texImage );
11473
11474
11475
11476
11477 void (*GetTexImage)( GLcontext *ctx, GLenum target, GLint level,
11478 GLenum format, GLenum type, GLvoid *pixels,
11479 struct gl_texture_object *texObj,
11480 struct gl_texture_image *texImage );
11481
11482
11483
11484
11485
11486
11487 void (*CopyTexImage1D)( GLcontext *ctx, GLenum target, GLint level,
11488 GLenum internalFormat, GLint x, GLint y,
11489 GLsizei width, GLint border );
11490
11491
11492
11493
11494
11495
11496 void (*CopyTexImage2D)( GLcontext *ctx, GLenum target, GLint level,
11497 GLenum internalFormat, GLint x, GLint y,
11498 GLsizei width, GLsizei height, GLint border );
11499
11500
11501
11502
11503
11504
11505 void (*CopyTexSubImage1D)( GLcontext *ctx, GLenum target, GLint level,
11506 GLint xoffset,
11507 GLint x, GLint y, GLsizei width );
11508
11509
11510
11511
11512
11513 void (*CopyTexSubImage2D)( GLcontext *ctx, GLenum target, GLint level,
11514 GLint xoffset, GLint yoffset,
11515 GLint x, GLint y,
11516 GLsizei width, GLsizei height );
11517
11518
11519
11520
11521
11522 void (*CopyTexSubImage3D)( GLcontext *ctx, GLenum target, GLint level,
11523 GLint xoffset, GLint yoffset, GLint zoffset,
11524 GLint x, GLint y,
11525 GLsizei width, GLsizei height );
11526
11527
11528
11529
11530
11531
11532
11533 GLboolean (*TestProxyTexImage)(GLcontext *ctx, GLenum target,
11534 GLint level, GLint internalFormat,
11535 GLenum format, GLenum type,
11536 GLint width, GLint height,
11537 GLint depth, GLint border);
11538# 364 "./dd.h"
11539 void (*CompressedTexImage1D)( GLcontext *ctx, GLenum target,
11540 GLint level, GLint internalFormat,
11541 GLsizei width, GLint border,
11542 GLsizei imageSize, const GLvoid *data,
11543 struct gl_texture_object *texObj,
11544 struct gl_texture_image *texImage );
11545
11546
11547
11548
11549
11550 void (*CompressedTexImage2D)( GLcontext *ctx, GLenum target,
11551 GLint level, GLint internalFormat,
11552 GLsizei width, GLsizei height, GLint border,
11553 GLsizei imageSize, const GLvoid *data,
11554 struct gl_texture_object *texObj,
11555 struct gl_texture_image *texImage );
11556
11557
11558
11559
11560
11561 void (*CompressedTexImage3D)( GLcontext *ctx, GLenum target,
11562 GLint level, GLint internalFormat,
11563 GLsizei width, GLsizei height, GLsizei depth,
11564 GLint border,
11565 GLsizei imageSize, const GLvoid *data,
11566 struct gl_texture_object *texObj,
11567 struct gl_texture_image *texImage );
11568# 411 "./dd.h"
11569 void (*CompressedTexSubImage1D)(GLcontext *ctx, GLenum target, GLint level,
11570 GLint xoffset, GLsizei width,
11571 GLenum format,
11572 GLsizei imageSize, const GLvoid *data,
11573 struct gl_texture_object *texObj,
11574 struct gl_texture_image *texImage);
11575
11576
11577
11578
11579
11580 void (*CompressedTexSubImage2D)(GLcontext *ctx, GLenum target, GLint level,
11581 GLint xoffset, GLint yoffset,
11582 GLsizei width, GLint height,
11583 GLenum format,
11584 GLsizei imageSize, const GLvoid *data,
11585 struct gl_texture_object *texObj,
11586 struct gl_texture_image *texImage);
11587
11588
11589
11590
11591
11592 void (*CompressedTexSubImage3D)(GLcontext *ctx, GLenum target, GLint level,
11593 GLint xoffset, GLint yoffset, GLint zoffset,
11594 GLsizei width, GLint height, GLint depth,
11595 GLenum format,
11596 GLsizei imageSize, const GLvoid *data,
11597 struct gl_texture_object *texObj,
11598 struct gl_texture_image *texImage);
11599
11600
11601
11602
11603
11604 void (*GetCompressedTexImage)(GLcontext *ctx, GLenum target, GLint level,
11605 GLvoid *img,
11606 const struct gl_texture_object *texObj,
11607 const struct gl_texture_image *texImage);
11608
11609
11610
11611
11612
11613 GLuint (*CompressedTextureSize)( GLcontext *ctx, GLsizei width,
11614 GLsizei height, GLsizei depth,
11615 GLenum format );
11616# 468 "./dd.h"
11617 void (*BindTexture)( GLcontext *ctx, GLenum target,
11618 struct gl_texture_object *tObj );
11619
11620
11621
11622
11623
11624
11625 struct gl_texture_object * (*NewTextureObject)( GLcontext *ctx, GLuint name,
11626 GLenum target );
11627
11628
11629
11630
11631
11632
11633 void (*DeleteTexture)( GLcontext *ctx, struct gl_texture_object *tObj );
11634
11635
11636
11637
11638 struct gl_texture_image * (*NewTextureImage)( GLcontext *ctx );
11639
11640
11641
11642
11643 void (*FreeTexImageData)( GLcontext *ctx, struct gl_texture_image *tImage );
11644# 507 "./dd.h"
11645 void* (*TextureMemCpy)( void *to, const void *from, size_t sz );
11646
11647
11648
11649
11650 GLboolean (*IsTextureResident)( GLcontext *ctx,
11651 struct gl_texture_object *t );
11652
11653
11654
11655
11656 void (*PrioritizeTexture)( GLcontext *ctx, struct gl_texture_object *t,
11657 GLclampf priority );
11658
11659
11660
11661
11662 void (*ActiveTexture)( GLcontext *ctx, GLuint texUnitNumber );
11663
11664
11665
11666
11667
11668
11669
11670 void (*UpdateTexturePalette)( GLcontext *ctx,
11671 struct gl_texture_object *tObj );
11672
11673
11674
11675
11676
11677
11678
11679 void (*CopyColorTable)( GLcontext *ctx,
11680 GLenum target, GLenum internalformat,
11681 GLint x, GLint y, GLsizei width );
11682
11683 void (*CopyColorSubTable)( GLcontext *ctx,
11684 GLenum target, GLsizei start,
11685 GLint x, GLint y, GLsizei width );
11686
11687 void (*CopyConvolutionFilter1D)( GLcontext *ctx, GLenum target,
11688 GLenum internalFormat,
11689 GLint x, GLint y, GLsizei width );
11690
11691 void (*CopyConvolutionFilter2D)( GLcontext *ctx, GLenum target,
11692 GLenum internalFormat,
11693 GLint x, GLint y,
11694 GLsizei width, GLsizei height );
11695# 565 "./dd.h"
11696 void (*BindProgram)(GLcontext *ctx, GLenum target, struct gl_program *prog);
11697
11698 struct gl_program * (*NewProgram)(GLcontext *ctx, GLenum target, GLuint id);
11699
11700 void (*DeleteProgram)(GLcontext *ctx, struct gl_program *prog);
11701
11702 void (*ProgramStringNotify)(GLcontext *ctx, GLenum target,
11703 struct gl_program *prog);
11704
11705 void (*GetProgramRegister)(GLcontext *ctx, enum register_file file,
11706 GLuint index, GLfloat val[4]);
11707
11708
11709 GLboolean (*IsProgramNative)(GLcontext *ctx, GLenum target,
11710 struct gl_program *prog);
11711# 595 "./dd.h"
11712 void (*AlphaFunc)(GLcontext *ctx, GLenum func, GLfloat ref);
11713
11714 void (*BlendColor)(GLcontext *ctx, const GLfloat color[4]);
11715
11716 void (*BlendEquationSeparate)(GLcontext *ctx, GLenum modeRGB, GLenum modeA);
11717
11718 void (*BlendFuncSeparate)(GLcontext *ctx,
11719 GLenum sfactorRGB, GLenum dfactorRGB,
11720 GLenum sfactorA, GLenum dfactorA);
11721
11722 void (*ClearColor)(GLcontext *ctx, const GLfloat color[4]);
11723
11724 void (*ClearDepth)(GLcontext *ctx, GLclampd d);
11725
11726 void (*ClearIndex)(GLcontext *ctx, GLuint index);
11727
11728 void (*ClearStencil)(GLcontext *ctx, GLint s);
11729
11730 void (*ClipPlane)(GLcontext *ctx, GLenum plane, const GLfloat *equation );
11731
11732 void (*ColorMask)(GLcontext *ctx, GLboolean rmask, GLboolean gmask,
11733 GLboolean bmask, GLboolean amask );
11734
11735 void (*ColorMaterial)(GLcontext *ctx, GLenum face, GLenum mode);
11736
11737 void (*CullFace)(GLcontext *ctx, GLenum mode);
11738
11739 void (*FrontFace)(GLcontext *ctx, GLenum mode);
11740
11741 void (*DepthFunc)(GLcontext *ctx, GLenum func);
11742
11743 void (*DepthMask)(GLcontext *ctx, GLboolean flag);
11744
11745 void (*DepthRange)(GLcontext *ctx, GLclampd nearval, GLclampd farval);
11746
11747 void (*DrawBuffer)( GLcontext *ctx, GLenum buffer );
11748
11749 void (*DrawBuffers)( GLcontext *ctx, GLsizei n, const GLenum *buffers );
11750
11751 void (*Enable)(GLcontext *ctx, GLenum cap, GLboolean state);
11752
11753 void (*Fogfv)(GLcontext *ctx, GLenum pname, const GLfloat *params);
11754
11755 void (*Hint)(GLcontext *ctx, GLenum target, GLenum mode);
11756
11757 void (*IndexMask)(GLcontext *ctx, GLuint mask);
11758
11759
11760
11761
11762 void (*Lightfv)(GLcontext *ctx, GLenum light,
11763 GLenum pname, const GLfloat *params );
11764
11765 void (*LightModelfv)(GLcontext *ctx, GLenum pname, const GLfloat *params);
11766
11767 void (*LineStipple)(GLcontext *ctx, GLint factor, GLushort pattern );
11768
11769 void (*LineWidth)(GLcontext *ctx, GLfloat width);
11770
11771 void (*LogicOpcode)(GLcontext *ctx, GLenum opcode);
11772 void (*PointParameterfv)(GLcontext *ctx, GLenum pname,
11773 const GLfloat *params);
11774
11775 void (*PointSize)(GLcontext *ctx, GLfloat size);
11776
11777 void (*PolygonMode)(GLcontext *ctx, GLenum face, GLenum mode);
11778
11779 void (*PolygonOffset)(GLcontext *ctx, GLfloat factor, GLfloat units);
11780
11781 void (*PolygonStipple)(GLcontext *ctx, const GLubyte *mask );
11782
11783 void (*ReadBuffer)( GLcontext *ctx, GLenum buffer );
11784
11785 void (*RenderMode)(GLcontext *ctx, GLenum mode );
11786
11787 void (*Scissor)(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h);
11788
11789 void (*ShadeModel)(GLcontext *ctx, GLenum mode);
11790
11791 void (*StencilFuncSeparate)(GLcontext *ctx, GLenum face, GLenum func,
11792 GLint ref, GLuint mask);
11793
11794 void (*StencilMaskSeparate)(GLcontext *ctx, GLenum face, GLuint mask);
11795
11796 void (*StencilOpSeparate)(GLcontext *ctx, GLenum face, GLenum fail,
11797 GLenum zfail, GLenum zpass);
11798
11799 void (*TexGen)(GLcontext *ctx, GLenum coord, GLenum pname,
11800 const GLfloat *params);
11801
11802 void (*TexEnv)(GLcontext *ctx, GLenum target, GLenum pname,
11803 const GLfloat *param);
11804
11805 void (*TexParameter)(GLcontext *ctx, GLenum target,
11806 struct gl_texture_object *texObj,
11807 GLenum pname, const GLfloat *params);
11808 void (*TextureMatrix)(GLcontext *ctx, GLuint unit, const GLmatrix *mat);
11809
11810 void (*Viewport)(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h);
11811# 703 "./dd.h"
11812 void (*VertexPointer)(GLcontext *ctx, GLint size, GLenum type,
11813 GLsizei stride, const GLvoid *ptr);
11814 void (*NormalPointer)(GLcontext *ctx, GLenum type,
11815 GLsizei stride, const GLvoid *ptr);
11816 void (*ColorPointer)(GLcontext *ctx, GLint size, GLenum type,
11817 GLsizei stride, const GLvoid *ptr);
11818 void (*FogCoordPointer)(GLcontext *ctx, GLenum type,
11819 GLsizei stride, const GLvoid *ptr);
11820 void (*IndexPointer)(GLcontext *ctx, GLenum type,
11821 GLsizei stride, const GLvoid *ptr);
11822 void (*SecondaryColorPointer)(GLcontext *ctx, GLint size, GLenum type,
11823 GLsizei stride, const GLvoid *ptr);
11824 void (*TexCoordPointer)(GLcontext *ctx, GLint size, GLenum type,
11825 GLsizei stride, const GLvoid *ptr);
11826 void (*EdgeFlagPointer)(GLcontext *ctx, GLsizei stride, const GLvoid *ptr);
11827 void (*VertexAttribPointer)(GLcontext *ctx, GLuint index, GLint size,
11828 GLenum type, GLsizei stride, const GLvoid *ptr);
11829 void (*LockArraysEXT)( GLcontext *ctx, GLint first, GLsizei count );
11830 void (*UnlockArraysEXT)( GLcontext *ctx );
11831# 732 "./dd.h"
11832 GLboolean (*GetBooleanv)(GLcontext *ctx, GLenum pname, GLboolean *result);
11833
11834 GLboolean (*GetDoublev)(GLcontext *ctx, GLenum pname, GLdouble *result);
11835
11836 GLboolean (*GetFloatv)(GLcontext *ctx, GLenum pname, GLfloat *result);
11837
11838 GLboolean (*GetIntegerv)(GLcontext *ctx, GLenum pname, GLint *result);
11839
11840 GLboolean (*GetPointerv)(GLcontext *ctx, GLenum pname, GLvoid **result);
11841# 749 "./dd.h"
11842 void (*BindBuffer)( GLcontext *ctx, GLenum target,
11843 struct gl_buffer_object *obj );
11844
11845 struct gl_buffer_object * (*NewBufferObject)( GLcontext *ctx, GLuint buffer,
11846 GLenum target );
11847
11848 void (*DeleteBuffer)( GLcontext *ctx, struct gl_buffer_object *obj );
11849
11850 void (*BufferData)( GLcontext *ctx, GLenum target, GLsizeiptrARB size,
11851 const GLvoid *data, GLenum usage,
11852 struct gl_buffer_object *obj );
11853
11854 void (*BufferSubData)( GLcontext *ctx, GLenum target, GLintptrARB offset,
11855 GLsizeiptrARB size, const GLvoid *data,
11856 struct gl_buffer_object *obj );
11857
11858 void (*GetBufferSubData)( GLcontext *ctx, GLenum target,
11859 GLintptrARB offset, GLsizeiptrARB size,
11860 GLvoid *data, struct gl_buffer_object *obj );
11861
11862 void * (*MapBuffer)( GLcontext *ctx, GLenum target, GLenum access,
11863 struct gl_buffer_object *obj );
11864
11865 GLboolean (*UnmapBuffer)( GLcontext *ctx, GLenum target,
11866 struct gl_buffer_object *obj );
11867# 782 "./dd.h"
11868 struct gl_framebuffer * (*NewFramebuffer)(GLcontext *ctx, GLuint name);
11869 struct gl_renderbuffer * (*NewRenderbuffer)(GLcontext *ctx, GLuint name);
11870 void (*BindFramebuffer)(GLcontext *ctx, GLenum target,
11871 struct gl_framebuffer *fb);
11872 void (*FramebufferRenderbuffer)(GLcontext *ctx,
11873 struct gl_framebuffer *fb,
11874 GLenum attachment,
11875 struct gl_renderbuffer *rb);
11876 void (*RenderTexture)(GLcontext *ctx,
11877 struct gl_framebuffer *fb,
11878 struct gl_renderbuffer_attachment *att);
11879 void (*FinishRenderTexture)(GLcontext *ctx,
11880 struct gl_renderbuffer_attachment *att);
11881
11882
11883
11884 void (*BlitFramebuffer)(GLcontext *ctx,
11885 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
11886 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
11887 GLbitfield mask, GLenum filter);
11888
11889
11890
11891
11892
11893
11894 struct gl_query_object * (*NewQueryObject)(GLcontext *ctx, GLuint id);
11895 void (*BeginQuery)(GLcontext *ctx, GLenum target,
11896 struct gl_query_object *q);
11897 void (*EndQuery)(GLcontext *ctx, GLenum target, struct gl_query_object *q);
11898
11899
11900
11901
11902
11903
11904
11905 struct gl_array_object * (*NewArrayObject)(GLcontext *ctx, GLuint id);
11906 void (*DeleteArrayObject)(GLcontext *ctx, struct gl_array_object *obj);
11907 void (*BindArrayObject)(GLcontext *ctx, struct gl_array_object *obj);
11908
11909
11910
11911
11912
11913
11914 void (*AttachShader)(GLcontext *ctx, GLuint program, GLuint shader);
11915 void (*BindAttribLocation)(GLcontext *ctx, GLuint program, GLuint index,
11916 const GLcharARB *name);
11917 void (*CompileShader)(GLcontext *ctx, GLuint shader);
11918 GLuint (*CreateShader)(GLcontext *ctx, GLenum type);
11919 GLuint (*CreateProgram)(GLcontext *ctx);
11920 void (*DeleteProgram2)(GLcontext *ctx, GLuint program);
11921 void (*DeleteShader)(GLcontext *ctx, GLuint shader);
11922 void (*DetachShader)(GLcontext *ctx, GLuint program, GLuint shader);
11923 void (*GetActiveAttrib)(GLcontext *ctx, GLuint program, GLuint index,
11924 GLsizei maxLength, GLsizei * length, GLint * size,
11925 GLenum * type, GLcharARB * name);
11926 void (*GetActiveUniform)(GLcontext *ctx, GLuint program, GLuint index,
11927 GLsizei maxLength, GLsizei *length, GLint *size,
11928 GLenum *type, GLcharARB *name);
11929 void (*GetAttachedShaders)(GLcontext *ctx, GLuint program, GLsizei maxCount,
11930 GLsizei *count, GLuint *obj);
11931 GLint (*GetAttribLocation)(GLcontext *ctx, GLuint program,
11932 const GLcharARB *name);
11933 GLuint (*GetHandle)(GLcontext *ctx, GLenum pname);
11934 void (*GetProgramiv)(GLcontext *ctx, GLuint program,
11935 GLenum pname, GLint *params);
11936 void (*GetProgramInfoLog)(GLcontext *ctx, GLuint program, GLsizei bufSize,
11937 GLsizei *length, GLchar *infoLog);
11938 void (*GetShaderiv)(GLcontext *ctx, GLuint shader,
11939 GLenum pname, GLint *params);
11940 void (*GetShaderInfoLog)(GLcontext *ctx, GLuint shader, GLsizei bufSize,
11941 GLsizei *length, GLchar *infoLog);
11942 void (*GetShaderSource)(GLcontext *ctx, GLuint shader, GLsizei maxLength,
11943 GLsizei *length, GLcharARB *sourceOut);
11944 void (*GetUniformfv)(GLcontext *ctx, GLuint program, GLint location,
11945 GLfloat *params);
11946 GLint (*GetUniformLocation)(GLcontext *ctx, GLuint program,
11947 const GLcharARB *name);
11948 GLboolean (*IsProgram)(GLcontext *ctx, GLuint name);
11949 GLboolean (*IsShader)(GLcontext *ctx, GLuint name);
11950 void (*LinkProgram)(GLcontext *ctx, GLuint program);
11951 void (*ShaderSource)(GLcontext *ctx, GLuint shader, const GLchar *source);
11952 void (*Uniform)(GLcontext *ctx, GLint location, GLsizei count,
11953 const GLvoid *values, GLenum type);
11954 void (*UniformMatrix)(GLcontext *ctx, GLint cols, GLint rows,
11955 GLenum matrixType, GLint location, GLsizei count,
11956 GLboolean transpose, const GLfloat *values);
11957 void (*UseProgram)(GLcontext *ctx, GLuint program);
11958 void (*ValidateProgram)(GLcontext *ctx, GLuint program);
11959# 886 "./dd.h"
11960 GLuint NeedValidate;
11961# 899 "./dd.h"
11962 void (*ValidateTnlModule)( GLcontext *ctx, GLuint new_state );
11963# 911 "./dd.h"
11964 GLuint CurrentExecPrimitive;
11965
11966
11967
11968
11969
11970
11971
11972 GLuint CurrentSavePrimitive;
11973# 932 "./dd.h"
11974 GLuint NeedFlush;
11975 GLuint SaveNeedFlush;
11976# 944 "./dd.h"
11977 void (*FlushVertices)( GLcontext *ctx, GLuint flags );
11978 void (*SaveFlushVertices)( GLcontext *ctx );
11979
11980
11981
11982
11983
11984
11985 GLboolean (*NotifySaveBegin)( GLcontext *ctx, GLenum mode );
11986
11987
11988
11989
11990
11991 void (*LightingSpaceChange)( GLcontext *ctx );
11992
11993
11994
11995
11996
11997
11998
11999 void (*NewList)( GLcontext *ctx, GLuint list, GLenum mode );
12000
12001
12002
12003
12004
12005 void (*EndList)( GLcontext *ctx );
12006
12007
12008
12009
12010
12011
12012 void (*BeginCallList)( GLcontext *ctx,
12013 struct mesa_display_list *dlist );
12014
12015
12016
12017
12018
12019 void (*EndCallList)( GLcontext *ctx );
12020
12021};
12022# 1009 "./dd.h"
12023typedef struct {
12024
12025
12026
12027
12028 void ( * ArrayElement)( GLint );
12029 void ( * Color3f)( GLfloat, GLfloat, GLfloat );
12030 void ( * Color3fv)( const GLfloat * );
12031 void ( * Color4f)( GLfloat, GLfloat, GLfloat, GLfloat );
12032 void ( * Color4fv)( const GLfloat * );
12033 void ( * EdgeFlag)( GLboolean );
12034 void ( * EvalCoord1f)( GLfloat );
12035 void ( * EvalCoord1fv)( const GLfloat * );
12036 void ( * EvalCoord2f)( GLfloat, GLfloat );
12037 void ( * EvalCoord2fv)( const GLfloat * );
12038 void ( * EvalPoint1)( GLint );
12039 void ( * EvalPoint2)( GLint, GLint );
12040 void ( * FogCoordfEXT)( GLfloat );
12041 void ( * FogCoordfvEXT)( const GLfloat * );
12042 void ( * Indexf)( GLfloat );
12043 void ( * Indexfv)( const GLfloat * );
12044 void ( * Materialfv)( GLenum face, GLenum pname, const GLfloat * );
12045 void ( * MultiTexCoord1fARB)( GLenum, GLfloat );
12046 void ( * MultiTexCoord1fvARB)( GLenum, const GLfloat * );
12047 void ( * MultiTexCoord2fARB)( GLenum, GLfloat, GLfloat );
12048 void ( * MultiTexCoord2fvARB)( GLenum, const GLfloat * );
12049 void ( * MultiTexCoord3fARB)( GLenum, GLfloat, GLfloat, GLfloat );
12050 void ( * MultiTexCoord3fvARB)( GLenum, const GLfloat * );
12051 void ( * MultiTexCoord4fARB)( GLenum, GLfloat, GLfloat, GLfloat, GLfloat );
12052 void ( * MultiTexCoord4fvARB)( GLenum, const GLfloat * );
12053 void ( * Normal3f)( GLfloat, GLfloat, GLfloat );
12054 void ( * Normal3fv)( const GLfloat * );
12055 void ( * SecondaryColor3fEXT)( GLfloat, GLfloat, GLfloat );
12056 void ( * SecondaryColor3fvEXT)( const GLfloat * );
12057 void ( * TexCoord1f)( GLfloat );
12058 void ( * TexCoord1fv)( const GLfloat * );
12059 void ( * TexCoord2f)( GLfloat, GLfloat );
12060 void ( * TexCoord2fv)( const GLfloat * );
12061 void ( * TexCoord3f)( GLfloat, GLfloat, GLfloat );
12062 void ( * TexCoord3fv)( const GLfloat * );
12063 void ( * TexCoord4f)( GLfloat, GLfloat, GLfloat, GLfloat );
12064 void ( * TexCoord4fv)( const GLfloat * );
12065 void ( * Vertex2f)( GLfloat, GLfloat );
12066 void ( * Vertex2fv)( const GLfloat * );
12067 void ( * Vertex3f)( GLfloat, GLfloat, GLfloat );
12068 void ( * Vertex3fv)( const GLfloat * );
12069 void ( * Vertex4f)( GLfloat, GLfloat, GLfloat, GLfloat );
12070 void ( * Vertex4fv)( const GLfloat * );
12071 void ( * CallList)( GLuint );
12072 void ( * CallLists)( GLsizei, GLenum, const GLvoid * );
12073 void ( * Begin)( GLenum );
12074 void ( * End)( void );
12075
12076 void ( * VertexAttrib1fNV)( GLuint index, GLfloat x );
12077 void ( * VertexAttrib1fvNV)( GLuint index, const GLfloat *v );
12078 void ( * VertexAttrib2fNV)( GLuint index, GLfloat x, GLfloat y );
12079 void ( * VertexAttrib2fvNV)( GLuint index, const GLfloat *v );
12080 void ( * VertexAttrib3fNV)( GLuint index, GLfloat x, GLfloat y, GLfloat z );
12081 void ( * VertexAttrib3fvNV)( GLuint index, const GLfloat *v );
12082 void ( * VertexAttrib4fNV)( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w );
12083 void ( * VertexAttrib4fvNV)( GLuint index, const GLfloat *v );
12084
12085 void ( * VertexAttrib1fARB)( GLuint index, GLfloat x );
12086 void ( * VertexAttrib1fvARB)( GLuint index, const GLfloat *v );
12087 void ( * VertexAttrib2fARB)( GLuint index, GLfloat x, GLfloat y );
12088 void ( * VertexAttrib2fvARB)( GLuint index, const GLfloat *v );
12089 void ( * VertexAttrib3fARB)( GLuint index, GLfloat x, GLfloat y, GLfloat z );
12090 void ( * VertexAttrib3fvARB)( GLuint index, const GLfloat *v );
12091 void ( * VertexAttrib4fARB)( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w );
12092 void ( * VertexAttrib4fvARB)( GLuint index, const GLfloat *v );
12093
12094
12095
12096
12097
12098 void ( * Rectf)( GLfloat, GLfloat, GLfloat, GLfloat );
12099
12100
12101
12102
12103
12104 void ( * DrawArrays)( GLenum mode, GLint start, GLsizei count );
12105 void ( * DrawElements)( GLenum mode, GLsizei count, GLenum type,
12106 const GLvoid *indices );
12107 void ( * DrawRangeElements)( GLenum mode, GLuint start,
12108 GLuint end, GLsizei count,
12109 GLenum type, const GLvoid *indices );
12110# 1109 "./dd.h"
12111 void ( * EvalMesh1)( GLenum mode, GLint i1, GLint i2 );
12112 void ( * EvalMesh2)( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
12113
12114
12115} GLvertexformat;
12116# 2795 "./mtypes.h" 2
12117
12118
12119
12120
12121
12122
12123
12124struct gl_tnl_module
12125{
12126
12127
12128
12129 const GLvertexformat *Current;
12130
12131
12132
12133
12134
12135
12136 struct {
12137 _glapi_proc * location;
12138 _glapi_proc function;
12139 } Swapped[(sizeof(GLvertexformat) / sizeof(void *))];
12140 GLuint SwapCount;
12141
12142};
12143# 2832 "./mtypes.h"
12144struct mesa_display_list
12145{
12146 Node *node;
12147 GLuint id;
12148 GLbitfield flags;
12149};
12150
12151
12152
12153
12154
12155struct gl_dlist_state
12156{
12157 GLuint CallDepth;
12158
12159 struct mesa_display_list *CurrentList;
12160 Node *CurrentListPtr;
12161 GLuint CurrentListNum;
12162 Node *CurrentBlock;
12163 GLuint CurrentPos;
12164
12165 GLvertexformat ListVtxfmt;
12166
12167 GLubyte ActiveAttribSize[VERT_ATTRIB_MAX];
12168 GLfloat CurrentAttrib[VERT_ATTRIB_MAX][4];
12169
12170 GLubyte ActiveMaterialSize[12];
12171 GLfloat CurrentMaterial[12][4];
12172
12173 GLubyte ActiveIndex;
12174 GLfloat CurrentIndex;
12175
12176 GLubyte ActiveEdgeFlag;
12177 GLboolean CurrentEdgeFlag;
12178};
12179# 2879 "./mtypes.h"
12180struct __GLcontextRec
12181{
12182
12183 struct gl_shared_state *Shared;
12184
12185
12186
12187 struct _glapi_table *Save;
12188 struct _glapi_table *Exec;
12189 struct _glapi_table *CurrentDispatch;
12190
12191
12192 GLvisual Visual;
12193 GLframebuffer *DrawBuffer;
12194 GLframebuffer *ReadBuffer;
12195 GLframebuffer *WinSysDrawBuffer;
12196 GLframebuffer *WinSysReadBuffer;
12197
12198
12199
12200
12201 struct dd_function_table Driver;
12202
12203 void *DriverCtx;
12204
12205
12206 struct gl_constants Const;
12207
12208
12209
12210 struct gl_matrix_stack ModelviewMatrixStack;
12211 struct gl_matrix_stack ProjectionMatrixStack;
12212 struct gl_matrix_stack ColorMatrixStack;
12213 struct gl_matrix_stack TextureMatrixStack[8];
12214 struct gl_matrix_stack ProgramMatrixStack[8];
12215 struct gl_matrix_stack *CurrentStack;
12216
12217
12218
12219 GLmatrix _ModelProjectMatrix;
12220
12221
12222 struct gl_dlist_state ListState;
12223
12224 GLboolean ExecuteFlag;
12225 GLboolean CompileFlag;
12226
12227
12228 struct gl_extensions Extensions;
12229
12230
12231
12232 GLuint AttribStackDepth;
12233 struct gl_attrib_node *AttribStack[16];
12234# 2941 "./mtypes.h"
12235 struct gl_accum_attrib Accum;
12236 struct gl_colorbuffer_attrib Color;
12237 struct gl_current_attrib Current;
12238 struct gl_depthbuffer_attrib Depth;
12239 struct gl_eval_attrib Eval;
12240 struct gl_fog_attrib Fog;
12241 struct gl_hint_attrib Hint;
12242 struct gl_light_attrib Light;
12243 struct gl_line_attrib Line;
12244 struct gl_list_attrib List;
12245 struct gl_multisample_attrib Multisample;
12246 struct gl_pixel_attrib Pixel;
12247 struct gl_point_attrib Point;
12248 struct gl_polygon_attrib Polygon;
12249 GLuint PolygonStipple[32];
12250 struct gl_scissor_attrib Scissor;
12251 struct gl_stencil_attrib Stencil;
12252 struct gl_texture_attrib Texture;
12253 struct gl_transform_attrib Transform;
12254 struct gl_viewport_attrib Viewport;
12255
12256
12257
12258
12259 GLuint ClientAttribStackDepth;
12260 struct gl_attrib_node *ClientAttribStack[16];
12261
12262
12263
12264
12265 struct gl_array_attrib Array;
12266 struct gl_pixelstore_attrib Pack;
12267 struct gl_pixelstore_attrib Unpack;
12268 struct gl_pixelstore_attrib DefaultPacking;
12269
12270
12271
12272
12273 struct gl_pixelmaps PixelMaps;
12274 struct gl_histogram_attrib Histogram;
12275 struct gl_minmax_attrib MinMax;
12276 struct gl_convolution_attrib Convolution1D;
12277 struct gl_convolution_attrib Convolution2D;
12278 struct gl_convolution_attrib Separable2D;
12279
12280 struct gl_evaluators EvalMap;
12281 struct gl_feedback Feedback;
12282 struct gl_selection Select;
12283
12284 struct gl_color_table ColorTable[3];
12285 struct gl_color_table ProxyColorTable[3];
12286
12287
12288
12289
12290
12291
12292
12293 struct gl_program_state Program;
12294 struct gl_vertex_program_state VertexProgram;
12295 struct gl_fragment_program_state FragmentProgram;
12296 struct gl_ati_fragment_shader_state ATIFragmentShader;
12297
12298 struct gl_query_state Query;
12299
12300 struct gl_shader_state Shader;
12301
12302
12303
12304 struct gl_renderbuffer *CurrentRenderbuffer;
12305
12306
12307 GLenum ErrorValue;
12308 GLenum RenderMode;
12309 GLbitfield NewState;
12310
12311
12312
12313 GLbitfield _TriangleCaps;
12314 GLbitfield _ImageTransferState;
12315 GLfloat _EyeZDir[3];
12316 GLfloat _ModelViewInvScale;
12317 GLboolean _NeedEyeCoords;
12318 GLboolean _ForceEyeCoords;
12319 GLenum _CurrentProgram;
12320
12321 GLuint TextureStateTimestamp;
12322
12323 struct gl_shine_tab *_ShineTable[2];
12324 struct gl_shine_tab *_ShineTabList;
12325
12326
12327 struct gl_list_extensions ListExt;
12328
12329
12330 GLuint _Facing;
12331
12332
12333
12334
12335
12336
12337 GLboolean FirstTimeCurrent;
12338
12339
12340
12341 GLboolean NoDither;
12342
12343
12344 GLboolean Mesa_DXTn;
12345
12346
12347 struct gl_tnl_module TnlModule;
12348
12349
12350
12351
12352
12353
12354
12355 void *swrast_context;
12356 void *swsetup_context;
12357 void *swtnl_context;
12358 void *swtnl_im;
12359 void *acache_context;
12360 void *aelt_context;
12361
12362};
12363
12364
12365
12366extern const char *_mesa_prim_name[0x0009 +4];
12367# 3089 "./mtypes.h"
12368enum _verbose
12369{
12370 VERBOSE_VARRAY = 0x0001,
12371 VERBOSE_TEXTURE = 0x0002,
12372 VERBOSE_IMMEDIATE = 0x0004,
12373 VERBOSE_PIPELINE = 0x0008,
12374 VERBOSE_DRIVER = 0x0010,
12375 VERBOSE_STATE = 0x0020,
12376 VERBOSE_API = 0x0040,
12377 VERBOSE_DISPLAY_LIST = 0x0100,
12378 VERBOSE_LIGHTING = 0x0200,
12379 VERBOSE_PRIMS = 0x0400,
12380 VERBOSE_VERTS = 0x0800,
12381 VERBOSE_DISASSEM = 0x1000
12382};
12383
12384
12385enum _debug
12386{
12387 DEBUG_ALWAYS_FLUSH = 0x1
12388};
12389# 35 "../shader/prog_parameter.h" 2
12390# 1 "../shader/prog_statevars.h" 1
12391# 47 "../shader/prog_statevars.h"
12392typedef enum gl_state_index_ {
12393 STATE_MATERIAL = 100,
12394
12395 STATE_LIGHT,
12396 STATE_LIGHTMODEL_AMBIENT,
12397 STATE_LIGHTMODEL_SCENECOLOR,
12398 STATE_LIGHTPROD,
12399
12400 STATE_TEXGEN,
12401
12402 STATE_FOG_COLOR,
12403 STATE_FOG_PARAMS,
12404
12405 STATE_CLIPPLANE,
12406
12407 STATE_POINT_SIZE,
12408 STATE_POINT_ATTENUATION,
12409
12410 STATE_MODELVIEW_MATRIX,
12411 STATE_PROJECTION_MATRIX,
12412 STATE_MVP_MATRIX,
12413 STATE_TEXTURE_MATRIX,
12414 STATE_PROGRAM_MATRIX,
12415 STATE_MATRIX_INVERSE,
12416 STATE_MATRIX_TRANSPOSE,
12417 STATE_MATRIX_INVTRANS,
12418
12419 STATE_AMBIENT,
12420 STATE_DIFFUSE,
12421 STATE_SPECULAR,
12422 STATE_EMISSION,
12423 STATE_SHININESS,
12424 STATE_HALF_VECTOR,
12425
12426 STATE_POSITION,
12427 STATE_ATTENUATION,
12428 STATE_SPOT_DIRECTION,
12429 STATE_SPOT_CUTOFF,
12430
12431 STATE_TEXGEN_EYE_S,
12432 STATE_TEXGEN_EYE_T,
12433 STATE_TEXGEN_EYE_R,
12434 STATE_TEXGEN_EYE_Q,
12435 STATE_TEXGEN_OBJECT_S,
12436 STATE_TEXGEN_OBJECT_T,
12437 STATE_TEXGEN_OBJECT_R,
12438 STATE_TEXGEN_OBJECT_Q,
12439
12440 STATE_TEXENV_COLOR,
12441
12442 STATE_DEPTH_RANGE,
12443
12444 STATE_VERTEX_PROGRAM,
12445 STATE_FRAGMENT_PROGRAM,
12446
12447 STATE_ENV,
12448 STATE_LOCAL,
12449
12450 STATE_INTERNAL,
12451 STATE_NORMAL_SCALE,
12452 STATE_TEXRECT_SCALE,
12453 STATE_POSITION_NORMALIZED,
12454 STATE_FOG_PARAMS_OPTIMIZED,
12455 STATE_SPOT_DIR_NORMALIZED,
12456 STATE_INTERNAL_DRIVER
12457} gl_state_index;
12458
12459
12460
12461extern void
12462_mesa_load_state_parameters(GLcontext *ctx,
12463 struct gl_program_parameter_list *paramList);
12464
12465
12466extern GLbitfield
12467_mesa_program_state_flags(const gl_state_index state[5]);
12468
12469
12470extern const char *
12471_mesa_program_state_string(const gl_state_index state[5]);
12472# 36 "../shader/prog_parameter.h" 2
12473# 45 "../shader/prog_parameter.h"
12474struct gl_program_parameter
12475{
12476 const char *Name;
12477 enum register_file Type;
12478 GLenum DataType;
12479 GLuint Size;
12480
12481
12482
12483 gl_state_index StateIndexes[5];
12484};
12485
12486
12487
12488
12489
12490struct gl_program_parameter_list
12491{
12492 GLuint Size;
12493 GLuint NumParameters;
12494 struct gl_program_parameter *Parameters;
12495 GLfloat (*ParameterValues)[4];
12496 GLbitfield StateFlags;
12497
12498};
12499
12500
12501extern struct gl_program_parameter_list *
12502_mesa_new_parameter_list(void);
12503
12504extern void
12505_mesa_free_parameter_list(struct gl_program_parameter_list *paramList);
12506
12507extern struct gl_program_parameter_list *
12508_mesa_clone_parameter_list(const struct gl_program_parameter_list *list);
12509
12510extern GLint
12511_mesa_add_parameter(struct gl_program_parameter_list *paramList,
12512 enum register_file type, const char *name,
12513 GLuint size, GLenum datatype, const GLfloat *values,
12514 const gl_state_index state[5]);
12515
12516extern GLint
12517_mesa_add_named_parameter(struct gl_program_parameter_list *paramList,
12518 const char *name, const GLfloat values[4]);
12519
12520extern GLint
12521_mesa_add_named_constant(struct gl_program_parameter_list *paramList,
12522 const char *name, const GLfloat values[4],
12523 GLuint size);
12524
12525extern GLint
12526_mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList,
12527 const GLfloat values[4], GLuint size,
12528 GLuint *swizzleOut);
12529
12530extern GLint
12531_mesa_add_uniform(struct gl_program_parameter_list *paramList,
12532 const char *name, GLuint size, GLenum datatype);
12533
12534extern GLint
12535_mesa_add_sampler(struct gl_program_parameter_list *paramList,
12536 const char *name, GLenum datatype);
12537
12538extern GLint
12539_mesa_add_varying(struct gl_program_parameter_list *paramList,
12540 const char *name, GLuint size);
12541
12542extern GLint
12543_mesa_add_attribute(struct gl_program_parameter_list *paramList,
12544 const char *name, GLint size, GLint attrib);
12545
12546extern GLint
12547_mesa_add_state_reference(struct gl_program_parameter_list *paramList,
12548 const gl_state_index stateTokens[5]);
12549
12550extern GLfloat *
12551_mesa_lookup_parameter_value(const struct gl_program_parameter_list *paramList,
12552 GLsizei nameLen, const char *name);
12553
12554extern GLint
12555_mesa_lookup_parameter_index(const struct gl_program_parameter_list *paramList,
12556 GLsizei nameLen, const char *name);
12557
12558extern GLboolean
12559_mesa_lookup_parameter_constant(const struct gl_program_parameter_list *list,
12560 const GLfloat v[], GLuint vSize,
12561 GLint *posOut, GLuint *swizzleOut);
12562
12563extern GLuint
12564_mesa_longest_parameter_name(const struct gl_program_parameter_list *list,
12565 enum register_file type);
12566
12567extern GLuint
12568_mesa_num_parameters_of_type(const struct gl_program_parameter_list *list,
12569 enum register_file type);
12570# 32 "texenvprogram.c" 2
12571# 1 "../shader/prog_instruction.h" 1
12572# 142 "../shader/prog_instruction.h"
12573typedef enum prog_opcode {
12574
12575
12576 OPCODE_NOP = 0,
12577 OPCODE_ABS,
12578 OPCODE_ADD,
12579 OPCODE_ARA,
12580 OPCODE_ARL,
12581 OPCODE_ARL_NV,
12582 OPCODE_ARR,
12583 OPCODE_BGNLOOP,
12584 OPCODE_BGNSUB,
12585 OPCODE_BRA,
12586 OPCODE_BRK,
12587 OPCODE_CAL,
12588 OPCODE_CMP,
12589 OPCODE_CONT,
12590 OPCODE_COS,
12591 OPCODE_DDX,
12592 OPCODE_DDY,
12593 OPCODE_DP3,
12594 OPCODE_DP4,
12595 OPCODE_DPH,
12596 OPCODE_DST,
12597 OPCODE_ELSE,
12598 OPCODE_END,
12599 OPCODE_ENDIF,
12600 OPCODE_ENDLOOP,
12601 OPCODE_ENDSUB,
12602 OPCODE_EX2,
12603 OPCODE_EXP,
12604 OPCODE_FLR,
12605 OPCODE_FRC,
12606 OPCODE_IF,
12607 OPCODE_INT,
12608 OPCODE_KIL,
12609 OPCODE_KIL_NV,
12610 OPCODE_LG2,
12611 OPCODE_LIT,
12612 OPCODE_LOG,
12613 OPCODE_LRP,
12614 OPCODE_MAD,
12615 OPCODE_MAX,
12616 OPCODE_MIN,
12617 OPCODE_MOV,
12618 OPCODE_MUL,
12619 OPCODE_NOISE1,
12620 OPCODE_NOISE2,
12621 OPCODE_NOISE3,
12622 OPCODE_NOISE4,
12623 OPCODE_PK2H,
12624 OPCODE_PK2US,
12625 OPCODE_PK4B,
12626 OPCODE_PK4UB,
12627 OPCODE_POW,
12628 OPCODE_POPA,
12629 OPCODE_PRINT,
12630 OPCODE_PUSHA,
12631 OPCODE_RCC,
12632 OPCODE_RCP,
12633 OPCODE_RET,
12634 OPCODE_RFL,
12635 OPCODE_RSQ,
12636 OPCODE_SCS,
12637 OPCODE_SEQ,
12638 OPCODE_SFL,
12639 OPCODE_SGE,
12640 OPCODE_SGT,
12641 OPCODE_SIN,
12642 OPCODE_SLE,
12643 OPCODE_SLT,
12644 OPCODE_SNE,
12645 OPCODE_SSG,
12646 OPCODE_STR,
12647 OPCODE_SUB,
12648 OPCODE_SWZ,
12649 OPCODE_TEX,
12650 OPCODE_TXB,
12651 OPCODE_TXD,
12652 OPCODE_TXL,
12653 OPCODE_TXP,
12654 OPCODE_TXP_NV,
12655 OPCODE_UP2H,
12656 OPCODE_UP2US,
12657 OPCODE_UP4B,
12658 OPCODE_UP4UB,
12659 OPCODE_X2D,
12660 OPCODE_XPD,
12661 MAX_OPCODE
12662} gl_inst_opcode;
12663
12664
12665
12666
12667
12668struct prog_src_register
12669{
12670 GLuint File:4;
12671 GLint Index:9;
12672 GLuint Swizzle:12;
12673 GLuint RelAddr:1;
12674# 259 "../shader/prog_instruction.h"
12675 GLuint NegateBase:4;
12676# 268 "../shader/prog_instruction.h"
12677 GLuint Abs:1;
12678
12679
12680
12681
12682 GLuint NegateAbs:1;
12683
12684};
12685
12686
12687
12688
12689
12690struct prog_dst_register
12691{
12692
12693
12694
12695 GLuint File:4;
12696
12697 GLuint Index:8;
12698 GLuint WriteMask:4;
12699# 305 "../shader/prog_instruction.h"
12700 GLuint CondMask:4;
12701
12702
12703
12704
12705 GLuint CondSwizzle:12;
12706
12707
12708
12709
12710
12711
12712
12713 GLuint CondSrc:1;
12714
12715
12716 GLuint pad:31;
12717};
12718
12719
12720
12721
12722
12723struct prog_instruction
12724{
12725 gl_inst_opcode Opcode;
12726
12727 GLshort StringPos;
12728
12729
12730
12731
12732 void *Data;
12733
12734 struct prog_src_register SrcReg[3];
12735 struct prog_dst_register DstReg;
12736# 350 "../shader/prog_instruction.h"
12737 GLuint CondUpdate:1;
12738# 364 "../shader/prog_instruction.h"
12739 GLuint CondDst:1;
12740# 375 "../shader/prog_instruction.h"
12741 GLuint SaturateMode:2;
12742
12743
12744
12745
12746
12747
12748
12749 GLuint Precision:3;
12750# 399 "../shader/prog_instruction.h"
12751 GLuint TexSrcUnit:5;
12752
12753
12754
12755
12756 GLuint TexSrcTarget:3;
12757# 414 "../shader/prog_instruction.h"
12758 GLint BranchTarget;
12759
12760
12761
12762
12763
12764 GLint Sampler;
12765
12766 const char *Comment;
12767};
12768
12769
12770extern void
12771_mesa_init_instructions(struct prog_instruction *inst, GLuint count);
12772
12773extern struct prog_instruction *
12774_mesa_alloc_instructions(GLuint numInst);
12775
12776extern struct prog_instruction *
12777_mesa_realloc_instructions(struct prog_instruction *oldInst,
12778 GLuint numOldInst, GLuint numNewInst);
12779
12780extern struct prog_instruction *
12781_mesa_copy_instructions(struct prog_instruction *dest,
12782 const struct prog_instruction *src, GLuint n);
12783
12784extern GLuint
12785_mesa_num_inst_src_regs(gl_inst_opcode opcode);
12786
12787extern const char *
12788_mesa_opcode_string(gl_inst_opcode opcode);
12789# 33 "texenvprogram.c" 2
12790# 1 "../shader/prog_print.h" 1
12791# 33 "../shader/prog_print.h"
12792typedef enum {
12793 PROG_PRINT_ARB,
12794 PROG_PRINT_NV,
12795 PROG_PRINT_DEBUG
12796} gl_prog_print_mode;
12797
12798
12799extern const char *
12800_mesa_condcode_string(GLuint condcode);
12801
12802extern const char *
12803_mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended);
12804
12805extern void
12806_mesa_print_alu_instruction(const struct prog_instruction *inst,
12807 const char *opcode_string, GLuint numRegs);
12808
12809extern void
12810_mesa_print_instruction(const struct prog_instruction *inst);
12811
12812extern GLint
12813_mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
12814 gl_prog_print_mode mode,
12815 const struct gl_program *prog);
12816
12817extern void
12818_mesa_print_program(const struct gl_program *prog);
12819
12820extern void
12821_mesa_print_program_opt(const struct gl_program *prog, gl_prog_print_mode mode,
12822 GLboolean lineNumbers);
12823
12824extern void
12825_mesa_print_program_parameters(GLcontext *ctx, const struct gl_program *prog);
12826
12827extern void
12828_mesa_print_parameter_list(const struct gl_program_parameter_list *list);
12829# 34 "texenvprogram.c" 2
12830# 1 "../shader/prog_statevars.h" 1
12831# 35 "texenvprogram.c" 2
12832# 1 "texenvprogram.h" 1
12833# 35 "texenvprogram.h"
12834# 1 "mtypes.h" 1
12835# 36 "texenvprogram.h" 2
12836
12837extern void _mesa_UpdateTexEnvProgram( GLcontext *ctx );
12838extern void _mesa_TexEnvProgramCacheInit( GLcontext *ctx );
12839extern void _mesa_TexEnvProgramCacheDestroy( GLcontext *ctx );
12840# 36 "texenvprogram.c" 2
12841# 46 "texenvprogram.c"
12842struct mode_opt {
12843 GLuint Source:4;
12844 GLuint Operand:3;
12845};
12846
12847struct state_key {
12848 GLbitfield enabled_units;
12849 GLuint separate_specular:1;
12850 GLuint fog_enabled:1;
12851 GLuint fog_mode:2;
12852
12853 struct {
12854 GLuint enabled:1;
12855 GLuint source_index:3;
12856 GLuint ScaleShiftRGB:2;
12857 GLuint ScaleShiftA:2;
12858
12859 GLuint NumArgsRGB:2;
12860 GLuint ModeRGB:4;
12861 struct mode_opt OptRGB[3];
12862
12863 GLuint NumArgsA:2;
12864 GLuint ModeA:4;
12865 struct mode_opt OptA[3];
12866 } unit[8];
12867};
12868
12869
12870
12871
12872
12873
12874static GLuint translate_fog_mode( GLenum mode )
12875{
12876 switch (mode) {
12877 case 0x2601: return 0;
12878 case 0x0800: return 1;
12879 case 0x0801: return 2;
12880 default: return 3;
12881 }
12882}
12883# 96 "texenvprogram.c"
12884static GLuint translate_operand( GLenum operand )
12885{
12886 switch (operand) {
12887 case 0x0300: return 0;
12888 case 0x0301: return 1;
12889 case 0x0302: return 2;
12890 case 0x0303: return 3;
12891 case 0x0: return 4;
12892 case 0x1: return 5;
12893 default: return 7;
12894 }
12895}
12896# 123 "texenvprogram.c"
12897static GLuint translate_source( GLenum src )
12898{
12899 switch (src) {
12900 case 0x1702: return 0;
12901 case 0x84C0:
12902 case 0x84C1:
12903 case 0x84C2:
12904 case 0x84C3:
12905 case 0x84C4:
12906 case 0x84C5:
12907 case 0x84C6:
12908 case 0x84C7: return 1 + (src - 0x84C0);
12909 case 0x8576: return 9;
12910 case 0x8577: return 10;
12911 case 0x8578: return 11;
12912 default: return 15;
12913 }
12914}
12915# 157 "texenvprogram.c"
12916static GLuint translate_mode( GLenum mode )
12917{
12918 switch (mode) {
12919 case 0x1E01: return 0;
12920 case 0x2100: return 1;
12921 case 0x0104: return 2;
12922 case 0x8574: return 3;
12923 case 0x8575: return 4;
12924 case 0x84E7: return 5;
12925 case 0x86AE: return 6;
12926 case 0x8740: return 7;
12927 case 0x86AF: return 8;
12928 case 0x8741: return 9;
12929 case 0x8744: return 10;
12930 case 0x8745: return 11;
12931 case 0x8746: return 12;
12932 default: return 15;
12933 }
12934}
12935
12936
12937static GLuint translate_tex_src_bit( GLbitfield bit )
12938{
12939 switch (bit) {
12940 case (1 << 0): return 0;
12941 case (1 << 1): return 1;
12942 case (1 << 4): return 4;
12943 case (1 << 2): return 2;
12944 case (1 << 3): return 3;
12945 default: return 7;
12946 }
12947}
12948
12949
12950
12951
12952
12953static void make_state_key( GLcontext *ctx, struct state_key *key )
12954{
12955 GLuint i, j;
12956
12957 memset(key, 0, sizeof(*key));
12958
12959 for (i=0;i<8;i++) {
12960 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
12961
12962 if (!texUnit->_ReallyEnabled)
12963 continue;
12964
12965 key->unit[i].enabled = 1;
12966 key->enabled_units |= (1<<i);
12967
12968 key->unit[i].source_index =
12969 translate_tex_src_bit(texUnit->_ReallyEnabled);
12970
12971 key->unit[i].NumArgsRGB = texUnit->_CurrentCombine->_NumArgsRGB;
12972 key->unit[i].NumArgsA = texUnit->_CurrentCombine->_NumArgsA;
12973
12974 key->unit[i].ModeRGB =
12975 translate_mode(texUnit->_CurrentCombine->ModeRGB);
12976 key->unit[i].ModeA =
12977 translate_mode(texUnit->_CurrentCombine->ModeA);
12978
12979 key->unit[i].ScaleShiftRGB = texUnit->_CurrentCombine->ScaleShiftRGB;
12980 key->unit[i].ScaleShiftA = texUnit->_CurrentCombine->ScaleShiftA;
12981
12982 for (j=0;j<3;j++) {
12983 key->unit[i].OptRGB[j].Operand =
12984 translate_operand(texUnit->_CurrentCombine->OperandRGB[j]);
12985 key->unit[i].OptA[j].Operand =
12986 translate_operand(texUnit->_CurrentCombine->OperandA[j]);
12987 key->unit[i].OptRGB[j].Source =
12988 translate_source(texUnit->_CurrentCombine->SourceRGB[j]);
12989 key->unit[i].OptA[j].Source =
12990 translate_source(texUnit->_CurrentCombine->SourceA[j]);
12991 }
12992 }
12993
12994 if (ctx->_TriangleCaps & 0x2)
12995 key->separate_specular = 1;
12996
12997 if (ctx->Fog.Enabled) {
12998 key->fog_enabled = 1;
12999 key->fog_mode = translate_fog_mode(ctx->Fog.Mode);
13000 }
13001}
13002# 256 "texenvprogram.c"
13003struct ureg {
13004 GLuint file:4;
13005 GLuint idx:8;
13006 GLuint negatebase:1;
13007 GLuint abs:1;
13008 GLuint negateabs:1;
13009 GLuint swz:12;
13010 GLuint pad:5;
13011};
13012
13013static const struct ureg undef = {
13014 PROGRAM_UNDEFINED,
13015 ~0,
13016 0,
13017 0,
13018 0,
13019 0,
13020 0
13021};
13022
13023
13024
13025
13026struct texenv_fragment_program {
13027 struct gl_fragment_program *program;
13028 GLcontext *ctx;
13029 struct state_key *state;
13030
13031 GLbitfield alu_temps;
13032 GLbitfield temps_output;
13033 GLbitfield temp_in_use;
13034 GLboolean error;
13035
13036 struct ureg src_texture[8];
13037
13038
13039
13040
13041 struct ureg src_previous;
13042
13043
13044
13045 GLuint last_tex_stage;
13046
13047 struct ureg half;
13048 struct ureg one;
13049 struct ureg zero;
13050};
13051
13052
13053
13054static struct ureg make_ureg(GLuint file, GLuint idx)
13055{
13056 struct ureg reg;
13057 reg.file = file;
13058 reg.idx = idx;
13059 reg.negatebase = 0;
13060 reg.abs = 0;
13061 reg.negateabs = 0;
13062 reg.swz = (((0)<<0) | ((1)<<3) | ((2)<<6) | ((3)<<9));
13063 reg.pad = 0;
13064 return reg;
13065}
13066
13067static struct ureg swizzle( struct ureg reg, int x, int y, int z, int w )
13068{
13069 reg.swz = ((((((reg.swz) >> ((x)*3)) & 0x7))<<0) | (((((reg.swz) >> ((y)*3)) & 0x7))<<3) | (((((reg.swz) >> ((z)*3)) & 0x7))<<6) | (((((reg.swz) >> ((w)*3)) & 0x7))<<9));
13070
13071
13072
13073
13074 return reg;
13075}
13076
13077static struct ureg swizzle1( struct ureg reg, int x )
13078{
13079 return swizzle(reg, x, x, x, x);
13080}
13081
13082static struct ureg negate( struct ureg reg )
13083{
13084 reg.negatebase ^= 1;
13085 return reg;
13086}
13087
13088static GLboolean is_undef( struct ureg reg )
13089{
13090 return reg.file == PROGRAM_UNDEFINED;
13091}
13092
13093
13094static struct ureg get_temp( struct texenv_fragment_program *p )
13095{
13096 GLint bit;
13097
13098
13099
13100 bit = _mesa_ffs( ~p->temp_in_use & p->alu_temps );
13101
13102
13103
13104 if (!bit)
13105 bit = _mesa_ffs( ~p->temp_in_use );
13106
13107 if (!bit) {
13108 _mesa_problem(((void *)0), "%s: out of temporaries\n", "texenvprogram.c");
13109 _mesa_exit(1);
13110 }
13111
13112 if ((GLuint) bit > p->program->Base.NumTemporaries)
13113 p->program->Base.NumTemporaries = bit;
13114
13115 p->temp_in_use |= 1<<(bit-1);
13116 return make_ureg(PROGRAM_TEMPORARY, (bit-1));
13117}
13118
13119static struct ureg get_tex_temp( struct texenv_fragment_program *p )
13120{
13121 int bit;
13122
13123
13124
13125
13126
13127
13128 bit = _mesa_ffs( ~p->temp_in_use & ~p->alu_temps & ~p->temps_output );
13129
13130
13131
13132 if (!bit)
13133 bit = _mesa_ffs( ~p->temp_in_use );
13134
13135 if (!bit) {
13136 _mesa_problem(((void *)0), "%s: out of temporaries\n", "texenvprogram.c");
13137 _mesa_exit(1);
13138 }
13139
13140 if ((GLuint) bit > p->program->Base.NumTemporaries)
13141 p->program->Base.NumTemporaries = bit;
13142
13143 p->temp_in_use |= 1<<(bit-1);
13144 return make_ureg(PROGRAM_TEMPORARY, (bit-1));
13145}
13146
13147
13148static void release_temps( struct texenv_fragment_program *p )
13149{
13150 GLuint max_temp = p->ctx->Const.FragmentProgram.MaxTemps;
13151
13152
13153
13154
13155 if (max_temp >= sizeof(int) * 8)
13156 p->temp_in_use = p->temps_output;
13157 else
13158 p->temp_in_use = ~((1<<max_temp)-1) | p->temps_output;
13159}
13160
13161
13162static struct ureg register_param5( struct texenv_fragment_program *p,
13163 GLint s0,
13164 GLint s1,
13165 GLint s2,
13166 GLint s3,
13167 GLint s4)
13168{
13169 gl_state_index tokens[5];
13170 GLuint idx;
13171 tokens[0] = s0;
13172 tokens[1] = s1;
13173 tokens[2] = s2;
13174 tokens[3] = s3;
13175 tokens[4] = s4;
13176 idx = _mesa_add_state_reference( p->program->Base.Parameters, tokens );
13177 return make_ureg(PROGRAM_STATE_VAR, idx);
13178}
13179# 440 "texenvprogram.c"
13180static struct ureg register_input( struct texenv_fragment_program *p, GLuint input )
13181{
13182 p->program->Base.InputsRead |= (1 << input);
13183 return make_ureg(PROGRAM_INPUT, input);
13184}
13185
13186
13187static void emit_arg( struct prog_src_register *reg,
13188 struct ureg ureg )
13189{
13190 reg->File = ureg.file;
13191 reg->Index = ureg.idx;
13192 reg->Swizzle = ureg.swz;
13193 reg->NegateBase = ureg.negatebase ? 0xf : 0x0;
13194 reg->Abs = ureg.abs;
13195 reg->NegateAbs = ureg.negateabs;
13196}
13197
13198static void emit_dst( struct prog_dst_register *dst,
13199 struct ureg ureg, GLuint mask )
13200{
13201 dst->File = ureg.file;
13202 dst->Index = ureg.idx;
13203 dst->WriteMask = mask;
13204 dst->CondMask = 8;
13205 dst->CondSwizzle = (((0)<<0) | ((1)<<3) | ((2)<<6) | ((3)<<9));
13206}
13207
13208static struct prog_instruction *
13209emit_op(struct texenv_fragment_program *p,
13210 enum prog_opcode op,
13211 struct ureg dest,
13212 GLuint mask,
13213 GLboolean saturate,
13214 struct ureg src0,
13215 struct ureg src1,
13216 struct ureg src2 )
13217{
13218 GLuint nr = p->program->Base.NumInstructions++;
13219 struct prog_instruction *inst = &p->program->Base.Instructions[nr];
13220
13221 ((void) (0));
13222
13223 _mesa_init_instructions(inst, 1);
13224 inst->Opcode = op;
13225
13226 emit_arg( &inst->SrcReg[0], src0 );
13227 emit_arg( &inst->SrcReg[1], src1 );
13228 emit_arg( &inst->SrcReg[2], src2 );
13229
13230 inst->SaturateMode = saturate ? 1 : 0;
13231
13232 emit_dst( &inst->DstReg, dest, mask );
13233
13234
13235
13236 if (dest.file == PROGRAM_TEMPORARY)
13237 p->temps_output |= 1 << dest.idx;
13238
13239 return inst;
13240}
13241
13242
13243static struct ureg emit_arith( struct texenv_fragment_program *p,
13244 enum prog_opcode op,
13245 struct ureg dest,
13246 GLuint mask,
13247 GLboolean saturate,
13248 struct ureg src0,
13249 struct ureg src1,
13250 struct ureg src2 )
13251{
13252 emit_op(p, op, dest, mask, saturate, src0, src1, src2);
13253
13254
13255
13256 if (src0.file == PROGRAM_TEMPORARY)
13257 p->alu_temps |= 1 << src0.idx;
13258
13259 if (!is_undef(src1) && src1.file == PROGRAM_TEMPORARY)
13260 p->alu_temps |= 1 << src1.idx;
13261
13262 if (!is_undef(src2) && src2.file == PROGRAM_TEMPORARY)
13263 p->alu_temps |= 1 << src2.idx;
13264
13265 if (dest.file == PROGRAM_TEMPORARY)
13266 p->alu_temps |= 1 << dest.idx;
13267
13268 p->program->Base.NumAluInstructions++;
13269 return dest;
13270}
13271
13272static struct ureg emit_texld( struct texenv_fragment_program *p,
13273 enum prog_opcode op,
13274 struct ureg dest,
13275 GLuint destmask,
13276 GLuint tex_unit,
13277 GLuint tex_idx,
13278 struct ureg coord )
13279{
13280 struct prog_instruction *inst = emit_op( p, op,
13281 dest, destmask,
13282 0x0,
13283 coord,
13284 undef,
13285 undef);
13286
13287 inst->TexSrcTarget = tex_idx;
13288 inst->TexSrcUnit = tex_unit;
13289
13290 p->program->Base.NumTexInstructions++;
13291
13292
13293
13294 if ((coord.file == PROGRAM_TEMPORARY &&
13295 (p->temps_output & (1<<coord.idx))) ||
13296 (dest.file == PROGRAM_TEMPORARY &&
13297 (p->alu_temps & (1<<dest.idx)))) {
13298 p->program->Base.NumTexIndirections++;
13299 p->temps_output = 1<<coord.idx;
13300 p->alu_temps = 0;
13301 ((void) (0));
13302 }
13303
13304 return dest;
13305}
13306
13307
13308static struct ureg register_const4f( struct texenv_fragment_program *p,
13309 GLfloat s0,
13310 GLfloat s1,
13311 GLfloat s2,
13312 GLfloat s3)
13313{
13314 GLfloat values[4];
13315 GLuint idx, swizzle;
13316 values[0] = s0;
13317 values[1] = s1;
13318 values[2] = s2;
13319 values[3] = s3;
13320 idx = _mesa_add_unnamed_constant( p->program->Base.Parameters, values, 4,
13321 &swizzle );
13322 ;
13323 return make_ureg(PROGRAM_STATE_VAR, idx);
13324}
13325
13326
13327
13328
13329
13330
13331
13332static struct ureg get_one( struct texenv_fragment_program *p )
13333{
13334 if (is_undef(p->one))
13335 p->one = register_const4f(p, 1.0, 1.0, 1.0, 1.0);
13336 return p->one;
13337}
13338
13339static struct ureg get_half( struct texenv_fragment_program *p )
13340{
13341 if (is_undef(p->half))
13342 p->half = register_const4f(p, 0.5, 0.5, 0.5, 0.5);
13343 return p->half;
13344}
13345
13346static struct ureg get_zero( struct texenv_fragment_program *p )
13347{
13348 if (is_undef(p->zero))
13349 p->zero = register_const4f(p, 0.0, 0.0, 0.0, 0.0);
13350 return p->zero;
13351}
13352
13353
13354static void program_error( struct texenv_fragment_program *p, const char *msg )
13355{
13356 _mesa_problem(((void *)0), msg);
13357 p->error = 1;
13358}
13359
13360static struct ureg get_source( struct texenv_fragment_program *p,
13361 GLuint src, GLuint unit )
13362{
13363 switch (src) {
13364 case 0:
13365 ((void) (0));
13366 return p->src_texture[unit];
13367
13368 case 1:
13369 case 2:
13370 case 3:
13371 case 4:
13372 case 5:
13373 case 6:
13374 case 7:
13375 case 8:
13376 ((void) (0));
13377 return p->src_texture[src - 1];
13378
13379 case 9:
13380 return register_param5(p,STATE_TEXENV_COLOR,unit,0,0,0);
13381
13382 case 10:
13383 return register_input(p, FRAG_ATTRIB_COL0);
13384
13385 case 11:
13386 default:
13387 if (is_undef(p->src_previous))
13388 return register_input(p, FRAG_ATTRIB_COL0);
13389 else
13390 return p->src_previous;
13391 }
13392}
13393
13394static struct ureg emit_combine_source( struct texenv_fragment_program *p,
13395 GLuint mask,
13396 GLuint unit,
13397 GLuint source,
13398 GLuint operand )
13399{
13400 struct ureg arg, src, one;
13401
13402 src = get_source(p, source, unit);
13403
13404 switch (operand) {
13405 case 1:
13406
13407
13408
13409 arg = get_temp( p );
13410 one = get_one( p );
13411 return emit_arith( p, OPCODE_SUB, arg, mask, 0, one, src, undef);
13412
13413 case 2:
13414 if (mask == 0x8)
13415 return src;
13416 else
13417 return swizzle1( src, 3 );
13418 case 3:
13419
13420
13421
13422 arg = get_temp(p);
13423 one = get_one(p);
13424 return emit_arith(p, OPCODE_SUB, arg, mask, 0,
13425 one, swizzle1(src, 3), undef);
13426 case 4:
13427 return get_zero(p);
13428 case 5:
13429 return get_one(p);
13430 case 0:
13431 default:
13432 return src;
13433 }
13434}
13435
13436static GLboolean args_match( struct state_key *key, GLuint unit )
13437{
13438 GLuint i, nr = key->unit[unit].NumArgsRGB;
13439
13440 for (i = 0 ; i < nr ; i++) {
13441 if (key->unit[unit].OptA[i].Source != key->unit[unit].OptRGB[i].Source)
13442 return 0x0;
13443
13444 switch(key->unit[unit].OptA[i].Operand) {
13445 case 2:
13446 switch(key->unit[unit].OptRGB[i].Operand) {
13447 case 0:
13448 case 2:
13449 break;
13450 default:
13451 return 0x0;
13452 }
13453 break;
13454 case 3:
13455 switch(key->unit[unit].OptRGB[i].Operand) {
13456 case 1:
13457 case 3:
13458 break;
13459 default:
13460 return 0x0;
13461 }
13462 break;
13463 default:
13464 return 0x0;
13465 }
13466 }
13467
13468 return 0x1;
13469}
13470
13471static struct ureg emit_combine( struct texenv_fragment_program *p,
13472 struct ureg dest,
13473 GLuint mask,
13474 GLboolean saturate,
13475 GLuint unit,
13476 GLuint nr,
13477 GLuint mode,
13478 const struct mode_opt *opt)
13479{
13480 struct ureg src[3];
13481 struct ureg tmp, half;
13482 GLuint i;
13483
13484 tmp = undef;
13485
13486 for (i = 0; i < nr; i++)
13487 src[i] = emit_combine_source( p, mask, unit, opt[i].Source, opt[i].Operand );
13488
13489 switch (mode) {
13490 case 0:
13491 if (mask == 0xf && !saturate)
13492 return src[0];
13493 else
13494 return emit_arith( p, OPCODE_MOV, dest, mask, saturate, src[0], undef, undef );
13495 case 1:
13496 return emit_arith( p, OPCODE_MUL, dest, mask, saturate,
13497 src[0], src[1], undef );
13498 case 2:
13499 return emit_arith( p, OPCODE_ADD, dest, mask, saturate,
13500 src[0], src[1], undef );
13501 case 3:
13502
13503
13504
13505 half = get_half(p);
13506 tmp = get_temp( p );
13507 emit_arith( p, OPCODE_ADD, tmp, mask, 0, src[0], src[1], undef );
13508 emit_arith( p, OPCODE_SUB, dest, mask, saturate, tmp, half, undef );
13509 return dest;
13510 case 4:
13511
13512
13513 return emit_arith( p, OPCODE_LRP, dest, mask, saturate, src[2], src[0], src[1] );
13514
13515 case 5:
13516 return emit_arith( p, OPCODE_SUB, dest, mask, saturate, src[0], src[1], undef );
13517
13518 case 8:
13519 case 9:
13520 case 7:
13521 case 6: {
13522 struct ureg tmp0 = get_temp( p );
13523 struct ureg tmp1 = get_temp( p );
13524 struct ureg neg1 = register_const4f(p, -1, -1, -1, -1);
13525 struct ureg two = register_const4f(p, 2, 2, 2, 2);
13526
13527
13528
13529
13530
13531
13532 emit_arith( p, OPCODE_MAD, tmp0, 0xf, 0,
13533 two, src[0], neg1);
13534
13535 if (_mesa_memcmp(&src[0], &src[1], sizeof(struct ureg)) == 0)
13536 tmp1 = tmp0;
13537 else
13538 emit_arith( p, OPCODE_MAD, tmp1, 0xf, 0,
13539 two, src[1], neg1);
13540 emit_arith( p, OPCODE_DP3, dest, mask, saturate, tmp0, tmp1, undef);
13541 return dest;
13542 }
13543 case 10:
13544
13545 return emit_arith( p, OPCODE_MAD, dest, mask, saturate,
13546 src[0], src[2], src[1] );
13547 case 11: {
13548
13549 struct ureg tmp0 = get_temp(p);
13550 half = get_half(p);
13551 emit_arith( p, OPCODE_MAD, tmp0, mask, 0, src[0], src[2], src[1] );
13552 emit_arith( p, OPCODE_SUB, dest, mask, saturate, tmp0, half, undef );
13553 return dest;
13554 }
13555 case 12:
13556
13557 emit_arith( p, OPCODE_MAD, dest, mask, 0, src[0], src[2], negate(src[1]) );
13558 return dest;
13559 default:
13560 return src[0];
13561 }
13562}
13563
13564
13565
13566
13567
13568static struct ureg
13569emit_texenv(struct texenv_fragment_program *p, GLuint unit)
13570{
13571 struct state_key *key = p->state;
13572 GLboolean saturate = (unit < p->last_tex_stage);
13573 GLuint rgb_shift, alpha_shift;
13574 struct ureg out, shift;
13575 struct ureg dest;
13576
13577 if (!key->unit[unit].enabled) {
13578 return get_source(p, 11, 0);
13579 }
13580
13581 switch (key->unit[unit].ModeRGB) {
13582 case 7:
13583 alpha_shift = key->unit[unit].ScaleShiftA;
13584 rgb_shift = 0;
13585 break;
13586 case 9:
13587 alpha_shift = 0;
13588 rgb_shift = 0;
13589 break;
13590 default:
13591 rgb_shift = key->unit[unit].ScaleShiftRGB;
13592 alpha_shift = key->unit[unit].ScaleShiftA;
13593 break;
13594 }
13595
13596
13597
13598 if (key->separate_specular ||
13599 unit != p->last_tex_stage ||
13600 alpha_shift ||
13601 rgb_shift)
13602 dest = get_temp( p );
13603 else
13604 dest = make_ureg(PROGRAM_OUTPUT, FRAG_RESULT_COLR);
13605
13606
13607
13608 if (key->unit[unit].ModeRGB == key->unit[unit].ModeA &&
13609 args_match(key, unit)) {
13610 out = emit_combine( p, dest, 0xf, saturate,
13611 unit,
13612 key->unit[unit].NumArgsRGB,
13613 key->unit[unit].ModeRGB,
13614 key->unit[unit].OptRGB);
13615 }
13616 else if (key->unit[unit].ModeRGB == 9 ||
13617 key->unit[unit].ModeRGB == 8) {
13618
13619 out = emit_combine( p, dest, 0xf, saturate,
13620 unit,
13621 key->unit[unit].NumArgsRGB,
13622 key->unit[unit].ModeRGB,
13623 key->unit[unit].OptRGB);
13624 }
13625 else {
13626
13627
13628
13629 out = emit_combine( p, dest, 0x7, saturate,
13630 unit,
13631 key->unit[unit].NumArgsRGB,
13632 key->unit[unit].ModeRGB,
13633 key->unit[unit].OptRGB);
13634 out = emit_combine( p, dest, 0x8, saturate,
13635 unit,
13636 key->unit[unit].NumArgsA,
13637 key->unit[unit].ModeA,
13638 key->unit[unit].OptA);
13639 }
13640
13641
13642
13643 if (alpha_shift || rgb_shift) {
13644 if (rgb_shift == alpha_shift) {
13645 shift = register_const4f(p, 1<<rgb_shift, 1<<rgb_shift, 1<<rgb_shift, 1<<rgb_shift);
13646 }
13647 else {
13648 shift = register_const4f(p,
13649 1<<rgb_shift,
13650 1<<rgb_shift,
13651 1<<rgb_shift,
13652 1<<alpha_shift);
13653 }
13654 return emit_arith( p, OPCODE_MUL, dest, 0xf,
13655 saturate, out, shift, undef );
13656 }
13657 else
13658 return out;
13659}
13660
13661
13662
13663
13664
13665static void load_texture( struct texenv_fragment_program *p, GLuint unit )
13666{
13667 if (is_undef(p->src_texture[unit])) {
13668 GLuint dim = p->state->unit[unit].source_index;
13669 struct ureg texcoord = register_input(p, FRAG_ATTRIB_TEX0+unit);
13670 struct ureg tmp = get_tex_temp( p );
13671
13672 if (dim == 7)
13673 program_error(p, "TexSrcBit");
13674
13675
13676
13677 if (p->state->unit[unit].enabled)
13678 p->src_texture[unit] = emit_texld( p, OPCODE_TXP,
13679 tmp, 0xf,
13680 unit, dim, texcoord );
13681 else
13682 p->src_texture[unit] = get_zero(p);
13683 }
13684}
13685
13686static GLboolean load_texenv_source( struct texenv_fragment_program *p,
13687 GLuint src, GLuint unit )
13688{
13689 switch (src) {
13690 case 0:
13691 load_texture(p, unit);
13692 break;
13693
13694 case 1:
13695 case 2:
13696 case 3:
13697 case 4:
13698 case 5:
13699 case 6:
13700 case 7:
13701 case 8:
13702 load_texture(p, src - 1);
13703 break;
13704
13705 default:
13706 break;
13707 }
13708
13709 return 0x1;
13710}
13711
13712
13713
13714
13715
13716static GLboolean
13717load_texunit_sources( struct texenv_fragment_program *p, int unit )
13718{
13719 struct state_key *key = p->state;
13720 GLuint i;
13721
13722 for (i = 0; i < key->unit[unit].NumArgsRGB; i++) {
13723 load_texenv_source( p, key->unit[unit].OptRGB[i].Source, unit);
13724 }
13725
13726 for (i = 0; i < key->unit[unit].NumArgsA; i++) {
13727 load_texenv_source( p, key->unit[unit].OptA[i].Source, unit );
13728 }
13729
13730 return 0x1;
13731}
13732
13733
13734
13735
13736
13737
13738static void
13739create_new_program(GLcontext *ctx, struct state_key *key,
13740 struct gl_fragment_program *program)
13741{
13742 struct prog_instruction instBuffer[((8 * 4) + 12)];
13743 struct texenv_fragment_program p;
13744 GLuint unit;
13745 struct ureg cf, out;
13746
13747 _mesa_memset(&p, 0, sizeof(p));
13748 p.ctx = ctx;
13749 p.state = key;
13750 p.program = program;
13751
13752
13753
13754
13755 p.program->Base.Instructions = instBuffer;
13756 p.program->Base.Target = 0x8804;
13757 p.program->Base.NumTexIndirections = 1;
13758 p.program->Base.NumTexInstructions = 0;
13759 p.program->Base.NumAluInstructions = 0;
13760 p.program->Base.String = ((void *)0);
13761 p.program->Base.NumInstructions =
13762 p.program->Base.NumTemporaries =
13763 p.program->Base.NumParameters =
13764 p.program->Base.NumAttributes = p.program->Base.NumAddressRegs = 0;
13765 p.program->Base.Parameters = _mesa_new_parameter_list();
13766
13767 p.program->Base.InputsRead = 0;
13768 p.program->Base.OutputsWritten = 1 << FRAG_RESULT_COLR;
13769
13770 for (unit = 0; unit < 8; unit++)
13771 p.src_texture[unit] = undef;
13772
13773 p.src_previous = undef;
13774 p.half = undef;
13775 p.zero = undef;
13776 p.one = undef;
13777
13778 p.last_tex_stage = 0;
13779 release_temps(&p);
13780
13781 if (key->enabled_units) {
13782
13783
13784
13785
13786 for (unit = 0 ; unit < ctx->Const.MaxTextureUnits ; unit++)
13787 if (key->unit[unit].enabled) {
13788 load_texunit_sources( &p, unit );
13789 p.last_tex_stage = unit;
13790 }
13791
13792
13793
13794 for (unit = 0 ; unit < ctx->Const.MaxTextureUnits; unit++)
13795 if (key->enabled_units & (1<<unit)) {
13796 p.src_previous = emit_texenv( &p, unit );
13797 release_temps(&p);
13798 }
13799 }
13800
13801 cf = get_source( &p, 11, 0 );
13802 out = make_ureg( PROGRAM_OUTPUT, FRAG_RESULT_COLR );
13803
13804 if (key->separate_specular) {
13805
13806
13807 struct ureg s = register_input(&p, FRAG_ATTRIB_COL1);
13808 emit_arith( &p, OPCODE_ADD, out, 0x7, 0, cf, s, undef );
13809 emit_arith( &p, OPCODE_MOV, out, 0x8, 0, cf, undef, undef );
13810 }
13811 else if (_mesa_memcmp(&cf, &out, sizeof(cf)) != 0) {
13812
13813
13814
13815 emit_arith( &p, OPCODE_MOV, out, 0xf, 0, cf, undef, undef );
13816 }
13817
13818
13819
13820 emit_arith( &p, OPCODE_END, undef, 0xf, 0, undef, undef, undef);
13821
13822 if (key->fog_enabled) {
13823
13824
13825
13826 p.program->FogOption = ctx->Fog.Mode;
13827 } else
13828 p.program->FogOption = 0x0;
13829
13830 if (p.program->Base.NumTexIndirections > ctx->Const.FragmentProgram.MaxTexIndirections)
13831 program_error(&p, "Exceeded max nr indirect texture lookups");
13832
13833 if (p.program->Base.NumTexInstructions > ctx->Const.FragmentProgram.MaxTexInstructions)
13834 program_error(&p, "Exceeded max TEX instructions");
13835
13836 if (p.program->Base.NumAluInstructions > ctx->Const.FragmentProgram.MaxAluInstructions)
13837 program_error(&p, "Exceeded max ALU instructions");
13838
13839 ;
13840
13841
13842 program->Base.Instructions
13843 = _mesa_alloc_instructions(program->Base.NumInstructions);
13844 if (!program->Base.Instructions) {
13845 _mesa_error(ctx, 0x0505,
13846 "generating tex env program");
13847 return;
13848 }
13849 _mesa_copy_instructions(program->Base.Instructions, instBuffer,
13850 program->Base.NumInstructions);
13851
13852
13853
13854 if (ctx->Driver.ProgramStringNotify) {
13855 ctx->Driver.ProgramStringNotify( ctx, 0x8804,
13856 &p.program->Base );
13857 }
13858
13859 if ((0 & VERBOSE_DISASSEM)) {
13860 _mesa_print_program(&p.program->Base);
13861 _mesa_printf("\n");
13862 }
13863}
13864
13865
13866static struct gl_fragment_program *
13867search_cache(const struct texenvprog_cache *cache,
13868 GLuint hash,
13869 const void *key,
13870 GLuint keysize)
13871{
13872 struct texenvprog_cache_item *c;
13873
13874 for (c = cache->items[hash % cache->size]; c; c = c->next) {
13875 if (c->hash == hash && memcmp(c->key, key, keysize) == 0)
13876 return (struct gl_fragment_program *) c->data;
13877 }
13878
13879 return ((void *)0);
13880}
13881
13882static void rehash( struct texenvprog_cache *cache )
13883{
13884 struct texenvprog_cache_item **items;
13885 struct texenvprog_cache_item *c, *next;
13886 GLuint size, i;
13887
13888 size = cache->size * 3;
13889 items = (struct texenvprog_cache_item**) _mesa_malloc(size * sizeof(*items));
13890 _mesa_memset(items, 0, size * sizeof(*items));
13891
13892 for (i = 0; i < cache->size; i++)
13893 for (c = cache->items[i]; c; c = next) {
13894 next = c->next;
13895 c->next = items[c->hash % size];
13896 items[c->hash % size] = c;
13897 }
13898
13899 _mesa_free(cache->items);
13900 cache->items = items;
13901 cache->size = size;
13902}
13903
13904static void clear_cache( struct texenvprog_cache *cache )
13905{
13906 struct texenvprog_cache_item *c, *next;
13907 GLuint i;
13908
13909 for (i = 0; i < cache->size; i++) {
13910 for (c = cache->items[i]; c; c = next) {
13911 next = c->next;
13912 _mesa_free(c->key);
13913 cache->ctx->Driver.DeleteProgram(cache->ctx,
13914 (struct gl_program *) c->data);
13915 _mesa_free(c);
13916 }
13917 cache->items[i] = ((void *)0);
13918 }
13919
13920
13921 cache->n_items = 0;
13922}
13923
13924
13925static void cache_item( struct texenvprog_cache *cache,
13926 GLuint hash,
13927 const struct state_key *key,
13928 void *data )
13929{
13930 struct texenvprog_cache_item *c
13931 = (struct texenvprog_cache_item *) _mesa_malloc(sizeof(*c));
13932 c->hash = hash;
13933
13934 c->key = _mesa_malloc(sizeof(*key));
13935 memcpy(c->key, key, sizeof(*key));
13936
13937 c->data = (struct gl_fragment_program *) data;
13938
13939 if (cache->n_items > cache->size * 1.5) {
13940 if (cache->size < 1000)
13941 rehash(cache);
13942 else
13943 clear_cache(cache);
13944 }
13945
13946 cache->n_items++;
13947 c->next = cache->items[hash % cache->size];
13948 cache->items[hash % cache->size] = c;
13949}
13950
13951static GLuint hash_key( const struct state_key *key )
13952{
13953 GLuint *ikey = (GLuint *)key;
13954 GLuint hash = 0, i;
13955
13956
13957
13958 for (i = 0; i < sizeof(*key)/sizeof(*ikey); i++)
13959 {
13960 hash += ikey[i];
13961 hash += (hash << 10);
13962 hash ^= (hash >> 6);
13963 }
13964
13965 return hash;
13966}
13967
13968
13969
13970
13971
13972
13973
13974void
13975_mesa_UpdateTexEnvProgram( GLcontext *ctx )
13976{
13977 struct state_key key;
13978 GLuint hash;
13979 const struct gl_fragment_program *prev = ctx->FragmentProgram._Current;
13980
13981 ;
13982
13983
13984 if (!ctx->FragmentProgram._Enabled &&
13985 !ctx->Shader.CurrentProgram) {
13986 make_state_key(ctx, &key);
13987 hash = hash_key(&key);
13988
13989 ctx->FragmentProgram._Current =
13990 ctx->FragmentProgram._TexEnvProgram =
13991 search_cache(&ctx->Texture.env_fp_cache, hash, &key, sizeof(key));
13992
13993 if (!ctx->FragmentProgram._TexEnvProgram) {
13994 if (0)
13995 _mesa_printf("Building new texenv proggy for key %x\n", hash);
13996
13997
13998 ctx->FragmentProgram._Current =
13999 ctx->FragmentProgram._TexEnvProgram =
14000 (struct gl_fragment_program *)
14001 ctx->Driver.NewProgram(ctx, 0x8804, 0);
14002
14003 create_new_program(ctx, &key, ctx->FragmentProgram._TexEnvProgram);
14004
14005 cache_item(&ctx->Texture.env_fp_cache, hash, &key,
14006 ctx->FragmentProgram._TexEnvProgram);
14007 }
14008 else {
14009 if (0)
14010 _mesa_printf("Found existing texenv program for key %x\n", hash);
14011 }
14012 }
14013 else {
14014 ctx->FragmentProgram._Current = ctx->FragmentProgram.Current;
14015 }
14016
14017
14018
14019
14020 if (ctx->FragmentProgram._Current != prev && ctx->Driver.BindProgram) {
14021 ctx->Driver.BindProgram(ctx, 0x8804,
14022 (struct gl_program *) ctx->FragmentProgram._Current);
14023 }
14024}
14025
14026
14027void _mesa_TexEnvProgramCacheInit( GLcontext *ctx )
14028{
14029 ctx->Texture.env_fp_cache.ctx = ctx;
14030 ctx->Texture.env_fp_cache.size = 17;
14031 ctx->Texture.env_fp_cache.n_items = 0;
14032 ctx->Texture.env_fp_cache.items = (struct texenvprog_cache_item **)
14033 _mesa_calloc(ctx->Texture.env_fp_cache.size *
14034 sizeof(struct texenvprog_cache_item));
14035}
14036
14037
14038void _mesa_TexEnvProgramCacheDestroy( GLcontext *ctx )
14039{
14040 clear_cache(&ctx->Texture.env_fp_cache);
14041 _mesa_free(ctx->Texture.env_fp_cache.items);
14042}