1 # 1 "swrast/s_triangle.c"
2 # 1 "/mnt/alt/portage/media-libs/mesa-7.11/work/Mesa-7.11/src/mesa//"
5 # 1 "swrast/s_triangle.c"
6 # 32 "swrast/s_triangle.c"
7 # 1 "../../src/mesa/main/glheader.h" 1
8 # 53 "../../src/mesa/main/glheader.h"
9 # 1 "../../include/GL/gl.h" 1
10 # 155 "../../include/GL/gl.h"
11 typedef unsigned int GLenum;
12 typedef unsigned char GLboolean;
13 typedef unsigned int GLbitfield;
15 typedef signed char GLbyte;
16 typedef short GLshort;
18 typedef unsigned char GLubyte;
19 typedef unsigned short GLushort;
20 typedef unsigned int GLuint;
22 typedef float GLfloat;
23 typedef float GLclampf;
24 typedef double GLdouble;
25 typedef double GLclampd;
26 # 782 "../../include/GL/gl.h"
27 __attribute__((visibility("default"))) void glClearIndex( GLfloat c );
29 __attribute__((visibility("default"))) void glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
31 __attribute__((visibility("default"))) void glClear( GLbitfield mask );
33 __attribute__((visibility("default"))) void glIndexMask( GLuint mask );
35 __attribute__((visibility("default"))) void glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha );
37 __attribute__((visibility("default"))) void glAlphaFunc( GLenum func, GLclampf ref );
39 __attribute__((visibility("default"))) void glBlendFunc( GLenum sfactor, GLenum dfactor );
41 __attribute__((visibility("default"))) void glLogicOp( GLenum opcode );
43 __attribute__((visibility("default"))) void glCullFace( GLenum mode );
45 __attribute__((visibility("default"))) void glFrontFace( GLenum mode );
47 __attribute__((visibility("default"))) void glPointSize( GLfloat size );
49 __attribute__((visibility("default"))) void glLineWidth( GLfloat width );
51 __attribute__((visibility("default"))) void glLineStipple( GLint factor, GLushort pattern );
53 __attribute__((visibility("default"))) void glPolygonMode( GLenum face, GLenum mode );
55 __attribute__((visibility("default"))) void glPolygonOffset( GLfloat factor, GLfloat units );
57 __attribute__((visibility("default"))) void glPolygonStipple( const GLubyte *mask );
59 __attribute__((visibility("default"))) void glGetPolygonStipple( GLubyte *mask );
61 __attribute__((visibility("default"))) void glEdgeFlag( GLboolean flag );
63 __attribute__((visibility("default"))) void glEdgeFlagv( const GLboolean *flag );
65 __attribute__((visibility("default"))) void glScissor( GLint x, GLint y, GLsizei width, GLsizei height);
67 __attribute__((visibility("default"))) void glClipPlane( GLenum plane, const GLdouble *equation );
69 __attribute__((visibility("default"))) void glGetClipPlane( GLenum plane, GLdouble *equation );
71 __attribute__((visibility("default"))) void glDrawBuffer( GLenum mode );
73 __attribute__((visibility("default"))) void glReadBuffer( GLenum mode );
75 __attribute__((visibility("default"))) void glEnable( GLenum cap );
77 __attribute__((visibility("default"))) void glDisable( GLenum cap );
79 __attribute__((visibility("default"))) GLboolean glIsEnabled( GLenum cap );
82 __attribute__((visibility("default"))) void glEnableClientState( GLenum cap );
84 __attribute__((visibility("default"))) void glDisableClientState( GLenum cap );
87 __attribute__((visibility("default"))) void glGetBooleanv( GLenum pname, GLboolean *params );
89 __attribute__((visibility("default"))) void glGetDoublev( GLenum pname, GLdouble *params );
91 __attribute__((visibility("default"))) void glGetFloatv( GLenum pname, GLfloat *params );
93 __attribute__((visibility("default"))) void glGetIntegerv( GLenum pname, GLint *params );
96 __attribute__((visibility("default"))) void glPushAttrib( GLbitfield mask );
98 __attribute__((visibility("default"))) void glPopAttrib( void );
101 __attribute__((visibility("default"))) void glPushClientAttrib( GLbitfield mask );
103 __attribute__((visibility("default"))) void glPopClientAttrib( void );
106 __attribute__((visibility("default"))) GLint glRenderMode( GLenum mode );
108 __attribute__((visibility("default"))) GLenum glGetError( void );
110 __attribute__((visibility("default"))) const GLubyte * glGetString( GLenum name );
112 __attribute__((visibility("default"))) void glFinish( void );
114 __attribute__((visibility("default"))) void glFlush( void );
116 __attribute__((visibility("default"))) void glHint( GLenum target, GLenum mode );
123 __attribute__((visibility("default"))) void glClearDepth( GLclampd depth );
125 __attribute__((visibility("default"))) void glDepthFunc( GLenum func );
127 __attribute__((visibility("default"))) void glDepthMask( GLboolean flag );
129 __attribute__((visibility("default"))) void glDepthRange( GLclampd near_val, GLclampd far_val );
136 __attribute__((visibility("default"))) void glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
138 __attribute__((visibility("default"))) void glAccum( GLenum op, GLfloat value );
145 __attribute__((visibility("default"))) void glMatrixMode( GLenum mode );
147 __attribute__((visibility("default"))) void glOrtho( GLdouble left, GLdouble right,
148 GLdouble bottom, GLdouble top,
149 GLdouble near_val, GLdouble far_val );
151 __attribute__((visibility("default"))) void glFrustum( GLdouble left, GLdouble right,
152 GLdouble bottom, GLdouble top,
153 GLdouble near_val, GLdouble far_val );
155 __attribute__((visibility("default"))) void glViewport( GLint x, GLint y,
156 GLsizei width, GLsizei height );
158 __attribute__((visibility("default"))) void glPushMatrix( void );
160 __attribute__((visibility("default"))) void glPopMatrix( void );
162 __attribute__((visibility("default"))) void glLoadIdentity( void );
164 __attribute__((visibility("default"))) void glLoadMatrixd( const GLdouble *m );
165 __attribute__((visibility("default"))) void glLoadMatrixf( const GLfloat *m );
167 __attribute__((visibility("default"))) void glMultMatrixd( const GLdouble *m );
168 __attribute__((visibility("default"))) void glMultMatrixf( const GLfloat *m );
170 __attribute__((visibility("default"))) void glRotated( GLdouble angle,
171 GLdouble x, GLdouble y, GLdouble z );
172 __attribute__((visibility("default"))) void glRotatef( GLfloat angle,
173 GLfloat x, GLfloat y, GLfloat z );
175 __attribute__((visibility("default"))) void glScaled( GLdouble x, GLdouble y, GLdouble z );
176 __attribute__((visibility("default"))) void glScalef( GLfloat x, GLfloat y, GLfloat z );
178 __attribute__((visibility("default"))) void glTranslated( GLdouble x, GLdouble y, GLdouble z );
179 __attribute__((visibility("default"))) void glTranslatef( GLfloat x, GLfloat y, GLfloat z );
186 __attribute__((visibility("default"))) GLboolean glIsList( GLuint list );
188 __attribute__((visibility("default"))) void glDeleteLists( GLuint list, GLsizei range );
190 __attribute__((visibility("default"))) GLuint glGenLists( GLsizei range );
192 __attribute__((visibility("default"))) void glNewList( GLuint list, GLenum mode );
194 __attribute__((visibility("default"))) void glEndList( void );
196 __attribute__((visibility("default"))) void glCallList( GLuint list );
198 __attribute__((visibility("default"))) void glCallLists( GLsizei n, GLenum type,
199 const GLvoid *lists );
201 __attribute__((visibility("default"))) void glListBase( GLuint base );
208 __attribute__((visibility("default"))) void glBegin( GLenum mode );
210 __attribute__((visibility("default"))) void glEnd( void );
213 __attribute__((visibility("default"))) void glVertex2d( GLdouble x, GLdouble y );
214 __attribute__((visibility("default"))) void glVertex2f( GLfloat x, GLfloat y );
215 __attribute__((visibility("default"))) void glVertex2i( GLint x, GLint y );
216 __attribute__((visibility("default"))) void glVertex2s( GLshort x, GLshort y );
218 __attribute__((visibility("default"))) void glVertex3d( GLdouble x, GLdouble y, GLdouble z );
219 __attribute__((visibility("default"))) void glVertex3f( GLfloat x, GLfloat y, GLfloat z );
220 __attribute__((visibility("default"))) void glVertex3i( GLint x, GLint y, GLint z );
221 __attribute__((visibility("default"))) void glVertex3s( GLshort x, GLshort y, GLshort z );
223 __attribute__((visibility("default"))) void glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
224 __attribute__((visibility("default"))) void glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
225 __attribute__((visibility("default"))) void glVertex4i( GLint x, GLint y, GLint z, GLint w );
226 __attribute__((visibility("default"))) void glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
228 __attribute__((visibility("default"))) void glVertex2dv( const GLdouble *v );
229 __attribute__((visibility("default"))) void glVertex2fv( const GLfloat *v );
230 __attribute__((visibility("default"))) void glVertex2iv( const GLint *v );
231 __attribute__((visibility("default"))) void glVertex2sv( const GLshort *v );
233 __attribute__((visibility("default"))) void glVertex3dv( const GLdouble *v );
234 __attribute__((visibility("default"))) void glVertex3fv( const GLfloat *v );
235 __attribute__((visibility("default"))) void glVertex3iv( const GLint *v );
236 __attribute__((visibility("default"))) void glVertex3sv( const GLshort *v );
238 __attribute__((visibility("default"))) void glVertex4dv( const GLdouble *v );
239 __attribute__((visibility("default"))) void glVertex4fv( const GLfloat *v );
240 __attribute__((visibility("default"))) void glVertex4iv( const GLint *v );
241 __attribute__((visibility("default"))) void glVertex4sv( const GLshort *v );
244 __attribute__((visibility("default"))) void glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
245 __attribute__((visibility("default"))) void glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
246 __attribute__((visibility("default"))) void glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
247 __attribute__((visibility("default"))) void glNormal3i( GLint nx, GLint ny, GLint nz );
248 __attribute__((visibility("default"))) void glNormal3s( GLshort nx, GLshort ny, GLshort nz );
250 __attribute__((visibility("default"))) void glNormal3bv( const GLbyte *v );
251 __attribute__((visibility("default"))) void glNormal3dv( const GLdouble *v );
252 __attribute__((visibility("default"))) void glNormal3fv( const GLfloat *v );
253 __attribute__((visibility("default"))) void glNormal3iv( const GLint *v );
254 __attribute__((visibility("default"))) void glNormal3sv( const GLshort *v );
257 __attribute__((visibility("default"))) void glIndexd( GLdouble c );
258 __attribute__((visibility("default"))) void glIndexf( GLfloat c );
259 __attribute__((visibility("default"))) void glIndexi( GLint c );
260 __attribute__((visibility("default"))) void glIndexs( GLshort c );
261 __attribute__((visibility("default"))) void glIndexub( GLubyte c );
263 __attribute__((visibility("default"))) void glIndexdv( const GLdouble *c );
264 __attribute__((visibility("default"))) void glIndexfv( const GLfloat *c );
265 __attribute__((visibility("default"))) void glIndexiv( const GLint *c );
266 __attribute__((visibility("default"))) void glIndexsv( const GLshort *c );
267 __attribute__((visibility("default"))) void glIndexubv( const GLubyte *c );
269 __attribute__((visibility("default"))) void glColor3b( GLbyte red, GLbyte green, GLbyte blue );
270 __attribute__((visibility("default"))) void glColor3d( GLdouble red, GLdouble green, GLdouble blue );
271 __attribute__((visibility("default"))) void glColor3f( GLfloat red, GLfloat green, GLfloat blue );
272 __attribute__((visibility("default"))) void glColor3i( GLint red, GLint green, GLint blue );
273 __attribute__((visibility("default"))) void glColor3s( GLshort red, GLshort green, GLshort blue );
274 __attribute__((visibility("default"))) void glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
275 __attribute__((visibility("default"))) void glColor3ui( GLuint red, GLuint green, GLuint blue );
276 __attribute__((visibility("default"))) void glColor3us( GLushort red, GLushort green, GLushort blue );
278 __attribute__((visibility("default"))) void glColor4b( GLbyte red, GLbyte green,
279 GLbyte blue, GLbyte alpha );
280 __attribute__((visibility("default"))) void glColor4d( GLdouble red, GLdouble green,
281 GLdouble blue, GLdouble alpha );
282 __attribute__((visibility("default"))) void glColor4f( GLfloat red, GLfloat green,
283 GLfloat blue, GLfloat alpha );
284 __attribute__((visibility("default"))) void glColor4i( GLint red, GLint green,
285 GLint blue, GLint alpha );
286 __attribute__((visibility("default"))) void glColor4s( GLshort red, GLshort green,
287 GLshort blue, GLshort alpha );
288 __attribute__((visibility("default"))) void glColor4ub( GLubyte red, GLubyte green,
289 GLubyte blue, GLubyte alpha );
290 __attribute__((visibility("default"))) void glColor4ui( GLuint red, GLuint green,
291 GLuint blue, GLuint alpha );
292 __attribute__((visibility("default"))) void glColor4us( GLushort red, GLushort green,
293 GLushort blue, GLushort alpha );
296 __attribute__((visibility("default"))) void glColor3bv( const GLbyte *v );
297 __attribute__((visibility("default"))) void glColor3dv( const GLdouble *v );
298 __attribute__((visibility("default"))) void glColor3fv( const GLfloat *v );
299 __attribute__((visibility("default"))) void glColor3iv( const GLint *v );
300 __attribute__((visibility("default"))) void glColor3sv( const GLshort *v );
301 __attribute__((visibility("default"))) void glColor3ubv( const GLubyte *v );
302 __attribute__((visibility("default"))) void glColor3uiv( const GLuint *v );
303 __attribute__((visibility("default"))) void glColor3usv( const GLushort *v );
305 __attribute__((visibility("default"))) void glColor4bv( const GLbyte *v );
306 __attribute__((visibility("default"))) void glColor4dv( const GLdouble *v );
307 __attribute__((visibility("default"))) void glColor4fv( const GLfloat *v );
308 __attribute__((visibility("default"))) void glColor4iv( const GLint *v );
309 __attribute__((visibility("default"))) void glColor4sv( const GLshort *v );
310 __attribute__((visibility("default"))) void glColor4ubv( const GLubyte *v );
311 __attribute__((visibility("default"))) void glColor4uiv( const GLuint *v );
312 __attribute__((visibility("default"))) void glColor4usv( const GLushort *v );
315 __attribute__((visibility("default"))) void glTexCoord1d( GLdouble s );
316 __attribute__((visibility("default"))) void glTexCoord1f( GLfloat s );
317 __attribute__((visibility("default"))) void glTexCoord1i( GLint s );
318 __attribute__((visibility("default"))) void glTexCoord1s( GLshort s );
320 __attribute__((visibility("default"))) void glTexCoord2d( GLdouble s, GLdouble t );
321 __attribute__((visibility("default"))) void glTexCoord2f( GLfloat s, GLfloat t );
322 __attribute__((visibility("default"))) void glTexCoord2i( GLint s, GLint t );
323 __attribute__((visibility("default"))) void glTexCoord2s( GLshort s, GLshort t );
325 __attribute__((visibility("default"))) void glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
326 __attribute__((visibility("default"))) void glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
327 __attribute__((visibility("default"))) void glTexCoord3i( GLint s, GLint t, GLint r );
328 __attribute__((visibility("default"))) void glTexCoord3s( GLshort s, GLshort t, GLshort r );
330 __attribute__((visibility("default"))) void glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
331 __attribute__((visibility("default"))) void glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
332 __attribute__((visibility("default"))) void glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
333 __attribute__((visibility("default"))) void glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
335 __attribute__((visibility("default"))) void glTexCoord1dv( const GLdouble *v );
336 __attribute__((visibility("default"))) void glTexCoord1fv( const GLfloat *v );
337 __attribute__((visibility("default"))) void glTexCoord1iv( const GLint *v );
338 __attribute__((visibility("default"))) void glTexCoord1sv( const GLshort *v );
340 __attribute__((visibility("default"))) void glTexCoord2dv( const GLdouble *v );
341 __attribute__((visibility("default"))) void glTexCoord2fv( const GLfloat *v );
342 __attribute__((visibility("default"))) void glTexCoord2iv( const GLint *v );
343 __attribute__((visibility("default"))) void glTexCoord2sv( const GLshort *v );
345 __attribute__((visibility("default"))) void glTexCoord3dv( const GLdouble *v );
346 __attribute__((visibility("default"))) void glTexCoord3fv( const GLfloat *v );
347 __attribute__((visibility("default"))) void glTexCoord3iv( const GLint *v );
348 __attribute__((visibility("default"))) void glTexCoord3sv( const GLshort *v );
350 __attribute__((visibility("default"))) void glTexCoord4dv( const GLdouble *v );
351 __attribute__((visibility("default"))) void glTexCoord4fv( const GLfloat *v );
352 __attribute__((visibility("default"))) void glTexCoord4iv( const GLint *v );
353 __attribute__((visibility("default"))) void glTexCoord4sv( const GLshort *v );
356 __attribute__((visibility("default"))) void glRasterPos2d( GLdouble x, GLdouble y );
357 __attribute__((visibility("default"))) void glRasterPos2f( GLfloat x, GLfloat y );
358 __attribute__((visibility("default"))) void glRasterPos2i( GLint x, GLint y );
359 __attribute__((visibility("default"))) void glRasterPos2s( GLshort x, GLshort y );
361 __attribute__((visibility("default"))) void glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
362 __attribute__((visibility("default"))) void glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
363 __attribute__((visibility("default"))) void glRasterPos3i( GLint x, GLint y, GLint z );
364 __attribute__((visibility("default"))) void glRasterPos3s( GLshort x, GLshort y, GLshort z );
366 __attribute__((visibility("default"))) void glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
367 __attribute__((visibility("default"))) void glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
368 __attribute__((visibility("default"))) void glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
369 __attribute__((visibility("default"))) void glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
371 __attribute__((visibility("default"))) void glRasterPos2dv( const GLdouble *v );
372 __attribute__((visibility("default"))) void glRasterPos2fv( const GLfloat *v );
373 __attribute__((visibility("default"))) void glRasterPos2iv( const GLint *v );
374 __attribute__((visibility("default"))) void glRasterPos2sv( const GLshort *v );
376 __attribute__((visibility("default"))) void glRasterPos3dv( const GLdouble *v );
377 __attribute__((visibility("default"))) void glRasterPos3fv( const GLfloat *v );
378 __attribute__((visibility("default"))) void glRasterPos3iv( const GLint *v );
379 __attribute__((visibility("default"))) void glRasterPos3sv( const GLshort *v );
381 __attribute__((visibility("default"))) void glRasterPos4dv( const GLdouble *v );
382 __attribute__((visibility("default"))) void glRasterPos4fv( const GLfloat *v );
383 __attribute__((visibility("default"))) void glRasterPos4iv( const GLint *v );
384 __attribute__((visibility("default"))) void glRasterPos4sv( const GLshort *v );
387 __attribute__((visibility("default"))) void glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
388 __attribute__((visibility("default"))) void glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
389 __attribute__((visibility("default"))) void glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
390 __attribute__((visibility("default"))) void glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
393 __attribute__((visibility("default"))) void glRectdv( const GLdouble *v1, const GLdouble *v2 );
394 __attribute__((visibility("default"))) void glRectfv( const GLfloat *v1, const GLfloat *v2 );
395 __attribute__((visibility("default"))) void glRectiv( const GLint *v1, const GLint *v2 );
396 __attribute__((visibility("default"))) void glRectsv( const GLshort *v1, const GLshort *v2 );
403 __attribute__((visibility("default"))) void glVertexPointer( GLint size, GLenum type,
404 GLsizei stride, const GLvoid *ptr );
406 __attribute__((visibility("default"))) void glNormalPointer( GLenum type, GLsizei stride,
409 __attribute__((visibility("default"))) void glColorPointer( GLint size, GLenum type,
410 GLsizei stride, const GLvoid *ptr );
412 __attribute__((visibility("default"))) void glIndexPointer( GLenum type, GLsizei stride,
415 __attribute__((visibility("default"))) void glTexCoordPointer( GLint size, GLenum type,
416 GLsizei stride, const GLvoid *ptr );
418 __attribute__((visibility("default"))) void glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
420 __attribute__((visibility("default"))) void glGetPointerv( GLenum pname, GLvoid **params );
422 __attribute__((visibility("default"))) void glArrayElement( GLint i );
424 __attribute__((visibility("default"))) void glDrawArrays( GLenum mode, GLint first, GLsizei count );
426 __attribute__((visibility("default"))) void glDrawElements( GLenum mode, GLsizei count,
427 GLenum type, const GLvoid *indices );
429 __attribute__((visibility("default"))) void glInterleavedArrays( GLenum format, GLsizei stride,
430 const GLvoid *pointer );
436 __attribute__((visibility("default"))) void glShadeModel( GLenum mode );
438 __attribute__((visibility("default"))) void glLightf( GLenum light, GLenum pname, GLfloat param );
439 __attribute__((visibility("default"))) void glLighti( GLenum light, GLenum pname, GLint param );
440 __attribute__((visibility("default"))) void glLightfv( GLenum light, GLenum pname,
441 const GLfloat *params );
442 __attribute__((visibility("default"))) void glLightiv( GLenum light, GLenum pname,
443 const GLint *params );
445 __attribute__((visibility("default"))) void glGetLightfv( GLenum light, GLenum pname,
447 __attribute__((visibility("default"))) void glGetLightiv( GLenum light, GLenum pname,
450 __attribute__((visibility("default"))) void glLightModelf( GLenum pname, GLfloat param );
451 __attribute__((visibility("default"))) void glLightModeli( GLenum pname, GLint param );
452 __attribute__((visibility("default"))) void glLightModelfv( GLenum pname, const GLfloat *params );
453 __attribute__((visibility("default"))) void glLightModeliv( GLenum pname, const GLint *params );
455 __attribute__((visibility("default"))) void glMaterialf( GLenum face, GLenum pname, GLfloat param );
456 __attribute__((visibility("default"))) void glMateriali( GLenum face, GLenum pname, GLint param );
457 __attribute__((visibility("default"))) void glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
458 __attribute__((visibility("default"))) void glMaterialiv( GLenum face, GLenum pname, const GLint *params );
460 __attribute__((visibility("default"))) void glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
461 __attribute__((visibility("default"))) void glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
463 __attribute__((visibility("default"))) void glColorMaterial( GLenum face, GLenum mode );
470 __attribute__((visibility("default"))) void glPixelZoom( GLfloat xfactor, GLfloat yfactor );
472 __attribute__((visibility("default"))) void glPixelStoref( GLenum pname, GLfloat param );
473 __attribute__((visibility("default"))) void glPixelStorei( GLenum pname, GLint param );
475 __attribute__((visibility("default"))) void glPixelTransferf( GLenum pname, GLfloat param );
476 __attribute__((visibility("default"))) void glPixelTransferi( GLenum pname, GLint param );
478 __attribute__((visibility("default"))) void glPixelMapfv( GLenum map, GLsizei mapsize,
479 const GLfloat *values );
480 __attribute__((visibility("default"))) void glPixelMapuiv( GLenum map, GLsizei mapsize,
481 const GLuint *values );
482 __attribute__((visibility("default"))) void glPixelMapusv( GLenum map, GLsizei mapsize,
483 const GLushort *values );
485 __attribute__((visibility("default"))) void glGetPixelMapfv( GLenum map, GLfloat *values );
486 __attribute__((visibility("default"))) void glGetPixelMapuiv( GLenum map, GLuint *values );
487 __attribute__((visibility("default"))) void glGetPixelMapusv( GLenum map, GLushort *values );
489 __attribute__((visibility("default"))) void glBitmap( GLsizei width, GLsizei height,
490 GLfloat xorig, GLfloat yorig,
491 GLfloat xmove, GLfloat ymove,
492 const GLubyte *bitmap );
494 __attribute__((visibility("default"))) void glReadPixels( GLint x, GLint y,
495 GLsizei width, GLsizei height,
496 GLenum format, GLenum type,
499 __attribute__((visibility("default"))) void glDrawPixels( GLsizei width, GLsizei height,
500 GLenum format, GLenum type,
501 const GLvoid *pixels );
503 __attribute__((visibility("default"))) void glCopyPixels( GLint x, GLint y,
504 GLsizei width, GLsizei height,
511 __attribute__((visibility("default"))) void glStencilFunc( GLenum func, GLint ref, GLuint mask );
513 __attribute__((visibility("default"))) void glStencilMask( GLuint mask );
515 __attribute__((visibility("default"))) void glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
517 __attribute__((visibility("default"))) void glClearStencil( GLint s );
525 __attribute__((visibility("default"))) void glTexGend( GLenum coord, GLenum pname, GLdouble param );
526 __attribute__((visibility("default"))) void glTexGenf( GLenum coord, GLenum pname, GLfloat param );
527 __attribute__((visibility("default"))) void glTexGeni( GLenum coord, GLenum pname, GLint param );
529 __attribute__((visibility("default"))) void glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
530 __attribute__((visibility("default"))) void glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
531 __attribute__((visibility("default"))) void glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
533 __attribute__((visibility("default"))) void glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
534 __attribute__((visibility("default"))) void glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
535 __attribute__((visibility("default"))) void glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
538 __attribute__((visibility("default"))) void glTexEnvf( GLenum target, GLenum pname, GLfloat param );
539 __attribute__((visibility("default"))) void glTexEnvi( GLenum target, GLenum pname, GLint param );
541 __attribute__((visibility("default"))) void glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
542 __attribute__((visibility("default"))) void glTexEnviv( GLenum target, GLenum pname, const GLint *params );
544 __attribute__((visibility("default"))) void glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
545 __attribute__((visibility("default"))) void glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
548 __attribute__((visibility("default"))) void glTexParameterf( GLenum target, GLenum pname, GLfloat param );
549 __attribute__((visibility("default"))) void glTexParameteri( GLenum target, GLenum pname, GLint param );
551 __attribute__((visibility("default"))) void glTexParameterfv( GLenum target, GLenum pname,
552 const GLfloat *params );
553 __attribute__((visibility("default"))) void glTexParameteriv( GLenum target, GLenum pname,
554 const GLint *params );
556 __attribute__((visibility("default"))) void glGetTexParameterfv( GLenum target,
557 GLenum pname, GLfloat *params);
558 __attribute__((visibility("default"))) void glGetTexParameteriv( GLenum target,
559 GLenum pname, GLint *params );
561 __attribute__((visibility("default"))) void glGetTexLevelParameterfv( GLenum target, GLint level,
562 GLenum pname, GLfloat *params );
563 __attribute__((visibility("default"))) void glGetTexLevelParameteriv( GLenum target, GLint level,
564 GLenum pname, GLint *params );
567 __attribute__((visibility("default"))) void glTexImage1D( GLenum target, GLint level,
568 GLint internalFormat,
569 GLsizei width, GLint border,
570 GLenum format, GLenum type,
571 const GLvoid *pixels );
573 __attribute__((visibility("default"))) void glTexImage2D( GLenum target, GLint level,
574 GLint internalFormat,
575 GLsizei width, GLsizei height,
576 GLint border, GLenum format, GLenum type,
577 const GLvoid *pixels );
579 __attribute__((visibility("default"))) void glGetTexImage( GLenum target, GLint level,
580 GLenum format, GLenum type,
586 __attribute__((visibility("default"))) void glGenTextures( GLsizei n, GLuint *textures );
588 __attribute__((visibility("default"))) void glDeleteTextures( GLsizei n, const GLuint *textures);
590 __attribute__((visibility("default"))) void glBindTexture( GLenum target, GLuint texture );
592 __attribute__((visibility("default"))) void glPrioritizeTextures( GLsizei n,
593 const GLuint *textures,
594 const GLclampf *priorities );
596 __attribute__((visibility("default"))) GLboolean glAreTexturesResident( GLsizei n,
597 const GLuint *textures,
598 GLboolean *residences );
600 __attribute__((visibility("default"))) GLboolean glIsTexture( GLuint texture );
603 __attribute__((visibility("default"))) void glTexSubImage1D( GLenum target, GLint level,
605 GLsizei width, GLenum format,
606 GLenum type, const GLvoid *pixels );
609 __attribute__((visibility("default"))) void glTexSubImage2D( GLenum target, GLint level,
610 GLint xoffset, GLint yoffset,
611 GLsizei width, GLsizei height,
612 GLenum format, GLenum type,
613 const GLvoid *pixels );
616 __attribute__((visibility("default"))) void glCopyTexImage1D( GLenum target, GLint level,
617 GLenum internalformat,
619 GLsizei width, GLint border );
622 __attribute__((visibility("default"))) void glCopyTexImage2D( GLenum target, GLint level,
623 GLenum internalformat,
625 GLsizei width, GLsizei height,
629 __attribute__((visibility("default"))) void glCopyTexSubImage1D( GLenum target, GLint level,
630 GLint xoffset, GLint x, GLint y,
634 __attribute__((visibility("default"))) void glCopyTexSubImage2D( GLenum target, GLint level,
635 GLint xoffset, GLint yoffset,
637 GLsizei width, GLsizei height );
644 __attribute__((visibility("default"))) void glMap1d( GLenum target, GLdouble u1, GLdouble u2,
646 GLint order, const GLdouble *points );
647 __attribute__((visibility("default"))) void glMap1f( GLenum target, GLfloat u1, GLfloat u2,
649 GLint order, const GLfloat *points );
651 __attribute__((visibility("default"))) void glMap2d( GLenum target,
652 GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
653 GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
654 const GLdouble *points );
655 __attribute__((visibility("default"))) void glMap2f( GLenum target,
656 GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
657 GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
658 const GLfloat *points );
660 __attribute__((visibility("default"))) void glGetMapdv( GLenum target, GLenum query, GLdouble *v );
661 __attribute__((visibility("default"))) void glGetMapfv( GLenum target, GLenum query, GLfloat *v );
662 __attribute__((visibility("default"))) void glGetMapiv( GLenum target, GLenum query, GLint *v );
664 __attribute__((visibility("default"))) void glEvalCoord1d( GLdouble u );
665 __attribute__((visibility("default"))) void glEvalCoord1f( GLfloat u );
667 __attribute__((visibility("default"))) void glEvalCoord1dv( const GLdouble *u );
668 __attribute__((visibility("default"))) void glEvalCoord1fv( const GLfloat *u );
670 __attribute__((visibility("default"))) void glEvalCoord2d( GLdouble u, GLdouble v );
671 __attribute__((visibility("default"))) void glEvalCoord2f( GLfloat u, GLfloat v );
673 __attribute__((visibility("default"))) void glEvalCoord2dv( const GLdouble *u );
674 __attribute__((visibility("default"))) void glEvalCoord2fv( const GLfloat *u );
676 __attribute__((visibility("default"))) void glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
677 __attribute__((visibility("default"))) void glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
679 __attribute__((visibility("default"))) void glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
680 GLint vn, GLdouble v1, GLdouble v2 );
681 __attribute__((visibility("default"))) void glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
682 GLint vn, GLfloat v1, GLfloat v2 );
684 __attribute__((visibility("default"))) void glEvalPoint1( GLint i );
686 __attribute__((visibility("default"))) void glEvalPoint2( GLint i, GLint j );
688 __attribute__((visibility("default"))) void glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
690 __attribute__((visibility("default"))) void glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
697 __attribute__((visibility("default"))) void glFogf( GLenum pname, GLfloat param );
699 __attribute__((visibility("default"))) void glFogi( GLenum pname, GLint param );
701 __attribute__((visibility("default"))) void glFogfv( GLenum pname, const GLfloat *params );
703 __attribute__((visibility("default"))) void glFogiv( GLenum pname, const GLint *params );
710 __attribute__((visibility("default"))) void glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
712 __attribute__((visibility("default"))) void glPassThrough( GLfloat token );
714 __attribute__((visibility("default"))) void glSelectBuffer( GLsizei size, GLuint *buffer );
716 __attribute__((visibility("default"))) void glInitNames( void );
718 __attribute__((visibility("default"))) void glLoadName( GLuint name );
720 __attribute__((visibility("default"))) void glPushName( GLuint name );
722 __attribute__((visibility("default"))) void glPopName( void );
723 # 1527 "../../include/GL/gl.h"
724 __attribute__((visibility("default"))) void glDrawRangeElements( GLenum mode, GLuint start,
725 GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
727 __attribute__((visibility("default"))) void glTexImage3D( GLenum target, GLint level,
728 GLint internalFormat,
729 GLsizei width, GLsizei height,
730 GLsizei depth, GLint border,
731 GLenum format, GLenum type,
732 const GLvoid *pixels );
734 __attribute__((visibility("default"))) void glTexSubImage3D( GLenum target, GLint level,
735 GLint xoffset, GLint yoffset,
736 GLint zoffset, GLsizei width,
737 GLsizei height, GLsizei depth,
739 GLenum type, const GLvoid *pixels);
741 __attribute__((visibility("default"))) void glCopyTexSubImage3D( GLenum target, GLint level,
742 GLint xoffset, GLint yoffset,
743 GLint zoffset, GLint x,
744 GLint y, GLsizei width,
747 typedef void ( * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
748 typedef void ( * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
749 typedef 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);
750 typedef void ( * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
751 # 1637 "../../include/GL/gl.h"
752 __attribute__((visibility("default"))) void glColorTable( GLenum target, GLenum internalformat,
753 GLsizei width, GLenum format,
754 GLenum type, const GLvoid *table );
756 __attribute__((visibility("default"))) void glColorSubTable( GLenum target,
757 GLsizei start, GLsizei count,
758 GLenum format, GLenum type,
759 const GLvoid *data );
761 __attribute__((visibility("default"))) void glColorTableParameteriv(GLenum target, GLenum pname,
762 const GLint *params);
764 __attribute__((visibility("default"))) void glColorTableParameterfv(GLenum target, GLenum pname,
765 const GLfloat *params);
767 __attribute__((visibility("default"))) void glCopyColorSubTable( GLenum target, GLsizei start,
768 GLint x, GLint y, GLsizei width );
770 __attribute__((visibility("default"))) void glCopyColorTable( GLenum target, GLenum internalformat,
771 GLint x, GLint y, GLsizei width );
773 __attribute__((visibility("default"))) void glGetColorTable( GLenum target, GLenum format,
774 GLenum type, GLvoid *table );
776 __attribute__((visibility("default"))) void glGetColorTableParameterfv( GLenum target, GLenum pname,
779 __attribute__((visibility("default"))) void glGetColorTableParameteriv( GLenum target, GLenum pname,
782 __attribute__((visibility("default"))) void glBlendEquation( GLenum mode );
784 __attribute__((visibility("default"))) void glBlendColor( GLclampf red, GLclampf green,
785 GLclampf blue, GLclampf alpha );
787 __attribute__((visibility("default"))) void glHistogram( GLenum target, GLsizei width,
788 GLenum internalformat, GLboolean sink );
790 __attribute__((visibility("default"))) void glResetHistogram( GLenum target );
792 __attribute__((visibility("default"))) void glGetHistogram( GLenum target, GLboolean reset,
793 GLenum format, GLenum type,
796 __attribute__((visibility("default"))) void glGetHistogramParameterfv( GLenum target, GLenum pname,
799 __attribute__((visibility("default"))) void glGetHistogramParameteriv( GLenum target, GLenum pname,
802 __attribute__((visibility("default"))) void glMinmax( GLenum target, GLenum internalformat,
805 __attribute__((visibility("default"))) void glResetMinmax( GLenum target );
807 __attribute__((visibility("default"))) void glGetMinmax( GLenum target, GLboolean reset,
808 GLenum format, GLenum types,
811 __attribute__((visibility("default"))) void glGetMinmaxParameterfv( GLenum target, GLenum pname,
814 __attribute__((visibility("default"))) void glGetMinmaxParameteriv( GLenum target, GLenum pname,
817 __attribute__((visibility("default"))) void glConvolutionFilter1D( GLenum target,
818 GLenum internalformat, GLsizei width, GLenum format, GLenum type,
819 const GLvoid *image );
821 __attribute__((visibility("default"))) void glConvolutionFilter2D( GLenum target,
822 GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
823 GLenum type, const GLvoid *image );
825 __attribute__((visibility("default"))) void glConvolutionParameterf( GLenum target, GLenum pname,
828 __attribute__((visibility("default"))) void glConvolutionParameterfv( GLenum target, GLenum pname,
829 const GLfloat *params );
831 __attribute__((visibility("default"))) void glConvolutionParameteri( GLenum target, GLenum pname,
834 __attribute__((visibility("default"))) void glConvolutionParameteriv( GLenum target, GLenum pname,
835 const GLint *params );
837 __attribute__((visibility("default"))) void glCopyConvolutionFilter1D( GLenum target,
838 GLenum internalformat, GLint x, GLint y, GLsizei width );
840 __attribute__((visibility("default"))) void glCopyConvolutionFilter2D( GLenum target,
841 GLenum internalformat, GLint x, GLint y, GLsizei width,
844 __attribute__((visibility("default"))) void glGetConvolutionFilter( GLenum target, GLenum format,
845 GLenum type, GLvoid *image );
847 __attribute__((visibility("default"))) void glGetConvolutionParameterfv( GLenum target, GLenum pname,
850 __attribute__((visibility("default"))) void glGetConvolutionParameteriv( GLenum target, GLenum pname,
853 __attribute__((visibility("default"))) void glSeparableFilter2D( GLenum target,
854 GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
855 GLenum type, const GLvoid *row, const GLvoid *column );
857 __attribute__((visibility("default"))) void glGetSeparableFilter( GLenum target, GLenum format,
858 GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
860 typedef void ( * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
861 typedef void ( * PFNGLBLENDEQUATIONPROC) (GLenum mode);
862 # 1859 "../../include/GL/gl.h"
863 __attribute__((visibility("default"))) void glActiveTexture( GLenum texture );
865 __attribute__((visibility("default"))) void glClientActiveTexture( GLenum texture );
867 __attribute__((visibility("default"))) void glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
869 __attribute__((visibility("default"))) void glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
871 __attribute__((visibility("default"))) void glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
873 __attribute__((visibility("default"))) void glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
875 __attribute__((visibility("default"))) void glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
877 __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 );
879 __attribute__((visibility("default"))) void glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img );
881 __attribute__((visibility("default"))) void glMultiTexCoord1d( GLenum target, GLdouble s );
883 __attribute__((visibility("default"))) void glMultiTexCoord1dv( GLenum target, const GLdouble *v );
885 __attribute__((visibility("default"))) void glMultiTexCoord1f( GLenum target, GLfloat s );
887 __attribute__((visibility("default"))) void glMultiTexCoord1fv( GLenum target, const GLfloat *v );
889 __attribute__((visibility("default"))) void glMultiTexCoord1i( GLenum target, GLint s );
891 __attribute__((visibility("default"))) void glMultiTexCoord1iv( GLenum target, const GLint *v );
893 __attribute__((visibility("default"))) void glMultiTexCoord1s( GLenum target, GLshort s );
895 __attribute__((visibility("default"))) void glMultiTexCoord1sv( GLenum target, const GLshort *v );
897 __attribute__((visibility("default"))) void glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t );
899 __attribute__((visibility("default"))) void glMultiTexCoord2dv( GLenum target, const GLdouble *v );
901 __attribute__((visibility("default"))) void glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t );
903 __attribute__((visibility("default"))) void glMultiTexCoord2fv( GLenum target, const GLfloat *v );
905 __attribute__((visibility("default"))) void glMultiTexCoord2i( GLenum target, GLint s, GLint t );
907 __attribute__((visibility("default"))) void glMultiTexCoord2iv( GLenum target, const GLint *v );
909 __attribute__((visibility("default"))) void glMultiTexCoord2s( GLenum target, GLshort s, GLshort t );
911 __attribute__((visibility("default"))) void glMultiTexCoord2sv( GLenum target, const GLshort *v );
913 __attribute__((visibility("default"))) void glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r );
915 __attribute__((visibility("default"))) void glMultiTexCoord3dv( GLenum target, const GLdouble *v );
917 __attribute__((visibility("default"))) void glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r );
919 __attribute__((visibility("default"))) void glMultiTexCoord3fv( GLenum target, const GLfloat *v );
921 __attribute__((visibility("default"))) void glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r );
923 __attribute__((visibility("default"))) void glMultiTexCoord3iv( GLenum target, const GLint *v );
925 __attribute__((visibility("default"))) void glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r );
927 __attribute__((visibility("default"))) void glMultiTexCoord3sv( GLenum target, const GLshort *v );
929 __attribute__((visibility("default"))) void glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q );
931 __attribute__((visibility("default"))) void glMultiTexCoord4dv( GLenum target, const GLdouble *v );
933 __attribute__((visibility("default"))) void glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
935 __attribute__((visibility("default"))) void glMultiTexCoord4fv( GLenum target, const GLfloat *v );
937 __attribute__((visibility("default"))) void glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q );
939 __attribute__((visibility("default"))) void glMultiTexCoord4iv( GLenum target, const GLint *v );
941 __attribute__((visibility("default"))) void glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q );
943 __attribute__((visibility("default"))) void glMultiTexCoord4sv( GLenum target, const GLshort *v );
946 __attribute__((visibility("default"))) void glLoadTransposeMatrixd( const GLdouble m[16] );
948 __attribute__((visibility("default"))) void glLoadTransposeMatrixf( const GLfloat m[16] );
950 __attribute__((visibility("default"))) void glMultTransposeMatrixd( const GLdouble m[16] );
952 __attribute__((visibility("default"))) void glMultTransposeMatrixf( const GLfloat m[16] );
954 __attribute__((visibility("default"))) void glSampleCoverage( GLclampf value, GLboolean invert );
957 typedef void ( * PFNGLACTIVETEXTUREPROC) (GLenum texture);
958 typedef void ( * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
959 typedef void ( * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
960 typedef void ( * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
961 typedef void ( * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
962 typedef 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);
963 typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
964 typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
965 typedef void ( * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
966 # 2007 "../../include/GL/gl.h"
967 __attribute__((visibility("default"))) void glActiveTextureARB(GLenum texture);
968 __attribute__((visibility("default"))) void glClientActiveTextureARB(GLenum texture);
969 __attribute__((visibility("default"))) void glMultiTexCoord1dARB(GLenum target, GLdouble s);
970 __attribute__((visibility("default"))) void glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
971 __attribute__((visibility("default"))) void glMultiTexCoord1fARB(GLenum target, GLfloat s);
972 __attribute__((visibility("default"))) void glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
973 __attribute__((visibility("default"))) void glMultiTexCoord1iARB(GLenum target, GLint s);
974 __attribute__((visibility("default"))) void glMultiTexCoord1ivARB(GLenum target, const GLint *v);
975 __attribute__((visibility("default"))) void glMultiTexCoord1sARB(GLenum target, GLshort s);
976 __attribute__((visibility("default"))) void glMultiTexCoord1svARB(GLenum target, const GLshort *v);
977 __attribute__((visibility("default"))) void glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
978 __attribute__((visibility("default"))) void glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
979 __attribute__((visibility("default"))) void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
980 __attribute__((visibility("default"))) void glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
981 __attribute__((visibility("default"))) void glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
982 __attribute__((visibility("default"))) void glMultiTexCoord2ivARB(GLenum target, const GLint *v);
983 __attribute__((visibility("default"))) void glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
984 __attribute__((visibility("default"))) void glMultiTexCoord2svARB(GLenum target, const GLshort *v);
985 __attribute__((visibility("default"))) void glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
986 __attribute__((visibility("default"))) void glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
987 __attribute__((visibility("default"))) void glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
988 __attribute__((visibility("default"))) void glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
989 __attribute__((visibility("default"))) void glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
990 __attribute__((visibility("default"))) void glMultiTexCoord3ivARB(GLenum target, const GLint *v);
991 __attribute__((visibility("default"))) void glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
992 __attribute__((visibility("default"))) void glMultiTexCoord3svARB(GLenum target, const GLshort *v);
993 __attribute__((visibility("default"))) void glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
994 __attribute__((visibility("default"))) void glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
995 __attribute__((visibility("default"))) void glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
996 __attribute__((visibility("default"))) void glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
997 __attribute__((visibility("default"))) void glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
998 __attribute__((visibility("default"))) void glMultiTexCoord4ivARB(GLenum target, const GLint *v);
999 __attribute__((visibility("default"))) void glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1000 __attribute__((visibility("default"))) void glMultiTexCoord4svARB(GLenum target, const GLshort *v);
1002 typedef void ( * PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
1003 typedef void ( * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
1004 typedef void ( * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
1005 typedef void ( * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
1006 typedef void ( * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
1007 typedef void ( * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
1008 typedef void ( * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
1009 typedef void ( * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
1010 typedef void ( * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
1011 typedef void ( * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
1012 typedef void ( * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
1013 typedef void ( * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
1014 typedef void ( * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
1015 typedef void ( * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
1016 typedef void ( * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
1017 typedef void ( * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
1018 typedef void ( * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
1019 typedef void ( * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
1020 typedef void ( * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
1021 typedef void ( * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
1022 typedef void ( * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
1023 typedef void ( * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
1024 typedef void ( * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
1025 typedef void ( * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
1026 typedef void ( * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
1027 typedef void ( * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
1028 typedef void ( * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1029 typedef void ( * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
1030 typedef void ( * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1031 typedef void ( * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
1032 typedef void ( * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
1033 typedef void ( * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
1034 typedef void ( * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1035 typedef void ( * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
1036 # 2091 "../../include/GL/gl.h"
1037 # 1 "../../include/GL/glext.h" 1
1038 # 5064 "../../include/GL/glext.h"
1039 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
1040 # 149 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 3 4
1041 typedef int ptrdiff_t;
1042 # 211 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 3 4
1043 typedef unsigned int size_t;
1044 # 323 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 3 4
1045 typedef long int wchar_t;
1046 # 5065 "../../include/GL/glext.h" 2
1049 typedef char GLchar;
1054 typedef ptrdiff_t GLintptr;
1055 typedef ptrdiff_t GLsizeiptr;
1060 typedef ptrdiff_t GLintptrARB;
1061 typedef ptrdiff_t GLsizeiptrARB;
1066 typedef char GLcharARB;
1067 typedef unsigned int GLhandleARB;
1072 typedef unsigned short GLhalfARB;
1076 typedef unsigned short GLhalfNV;
1077 # 5103 "../../include/GL/glext.h"
1078 # 1 "/usr/include/inttypes.h" 1 3 4
1079 # 26 "/usr/include/inttypes.h" 3 4
1080 # 1 "/usr/include/features.h" 1 3 4
1081 # 357 "/usr/include/features.h" 3 4
1082 # 1 "/usr/include/sys/cdefs.h" 1 3 4
1083 # 353 "/usr/include/sys/cdefs.h" 3 4
1084 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1085 # 354 "/usr/include/sys/cdefs.h" 2 3 4
1086 # 358 "/usr/include/features.h" 2 3 4
1087 # 381 "/usr/include/features.h" 3 4
1088 # 1 "/usr/include/gnu/stubs.h" 1 3 4
1089 # 382 "/usr/include/features.h" 2 3 4
1090 # 27 "/usr/include/inttypes.h" 2 3 4
1092 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stdint.h" 1 3 4
1095 # 1 "/usr/include/stdint.h" 1 3 4
1096 # 27 "/usr/include/stdint.h" 3 4
1097 # 1 "/usr/include/bits/wchar.h" 1 3 4
1098 # 28 "/usr/include/stdint.h" 2 3 4
1099 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1100 # 29 "/usr/include/stdint.h" 2 3 4
1101 # 37 "/usr/include/stdint.h" 3 4
1102 typedef signed char int8_t;
1103 typedef short int int16_t;
1104 typedef int int32_t;
1109 typedef long long int int64_t;
1114 typedef unsigned char uint8_t;
1115 typedef unsigned short int uint16_t;
1117 typedef unsigned int uint32_t;
1124 typedef unsigned long long int uint64_t;
1131 typedef signed char int_least8_t;
1132 typedef short int int_least16_t;
1133 typedef int int_least32_t;
1138 typedef long long int int_least64_t;
1142 typedef unsigned char uint_least8_t;
1143 typedef unsigned short int uint_least16_t;
1144 typedef unsigned int uint_least32_t;
1149 typedef unsigned long long int uint_least64_t;
1156 typedef signed char int_fast8_t;
1162 typedef int int_fast16_t;
1163 typedef int int_fast32_t;
1165 typedef long long int int_fast64_t;
1169 typedef unsigned char uint_fast8_t;
1175 typedef unsigned int uint_fast16_t;
1176 typedef unsigned int uint_fast32_t;
1178 typedef unsigned long long int uint_fast64_t;
1179 # 126 "/usr/include/stdint.h" 3 4
1180 typedef int intptr_t;
1183 typedef unsigned int uintptr_t;
1184 # 138 "/usr/include/stdint.h" 3 4
1186 typedef long long int intmax_t;
1188 typedef unsigned long long int uintmax_t;
1189 # 4 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stdint.h" 2 3 4
1190 # 29 "/usr/include/inttypes.h" 2 3 4
1197 typedef long int __gwchar_t;
1198 # 274 "/usr/include/inttypes.h" 3 4
1200 # 288 "/usr/include/inttypes.h" 3 4
1211 extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1214 extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
1215 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1218 extern intmax_t strtoimax (__const char *__restrict __nptr,
1219 char **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
1222 extern uintmax_t strtoumax (__const char *__restrict __nptr,
1223 char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__));
1226 extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr,
1227 __gwchar_t **__restrict __endptr, int __base)
1228 __attribute__ ((__nothrow__));
1231 extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr,
1232 __gwchar_t ** __restrict __endptr, int __base)
1233 __attribute__ ((__nothrow__));
1234 # 379 "/usr/include/inttypes.h" 3 4
1236 extern long long int __strtoll_internal (__const char *__restrict __nptr,
1237 char **__restrict __endptr,
1238 int __base, int __group)
1239 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1241 extern __inline __attribute__ ((__gnu_inline__)) intmax_t
1242 __attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base)
1245 return __strtoll_internal (nptr, endptr, base, 0);
1249 extern unsigned long long int __strtoull_internal (__const char *
1252 __restrict __endptr,
1255 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1257 extern __inline __attribute__ ((__gnu_inline__)) uintmax_t
1258 __attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base)
1261 return __strtoull_internal (nptr, endptr, base, 0);
1265 extern long long int __wcstoll_internal (__const __gwchar_t *
1267 __gwchar_t **__restrict __endptr,
1268 int __base, int __group)
1269 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1271 extern __inline __attribute__ ((__gnu_inline__)) intmax_t
1272 __attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
1275 return __wcstoll_internal (nptr, endptr, base, 0);
1280 extern unsigned long long int __wcstoull_internal (__const __gwchar_t *
1283 __restrict __endptr,
1286 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1288 extern __inline __attribute__ ((__gnu_inline__)) uintmax_t
1289 __attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
1292 return __wcstoull_internal (nptr, endptr, base, 0);
1299 # 5104 "../../include/GL/glext.h" 2
1300 # 5136 "../../include/GL/glext.h"
1301 typedef int64_t GLint64EXT;
1302 typedef uint64_t GLuint64EXT;
1306 typedef int64_t GLint64;
1307 typedef uint64_t GLuint64;
1308 typedef struct __GLsync *GLsync;
1318 typedef void ( *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
1322 typedef void ( *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
1326 typedef GLintptr GLvdpauSurfaceNV;
1327 # 5185 "../../include/GL/glext.h"
1328 __attribute__((visibility("default"))) void glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
1329 __attribute__((visibility("default"))) void glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
1330 __attribute__((visibility("default"))) void glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
1331 __attribute__((visibility("default"))) void glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
1332 __attribute__((visibility("default"))) void glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table);
1333 __attribute__((visibility("default"))) void glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
1334 __attribute__((visibility("default"))) void glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
1335 __attribute__((visibility("default"))) void glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
1336 __attribute__((visibility("default"))) void glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
1337 __attribute__((visibility("default"))) void glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
1338 __attribute__((visibility("default"))) void glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
1339 __attribute__((visibility("default"))) void glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
1340 __attribute__((visibility("default"))) void glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
1341 __attribute__((visibility("default"))) void glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
1342 __attribute__((visibility("default"))) void glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
1343 __attribute__((visibility("default"))) void glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
1344 __attribute__((visibility("default"))) void glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
1345 __attribute__((visibility("default"))) void glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image);
1346 __attribute__((visibility("default"))) void glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
1347 __attribute__((visibility("default"))) void glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
1348 __attribute__((visibility("default"))) void glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
1349 __attribute__((visibility("default"))) void glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
1350 __attribute__((visibility("default"))) void glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
1351 __attribute__((visibility("default"))) void glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
1352 __attribute__((visibility("default"))) void glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
1353 __attribute__((visibility("default"))) void glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
1354 __attribute__((visibility("default"))) void glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
1355 __attribute__((visibility("default"))) void glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
1356 __attribute__((visibility("default"))) void glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
1357 __attribute__((visibility("default"))) void glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
1358 __attribute__((visibility("default"))) void glResetHistogram (GLenum target);
1359 __attribute__((visibility("default"))) void glResetMinmax (GLenum target);
1361 typedef void ( * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
1362 typedef void ( * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
1363 typedef void ( * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
1364 typedef void ( * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
1365 typedef void ( * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
1366 typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
1367 typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1368 typedef void ( * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
1369 typedef void ( * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
1370 typedef void ( * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
1371 typedef void ( * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
1372 typedef void ( * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
1373 typedef void ( * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
1374 typedef void ( * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
1375 typedef void ( * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
1376 typedef void ( * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
1377 typedef void ( * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
1378 typedef void ( * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
1379 typedef void ( * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
1380 typedef void ( * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1381 typedef void ( * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
1382 typedef void ( * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
1383 typedef void ( * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
1384 typedef void ( * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
1385 typedef void ( * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1386 typedef void ( * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
1387 typedef void ( * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
1388 typedef void ( * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1389 typedef void ( * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
1390 typedef void ( * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
1391 typedef void ( * PFNGLRESETHISTOGRAMPROC) (GLenum target);
1392 typedef void ( * PFNGLRESETMINMAXPROC) (GLenum target);
1393 # 5279 "../../include/GL/glext.h"
1394 __attribute__((visibility("default"))) void glClientActiveTexture (GLenum texture);
1395 __attribute__((visibility("default"))) void glMultiTexCoord1d (GLenum target, GLdouble s);
1396 __attribute__((visibility("default"))) void glMultiTexCoord1dv (GLenum target, const GLdouble *v);
1397 __attribute__((visibility("default"))) void glMultiTexCoord1f (GLenum target, GLfloat s);
1398 __attribute__((visibility("default"))) void glMultiTexCoord1fv (GLenum target, const GLfloat *v);
1399 __attribute__((visibility("default"))) void glMultiTexCoord1i (GLenum target, GLint s);
1400 __attribute__((visibility("default"))) void glMultiTexCoord1iv (GLenum target, const GLint *v);
1401 __attribute__((visibility("default"))) void glMultiTexCoord1s (GLenum target, GLshort s);
1402 __attribute__((visibility("default"))) void glMultiTexCoord1sv (GLenum target, const GLshort *v);
1403 __attribute__((visibility("default"))) void glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
1404 __attribute__((visibility("default"))) void glMultiTexCoord2dv (GLenum target, const GLdouble *v);
1405 __attribute__((visibility("default"))) void glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
1406 __attribute__((visibility("default"))) void glMultiTexCoord2fv (GLenum target, const GLfloat *v);
1407 __attribute__((visibility("default"))) void glMultiTexCoord2i (GLenum target, GLint s, GLint t);
1408 __attribute__((visibility("default"))) void glMultiTexCoord2iv (GLenum target, const GLint *v);
1409 __attribute__((visibility("default"))) void glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
1410 __attribute__((visibility("default"))) void glMultiTexCoord2sv (GLenum target, const GLshort *v);
1411 __attribute__((visibility("default"))) void glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
1412 __attribute__((visibility("default"))) void glMultiTexCoord3dv (GLenum target, const GLdouble *v);
1413 __attribute__((visibility("default"))) void glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
1414 __attribute__((visibility("default"))) void glMultiTexCoord3fv (GLenum target, const GLfloat *v);
1415 __attribute__((visibility("default"))) void glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
1416 __attribute__((visibility("default"))) void glMultiTexCoord3iv (GLenum target, const GLint *v);
1417 __attribute__((visibility("default"))) void glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
1418 __attribute__((visibility("default"))) void glMultiTexCoord3sv (GLenum target, const GLshort *v);
1419 __attribute__((visibility("default"))) void glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1420 __attribute__((visibility("default"))) void glMultiTexCoord4dv (GLenum target, const GLdouble *v);
1421 __attribute__((visibility("default"))) void glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1422 __attribute__((visibility("default"))) void glMultiTexCoord4fv (GLenum target, const GLfloat *v);
1423 __attribute__((visibility("default"))) void glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
1424 __attribute__((visibility("default"))) void glMultiTexCoord4iv (GLenum target, const GLint *v);
1425 __attribute__((visibility("default"))) void glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1426 __attribute__((visibility("default"))) void glMultiTexCoord4sv (GLenum target, const GLshort *v);
1427 __attribute__((visibility("default"))) void glLoadTransposeMatrixf (const GLfloat *m);
1428 __attribute__((visibility("default"))) void glLoadTransposeMatrixd (const GLdouble *m);
1429 __attribute__((visibility("default"))) void glMultTransposeMatrixf (const GLfloat *m);
1430 __attribute__((visibility("default"))) void glMultTransposeMatrixd (const GLdouble *m);
1432 typedef void ( * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
1433 typedef void ( * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
1434 typedef void ( * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
1435 typedef void ( * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
1436 typedef void ( * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
1437 typedef void ( * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
1438 typedef void ( * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
1439 typedef void ( * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
1440 typedef void ( * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
1441 typedef void ( * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
1442 typedef void ( * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
1443 typedef void ( * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
1444 typedef void ( * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
1445 typedef void ( * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
1446 typedef void ( * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
1447 typedef void ( * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
1448 typedef void ( * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
1449 typedef void ( * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
1450 typedef void ( * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
1451 typedef void ( * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
1452 typedef void ( * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
1453 typedef void ( * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
1454 typedef void ( * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
1455 typedef void ( * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
1456 typedef void ( * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
1457 typedef void ( * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1458 typedef void ( * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
1459 typedef void ( * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1460 typedef void ( * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
1461 typedef void ( * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
1462 typedef void ( * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
1463 typedef void ( * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1464 typedef void ( * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
1465 typedef void ( * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
1466 typedef void ( * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
1467 typedef void ( * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
1468 typedef void ( * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
1474 __attribute__((visibility("default"))) void glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
1475 __attribute__((visibility("default"))) void glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
1476 __attribute__((visibility("default"))) void glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
1477 __attribute__((visibility("default"))) void glPointParameterf (GLenum pname, GLfloat param);
1478 __attribute__((visibility("default"))) void glPointParameterfv (GLenum pname, const GLfloat *params);
1479 __attribute__((visibility("default"))) void glPointParameteri (GLenum pname, GLint param);
1480 __attribute__((visibility("default"))) void glPointParameteriv (GLenum pname, const GLint *params);
1482 typedef void ( * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
1483 typedef void ( * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
1484 typedef void ( * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
1485 typedef void ( * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
1486 typedef void ( * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
1487 typedef void ( * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
1488 typedef void ( * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
1494 __attribute__((visibility("default"))) void glFogCoordf (GLfloat coord);
1495 __attribute__((visibility("default"))) void glFogCoordfv (const GLfloat *coord);
1496 __attribute__((visibility("default"))) void glFogCoordd (GLdouble coord);
1497 __attribute__((visibility("default"))) void glFogCoorddv (const GLdouble *coord);
1498 __attribute__((visibility("default"))) void glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
1499 __attribute__((visibility("default"))) void glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
1500 __attribute__((visibility("default"))) void glSecondaryColor3bv (const GLbyte *v);
1501 __attribute__((visibility("default"))) void glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
1502 __attribute__((visibility("default"))) void glSecondaryColor3dv (const GLdouble *v);
1503 __attribute__((visibility("default"))) void glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
1504 __attribute__((visibility("default"))) void glSecondaryColor3fv (const GLfloat *v);
1505 __attribute__((visibility("default"))) void glSecondaryColor3i (GLint red, GLint green, GLint blue);
1506 __attribute__((visibility("default"))) void glSecondaryColor3iv (const GLint *v);
1507 __attribute__((visibility("default"))) void glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
1508 __attribute__((visibility("default"))) void glSecondaryColor3sv (const GLshort *v);
1509 __attribute__((visibility("default"))) void glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
1510 __attribute__((visibility("default"))) void glSecondaryColor3ubv (const GLubyte *v);
1511 __attribute__((visibility("default"))) void glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
1512 __attribute__((visibility("default"))) void glSecondaryColor3uiv (const GLuint *v);
1513 __attribute__((visibility("default"))) void glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
1514 __attribute__((visibility("default"))) void glSecondaryColor3usv (const GLushort *v);
1515 __attribute__((visibility("default"))) void glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1516 __attribute__((visibility("default"))) void glWindowPos2d (GLdouble x, GLdouble y);
1517 __attribute__((visibility("default"))) void glWindowPos2dv (const GLdouble *v);
1518 __attribute__((visibility("default"))) void glWindowPos2f (GLfloat x, GLfloat y);
1519 __attribute__((visibility("default"))) void glWindowPos2fv (const GLfloat *v);
1520 __attribute__((visibility("default"))) void glWindowPos2i (GLint x, GLint y);
1521 __attribute__((visibility("default"))) void glWindowPos2iv (const GLint *v);
1522 __attribute__((visibility("default"))) void glWindowPos2s (GLshort x, GLshort y);
1523 __attribute__((visibility("default"))) void glWindowPos2sv (const GLshort *v);
1524 __attribute__((visibility("default"))) void glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
1525 __attribute__((visibility("default"))) void glWindowPos3dv (const GLdouble *v);
1526 __attribute__((visibility("default"))) void glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
1527 __attribute__((visibility("default"))) void glWindowPos3fv (const GLfloat *v);
1528 __attribute__((visibility("default"))) void glWindowPos3i (GLint x, GLint y, GLint z);
1529 __attribute__((visibility("default"))) void glWindowPos3iv (const GLint *v);
1530 __attribute__((visibility("default"))) void glWindowPos3s (GLshort x, GLshort y, GLshort z);
1531 __attribute__((visibility("default"))) void glWindowPos3sv (const GLshort *v);
1533 typedef void ( * PFNGLFOGCOORDFPROC) (GLfloat coord);
1534 typedef void ( * PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
1535 typedef void ( * PFNGLFOGCOORDDPROC) (GLdouble coord);
1536 typedef void ( * PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
1537 typedef void ( * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
1538 typedef void ( * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
1539 typedef void ( * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
1540 typedef void ( * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
1541 typedef void ( * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
1542 typedef void ( * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
1543 typedef void ( * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
1544 typedef void ( * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
1545 typedef void ( * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
1546 typedef void ( * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
1547 typedef void ( * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
1548 typedef void ( * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
1549 typedef void ( * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
1550 typedef void ( * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
1551 typedef void ( * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
1552 typedef void ( * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
1553 typedef void ( * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
1554 typedef void ( * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1555 typedef void ( * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
1556 typedef void ( * PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
1557 typedef void ( * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
1558 typedef void ( * PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
1559 typedef void ( * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
1560 typedef void ( * PFNGLWINDOWPOS2IVPROC) (const GLint *v);
1561 typedef void ( * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
1562 typedef void ( * PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
1563 typedef void ( * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
1564 typedef void ( * PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
1565 typedef void ( * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
1566 typedef void ( * PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
1567 typedef void ( * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
1568 typedef void ( * PFNGLWINDOWPOS3IVPROC) (const GLint *v);
1569 typedef void ( * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
1570 typedef void ( * PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
1576 __attribute__((visibility("default"))) void glGenQueries (GLsizei n, GLuint *ids);
1577 __attribute__((visibility("default"))) void glDeleteQueries (GLsizei n, const GLuint *ids);
1578 __attribute__((visibility("default"))) GLboolean glIsQuery (GLuint id);
1579 __attribute__((visibility("default"))) void glBeginQuery (GLenum target, GLuint id);
1580 __attribute__((visibility("default"))) void glEndQuery (GLenum target);
1581 __attribute__((visibility("default"))) void glGetQueryiv (GLenum target, GLenum pname, GLint *params);
1582 __attribute__((visibility("default"))) void glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
1583 __attribute__((visibility("default"))) void glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
1584 __attribute__((visibility("default"))) void glBindBuffer (GLenum target, GLuint buffer);
1585 __attribute__((visibility("default"))) void glDeleteBuffers (GLsizei n, const GLuint *buffers);
1586 __attribute__((visibility("default"))) void glGenBuffers (GLsizei n, GLuint *buffers);
1587 __attribute__((visibility("default"))) GLboolean glIsBuffer (GLuint buffer);
1588 __attribute__((visibility("default"))) void glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
1589 __attribute__((visibility("default"))) void glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
1590 __attribute__((visibility("default"))) void glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
1591 __attribute__((visibility("default"))) GLvoid* glMapBuffer (GLenum target, GLenum access);
1592 __attribute__((visibility("default"))) GLboolean glUnmapBuffer (GLenum target);
1593 __attribute__((visibility("default"))) void glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
1594 __attribute__((visibility("default"))) void glGetBufferPointerv (GLenum target, GLenum pname, GLvoid* *params);
1596 typedef void ( * PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
1597 typedef void ( * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
1598 typedef GLboolean ( * PFNGLISQUERYPROC) (GLuint id);
1599 typedef void ( * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
1600 typedef void ( * PFNGLENDQUERYPROC) (GLenum target);
1601 typedef void ( * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
1602 typedef void ( * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
1603 typedef void ( * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
1604 typedef void ( * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
1605 typedef void ( * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
1606 typedef void ( * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
1607 typedef GLboolean ( * PFNGLISBUFFERPROC) (GLuint buffer);
1608 typedef void ( * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
1609 typedef void ( * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
1610 typedef void ( * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
1611 typedef GLvoid* ( * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
1612 typedef GLboolean ( * PFNGLUNMAPBUFFERPROC) (GLenum target);
1613 typedef void ( * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1614 typedef void ( * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
1620 __attribute__((visibility("default"))) void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
1621 __attribute__((visibility("default"))) void glDrawBuffers (GLsizei n, const GLenum *bufs);
1622 __attribute__((visibility("default"))) void glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
1623 __attribute__((visibility("default"))) void glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
1624 __attribute__((visibility("default"))) void glStencilMaskSeparate (GLenum face, GLuint mask);
1625 __attribute__((visibility("default"))) void glAttachShader (GLuint program, GLuint shader);
1626 __attribute__((visibility("default"))) void glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
1627 __attribute__((visibility("default"))) void glCompileShader (GLuint shader);
1628 __attribute__((visibility("default"))) GLuint glCreateProgram (void);
1629 __attribute__((visibility("default"))) GLuint glCreateShader (GLenum type);
1630 __attribute__((visibility("default"))) void glDeleteProgram (GLuint program);
1631 __attribute__((visibility("default"))) void glDeleteShader (GLuint shader);
1632 __attribute__((visibility("default"))) void glDetachShader (GLuint program, GLuint shader);
1633 __attribute__((visibility("default"))) void glDisableVertexAttribArray (GLuint index);
1634 __attribute__((visibility("default"))) void glEnableVertexAttribArray (GLuint index);
1635 __attribute__((visibility("default"))) void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
1636 __attribute__((visibility("default"))) void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
1637 __attribute__((visibility("default"))) void glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
1638 __attribute__((visibility("default"))) GLint glGetAttribLocation (GLuint program, const GLchar *name);
1639 __attribute__((visibility("default"))) void glGetProgramiv (GLuint program, GLenum pname, GLint *params);
1640 __attribute__((visibility("default"))) void glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1641 __attribute__((visibility("default"))) void glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
1642 __attribute__((visibility("default"))) void glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1643 __attribute__((visibility("default"))) void glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
1644 __attribute__((visibility("default"))) GLint glGetUniformLocation (GLuint program, const GLchar *name);
1645 __attribute__((visibility("default"))) void glGetUniformfv (GLuint program, GLint location, GLfloat *params);
1646 __attribute__((visibility("default"))) void glGetUniformiv (GLuint program, GLint location, GLint *params);
1647 __attribute__((visibility("default"))) void glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
1648 __attribute__((visibility("default"))) void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
1649 __attribute__((visibility("default"))) void glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
1650 __attribute__((visibility("default"))) void glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer);
1651 __attribute__((visibility("default"))) GLboolean glIsProgram (GLuint program);
1652 __attribute__((visibility("default"))) GLboolean glIsShader (GLuint shader);
1653 __attribute__((visibility("default"))) void glLinkProgram (GLuint program);
1654 __attribute__((visibility("default"))) void glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
1655 __attribute__((visibility("default"))) void glUseProgram (GLuint program);
1656 __attribute__((visibility("default"))) void glUniform1f (GLint location, GLfloat v0);
1657 __attribute__((visibility("default"))) void glUniform2f (GLint location, GLfloat v0, GLfloat v1);
1658 __attribute__((visibility("default"))) void glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1659 __attribute__((visibility("default"))) void glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1660 __attribute__((visibility("default"))) void glUniform1i (GLint location, GLint v0);
1661 __attribute__((visibility("default"))) void glUniform2i (GLint location, GLint v0, GLint v1);
1662 __attribute__((visibility("default"))) void glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
1663 __attribute__((visibility("default"))) void glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1664 __attribute__((visibility("default"))) void glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
1665 __attribute__((visibility("default"))) void glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
1666 __attribute__((visibility("default"))) void glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
1667 __attribute__((visibility("default"))) void glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
1668 __attribute__((visibility("default"))) void glUniform1iv (GLint location, GLsizei count, const GLint *value);
1669 __attribute__((visibility("default"))) void glUniform2iv (GLint location, GLsizei count, const GLint *value);
1670 __attribute__((visibility("default"))) void glUniform3iv (GLint location, GLsizei count, const GLint *value);
1671 __attribute__((visibility("default"))) void glUniform4iv (GLint location, GLsizei count, const GLint *value);
1672 __attribute__((visibility("default"))) void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1673 __attribute__((visibility("default"))) void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1674 __attribute__((visibility("default"))) void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1675 __attribute__((visibility("default"))) void glValidateProgram (GLuint program);
1676 __attribute__((visibility("default"))) void glVertexAttrib1d (GLuint index, GLdouble x);
1677 __attribute__((visibility("default"))) void glVertexAttrib1dv (GLuint index, const GLdouble *v);
1678 __attribute__((visibility("default"))) void glVertexAttrib1f (GLuint index, GLfloat x);
1679 __attribute__((visibility("default"))) void glVertexAttrib1fv (GLuint index, const GLfloat *v);
1680 __attribute__((visibility("default"))) void glVertexAttrib1s (GLuint index, GLshort x);
1681 __attribute__((visibility("default"))) void glVertexAttrib1sv (GLuint index, const GLshort *v);
1682 __attribute__((visibility("default"))) void glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
1683 __attribute__((visibility("default"))) void glVertexAttrib2dv (GLuint index, const GLdouble *v);
1684 __attribute__((visibility("default"))) void glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
1685 __attribute__((visibility("default"))) void glVertexAttrib2fv (GLuint index, const GLfloat *v);
1686 __attribute__((visibility("default"))) void glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
1687 __attribute__((visibility("default"))) void glVertexAttrib2sv (GLuint index, const GLshort *v);
1688 __attribute__((visibility("default"))) void glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1689 __attribute__((visibility("default"))) void glVertexAttrib3dv (GLuint index, const GLdouble *v);
1690 __attribute__((visibility("default"))) void glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
1691 __attribute__((visibility("default"))) void glVertexAttrib3fv (GLuint index, const GLfloat *v);
1692 __attribute__((visibility("default"))) void glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
1693 __attribute__((visibility("default"))) void glVertexAttrib3sv (GLuint index, const GLshort *v);
1694 __attribute__((visibility("default"))) void glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
1695 __attribute__((visibility("default"))) void glVertexAttrib4Niv (GLuint index, const GLint *v);
1696 __attribute__((visibility("default"))) void glVertexAttrib4Nsv (GLuint index, const GLshort *v);
1697 __attribute__((visibility("default"))) void glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
1698 __attribute__((visibility("default"))) void glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
1699 __attribute__((visibility("default"))) void glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
1700 __attribute__((visibility("default"))) void glVertexAttrib4Nusv (GLuint index, const GLushort *v);
1701 __attribute__((visibility("default"))) void glVertexAttrib4bv (GLuint index, const GLbyte *v);
1702 __attribute__((visibility("default"))) void glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1703 __attribute__((visibility("default"))) void glVertexAttrib4dv (GLuint index, const GLdouble *v);
1704 __attribute__((visibility("default"))) void glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1705 __attribute__((visibility("default"))) void glVertexAttrib4fv (GLuint index, const GLfloat *v);
1706 __attribute__((visibility("default"))) void glVertexAttrib4iv (GLuint index, const GLint *v);
1707 __attribute__((visibility("default"))) void glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
1708 __attribute__((visibility("default"))) void glVertexAttrib4sv (GLuint index, const GLshort *v);
1709 __attribute__((visibility("default"))) void glVertexAttrib4ubv (GLuint index, const GLubyte *v);
1710 __attribute__((visibility("default"))) void glVertexAttrib4uiv (GLuint index, const GLuint *v);
1711 __attribute__((visibility("default"))) void glVertexAttrib4usv (GLuint index, const GLushort *v);
1712 __attribute__((visibility("default"))) void glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
1714 typedef void ( * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
1715 typedef void ( * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
1716 typedef void ( * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
1717 typedef void ( * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
1718 typedef void ( * PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
1719 typedef void ( * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
1720 typedef void ( * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
1721 typedef void ( * PFNGLCOMPILESHADERPROC) (GLuint shader);
1722 typedef GLuint ( * PFNGLCREATEPROGRAMPROC) (void);
1723 typedef GLuint ( * PFNGLCREATESHADERPROC) (GLenum type);
1724 typedef void ( * PFNGLDELETEPROGRAMPROC) (GLuint program);
1725 typedef void ( * PFNGLDELETESHADERPROC) (GLuint shader);
1726 typedef void ( * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
1727 typedef void ( * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
1728 typedef void ( * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
1729 typedef void ( * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
1730 typedef void ( * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
1731 typedef void ( * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
1732 typedef GLint ( * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
1733 typedef void ( * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
1734 typedef void ( * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1735 typedef void ( * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
1736 typedef void ( * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1737 typedef void ( * PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
1738 typedef GLint ( * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
1739 typedef void ( * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
1740 typedef void ( * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
1741 typedef void ( * PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
1742 typedef void ( * PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
1743 typedef void ( * PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
1744 typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
1745 typedef GLboolean ( * PFNGLISPROGRAMPROC) (GLuint program);
1746 typedef GLboolean ( * PFNGLISSHADERPROC) (GLuint shader);
1747 typedef void ( * PFNGLLINKPROGRAMPROC) (GLuint program);
1748 typedef void ( * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
1749 typedef void ( * PFNGLUSEPROGRAMPROC) (GLuint program);
1750 typedef void ( * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
1751 typedef void ( * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
1752 typedef void ( * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1753 typedef void ( * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1754 typedef void ( * PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
1755 typedef void ( * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
1756 typedef void ( * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
1757 typedef void ( * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1758 typedef void ( * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
1759 typedef void ( * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
1760 typedef void ( * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
1761 typedef void ( * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
1762 typedef void ( * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
1763 typedef void ( * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
1764 typedef void ( * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
1765 typedef void ( * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
1766 typedef void ( * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1767 typedef void ( * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1768 typedef void ( * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1769 typedef void ( * PFNGLVALIDATEPROGRAMPROC) (GLuint program);
1770 typedef void ( * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
1771 typedef void ( * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
1772 typedef void ( * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
1773 typedef void ( * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
1774 typedef void ( * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
1775 typedef void ( * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
1776 typedef void ( * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
1777 typedef void ( * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
1778 typedef void ( * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
1779 typedef void ( * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
1780 typedef void ( * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
1781 typedef void ( * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
1782 typedef void ( * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1783 typedef void ( * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
1784 typedef void ( * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
1785 typedef void ( * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
1786 typedef void ( * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
1787 typedef void ( * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
1788 typedef void ( * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
1789 typedef void ( * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
1790 typedef void ( * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
1791 typedef void ( * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
1792 typedef void ( * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
1793 typedef void ( * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
1794 typedef void ( * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
1795 typedef void ( * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
1796 typedef void ( * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1797 typedef void ( * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
1798 typedef void ( * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1799 typedef void ( * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
1800 typedef void ( * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
1801 typedef void ( * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
1802 typedef void ( * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
1803 typedef void ( * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
1804 typedef void ( * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
1805 typedef void ( * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
1806 typedef void ( * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
1812 __attribute__((visibility("default"))) void glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1813 __attribute__((visibility("default"))) void glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1814 __attribute__((visibility("default"))) void glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1815 __attribute__((visibility("default"))) void glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1816 __attribute__((visibility("default"))) void glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1817 __attribute__((visibility("default"))) void glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1819 typedef void ( * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1820 typedef void ( * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1821 typedef void ( * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1822 typedef void ( * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1823 typedef void ( * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1824 typedef void ( * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1825 # 5719 "../../include/GL/glext.h"
1826 __attribute__((visibility("default"))) void glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1827 __attribute__((visibility("default"))) void glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
1828 __attribute__((visibility("default"))) void glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
1829 __attribute__((visibility("default"))) void glEnablei (GLenum target, GLuint index);
1830 __attribute__((visibility("default"))) void glDisablei (GLenum target, GLuint index);
1831 __attribute__((visibility("default"))) GLboolean glIsEnabledi (GLenum target, GLuint index);
1832 __attribute__((visibility("default"))) void glBeginTransformFeedback (GLenum primitiveMode);
1833 __attribute__((visibility("default"))) void glEndTransformFeedback (void);
1834 __attribute__((visibility("default"))) void glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1835 __attribute__((visibility("default"))) void glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
1836 __attribute__((visibility("default"))) void glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
1837 __attribute__((visibility("default"))) void glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1838 __attribute__((visibility("default"))) void glClampColor (GLenum target, GLenum clamp);
1839 __attribute__((visibility("default"))) void glBeginConditionalRender (GLuint id, GLenum mode);
1840 __attribute__((visibility("default"))) void glEndConditionalRender (void);
1841 __attribute__((visibility("default"))) void glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1842 __attribute__((visibility("default"))) void glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
1843 __attribute__((visibility("default"))) void glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
1844 __attribute__((visibility("default"))) void glVertexAttribI1i (GLuint index, GLint x);
1845 __attribute__((visibility("default"))) void glVertexAttribI2i (GLuint index, GLint x, GLint y);
1846 __attribute__((visibility("default"))) void glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
1847 __attribute__((visibility("default"))) void glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
1848 __attribute__((visibility("default"))) void glVertexAttribI1ui (GLuint index, GLuint x);
1849 __attribute__((visibility("default"))) void glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
1850 __attribute__((visibility("default"))) void glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
1851 __attribute__((visibility("default"))) void glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1852 __attribute__((visibility("default"))) void glVertexAttribI1iv (GLuint index, const GLint *v);
1853 __attribute__((visibility("default"))) void glVertexAttribI2iv (GLuint index, const GLint *v);
1854 __attribute__((visibility("default"))) void glVertexAttribI3iv (GLuint index, const GLint *v);
1855 __attribute__((visibility("default"))) void glVertexAttribI4iv (GLuint index, const GLint *v);
1856 __attribute__((visibility("default"))) void glVertexAttribI1uiv (GLuint index, const GLuint *v);
1857 __attribute__((visibility("default"))) void glVertexAttribI2uiv (GLuint index, const GLuint *v);
1858 __attribute__((visibility("default"))) void glVertexAttribI3uiv (GLuint index, const GLuint *v);
1859 __attribute__((visibility("default"))) void glVertexAttribI4uiv (GLuint index, const GLuint *v);
1860 __attribute__((visibility("default"))) void glVertexAttribI4bv (GLuint index, const GLbyte *v);
1861 __attribute__((visibility("default"))) void glVertexAttribI4sv (GLuint index, const GLshort *v);
1862 __attribute__((visibility("default"))) void glVertexAttribI4ubv (GLuint index, const GLubyte *v);
1863 __attribute__((visibility("default"))) void glVertexAttribI4usv (GLuint index, const GLushort *v);
1864 __attribute__((visibility("default"))) void glGetUniformuiv (GLuint program, GLint location, GLuint *params);
1865 __attribute__((visibility("default"))) void glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
1866 __attribute__((visibility("default"))) GLint glGetFragDataLocation (GLuint program, const GLchar *name);
1867 __attribute__((visibility("default"))) void glUniform1ui (GLint location, GLuint v0);
1868 __attribute__((visibility("default"))) void glUniform2ui (GLint location, GLuint v0, GLuint v1);
1869 __attribute__((visibility("default"))) void glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
1870 __attribute__((visibility("default"))) void glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1871 __attribute__((visibility("default"))) void glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
1872 __attribute__((visibility("default"))) void glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
1873 __attribute__((visibility("default"))) void glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
1874 __attribute__((visibility("default"))) void glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
1875 __attribute__((visibility("default"))) void glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
1876 __attribute__((visibility("default"))) void glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
1877 __attribute__((visibility("default"))) void glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
1878 __attribute__((visibility("default"))) void glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
1879 __attribute__((visibility("default"))) void glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
1880 __attribute__((visibility("default"))) void glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
1881 __attribute__((visibility("default"))) void glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1882 __attribute__((visibility("default"))) void glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1883 __attribute__((visibility("default"))) const GLubyte * glGetStringi (GLenum name, GLuint index);
1885 typedef void ( * PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1886 typedef void ( * PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
1887 typedef void ( * PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
1888 typedef void ( * PFNGLENABLEIPROC) (GLenum target, GLuint index);
1889 typedef void ( * PFNGLDISABLEIPROC) (GLenum target, GLuint index);
1890 typedef GLboolean ( * PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
1891 typedef void ( * PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
1892 typedef void ( * PFNGLENDTRANSFORMFEEDBACKPROC) (void);
1893 typedef void ( * PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1894 typedef void ( * PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
1895 typedef void ( * PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
1896 typedef void ( * PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1897 typedef void ( * PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
1898 typedef void ( * PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
1899 typedef void ( * PFNGLENDCONDITIONALRENDERPROC) (void);
1900 typedef void ( * PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1901 typedef void ( * PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
1902 typedef void ( * PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
1903 typedef void ( * PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
1904 typedef void ( * PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
1905 typedef void ( * PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
1906 typedef void ( * PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
1907 typedef void ( * PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
1908 typedef void ( * PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
1909 typedef void ( * PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
1910 typedef void ( * PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1911 typedef void ( * PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
1912 typedef void ( * PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
1913 typedef void ( * PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
1914 typedef void ( * PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
1915 typedef void ( * PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
1916 typedef void ( * PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
1917 typedef void ( * PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
1918 typedef void ( * PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
1919 typedef void ( * PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
1920 typedef void ( * PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
1921 typedef void ( * PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
1922 typedef void ( * PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
1923 typedef void ( * PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
1924 typedef void ( * PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
1925 typedef GLint ( * PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
1926 typedef void ( * PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
1927 typedef void ( * PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
1928 typedef void ( * PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
1929 typedef void ( * PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1930 typedef void ( * PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1931 typedef void ( * PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1932 typedef void ( * PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1933 typedef void ( * PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1934 typedef void ( * PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
1935 typedef void ( * PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
1936 typedef void ( * PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
1937 typedef void ( * PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
1938 typedef void ( * PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
1939 typedef void ( * PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
1940 typedef void ( * PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1941 typedef void ( * PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1942 typedef const GLubyte * ( * PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
1943 # 5844 "../../include/GL/glext.h"
1944 __attribute__((visibility("default"))) void glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
1945 __attribute__((visibility("default"))) void glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
1946 __attribute__((visibility("default"))) void glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
1947 __attribute__((visibility("default"))) void glPrimitiveRestartIndex (GLuint index);
1949 typedef void ( * PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
1950 typedef void ( * PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
1951 typedef void ( * PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
1952 typedef void ( * PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
1953 # 5863 "../../include/GL/glext.h"
1954 __attribute__((visibility("default"))) void glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
1955 __attribute__((visibility("default"))) void glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
1956 __attribute__((visibility("default"))) void glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
1958 typedef void ( * PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
1959 typedef void ( * PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
1960 typedef void ( * PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
1961 # 5885 "../../include/GL/glext.h"
1962 __attribute__((visibility("default"))) void glVertexAttribDivisor (GLuint index, GLuint divisor);
1964 typedef void ( * PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
1965 # 5905 "../../include/GL/glext.h"
1966 __attribute__((visibility("default"))) void glMinSampleShading (GLclampf value);
1967 __attribute__((visibility("default"))) void glBlendEquationi (GLuint buf, GLenum mode);
1968 __attribute__((visibility("default"))) void glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1969 __attribute__((visibility("default"))) void glBlendFunci (GLuint buf, GLenum src, GLenum dst);
1970 __attribute__((visibility("default"))) void glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1972 typedef void ( * PFNGLMINSAMPLESHADINGPROC) (GLclampf value);
1973 typedef void ( * PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
1974 typedef void ( * PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1975 typedef void ( * PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
1976 typedef void ( * PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1977 # 6006 "../../include/GL/glext.h"
1978 __attribute__((visibility("default"))) void glLoadTransposeMatrixfARB (const GLfloat *m);
1979 __attribute__((visibility("default"))) void glLoadTransposeMatrixdARB (const GLdouble *m);
1980 __attribute__((visibility("default"))) void glMultTransposeMatrixfARB (const GLfloat *m);
1981 __attribute__((visibility("default"))) void glMultTransposeMatrixdARB (const GLdouble *m);
1983 typedef void ( * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
1984 typedef void ( * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
1985 typedef void ( * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
1986 typedef void ( * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
1992 __attribute__((visibility("default"))) void glSampleCoverageARB (GLclampf value, GLboolean invert);
1994 typedef void ( * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert);
1995 # 6036 "../../include/GL/glext.h"
1996 __attribute__((visibility("default"))) void glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
1997 __attribute__((visibility("default"))) void glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
1998 __attribute__((visibility("default"))) void glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
1999 __attribute__((visibility("default"))) void glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
2000 __attribute__((visibility("default"))) void glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
2001 __attribute__((visibility("default"))) void glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
2002 __attribute__((visibility("default"))) void glGetCompressedTexImageARB (GLenum target, GLint level, GLvoid *img);
2004 typedef void ( * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
2005 typedef void ( * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
2006 typedef void ( * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
2007 typedef 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);
2008 typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
2009 typedef void ( * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
2010 typedef void ( * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img);
2011 # 6060 "../../include/GL/glext.h"
2012 __attribute__((visibility("default"))) void glPointParameterfARB (GLenum pname, GLfloat param);
2013 __attribute__((visibility("default"))) void glPointParameterfvARB (GLenum pname, const GLfloat *params);
2015 typedef void ( * PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
2016 typedef void ( * PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
2022 __attribute__((visibility("default"))) void glWeightbvARB (GLint size, const GLbyte *weights);
2023 __attribute__((visibility("default"))) void glWeightsvARB (GLint size, const GLshort *weights);
2024 __attribute__((visibility("default"))) void glWeightivARB (GLint size, const GLint *weights);
2025 __attribute__((visibility("default"))) void glWeightfvARB (GLint size, const GLfloat *weights);
2026 __attribute__((visibility("default"))) void glWeightdvARB (GLint size, const GLdouble *weights);
2027 __attribute__((visibility("default"))) void glWeightubvARB (GLint size, const GLubyte *weights);
2028 __attribute__((visibility("default"))) void glWeightusvARB (GLint size, const GLushort *weights);
2029 __attribute__((visibility("default"))) void glWeightuivARB (GLint size, const GLuint *weights);
2030 __attribute__((visibility("default"))) void glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2031 __attribute__((visibility("default"))) void glVertexBlendARB (GLint count);
2033 typedef void ( * PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
2034 typedef void ( * PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
2035 typedef void ( * PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
2036 typedef void ( * PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
2037 typedef void ( * PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
2038 typedef void ( * PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
2039 typedef void ( * PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
2040 typedef void ( * PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
2041 typedef void ( * PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2042 typedef void ( * PFNGLVERTEXBLENDARBPROC) (GLint count);
2048 __attribute__((visibility("default"))) void glCurrentPaletteMatrixARB (GLint index);
2049 __attribute__((visibility("default"))) void glMatrixIndexubvARB (GLint size, const GLubyte *indices);
2050 __attribute__((visibility("default"))) void glMatrixIndexusvARB (GLint size, const GLushort *indices);
2051 __attribute__((visibility("default"))) void glMatrixIndexuivARB (GLint size, const GLuint *indices);
2052 __attribute__((visibility("default"))) void glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2054 typedef void ( * PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
2055 typedef void ( * PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices);
2056 typedef void ( * PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices);
2057 typedef void ( * PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices);
2058 typedef void ( * PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2059 # 6140 "../../include/GL/glext.h"
2060 __attribute__((visibility("default"))) void glWindowPos2dARB (GLdouble x, GLdouble y);
2061 __attribute__((visibility("default"))) void glWindowPos2dvARB (const GLdouble *v);
2062 __attribute__((visibility("default"))) void glWindowPos2fARB (GLfloat x, GLfloat y);
2063 __attribute__((visibility("default"))) void glWindowPos2fvARB (const GLfloat *v);
2064 __attribute__((visibility("default"))) void glWindowPos2iARB (GLint x, GLint y);
2065 __attribute__((visibility("default"))) void glWindowPos2ivARB (const GLint *v);
2066 __attribute__((visibility("default"))) void glWindowPos2sARB (GLshort x, GLshort y);
2067 __attribute__((visibility("default"))) void glWindowPos2svARB (const GLshort *v);
2068 __attribute__((visibility("default"))) void glWindowPos3dARB (GLdouble x, GLdouble y, GLdouble z);
2069 __attribute__((visibility("default"))) void glWindowPos3dvARB (const GLdouble *v);
2070 __attribute__((visibility("default"))) void glWindowPos3fARB (GLfloat x, GLfloat y, GLfloat z);
2071 __attribute__((visibility("default"))) void glWindowPos3fvARB (const GLfloat *v);
2072 __attribute__((visibility("default"))) void glWindowPos3iARB (GLint x, GLint y, GLint z);
2073 __attribute__((visibility("default"))) void glWindowPos3ivARB (const GLint *v);
2074 __attribute__((visibility("default"))) void glWindowPos3sARB (GLshort x, GLshort y, GLshort z);
2075 __attribute__((visibility("default"))) void glWindowPos3svARB (const GLshort *v);
2077 typedef void ( * PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
2078 typedef void ( * PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v);
2079 typedef void ( * PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
2080 typedef void ( * PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v);
2081 typedef void ( * PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
2082 typedef void ( * PFNGLWINDOWPOS2IVARBPROC) (const GLint *v);
2083 typedef void ( * PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
2084 typedef void ( * PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v);
2085 typedef void ( * PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
2086 typedef void ( * PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v);
2087 typedef void ( * PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
2088 typedef void ( * PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v);
2089 typedef void ( * PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
2090 typedef void ( * PFNGLWINDOWPOS3IVARBPROC) (const GLint *v);
2091 typedef void ( * PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
2092 typedef void ( * PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v);
2098 __attribute__((visibility("default"))) void glVertexAttrib1dARB (GLuint index, GLdouble x);
2099 __attribute__((visibility("default"))) void glVertexAttrib1dvARB (GLuint index, const GLdouble *v);
2100 __attribute__((visibility("default"))) void glVertexAttrib1fARB (GLuint index, GLfloat x);
2101 __attribute__((visibility("default"))) void glVertexAttrib1fvARB (GLuint index, const GLfloat *v);
2102 __attribute__((visibility("default"))) void glVertexAttrib1sARB (GLuint index, GLshort x);
2103 __attribute__((visibility("default"))) void glVertexAttrib1svARB (GLuint index, const GLshort *v);
2104 __attribute__((visibility("default"))) void glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y);
2105 __attribute__((visibility("default"))) void glVertexAttrib2dvARB (GLuint index, const GLdouble *v);
2106 __attribute__((visibility("default"))) void glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y);
2107 __attribute__((visibility("default"))) void glVertexAttrib2fvARB (GLuint index, const GLfloat *v);
2108 __attribute__((visibility("default"))) void glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y);
2109 __attribute__((visibility("default"))) void glVertexAttrib2svARB (GLuint index, const GLshort *v);
2110 __attribute__((visibility("default"))) void glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z);
2111 __attribute__((visibility("default"))) void glVertexAttrib3dvARB (GLuint index, const GLdouble *v);
2112 __attribute__((visibility("default"))) void glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z);
2113 __attribute__((visibility("default"))) void glVertexAttrib3fvARB (GLuint index, const GLfloat *v);
2114 __attribute__((visibility("default"))) void glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z);
2115 __attribute__((visibility("default"))) void glVertexAttrib3svARB (GLuint index, const GLshort *v);
2116 __attribute__((visibility("default"))) void glVertexAttrib4NbvARB (GLuint index, const GLbyte *v);
2117 __attribute__((visibility("default"))) void glVertexAttrib4NivARB (GLuint index, const GLint *v);
2118 __attribute__((visibility("default"))) void glVertexAttrib4NsvARB (GLuint index, const GLshort *v);
2119 __attribute__((visibility("default"))) void glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
2120 __attribute__((visibility("default"))) void glVertexAttrib4NubvARB (GLuint index, const GLubyte *v);
2121 __attribute__((visibility("default"))) void glVertexAttrib4NuivARB (GLuint index, const GLuint *v);
2122 __attribute__((visibility("default"))) void glVertexAttrib4NusvARB (GLuint index, const GLushort *v);
2123 __attribute__((visibility("default"))) void glVertexAttrib4bvARB (GLuint index, const GLbyte *v);
2124 __attribute__((visibility("default"))) void glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2125 __attribute__((visibility("default"))) void glVertexAttrib4dvARB (GLuint index, const GLdouble *v);
2126 __attribute__((visibility("default"))) void glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2127 __attribute__((visibility("default"))) void glVertexAttrib4fvARB (GLuint index, const GLfloat *v);
2128 __attribute__((visibility("default"))) void glVertexAttrib4ivARB (GLuint index, const GLint *v);
2129 __attribute__((visibility("default"))) void glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
2130 __attribute__((visibility("default"))) void glVertexAttrib4svARB (GLuint index, const GLshort *v);
2131 __attribute__((visibility("default"))) void glVertexAttrib4ubvARB (GLuint index, const GLubyte *v);
2132 __attribute__((visibility("default"))) void glVertexAttrib4uivARB (GLuint index, const GLuint *v);
2133 __attribute__((visibility("default"))) void glVertexAttrib4usvARB (GLuint index, const GLushort *v);
2134 __attribute__((visibility("default"))) void glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
2135 __attribute__((visibility("default"))) void glEnableVertexAttribArrayARB (GLuint index);
2136 __attribute__((visibility("default"))) void glDisableVertexAttribArrayARB (GLuint index);
2137 __attribute__((visibility("default"))) void glProgramStringARB (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
2138 __attribute__((visibility("default"))) void glBindProgramARB (GLenum target, GLuint program);
2139 __attribute__((visibility("default"))) void glDeleteProgramsARB (GLsizei n, const GLuint *programs);
2140 __attribute__((visibility("default"))) void glGenProgramsARB (GLsizei n, GLuint *programs);
2141 __attribute__((visibility("default"))) void glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2142 __attribute__((visibility("default"))) void glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
2143 __attribute__((visibility("default"))) void glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2144 __attribute__((visibility("default"))) void glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
2145 __attribute__((visibility("default"))) void glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2146 __attribute__((visibility("default"))) void glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
2147 __attribute__((visibility("default"))) void glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2148 __attribute__((visibility("default"))) void glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
2149 __attribute__((visibility("default"))) void glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
2150 __attribute__((visibility("default"))) void glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
2151 __attribute__((visibility("default"))) void glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
2152 __attribute__((visibility("default"))) void glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
2153 __attribute__((visibility("default"))) void glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
2154 __attribute__((visibility("default"))) void glGetProgramStringARB (GLenum target, GLenum pname, GLvoid *string);
2155 __attribute__((visibility("default"))) void glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params);
2156 __attribute__((visibility("default"))) void glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params);
2157 __attribute__((visibility("default"))) void glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params);
2158 __attribute__((visibility("default"))) void glGetVertexAttribPointervARB (GLuint index, GLenum pname, GLvoid* *pointer);
2159 __attribute__((visibility("default"))) GLboolean glIsProgramARB (GLuint program);
2161 typedef void ( * PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
2162 typedef void ( * PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
2163 typedef void ( * PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
2164 typedef void ( * PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
2165 typedef void ( * PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
2166 typedef void ( * PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
2167 typedef void ( * PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
2168 typedef void ( * PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
2169 typedef void ( * PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
2170 typedef void ( * PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
2171 typedef void ( * PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
2172 typedef void ( * PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
2173 typedef void ( * PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
2174 typedef void ( * PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
2175 typedef void ( * PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
2176 typedef void ( * PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
2177 typedef void ( * PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
2178 typedef void ( * PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
2179 typedef void ( * PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
2180 typedef void ( * PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
2181 typedef void ( * PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
2182 typedef void ( * PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
2183 typedef void ( * PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
2184 typedef void ( * PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
2185 typedef void ( * PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
2186 typedef void ( * PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
2187 typedef void ( * PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2188 typedef void ( * PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
2189 typedef void ( * PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2190 typedef void ( * PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
2191 typedef void ( * PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
2192 typedef void ( * PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
2193 typedef void ( * PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
2194 typedef void ( * PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
2195 typedef void ( * PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
2196 typedef void ( * PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
2197 typedef void ( * PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
2198 typedef void ( * PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
2199 typedef void ( * PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
2200 typedef void ( * PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
2201 typedef void ( * PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
2202 typedef void ( * PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
2203 typedef void ( * PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
2204 typedef void ( * PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2205 typedef void ( * PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
2206 typedef void ( * PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2207 typedef void ( * PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
2208 typedef void ( * PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2209 typedef void ( * PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
2210 typedef void ( * PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2211 typedef void ( * PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
2212 typedef void ( * PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
2213 typedef void ( * PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
2214 typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
2215 typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
2216 typedef void ( * PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
2217 typedef void ( * PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string);
2218 typedef void ( * PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
2219 typedef void ( * PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
2220 typedef void ( * PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
2221 typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
2222 typedef GLboolean ( * PFNGLISPROGRAMARBPROC) (GLuint program);
2223 # 6313 "../../include/GL/glext.h"
2224 __attribute__((visibility("default"))) void glBindBufferARB (GLenum target, GLuint buffer);
2225 __attribute__((visibility("default"))) void glDeleteBuffersARB (GLsizei n, const GLuint *buffers);
2226 __attribute__((visibility("default"))) void glGenBuffersARB (GLsizei n, GLuint *buffers);
2227 __attribute__((visibility("default"))) GLboolean glIsBufferARB (GLuint buffer);
2228 __attribute__((visibility("default"))) void glBufferDataARB (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
2229 __attribute__((visibility("default"))) void glBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
2230 __attribute__((visibility("default"))) void glGetBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
2231 __attribute__((visibility("default"))) GLvoid* glMapBufferARB (GLenum target, GLenum access);
2232 __attribute__((visibility("default"))) GLboolean glUnmapBufferARB (GLenum target);
2233 __attribute__((visibility("default"))) void glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params);
2234 __attribute__((visibility("default"))) void glGetBufferPointervARB (GLenum target, GLenum pname, GLvoid* *params);
2236 typedef void ( * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
2237 typedef void ( * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
2238 typedef void ( * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
2239 typedef GLboolean ( * PFNGLISBUFFERARBPROC) (GLuint buffer);
2240 typedef void ( * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
2241 typedef void ( * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
2242 typedef void ( * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
2243 typedef GLvoid* ( * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
2244 typedef GLboolean ( * PFNGLUNMAPBUFFERARBPROC) (GLenum target);
2245 typedef void ( * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
2246 typedef void ( * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params);
2252 __attribute__((visibility("default"))) void glGenQueriesARB (GLsizei n, GLuint *ids);
2253 __attribute__((visibility("default"))) void glDeleteQueriesARB (GLsizei n, const GLuint *ids);
2254 __attribute__((visibility("default"))) GLboolean glIsQueryARB (GLuint id);
2255 __attribute__((visibility("default"))) void glBeginQueryARB (GLenum target, GLuint id);
2256 __attribute__((visibility("default"))) void glEndQueryARB (GLenum target);
2257 __attribute__((visibility("default"))) void glGetQueryivARB (GLenum target, GLenum pname, GLint *params);
2258 __attribute__((visibility("default"))) void glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params);
2259 __attribute__((visibility("default"))) void glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params);
2261 typedef void ( * PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids);
2262 typedef void ( * PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids);
2263 typedef GLboolean ( * PFNGLISQUERYARBPROC) (GLuint id);
2264 typedef void ( * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
2265 typedef void ( * PFNGLENDQUERYARBPROC) (GLenum target);
2266 typedef void ( * PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
2267 typedef void ( * PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params);
2268 typedef void ( * PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params);
2274 __attribute__((visibility("default"))) void glDeleteObjectARB (GLhandleARB obj);
2275 __attribute__((visibility("default"))) GLhandleARB glGetHandleARB (GLenum pname);
2276 __attribute__((visibility("default"))) void glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj);
2277 __attribute__((visibility("default"))) GLhandleARB glCreateShaderObjectARB (GLenum shaderType);
2278 __attribute__((visibility("default"))) void glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length);
2279 __attribute__((visibility("default"))) void glCompileShaderARB (GLhandleARB shaderObj);
2280 __attribute__((visibility("default"))) GLhandleARB glCreateProgramObjectARB (void);
2281 __attribute__((visibility("default"))) void glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj);
2282 __attribute__((visibility("default"))) void glLinkProgramARB (GLhandleARB programObj);
2283 __attribute__((visibility("default"))) void glUseProgramObjectARB (GLhandleARB programObj);
2284 __attribute__((visibility("default"))) void glValidateProgramARB (GLhandleARB programObj);
2285 __attribute__((visibility("default"))) void glUniform1fARB (GLint location, GLfloat v0);
2286 __attribute__((visibility("default"))) void glUniform2fARB (GLint location, GLfloat v0, GLfloat v1);
2287 __attribute__((visibility("default"))) void glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2288 __attribute__((visibility("default"))) void glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2289 __attribute__((visibility("default"))) void glUniform1iARB (GLint location, GLint v0);
2290 __attribute__((visibility("default"))) void glUniform2iARB (GLint location, GLint v0, GLint v1);
2291 __attribute__((visibility("default"))) void glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2);
2292 __attribute__((visibility("default"))) void glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2293 __attribute__((visibility("default"))) void glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value);
2294 __attribute__((visibility("default"))) void glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value);
2295 __attribute__((visibility("default"))) void glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value);
2296 __attribute__((visibility("default"))) void glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value);
2297 __attribute__((visibility("default"))) void glUniform1ivARB (GLint location, GLsizei count, const GLint *value);
2298 __attribute__((visibility("default"))) void glUniform2ivARB (GLint location, GLsizei count, const GLint *value);
2299 __attribute__((visibility("default"))) void glUniform3ivARB (GLint location, GLsizei count, const GLint *value);
2300 __attribute__((visibility("default"))) void glUniform4ivARB (GLint location, GLsizei count, const GLint *value);
2301 __attribute__((visibility("default"))) void glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2302 __attribute__((visibility("default"))) void glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2303 __attribute__((visibility("default"))) void glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2304 __attribute__((visibility("default"))) void glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params);
2305 __attribute__((visibility("default"))) void glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params);
2306 __attribute__((visibility("default"))) void glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
2307 __attribute__((visibility("default"))) void glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
2308 __attribute__((visibility("default"))) GLint glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name);
2309 __attribute__((visibility("default"))) void glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
2310 __attribute__((visibility("default"))) void glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params);
2311 __attribute__((visibility("default"))) void glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params);
2312 __attribute__((visibility("default"))) void glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
2314 typedef void ( * PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
2315 typedef GLhandleARB ( * PFNGLGETHANDLEARBPROC) (GLenum pname);
2316 typedef void ( * PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
2317 typedef GLhandleARB ( * PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
2318 typedef void ( * PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length);
2319 typedef void ( * PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
2320 typedef GLhandleARB ( * PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
2321 typedef void ( * PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
2322 typedef void ( * PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
2323 typedef void ( * PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
2324 typedef void ( * PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
2325 typedef void ( * PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
2326 typedef void ( * PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
2327 typedef void ( * PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2328 typedef void ( * PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2329 typedef void ( * PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
2330 typedef void ( * PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
2331 typedef void ( * PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
2332 typedef void ( * PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2333 typedef void ( * PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
2334 typedef void ( * PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
2335 typedef void ( * PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
2336 typedef void ( * PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
2337 typedef void ( * PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value);
2338 typedef void ( * PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value);
2339 typedef void ( * PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value);
2340 typedef void ( * PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value);
2341 typedef void ( * PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2342 typedef void ( * PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2343 typedef void ( * PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2344 typedef void ( * PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params);
2345 typedef void ( * PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params);
2346 typedef void ( * PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
2347 typedef void ( * PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
2348 typedef GLint ( * PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
2349 typedef void ( * PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
2350 typedef void ( * PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params);
2351 typedef void ( * PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params);
2352 typedef void ( * PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
2358 __attribute__((visibility("default"))) void glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name);
2359 __attribute__((visibility("default"))) void glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
2360 __attribute__((visibility("default"))) GLint glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name);
2362 typedef void ( * PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
2363 typedef void ( * PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
2364 typedef GLint ( * PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
2365 # 6479 "../../include/GL/glext.h"
2366 __attribute__((visibility("default"))) void glDrawBuffersARB (GLsizei n, const GLenum *bufs);
2368 typedef void ( * PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
2369 # 6491 "../../include/GL/glext.h"
2370 __attribute__((visibility("default"))) void glClampColorARB (GLenum target, GLenum clamp);
2372 typedef void ( * PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
2373 # 6515 "../../include/GL/glext.h"
2374 __attribute__((visibility("default"))) void glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
2375 __attribute__((visibility("default"))) void glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
2377 typedef void ( * PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
2378 typedef void ( * PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
2384 __attribute__((visibility("default"))) GLboolean glIsRenderbuffer (GLuint renderbuffer);
2385 __attribute__((visibility("default"))) void glBindRenderbuffer (GLenum target, GLuint renderbuffer);
2386 __attribute__((visibility("default"))) void glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
2387 __attribute__((visibility("default"))) void glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
2388 __attribute__((visibility("default"))) void glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
2389 __attribute__((visibility("default"))) void glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
2390 __attribute__((visibility("default"))) GLboolean glIsFramebuffer (GLuint framebuffer);
2391 __attribute__((visibility("default"))) void glBindFramebuffer (GLenum target, GLuint framebuffer);
2392 __attribute__((visibility("default"))) void glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
2393 __attribute__((visibility("default"))) void glGenFramebuffers (GLsizei n, GLuint *framebuffers);
2394 __attribute__((visibility("default"))) GLenum glCheckFramebufferStatus (GLenum target);
2395 __attribute__((visibility("default"))) void glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
2396 __attribute__((visibility("default"))) void glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
2397 __attribute__((visibility("default"))) void glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
2398 __attribute__((visibility("default"))) void glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
2399 __attribute__((visibility("default"))) void glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
2400 __attribute__((visibility("default"))) void glGenerateMipmap (GLenum target);
2401 __attribute__((visibility("default"))) void glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
2402 __attribute__((visibility("default"))) void glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
2403 __attribute__((visibility("default"))) void glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
2405 typedef GLboolean ( * PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
2406 typedef void ( * PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
2407 typedef void ( * PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
2408 typedef void ( * PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
2409 typedef void ( * PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
2410 typedef void ( * PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
2411 typedef GLboolean ( * PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
2412 typedef void ( * PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
2413 typedef void ( * PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
2414 typedef void ( * PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
2415 typedef GLenum ( * PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
2416 typedef void ( * PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
2417 typedef void ( * PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
2418 typedef void ( * PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
2419 typedef void ( * PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
2420 typedef void ( * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
2421 typedef void ( * PFNGLGENERATEMIPMAPPROC) (GLenum target);
2422 typedef void ( * PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
2423 typedef void ( * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
2424 typedef void ( * PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
2425 # 6575 "../../include/GL/glext.h"
2426 __attribute__((visibility("default"))) void glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
2427 __attribute__((visibility("default"))) void glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
2428 __attribute__((visibility("default"))) void glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
2429 __attribute__((visibility("default"))) void glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
2431 typedef void ( * PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
2432 typedef void ( * PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
2433 typedef void ( * PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
2434 typedef void ( * PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
2435 # 6593 "../../include/GL/glext.h"
2436 __attribute__((visibility("default"))) void glVertexAttribDivisorARB (GLuint index, GLuint divisor);
2438 typedef void ( * PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
2444 __attribute__((visibility("default"))) GLvoid* glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
2445 __attribute__((visibility("default"))) void glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
2447 typedef GLvoid* ( * PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
2448 typedef void ( * PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
2454 __attribute__((visibility("default"))) void glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer);
2456 typedef void ( * PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
2457 # 6627 "../../include/GL/glext.h"
2458 __attribute__((visibility("default"))) void glBindVertexArray (GLuint array);
2459 __attribute__((visibility("default"))) void glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
2460 __attribute__((visibility("default"))) void glGenVertexArrays (GLsizei n, GLuint *arrays);
2461 __attribute__((visibility("default"))) GLboolean glIsVertexArray (GLuint array);
2463 typedef void ( * PFNGLBINDVERTEXARRAYPROC) (GLuint array);
2464 typedef void ( * PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
2465 typedef void ( * PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
2466 typedef GLboolean ( * PFNGLISVERTEXARRAYPROC) (GLuint array);
2472 __attribute__((visibility("default"))) void glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar* *uniformNames, GLuint *uniformIndices);
2473 __attribute__((visibility("default"))) void glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
2474 __attribute__((visibility("default"))) void glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
2475 __attribute__((visibility("default"))) GLuint glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
2476 __attribute__((visibility("default"))) void glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
2477 __attribute__((visibility("default"))) void glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
2478 __attribute__((visibility("default"))) void glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
2480 typedef void ( * PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* *uniformNames, GLuint *uniformIndices);
2481 typedef void ( * PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
2482 typedef void ( * PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
2483 typedef GLuint ( * PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
2484 typedef void ( * PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
2485 typedef void ( * PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
2486 typedef void ( * PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
2487 # 6665 "../../include/GL/glext.h"
2488 __attribute__((visibility("default"))) void glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
2490 typedef void ( * PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
2491 # 6681 "../../include/GL/glext.h"
2492 __attribute__((visibility("default"))) void glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
2493 __attribute__((visibility("default"))) void glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
2494 __attribute__((visibility("default"))) void glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex);
2495 __attribute__((visibility("default"))) void glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, const GLint *basevertex);
2497 typedef void ( * PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
2498 typedef void ( * PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
2499 typedef void ( * PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex);
2500 typedef void ( * PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, const GLint *basevertex);
2501 # 6699 "../../include/GL/glext.h"
2502 __attribute__((visibility("default"))) void glProvokingVertex (GLenum mode);
2504 typedef void ( * PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
2505 # 6711 "../../include/GL/glext.h"
2506 __attribute__((visibility("default"))) GLsync glFenceSync (GLenum condition, GLbitfield flags);
2507 __attribute__((visibility("default"))) GLboolean glIsSync (GLsync sync);
2508 __attribute__((visibility("default"))) void glDeleteSync (GLsync sync);
2509 __attribute__((visibility("default"))) GLenum glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
2510 __attribute__((visibility("default"))) void glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
2511 __attribute__((visibility("default"))) void glGetInteger64v (GLenum pname, GLint64 *params);
2512 __attribute__((visibility("default"))) void glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
2514 typedef GLsync ( * PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
2515 typedef GLboolean ( * PFNGLISSYNCPROC) (GLsync sync);
2516 typedef void ( * PFNGLDELETESYNCPROC) (GLsync sync);
2517 typedef GLenum ( * PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
2518 typedef void ( * PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
2519 typedef void ( * PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params);
2520 typedef void ( * PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
2526 __attribute__((visibility("default"))) void glTexImage2DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2527 __attribute__((visibility("default"))) void glTexImage3DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2528 __attribute__((visibility("default"))) void glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
2529 __attribute__((visibility("default"))) void glSampleMaski (GLuint index, GLbitfield mask);
2531 typedef void ( * PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2532 typedef void ( * PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2533 typedef void ( * PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
2534 typedef void ( * PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask);
2535 # 6749 "../../include/GL/glext.h"
2536 __attribute__((visibility("default"))) void glBlendEquationiARB (GLuint buf, GLenum mode);
2537 __attribute__((visibility("default"))) void glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
2538 __attribute__((visibility("default"))) void glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
2539 __attribute__((visibility("default"))) void glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2541 typedef void ( * PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
2542 typedef void ( * PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
2543 typedef void ( * PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
2544 typedef void ( * PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2550 __attribute__((visibility("default"))) void glMinSampleShadingARB (GLclampf value);
2552 typedef void ( * PFNGLMINSAMPLESHADINGARBPROC) (GLclampf value);
2553 # 6783 "../../include/GL/glext.h"
2554 __attribute__((visibility("default"))) void glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
2555 __attribute__((visibility("default"))) void glDeleteNamedStringARB (GLint namelen, const GLchar *name);
2556 __attribute__((visibility("default"))) void glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
2557 __attribute__((visibility("default"))) GLboolean glIsNamedStringARB (GLint namelen, const GLchar *name);
2558 __attribute__((visibility("default"))) void glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
2559 __attribute__((visibility("default"))) void glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
2561 typedef void ( * PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
2562 typedef void ( * PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
2563 typedef void ( * PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
2564 typedef GLboolean ( * PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
2565 typedef void ( * PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
2566 typedef void ( * PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
2567 # 6805 "../../include/GL/glext.h"
2568 __attribute__((visibility("default"))) void glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
2569 __attribute__((visibility("default"))) GLint glGetFragDataIndex (GLuint program, const GLchar *name);
2571 typedef void ( * PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
2572 typedef GLint ( * PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
2573 # 6823 "../../include/GL/glext.h"
2574 __attribute__((visibility("default"))) void glGenSamplers (GLsizei count, GLuint *samplers);
2575 __attribute__((visibility("default"))) void glDeleteSamplers (GLsizei count, const GLuint *samplers);
2576 __attribute__((visibility("default"))) GLboolean glIsSampler (GLuint sampler);
2577 __attribute__((visibility("default"))) void glBindSampler (GLuint unit, GLuint sampler);
2578 __attribute__((visibility("default"))) void glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
2579 __attribute__((visibility("default"))) void glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
2580 __attribute__((visibility("default"))) void glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
2581 __attribute__((visibility("default"))) void glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
2582 __attribute__((visibility("default"))) void glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
2583 __attribute__((visibility("default"))) void glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
2584 __attribute__((visibility("default"))) void glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
2585 __attribute__((visibility("default"))) void glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
2586 __attribute__((visibility("default"))) void glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
2587 __attribute__((visibility("default"))) void glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
2589 typedef void ( * PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
2590 typedef void ( * PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
2591 typedef GLboolean ( * PFNGLISSAMPLERPROC) (GLuint sampler);
2592 typedef void ( * PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
2593 typedef void ( * PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
2594 typedef void ( * PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
2595 typedef void ( * PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
2596 typedef void ( * PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
2597 typedef void ( * PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
2598 typedef void ( * PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
2599 typedef void ( * PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
2600 typedef void ( * PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
2601 typedef void ( * PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
2602 typedef void ( * PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
2603 # 6865 "../../include/GL/glext.h"
2604 __attribute__((visibility("default"))) void glQueryCounter (GLuint id, GLenum target);
2605 __attribute__((visibility("default"))) void glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
2606 __attribute__((visibility("default"))) void glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
2608 typedef void ( * PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
2609 typedef void ( * PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
2610 typedef void ( * PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
2616 __attribute__((visibility("default"))) void glVertexP2ui (GLenum type, GLuint value);
2617 __attribute__((visibility("default"))) void glVertexP2uiv (GLenum type, const GLuint *value);
2618 __attribute__((visibility("default"))) void glVertexP3ui (GLenum type, GLuint value);
2619 __attribute__((visibility("default"))) void glVertexP3uiv (GLenum type, const GLuint *value);
2620 __attribute__((visibility("default"))) void glVertexP4ui (GLenum type, GLuint value);
2621 __attribute__((visibility("default"))) void glVertexP4uiv (GLenum type, const GLuint *value);
2622 __attribute__((visibility("default"))) void glTexCoordP1ui (GLenum type, GLuint coords);
2623 __attribute__((visibility("default"))) void glTexCoordP1uiv (GLenum type, const GLuint *coords);
2624 __attribute__((visibility("default"))) void glTexCoordP2ui (GLenum type, GLuint coords);
2625 __attribute__((visibility("default"))) void glTexCoordP2uiv (GLenum type, const GLuint *coords);
2626 __attribute__((visibility("default"))) void glTexCoordP3ui (GLenum type, GLuint coords);
2627 __attribute__((visibility("default"))) void glTexCoordP3uiv (GLenum type, const GLuint *coords);
2628 __attribute__((visibility("default"))) void glTexCoordP4ui (GLenum type, GLuint coords);
2629 __attribute__((visibility("default"))) void glTexCoordP4uiv (GLenum type, const GLuint *coords);
2630 __attribute__((visibility("default"))) void glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
2631 __attribute__((visibility("default"))) void glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
2632 __attribute__((visibility("default"))) void glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
2633 __attribute__((visibility("default"))) void glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
2634 __attribute__((visibility("default"))) void glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
2635 __attribute__((visibility("default"))) void glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
2636 __attribute__((visibility("default"))) void glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
2637 __attribute__((visibility("default"))) void glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
2638 __attribute__((visibility("default"))) void glNormalP3ui (GLenum type, GLuint coords);
2639 __attribute__((visibility("default"))) void glNormalP3uiv (GLenum type, const GLuint *coords);
2640 __attribute__((visibility("default"))) void glColorP3ui (GLenum type, GLuint color);
2641 __attribute__((visibility("default"))) void glColorP3uiv (GLenum type, const GLuint *color);
2642 __attribute__((visibility("default"))) void glColorP4ui (GLenum type, GLuint color);
2643 __attribute__((visibility("default"))) void glColorP4uiv (GLenum type, const GLuint *color);
2644 __attribute__((visibility("default"))) void glSecondaryColorP3ui (GLenum type, GLuint color);
2645 __attribute__((visibility("default"))) void glSecondaryColorP3uiv (GLenum type, const GLuint *color);
2646 __attribute__((visibility("default"))) void glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2647 __attribute__((visibility("default"))) void glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2648 __attribute__((visibility("default"))) void glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2649 __attribute__((visibility("default"))) void glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2650 __attribute__((visibility("default"))) void glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2651 __attribute__((visibility("default"))) void glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2652 __attribute__((visibility("default"))) void glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2653 __attribute__((visibility("default"))) void glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2655 typedef void ( * PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
2656 typedef void ( * PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
2657 typedef void ( * PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
2658 typedef void ( * PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
2659 typedef void ( * PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
2660 typedef void ( * PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
2661 typedef void ( * PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
2662 typedef void ( * PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
2663 typedef void ( * PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
2664 typedef void ( * PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
2665 typedef void ( * PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
2666 typedef void ( * PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
2667 typedef void ( * PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
2668 typedef void ( * PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
2669 typedef void ( * PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
2670 typedef void ( * PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
2671 typedef void ( * PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
2672 typedef void ( * PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
2673 typedef void ( * PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
2674 typedef void ( * PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
2675 typedef void ( * PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
2676 typedef void ( * PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
2677 typedef void ( * PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
2678 typedef void ( * PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
2679 typedef void ( * PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
2680 typedef void ( * PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
2681 typedef void ( * PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
2682 typedef void ( * PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
2683 typedef void ( * PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
2684 typedef void ( * PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
2685 typedef void ( * PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2686 typedef void ( * PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2687 typedef void ( * PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2688 typedef void ( * PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2689 typedef void ( * PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2690 typedef void ( * PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2691 typedef void ( * PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
2692 typedef void ( * PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
2698 __attribute__((visibility("default"))) void glDrawArraysIndirect (GLenum mode, const GLvoid *indirect);
2699 __attribute__((visibility("default"))) void glDrawElementsIndirect (GLenum mode, GLenum type, const GLvoid *indirect);
2701 typedef void ( * PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const GLvoid *indirect);
2702 typedef void ( * PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const GLvoid *indirect);
2703 # 6973 "../../include/GL/glext.h"
2704 __attribute__((visibility("default"))) void glUniform1d (GLint location, GLdouble x);
2705 __attribute__((visibility("default"))) void glUniform2d (GLint location, GLdouble x, GLdouble y);
2706 __attribute__((visibility("default"))) void glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
2707 __attribute__((visibility("default"))) void glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2708 __attribute__((visibility("default"))) void glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
2709 __attribute__((visibility("default"))) void glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
2710 __attribute__((visibility("default"))) void glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
2711 __attribute__((visibility("default"))) void glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
2712 __attribute__((visibility("default"))) void glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2713 __attribute__((visibility("default"))) void glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2714 __attribute__((visibility("default"))) void glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2715 __attribute__((visibility("default"))) void glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2716 __attribute__((visibility("default"))) void glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2717 __attribute__((visibility("default"))) void glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2718 __attribute__((visibility("default"))) void glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2719 __attribute__((visibility("default"))) void glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2720 __attribute__((visibility("default"))) void glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2721 __attribute__((visibility("default"))) void glGetUniformdv (GLuint program, GLint location, GLdouble *params);
2723 typedef void ( * PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
2724 typedef void ( * PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
2725 typedef void ( * PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
2726 typedef void ( * PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2727 typedef void ( * PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
2728 typedef void ( * PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
2729 typedef void ( * PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
2730 typedef void ( * PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
2731 typedef void ( * PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2732 typedef void ( * PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2733 typedef void ( * PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2734 typedef void ( * PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2735 typedef void ( * PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2736 typedef void ( * PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2737 typedef void ( * PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2738 typedef void ( * PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2739 typedef void ( * PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2740 typedef void ( * PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
2746 __attribute__((visibility("default"))) GLint glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
2747 __attribute__((visibility("default"))) GLuint glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
2748 __attribute__((visibility("default"))) void glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
2749 __attribute__((visibility("default"))) void glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
2750 __attribute__((visibility("default"))) void glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
2751 __attribute__((visibility("default"))) void glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
2752 __attribute__((visibility("default"))) void glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
2753 __attribute__((visibility("default"))) void glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
2755 typedef GLint ( * PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
2756 typedef GLuint ( * PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
2757 typedef void ( * PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
2758 typedef void ( * PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
2759 typedef void ( * PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
2760 typedef void ( * PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
2761 typedef void ( * PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
2762 typedef void ( * PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
2768 __attribute__((visibility("default"))) void glPatchParameteri (GLenum pname, GLint value);
2769 __attribute__((visibility("default"))) void glPatchParameterfv (GLenum pname, const GLfloat *values);
2771 typedef void ( * PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
2772 typedef void ( * PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
2773 # 7051 "../../include/GL/glext.h"
2774 __attribute__((visibility("default"))) void glBindTransformFeedback (GLenum target, GLuint id);
2775 __attribute__((visibility("default"))) void glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
2776 __attribute__((visibility("default"))) void glGenTransformFeedbacks (GLsizei n, GLuint *ids);
2777 __attribute__((visibility("default"))) GLboolean glIsTransformFeedback (GLuint id);
2778 __attribute__((visibility("default"))) void glPauseTransformFeedback (void);
2779 __attribute__((visibility("default"))) void glResumeTransformFeedback (void);
2780 __attribute__((visibility("default"))) void glDrawTransformFeedback (GLenum mode, GLuint id);
2782 typedef void ( * PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
2783 typedef void ( * PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
2784 typedef void ( * PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
2785 typedef GLboolean ( * PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
2786 typedef void ( * PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
2787 typedef void ( * PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
2788 typedef void ( * PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
2794 __attribute__((visibility("default"))) void glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
2795 __attribute__((visibility("default"))) void glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
2796 __attribute__((visibility("default"))) void glEndQueryIndexed (GLenum target, GLuint index);
2797 __attribute__((visibility("default"))) void glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
2799 typedef void ( * PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
2800 typedef void ( * PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
2801 typedef void ( * PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
2802 typedef void ( * PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
2808 __attribute__((visibility("default"))) void glReleaseShaderCompiler (void);
2809 __attribute__((visibility("default"))) void glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
2810 __attribute__((visibility("default"))) void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
2811 __attribute__((visibility("default"))) void glDepthRangef (GLclampf n, GLclampf f);
2812 __attribute__((visibility("default"))) void glClearDepthf (GLclampf d);
2814 typedef void ( * PFNGLRELEASESHADERCOMPILERPROC) (void);
2815 typedef void ( * PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
2816 typedef void ( * PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
2817 typedef void ( * PFNGLDEPTHRANGEFPROC) (GLclampf n, GLclampf f);
2818 typedef void ( * PFNGLCLEARDEPTHFPROC) (GLclampf d);
2824 __attribute__((visibility("default"))) void glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
2825 __attribute__((visibility("default"))) void glProgramBinary (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
2826 __attribute__((visibility("default"))) void glProgramParameteri (GLuint program, GLenum pname, GLint value);
2828 typedef void ( * PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
2829 typedef void ( * PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
2830 typedef void ( * PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
2836 __attribute__((visibility("default"))) void glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
2837 __attribute__((visibility("default"))) void glActiveShaderProgram (GLuint pipeline, GLuint program);
2838 __attribute__((visibility("default"))) GLuint glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar* *strings);
2839 __attribute__((visibility("default"))) void glBindProgramPipeline (GLuint pipeline);
2840 __attribute__((visibility("default"))) void glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
2841 __attribute__((visibility("default"))) void glGenProgramPipelines (GLsizei n, GLuint *pipelines);
2842 __attribute__((visibility("default"))) GLboolean glIsProgramPipeline (GLuint pipeline);
2843 __attribute__((visibility("default"))) void glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
2844 __attribute__((visibility("default"))) void glProgramUniform1i (GLuint program, GLint location, GLint v0);
2845 __attribute__((visibility("default"))) void glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2846 __attribute__((visibility("default"))) void glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
2847 __attribute__((visibility("default"))) void glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2848 __attribute__((visibility("default"))) void glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
2849 __attribute__((visibility("default"))) void glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2850 __attribute__((visibility("default"))) void glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
2851 __attribute__((visibility("default"))) void glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2852 __attribute__((visibility("default"))) void glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
2853 __attribute__((visibility("default"))) void glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2854 __attribute__((visibility("default"))) void glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
2855 __attribute__((visibility("default"))) void glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2856 __attribute__((visibility("default"))) void glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
2857 __attribute__((visibility("default"))) void glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2858 __attribute__((visibility("default"))) void glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
2859 __attribute__((visibility("default"))) void glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2860 __attribute__((visibility("default"))) void glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
2861 __attribute__((visibility("default"))) void glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2862 __attribute__((visibility("default"))) void glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2863 __attribute__((visibility("default"))) void glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2864 __attribute__((visibility("default"))) void glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
2865 __attribute__((visibility("default"))) void glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2866 __attribute__((visibility("default"))) void glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
2867 __attribute__((visibility("default"))) void glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2868 __attribute__((visibility("default"))) void glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2869 __attribute__((visibility("default"))) void glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2870 __attribute__((visibility("default"))) void glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2871 __attribute__((visibility("default"))) void glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2872 __attribute__((visibility("default"))) void glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
2873 __attribute__((visibility("default"))) void glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2874 __attribute__((visibility("default"))) void glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2875 __attribute__((visibility("default"))) void glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2876 __attribute__((visibility("default"))) void glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2877 __attribute__((visibility("default"))) void glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2878 __attribute__((visibility("default"))) void glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2879 __attribute__((visibility("default"))) void glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2880 __attribute__((visibility("default"))) void glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2881 __attribute__((visibility("default"))) void glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2882 __attribute__((visibility("default"))) void glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2883 __attribute__((visibility("default"))) void glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2884 __attribute__((visibility("default"))) void glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2885 __attribute__((visibility("default"))) void glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2886 __attribute__((visibility("default"))) void glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2887 __attribute__((visibility("default"))) void glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2888 __attribute__((visibility("default"))) void glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2889 __attribute__((visibility("default"))) void glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2890 __attribute__((visibility("default"))) void glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2891 __attribute__((visibility("default"))) void glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2892 __attribute__((visibility("default"))) void glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2893 __attribute__((visibility("default"))) void glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2894 __attribute__((visibility("default"))) void glValidateProgramPipeline (GLuint pipeline);
2895 __attribute__((visibility("default"))) void glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
2897 typedef void ( * PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
2898 typedef void ( * PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
2899 typedef GLuint ( * PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar* *strings);
2900 typedef void ( * PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
2901 typedef void ( * PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
2902 typedef void ( * PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
2903 typedef GLboolean ( * PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
2904 typedef void ( * PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
2905 typedef void ( * PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
2906 typedef void ( * PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
2907 typedef void ( * PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
2908 typedef void ( * PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2909 typedef void ( * PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
2910 typedef void ( * PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2911 typedef void ( * PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
2912 typedef void ( * PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
2913 typedef void ( * PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
2914 typedef void ( * PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
2915 typedef void ( * PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
2916 typedef void ( * PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2917 typedef void ( * PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
2918 typedef void ( * PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2919 typedef void ( * PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
2920 typedef void ( * PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
2921 typedef void ( * PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
2922 typedef void ( * PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
2923 typedef void ( * PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2924 typedef void ( * PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2925 typedef void ( * PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
2926 typedef void ( * PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2927 typedef void ( * PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
2928 typedef void ( * PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
2929 typedef void ( * PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2930 typedef void ( * PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
2931 typedef void ( * PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2932 typedef void ( * PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2933 typedef void ( * PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
2934 typedef void ( * PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2935 typedef void ( * PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2936 typedef void ( * PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
2937 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2938 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2939 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2940 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2941 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2942 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2943 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2944 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2945 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2946 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2947 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2948 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2949 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2950 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2951 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2952 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2953 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2954 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2955 typedef void ( * PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
2956 typedef void ( * PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
2962 __attribute__((visibility("default"))) void glVertexAttribL1d (GLuint index, GLdouble x);
2963 __attribute__((visibility("default"))) void glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
2964 __attribute__((visibility("default"))) void glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
2965 __attribute__((visibility("default"))) void glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2966 __attribute__((visibility("default"))) void glVertexAttribL1dv (GLuint index, const GLdouble *v);
2967 __attribute__((visibility("default"))) void glVertexAttribL2dv (GLuint index, const GLdouble *v);
2968 __attribute__((visibility("default"))) void glVertexAttribL3dv (GLuint index, const GLdouble *v);
2969 __attribute__((visibility("default"))) void glVertexAttribL4dv (GLuint index, const GLdouble *v);
2970 __attribute__((visibility("default"))) void glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2971 __attribute__((visibility("default"))) void glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
2973 typedef void ( * PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
2974 typedef void ( * PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
2975 typedef void ( * PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
2976 typedef void ( * PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2977 typedef void ( * PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
2978 typedef void ( * PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
2979 typedef void ( * PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
2980 typedef void ( * PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
2981 typedef void ( * PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2982 typedef void ( * PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
2988 __attribute__((visibility("default"))) void glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
2989 __attribute__((visibility("default"))) void glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
2990 __attribute__((visibility("default"))) void glViewportIndexedfv (GLuint index, const GLfloat *v);
2991 __attribute__((visibility("default"))) void glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
2992 __attribute__((visibility("default"))) void glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
2993 __attribute__((visibility("default"))) void glScissorIndexedv (GLuint index, const GLint *v);
2994 __attribute__((visibility("default"))) void glDepthRangeArrayv (GLuint first, GLsizei count, const GLclampd *v);
2995 __attribute__((visibility("default"))) void glDepthRangeIndexed (GLuint index, GLclampd n, GLclampd f);
2996 __attribute__((visibility("default"))) void glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
2997 __attribute__((visibility("default"))) void glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
2999 typedef void ( * PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
3000 typedef void ( * PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
3001 typedef void ( * PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
3002 typedef void ( * PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
3003 typedef void ( * PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
3004 typedef void ( * PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
3005 typedef void ( * PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLclampd *v);
3006 typedef void ( * PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLclampd n, GLclampd f);
3007 typedef void ( * PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
3008 typedef void ( * PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
3014 __attribute__((visibility("default"))) GLsync glCreateSyncFromCLeventARB (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
3016 typedef GLsync ( * PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
3022 __attribute__((visibility("default"))) void glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
3023 __attribute__((visibility("default"))) void glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
3024 __attribute__((visibility("default"))) void glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam);
3025 __attribute__((visibility("default"))) GLuint glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
3027 typedef void ( * PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
3028 typedef void ( * PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
3029 typedef void ( * PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam);
3030 typedef GLuint ( * PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
3036 __attribute__((visibility("default"))) GLenum glGetGraphicsResetStatusARB (void);
3037 __attribute__((visibility("default"))) void glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
3038 __attribute__((visibility("default"))) void glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
3039 __attribute__((visibility("default"))) void glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
3040 __attribute__((visibility("default"))) void glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat *values);
3041 __attribute__((visibility("default"))) void glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint *values);
3042 __attribute__((visibility("default"))) void glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort *values);
3043 __attribute__((visibility("default"))) void glGetnPolygonStippleARB (GLsizei bufSize, GLubyte *pattern);
3044 __attribute__((visibility("default"))) void glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *table);
3045 __attribute__((visibility("default"))) void glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *image);
3046 __attribute__((visibility("default"))) void glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid *row, GLsizei columnBufSize, GLvoid *column, GLvoid *span);
3047 __attribute__((visibility("default"))) void glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
3048 __attribute__((visibility("default"))) void glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
3049 __attribute__((visibility("default"))) void glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
3050 __attribute__((visibility("default"))) void glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
3051 __attribute__((visibility("default"))) void glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
3052 __attribute__((visibility("default"))) void glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
3053 __attribute__((visibility("default"))) void glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
3054 __attribute__((visibility("default"))) void glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
3055 __attribute__((visibility("default"))) void glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
3057 typedef GLenum ( * PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
3058 typedef void ( * PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
3059 typedef void ( * PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
3060 typedef void ( * PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
3061 typedef void ( * PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
3062 typedef void ( * PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint *values);
3063 typedef void ( * PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort *values);
3064 typedef void ( * PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte *pattern);
3065 typedef void ( * PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *table);
3066 typedef void ( * PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *image);
3067 typedef void ( * PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid *row, GLsizei columnBufSize, GLvoid *column, GLvoid *span);
3068 typedef void ( * PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
3069 typedef void ( * PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
3070 typedef void ( * PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
3071 typedef void ( * PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
3072 typedef void ( * PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
3073 typedef void ( * PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
3074 typedef void ( * PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
3075 typedef void ( * PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
3076 typedef void ( * PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
3077 # 7367 "../../include/GL/glext.h"
3078 __attribute__((visibility("default"))) void glBlendColorEXT (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
3080 typedef void ( * PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
3086 __attribute__((visibility("default"))) void glPolygonOffsetEXT (GLfloat factor, GLfloat bias);
3088 typedef void ( * PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias);
3089 # 7387 "../../include/GL/glext.h"
3090 __attribute__((visibility("default"))) void glTexImage3DEXT (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
3091 __attribute__((visibility("default"))) void glTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
3093 typedef void ( * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
3094 typedef 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);
3100 __attribute__((visibility("default"))) void glGetTexFilterFuncSGIS (GLenum target, GLenum filter, GLfloat *weights);
3101 __attribute__((visibility("default"))) void glTexFilterFuncSGIS (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
3103 typedef void ( * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights);
3104 typedef void ( * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
3110 __attribute__((visibility("default"))) void glTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
3111 __attribute__((visibility("default"))) void glTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
3113 typedef void ( * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
3114 typedef void ( * PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
3120 __attribute__((visibility("default"))) void glCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
3121 __attribute__((visibility("default"))) void glCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
3122 __attribute__((visibility("default"))) void glCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
3123 __attribute__((visibility("default"))) void glCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
3124 __attribute__((visibility("default"))) void glCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
3126 typedef void ( * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
3127 typedef void ( * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
3128 typedef void ( * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
3129 typedef void ( * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
3130 typedef void ( * PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
3136 __attribute__((visibility("default"))) void glGetHistogramEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
3137 __attribute__((visibility("default"))) void glGetHistogramParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
3138 __attribute__((visibility("default"))) void glGetHistogramParameterivEXT (GLenum target, GLenum pname, GLint *params);
3139 __attribute__((visibility("default"))) void glGetMinmaxEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
3140 __attribute__((visibility("default"))) void glGetMinmaxParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
3141 __attribute__((visibility("default"))) void glGetMinmaxParameterivEXT (GLenum target, GLenum pname, GLint *params);
3142 __attribute__((visibility("default"))) void glHistogramEXT (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
3143 __attribute__((visibility("default"))) void glMinmaxEXT (GLenum target, GLenum internalformat, GLboolean sink);
3144 __attribute__((visibility("default"))) void glResetHistogramEXT (GLenum target);
3145 __attribute__((visibility("default"))) void glResetMinmaxEXT (GLenum target);
3147 typedef void ( * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
3148 typedef void ( * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
3149 typedef void ( * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
3150 typedef void ( * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
3151 typedef void ( * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
3152 typedef void ( * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
3153 typedef void ( * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
3154 typedef void ( * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink);
3155 typedef void ( * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
3156 typedef void ( * PFNGLRESETMINMAXEXTPROC) (GLenum target);
3162 __attribute__((visibility("default"))) void glConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
3163 __attribute__((visibility("default"))) void glConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
3164 __attribute__((visibility("default"))) void glConvolutionParameterfEXT (GLenum target, GLenum pname, GLfloat params);
3165 __attribute__((visibility("default"))) void glConvolutionParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
3166 __attribute__((visibility("default"))) void glConvolutionParameteriEXT (GLenum target, GLenum pname, GLint params);
3167 __attribute__((visibility("default"))) void glConvolutionParameterivEXT (GLenum target, GLenum pname, const GLint *params);
3168 __attribute__((visibility("default"))) void glCopyConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3169 __attribute__((visibility("default"))) void glCopyConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
3170 __attribute__((visibility("default"))) void glGetConvolutionFilterEXT (GLenum target, GLenum format, GLenum type, GLvoid *image);
3171 __attribute__((visibility("default"))) void glGetConvolutionParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
3172 __attribute__((visibility("default"))) void glGetConvolutionParameterivEXT (GLenum target, GLenum pname, GLint *params);
3173 __attribute__((visibility("default"))) void glGetSeparableFilterEXT (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
3174 __attribute__((visibility("default"))) void glSeparableFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
3176 typedef void ( * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
3177 typedef void ( * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
3178 typedef void ( * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params);
3179 typedef void ( * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
3180 typedef void ( * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params);
3181 typedef void ( * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
3182 typedef void ( * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3183 typedef void ( * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
3184 typedef void ( * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
3185 typedef void ( * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
3186 typedef void ( * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
3187 typedef void ( * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
3188 typedef void ( * PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
3189 # 7495 "../../include/GL/glext.h"
3190 __attribute__((visibility("default"))) void glColorTableSGI (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
3191 __attribute__((visibility("default"))) void glColorTableParameterfvSGI (GLenum target, GLenum pname, const GLfloat *params);
3192 __attribute__((visibility("default"))) void glColorTableParameterivSGI (GLenum target, GLenum pname, const GLint *params);
3193 __attribute__((visibility("default"))) void glCopyColorTableSGI (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3194 __attribute__((visibility("default"))) void glGetColorTableSGI (GLenum target, GLenum format, GLenum type, GLvoid *table);
3195 __attribute__((visibility("default"))) void glGetColorTableParameterfvSGI (GLenum target, GLenum pname, GLfloat *params);
3196 __attribute__((visibility("default"))) void glGetColorTableParameterivSGI (GLenum target, GLenum pname, GLint *params);
3198 typedef void ( * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
3199 typedef void ( * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params);
3200 typedef void ( * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params);
3201 typedef void ( * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3202 typedef void ( * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
3203 typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params);
3204 typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params);
3210 __attribute__((visibility("default"))) void glPixelTexGenSGIX (GLenum mode);
3212 typedef void ( * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
3218 __attribute__((visibility("default"))) void glPixelTexGenParameteriSGIS (GLenum pname, GLint param);
3219 __attribute__((visibility("default"))) void glPixelTexGenParameterivSGIS (GLenum pname, const GLint *params);
3220 __attribute__((visibility("default"))) void glPixelTexGenParameterfSGIS (GLenum pname, GLfloat param);
3221 __attribute__((visibility("default"))) void glPixelTexGenParameterfvSGIS (GLenum pname, const GLfloat *params);
3222 __attribute__((visibility("default"))) void glGetPixelTexGenParameterivSGIS (GLenum pname, GLint *params);
3223 __attribute__((visibility("default"))) void glGetPixelTexGenParameterfvSGIS (GLenum pname, GLfloat *params);
3225 typedef void ( * PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param);
3226 typedef void ( * PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params);
3227 typedef void ( * PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
3228 typedef void ( * PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
3229 typedef void ( * PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params);
3230 typedef void ( * PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params);
3236 __attribute__((visibility("default"))) void glTexImage4DSGIS (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
3237 __attribute__((visibility("default"))) void glTexSubImage4DSGIS (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);
3239 typedef 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);
3240 typedef 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);
3241 # 7559 "../../include/GL/glext.h"
3242 __attribute__((visibility("default"))) GLboolean glAreTexturesResidentEXT (GLsizei n, const GLuint *textures, GLboolean *residences);
3243 __attribute__((visibility("default"))) void glBindTextureEXT (GLenum target, GLuint texture);
3244 __attribute__((visibility("default"))) void glDeleteTexturesEXT (GLsizei n, const GLuint *textures);
3245 __attribute__((visibility("default"))) void glGenTexturesEXT (GLsizei n, GLuint *textures);
3246 __attribute__((visibility("default"))) GLboolean glIsTextureEXT (GLuint texture);
3247 __attribute__((visibility("default"))) void glPrioritizeTexturesEXT (GLsizei n, const GLuint *textures, const GLclampf *priorities);
3249 typedef GLboolean ( * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences);
3250 typedef void ( * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture);
3251 typedef void ( * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures);
3252 typedef void ( * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures);
3253 typedef GLboolean ( * PFNGLISTEXTUREEXTPROC) (GLuint texture);
3254 typedef void ( * PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities);
3260 __attribute__((visibility("default"))) void glDetailTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
3261 __attribute__((visibility("default"))) void glGetDetailTexFuncSGIS (GLenum target, GLfloat *points);
3263 typedef void ( * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
3264 typedef void ( * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
3270 __attribute__((visibility("default"))) void glSharpenTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
3271 __attribute__((visibility("default"))) void glGetSharpenTexFuncSGIS (GLenum target, GLfloat *points);
3273 typedef void ( * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
3274 typedef void ( * PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
3275 # 7605 "../../include/GL/glext.h"
3276 __attribute__((visibility("default"))) void glSampleMaskSGIS (GLclampf value, GLboolean invert);
3277 __attribute__((visibility("default"))) void glSamplePatternSGIS (GLenum pattern);
3279 typedef void ( * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert);
3280 typedef void ( * PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
3281 # 7619 "../../include/GL/glext.h"
3282 __attribute__((visibility("default"))) void glArrayElementEXT (GLint i);
3283 __attribute__((visibility("default"))) void glColorPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3284 __attribute__((visibility("default"))) void glDrawArraysEXT (GLenum mode, GLint first, GLsizei count);
3285 __attribute__((visibility("default"))) void glEdgeFlagPointerEXT (GLsizei stride, GLsizei count, const GLboolean *pointer);
3286 __attribute__((visibility("default"))) void glGetPointervEXT (GLenum pname, GLvoid* *params);
3287 __attribute__((visibility("default"))) void glIndexPointerEXT (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3288 __attribute__((visibility("default"))) void glNormalPointerEXT (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3289 __attribute__((visibility("default"))) void glTexCoordPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3290 __attribute__((visibility("default"))) void glVertexPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3292 typedef void ( * PFNGLARRAYELEMENTEXTPROC) (GLint i);
3293 typedef void ( * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3294 typedef void ( * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
3295 typedef void ( * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
3296 typedef void ( * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
3297 typedef void ( * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3298 typedef void ( * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3299 typedef void ( * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3300 typedef void ( * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
3301 # 7667 "../../include/GL/glext.h"
3302 __attribute__((visibility("default"))) void glBlendEquationEXT (GLenum mode);
3304 typedef void ( * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
3305 # 7695 "../../include/GL/glext.h"
3306 __attribute__((visibility("default"))) void glSpriteParameterfSGIX (GLenum pname, GLfloat param);
3307 __attribute__((visibility("default"))) void glSpriteParameterfvSGIX (GLenum pname, const GLfloat *params);
3308 __attribute__((visibility("default"))) void glSpriteParameteriSGIX (GLenum pname, GLint param);
3309 __attribute__((visibility("default"))) void glSpriteParameterivSGIX (GLenum pname, const GLint *params);
3311 typedef void ( * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param);
3312 typedef void ( * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params);
3313 typedef void ( * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param);
3314 typedef void ( * PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params);
3315 # 7713 "../../include/GL/glext.h"
3316 __attribute__((visibility("default"))) void glPointParameterfEXT (GLenum pname, GLfloat param);
3317 __attribute__((visibility("default"))) void glPointParameterfvEXT (GLenum pname, const GLfloat *params);
3319 typedef void ( * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
3320 typedef void ( * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
3326 __attribute__((visibility("default"))) void glPointParameterfSGIS (GLenum pname, GLfloat param);
3327 __attribute__((visibility("default"))) void glPointParameterfvSGIS (GLenum pname, const GLfloat *params);
3329 typedef void ( * PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
3330 typedef void ( * PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
3336 __attribute__((visibility("default"))) GLint glGetInstrumentsSGIX (void);
3337 __attribute__((visibility("default"))) void glInstrumentsBufferSGIX (GLsizei size, GLint *buffer);
3338 __attribute__((visibility("default"))) GLint glPollInstrumentsSGIX (GLint *marker_p);
3339 __attribute__((visibility("default"))) void glReadInstrumentsSGIX (GLint marker);
3340 __attribute__((visibility("default"))) void glStartInstrumentsSGIX (void);
3341 __attribute__((visibility("default"))) void glStopInstrumentsSGIX (GLint marker);
3343 typedef GLint ( * PFNGLGETINSTRUMENTSSGIXPROC) (void);
3344 typedef void ( * PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer);
3345 typedef GLint ( * PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p);
3346 typedef void ( * PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker);
3347 typedef void ( * PFNGLSTARTINSTRUMENTSSGIXPROC) (void);
3348 typedef void ( * PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker);
3349 # 7755 "../../include/GL/glext.h"
3350 __attribute__((visibility("default"))) void glFrameZoomSGIX (GLint factor);
3352 typedef void ( * PFNGLFRAMEZOOMSGIXPROC) (GLint factor);
3358 __attribute__((visibility("default"))) void glTagSampleBufferSGIX (void);
3360 typedef void ( * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void);
3366 __attribute__((visibility("default"))) void glDeformationMap3dSGIX (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);
3367 __attribute__((visibility("default"))) void glDeformationMap3fSGIX (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);
3368 __attribute__((visibility("default"))) void glDeformSGIX (GLbitfield mask);
3369 __attribute__((visibility("default"))) void glLoadIdentityDeformationMapSGIX (GLbitfield mask);
3371 typedef 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);
3372 typedef 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);
3373 typedef void ( * PFNGLDEFORMSGIXPROC) (GLbitfield mask);
3374 typedef void ( * PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask);
3380 __attribute__((visibility("default"))) void glReferencePlaneSGIX (const GLdouble *equation);
3382 typedef void ( * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation);
3388 __attribute__((visibility("default"))) void glFlushRasterSGIX (void);
3390 typedef void ( * PFNGLFLUSHRASTERSGIXPROC) (void);
3391 # 7805 "../../include/GL/glext.h"
3392 __attribute__((visibility("default"))) void glFogFuncSGIS (GLsizei n, const GLfloat *points);
3393 __attribute__((visibility("default"))) void glGetFogFuncSGIS (GLfloat *points);
3395 typedef void ( * PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points);
3396 typedef void ( * PFNGLGETFOGFUNCSGISPROC) (GLfloat *points);
3397 # 7819 "../../include/GL/glext.h"
3398 __attribute__((visibility("default"))) void glImageTransformParameteriHP (GLenum target, GLenum pname, GLint param);
3399 __attribute__((visibility("default"))) void glImageTransformParameterfHP (GLenum target, GLenum pname, GLfloat param);
3400 __attribute__((visibility("default"))) void glImageTransformParameterivHP (GLenum target, GLenum pname, const GLint *params);
3401 __attribute__((visibility("default"))) void glImageTransformParameterfvHP (GLenum target, GLenum pname, const GLfloat *params);
3402 __attribute__((visibility("default"))) void glGetImageTransformParameterivHP (GLenum target, GLenum pname, GLint *params);
3403 __attribute__((visibility("default"))) void glGetImageTransformParameterfvHP (GLenum target, GLenum pname, GLfloat *params);
3405 typedef void ( * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param);
3406 typedef void ( * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param);
3407 typedef void ( * PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params);
3408 typedef void ( * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params);
3409 typedef void ( * PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params);
3410 typedef void ( * PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params);
3411 # 7845 "../../include/GL/glext.h"
3412 __attribute__((visibility("default"))) void glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
3413 __attribute__((visibility("default"))) void glCopyColorSubTableEXT (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
3415 typedef void ( * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
3416 typedef void ( * PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
3417 # 7859 "../../include/GL/glext.h"
3418 __attribute__((visibility("default"))) void glHintPGI (GLenum target, GLint mode);
3420 typedef void ( * PFNGLHINTPGIPROC) (GLenum target, GLint mode);
3426 __attribute__((visibility("default"))) void glColorTableEXT (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
3427 __attribute__((visibility("default"))) void glGetColorTableEXT (GLenum target, GLenum format, GLenum type, GLvoid *data);
3428 __attribute__((visibility("default"))) void glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params);
3429 __attribute__((visibility("default"))) void glGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
3431 typedef void ( * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
3432 typedef void ( * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data);
3433 typedef void ( * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
3434 typedef void ( * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
3435 # 7885 "../../include/GL/glext.h"
3436 __attribute__((visibility("default"))) void glGetListParameterfvSGIX (GLuint list, GLenum pname, GLfloat *params);
3437 __attribute__((visibility("default"))) void glGetListParameterivSGIX (GLuint list, GLenum pname, GLint *params);
3438 __attribute__((visibility("default"))) void glListParameterfSGIX (GLuint list, GLenum pname, GLfloat param);
3439 __attribute__((visibility("default"))) void glListParameterfvSGIX (GLuint list, GLenum pname, const GLfloat *params);
3440 __attribute__((visibility("default"))) void glListParameteriSGIX (GLuint list, GLenum pname, GLint param);
3441 __attribute__((visibility("default"))) void glListParameterivSGIX (GLuint list, GLenum pname, const GLint *params);
3443 typedef void ( * PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params);
3444 typedef void ( * PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params);
3445 typedef void ( * PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param);
3446 typedef void ( * PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params);
3447 typedef void ( * PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param);
3448 typedef void ( * PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params);
3449 # 7923 "../../include/GL/glext.h"
3450 __attribute__((visibility("default"))) void glIndexMaterialEXT (GLenum face, GLenum mode);
3452 typedef void ( * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode);
3458 __attribute__((visibility("default"))) void glIndexFuncEXT (GLenum func, GLclampf ref);
3460 typedef void ( * PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref);
3461 # 7943 "../../include/GL/glext.h"
3462 __attribute__((visibility("default"))) void glLockArraysEXT (GLint first, GLsizei count);
3463 __attribute__((visibility("default"))) void glUnlockArraysEXT (void);
3465 typedef void ( * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
3466 typedef void ( * PFNGLUNLOCKARRAYSEXTPROC) (void);
3472 __attribute__((visibility("default"))) void glCullParameterdvEXT (GLenum pname, GLdouble *params);
3473 __attribute__((visibility("default"))) void glCullParameterfvEXT (GLenum pname, GLfloat *params);
3475 typedef void ( * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params);
3476 typedef void ( * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params);
3477 # 7967 "../../include/GL/glext.h"
3478 __attribute__((visibility("default"))) void glFragmentColorMaterialSGIX (GLenum face, GLenum mode);
3479 __attribute__((visibility("default"))) void glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param);
3480 __attribute__((visibility("default"))) void glFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat *params);
3481 __attribute__((visibility("default"))) void glFragmentLightiSGIX (GLenum light, GLenum pname, GLint param);
3482 __attribute__((visibility("default"))) void glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params);
3483 __attribute__((visibility("default"))) void glFragmentLightModelfSGIX (GLenum pname, GLfloat param);
3484 __attribute__((visibility("default"))) void glFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params);
3485 __attribute__((visibility("default"))) void glFragmentLightModeliSGIX (GLenum pname, GLint param);
3486 __attribute__((visibility("default"))) void glFragmentLightModelivSGIX (GLenum pname, const GLint *params);
3487 __attribute__((visibility("default"))) void glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param);
3488 __attribute__((visibility("default"))) void glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params);
3489 __attribute__((visibility("default"))) void glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param);
3490 __attribute__((visibility("default"))) void glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params);
3491 __attribute__((visibility("default"))) void glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params);
3492 __attribute__((visibility("default"))) void glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params);
3493 __attribute__((visibility("default"))) void glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params);
3494 __attribute__((visibility("default"))) void glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
3495 __attribute__((visibility("default"))) void glLightEnviSGIX (GLenum pname, GLint param);
3497 typedef void ( * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode);
3498 typedef void ( * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param);
3499 typedef void ( * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
3500 typedef void ( * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
3501 typedef void ( * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
3502 typedef void ( * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
3503 typedef void ( * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
3504 typedef void ( * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
3505 typedef void ( * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
3506 typedef void ( * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
3507 typedef void ( * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params);
3508 typedef void ( * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
3509 typedef void ( * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params);
3510 typedef void ( * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params);
3511 typedef void ( * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params);
3512 typedef void ( * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
3513 typedef void ( * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
3514 typedef void ( * PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param);
3515 # 8017 "../../include/GL/glext.h"
3516 __attribute__((visibility("default"))) void glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
3518 typedef void ( * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
3519 # 8033 "../../include/GL/glext.h"
3520 __attribute__((visibility("default"))) void glApplyTextureEXT (GLenum mode);
3521 __attribute__((visibility("default"))) void glTextureLightEXT (GLenum pname);
3522 __attribute__((visibility("default"))) void glTextureMaterialEXT (GLenum face, GLenum mode);
3524 typedef void ( * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode);
3525 typedef void ( * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname);
3526 typedef void ( * PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode);
3527 # 8053 "../../include/GL/glext.h"
3528 __attribute__((visibility("default"))) void glAsyncMarkerSGIX (GLuint marker);
3529 __attribute__((visibility("default"))) GLint glFinishAsyncSGIX (GLuint *markerp);
3530 __attribute__((visibility("default"))) GLint glPollAsyncSGIX (GLuint *markerp);
3531 __attribute__((visibility("default"))) GLuint glGenAsyncMarkersSGIX (GLsizei range);
3532 __attribute__((visibility("default"))) void glDeleteAsyncMarkersSGIX (GLuint marker, GLsizei range);
3533 __attribute__((visibility("default"))) GLboolean glIsAsyncMarkerSGIX (GLuint marker);
3535 typedef void ( * PFNGLASYNCMARKERSGIXPROC) (GLuint marker);
3536 typedef GLint ( * PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp);
3537 typedef GLint ( * PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp);
3538 typedef GLuint ( * PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range);
3539 typedef void ( * PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range);
3540 typedef GLboolean ( * PFNGLISASYNCMARKERSGIXPROC) (GLuint marker);
3541 # 8079 "../../include/GL/glext.h"
3542 __attribute__((visibility("default"))) void glVertexPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer);
3543 __attribute__((visibility("default"))) void glNormalPointervINTEL (GLenum type, const GLvoid* *pointer);
3544 __attribute__((visibility("default"))) void glColorPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer);
3545 __attribute__((visibility("default"))) void glTexCoordPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer);
3547 typedef void ( * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
3548 typedef void ( * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer);
3549 typedef void ( * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
3550 typedef void ( * PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
3551 # 8097 "../../include/GL/glext.h"
3552 __attribute__((visibility("default"))) void glPixelTransformParameteriEXT (GLenum target, GLenum pname, GLint param);
3553 __attribute__((visibility("default"))) void glPixelTransformParameterfEXT (GLenum target, GLenum pname, GLfloat param);
3554 __attribute__((visibility("default"))) void glPixelTransformParameterivEXT (GLenum target, GLenum pname, const GLint *params);
3555 __attribute__((visibility("default"))) void glPixelTransformParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
3557 typedef void ( * PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param);
3558 typedef void ( * PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param);
3559 typedef void ( * PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
3560 typedef void ( * PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
3561 # 8123 "../../include/GL/glext.h"
3562 __attribute__((visibility("default"))) void glSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue);
3563 __attribute__((visibility("default"))) void glSecondaryColor3bvEXT (const GLbyte *v);
3564 __attribute__((visibility("default"))) void glSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue);
3565 __attribute__((visibility("default"))) void glSecondaryColor3dvEXT (const GLdouble *v);
3566 __attribute__((visibility("default"))) void glSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue);
3567 __attribute__((visibility("default"))) void glSecondaryColor3fvEXT (const GLfloat *v);
3568 __attribute__((visibility("default"))) void glSecondaryColor3iEXT (GLint red, GLint green, GLint blue);
3569 __attribute__((visibility("default"))) void glSecondaryColor3ivEXT (const GLint *v);
3570 __attribute__((visibility("default"))) void glSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue);
3571 __attribute__((visibility("default"))) void glSecondaryColor3svEXT (const GLshort *v);
3572 __attribute__((visibility("default"))) void glSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue);
3573 __attribute__((visibility("default"))) void glSecondaryColor3ubvEXT (const GLubyte *v);
3574 __attribute__((visibility("default"))) void glSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue);
3575 __attribute__((visibility("default"))) void glSecondaryColor3uivEXT (const GLuint *v);
3576 __attribute__((visibility("default"))) void glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue);
3577 __attribute__((visibility("default"))) void glSecondaryColor3usvEXT (const GLushort *v);
3578 __attribute__((visibility("default"))) void glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
3580 typedef void ( * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue);
3581 typedef void ( * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v);
3582 typedef void ( * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue);
3583 typedef void ( * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v);
3584 typedef void ( * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
3585 typedef void ( * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
3586 typedef void ( * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue);
3587 typedef void ( * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v);
3588 typedef void ( * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue);
3589 typedef void ( * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v);
3590 typedef void ( * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
3591 typedef void ( * PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v);
3592 typedef void ( * PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue);
3593 typedef void ( * PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v);
3594 typedef void ( * PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue);
3595 typedef void ( * PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v);
3596 typedef void ( * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
3602 __attribute__((visibility("default"))) void glTextureNormalEXT (GLenum mode);
3604 typedef void ( * PFNGLTEXTURENORMALEXTPROC) (GLenum mode);
3610 __attribute__((visibility("default"))) void glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
3611 __attribute__((visibility("default"))) void glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
3613 typedef void ( * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
3614 typedef void ( * PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
3620 __attribute__((visibility("default"))) void glFogCoordfEXT (GLfloat coord);
3621 __attribute__((visibility("default"))) void glFogCoordfvEXT (const GLfloat *coord);
3622 __attribute__((visibility("default"))) void glFogCoorddEXT (GLdouble coord);
3623 __attribute__((visibility("default"))) void glFogCoorddvEXT (const GLdouble *coord);
3624 __attribute__((visibility("default"))) void glFogCoordPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer);
3626 typedef void ( * PFNGLFOGCOORDFEXTPROC) (GLfloat coord);
3627 typedef void ( * PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord);
3628 typedef void ( * PFNGLFOGCOORDDEXTPROC) (GLdouble coord);
3629 typedef void ( * PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord);
3630 typedef void ( * PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
3631 # 8201 "../../include/GL/glext.h"
3632 __attribute__((visibility("default"))) void glTangent3bEXT (GLbyte tx, GLbyte ty, GLbyte tz);
3633 __attribute__((visibility("default"))) void glTangent3bvEXT (const GLbyte *v);
3634 __attribute__((visibility("default"))) void glTangent3dEXT (GLdouble tx, GLdouble ty, GLdouble tz);
3635 __attribute__((visibility("default"))) void glTangent3dvEXT (const GLdouble *v);
3636 __attribute__((visibility("default"))) void glTangent3fEXT (GLfloat tx, GLfloat ty, GLfloat tz);
3637 __attribute__((visibility("default"))) void glTangent3fvEXT (const GLfloat *v);
3638 __attribute__((visibility("default"))) void glTangent3iEXT (GLint tx, GLint ty, GLint tz);
3639 __attribute__((visibility("default"))) void glTangent3ivEXT (const GLint *v);
3640 __attribute__((visibility("default"))) void glTangent3sEXT (GLshort tx, GLshort ty, GLshort tz);
3641 __attribute__((visibility("default"))) void glTangent3svEXT (const GLshort *v);
3642 __attribute__((visibility("default"))) void glBinormal3bEXT (GLbyte bx, GLbyte by, GLbyte bz);
3643 __attribute__((visibility("default"))) void glBinormal3bvEXT (const GLbyte *v);
3644 __attribute__((visibility("default"))) void glBinormal3dEXT (GLdouble bx, GLdouble by, GLdouble bz);
3645 __attribute__((visibility("default"))) void glBinormal3dvEXT (const GLdouble *v);
3646 __attribute__((visibility("default"))) void glBinormal3fEXT (GLfloat bx, GLfloat by, GLfloat bz);
3647 __attribute__((visibility("default"))) void glBinormal3fvEXT (const GLfloat *v);
3648 __attribute__((visibility("default"))) void glBinormal3iEXT (GLint bx, GLint by, GLint bz);
3649 __attribute__((visibility("default"))) void glBinormal3ivEXT (const GLint *v);
3650 __attribute__((visibility("default"))) void glBinormal3sEXT (GLshort bx, GLshort by, GLshort bz);
3651 __attribute__((visibility("default"))) void glBinormal3svEXT (const GLshort *v);
3652 __attribute__((visibility("default"))) void glTangentPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer);
3653 __attribute__((visibility("default"))) void glBinormalPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer);
3655 typedef void ( * PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz);
3656 typedef void ( * PFNGLTANGENT3BVEXTPROC) (const GLbyte *v);
3657 typedef void ( * PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz);
3658 typedef void ( * PFNGLTANGENT3DVEXTPROC) (const GLdouble *v);
3659 typedef void ( * PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz);
3660 typedef void ( * PFNGLTANGENT3FVEXTPROC) (const GLfloat *v);
3661 typedef void ( * PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz);
3662 typedef void ( * PFNGLTANGENT3IVEXTPROC) (const GLint *v);
3663 typedef void ( * PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz);
3664 typedef void ( * PFNGLTANGENT3SVEXTPROC) (const GLshort *v);
3665 typedef void ( * PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz);
3666 typedef void ( * PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v);
3667 typedef void ( * PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz);
3668 typedef void ( * PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v);
3669 typedef void ( * PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz);
3670 typedef void ( * PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v);
3671 typedef void ( * PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz);
3672 typedef void ( * PFNGLBINORMAL3IVEXTPROC) (const GLint *v);
3673 typedef void ( * PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz);
3674 typedef void ( * PFNGLBINORMAL3SVEXTPROC) (const GLshort *v);
3675 typedef void ( * PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
3676 typedef void ( * PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
3677 # 8267 "../../include/GL/glext.h"
3678 __attribute__((visibility("default"))) void glFinishTextureSUNX (void);
3680 typedef void ( * PFNGLFINISHTEXTURESUNXPROC) (void);
3686 __attribute__((visibility("default"))) void glGlobalAlphaFactorbSUN (GLbyte factor);
3687 __attribute__((visibility("default"))) void glGlobalAlphaFactorsSUN (GLshort factor);
3688 __attribute__((visibility("default"))) void glGlobalAlphaFactoriSUN (GLint factor);
3689 __attribute__((visibility("default"))) void glGlobalAlphaFactorfSUN (GLfloat factor);
3690 __attribute__((visibility("default"))) void glGlobalAlphaFactordSUN (GLdouble factor);
3691 __attribute__((visibility("default"))) void glGlobalAlphaFactorubSUN (GLubyte factor);
3692 __attribute__((visibility("default"))) void glGlobalAlphaFactorusSUN (GLushort factor);
3693 __attribute__((visibility("default"))) void glGlobalAlphaFactoruiSUN (GLuint factor);
3695 typedef void ( * PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor);
3696 typedef void ( * PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor);
3697 typedef void ( * PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor);
3698 typedef void ( * PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor);
3699 typedef void ( * PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor);
3700 typedef void ( * PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor);
3701 typedef void ( * PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor);
3702 typedef void ( * PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor);
3708 __attribute__((visibility("default"))) void glReplacementCodeuiSUN (GLuint code);
3709 __attribute__((visibility("default"))) void glReplacementCodeusSUN (GLushort code);
3710 __attribute__((visibility("default"))) void glReplacementCodeubSUN (GLubyte code);
3711 __attribute__((visibility("default"))) void glReplacementCodeuivSUN (const GLuint *code);
3712 __attribute__((visibility("default"))) void glReplacementCodeusvSUN (const GLushort *code);
3713 __attribute__((visibility("default"))) void glReplacementCodeubvSUN (const GLubyte *code);
3714 __attribute__((visibility("default"))) void glReplacementCodePointerSUN (GLenum type, GLsizei stride, const GLvoid* *pointer);
3716 typedef void ( * PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code);
3717 typedef void ( * PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code);
3718 typedef void ( * PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code);
3719 typedef void ( * PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code);
3720 typedef void ( * PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code);
3721 typedef void ( * PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code);
3722 typedef void ( * PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer);
3728 __attribute__((visibility("default"))) void glColor4ubVertex2fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
3729 __attribute__((visibility("default"))) void glColor4ubVertex2fvSUN (const GLubyte *c, const GLfloat *v);
3730 __attribute__((visibility("default"))) void glColor4ubVertex3fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
3731 __attribute__((visibility("default"))) void glColor4ubVertex3fvSUN (const GLubyte *c, const GLfloat *v);
3732 __attribute__((visibility("default"))) void glColor3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
3733 __attribute__((visibility("default"))) void glColor3fVertex3fvSUN (const GLfloat *c, const GLfloat *v);
3734 __attribute__((visibility("default"))) void glNormal3fVertex3fSUN (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3735 __attribute__((visibility("default"))) void glNormal3fVertex3fvSUN (const GLfloat *n, const GLfloat *v);
3736 __attribute__((visibility("default"))) void glColor4fNormal3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3737 __attribute__((visibility("default"))) void glColor4fNormal3fVertex3fvSUN (const GLfloat *c, const GLfloat *n, const GLfloat *v);
3738 __attribute__((visibility("default"))) void glTexCoord2fVertex3fSUN (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
3739 __attribute__((visibility("default"))) void glTexCoord2fVertex3fvSUN (const GLfloat *tc, const GLfloat *v);
3740 __attribute__((visibility("default"))) void glTexCoord4fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3741 __attribute__((visibility("default"))) void glTexCoord4fVertex4fvSUN (const GLfloat *tc, const GLfloat *v);
3742 __attribute__((visibility("default"))) void glTexCoord2fColor4ubVertex3fSUN (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
3743 __attribute__((visibility("default"))) void glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
3744 __attribute__((visibility("default"))) void glTexCoord2fColor3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
3745 __attribute__((visibility("default"))) void glTexCoord2fColor3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
3746 __attribute__((visibility("default"))) void glTexCoord2fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3747 __attribute__((visibility("default"))) void glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
3748 __attribute__((visibility("default"))) void glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3749 __attribute__((visibility("default"))) void glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3750 __attribute__((visibility("default"))) void glTexCoord4fColor4fNormal3fVertex4fSUN (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);
3751 __attribute__((visibility("default"))) void glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3752 __attribute__((visibility("default"))) void glReplacementCodeuiVertex3fSUN (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
3753 __attribute__((visibility("default"))) void glReplacementCodeuiVertex3fvSUN (const GLuint *rc, const GLfloat *v);
3754 __attribute__((visibility("default"))) void glReplacementCodeuiColor4ubVertex3fSUN (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
3755 __attribute__((visibility("default"))) void glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *rc, const GLubyte *c, const GLfloat *v);
3756 __attribute__((visibility("default"))) void glReplacementCodeuiColor3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
3757 __attribute__((visibility("default"))) void glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *v);
3758 __attribute__((visibility("default"))) void glReplacementCodeuiNormal3fVertex3fSUN (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3759 __attribute__((visibility("default"))) void glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *n, const GLfloat *v);
3760 __attribute__((visibility("default"))) void glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3761 __attribute__((visibility("default"))) void glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3762 __attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
3763 __attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
3764 __attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3765 __attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
3766 __attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (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);
3767 __attribute__((visibility("default"))) void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3769 typedef void ( * PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
3770 typedef void ( * PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v);
3771 typedef void ( * PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
3772 typedef void ( * PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v);
3773 typedef void ( * PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
3774 typedef void ( * PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v);
3775 typedef void ( * PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3776 typedef void ( * PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v);
3777 typedef void ( * PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3778 typedef void ( * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v);
3779 typedef void ( * PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
3780 typedef void ( * PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
3781 typedef void ( * PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3782 typedef void ( * PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
3783 typedef void ( * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
3784 typedef void ( * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
3785 typedef void ( * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
3786 typedef void ( * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
3787 typedef void ( * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3788 typedef void ( * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
3789 typedef 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);
3790 typedef void ( * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3791 typedef 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);
3792 typedef void ( * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3793 typedef void ( * PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
3794 typedef void ( * PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v);
3795 typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
3796 typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v);
3797 typedef void ( * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
3798 typedef void ( * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v);
3799 typedef void ( * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3800 typedef void ( * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v);
3801 typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3802 typedef void ( * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3803 typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
3804 typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
3805 typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
3806 typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
3807 typedef 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);
3808 typedef void ( * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
3814 __attribute__((visibility("default"))) void glBlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
3816 typedef void ( * PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
3822 __attribute__((visibility("default"))) void glBlendFuncSeparateINGR (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
3824 typedef void ( * PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
3825 # 8455 "../../include/GL/glext.h"
3826 __attribute__((visibility("default"))) void glVertexWeightfEXT (GLfloat weight);
3827 __attribute__((visibility("default"))) void glVertexWeightfvEXT (const GLfloat *weight);
3828 __attribute__((visibility("default"))) void glVertexWeightPointerEXT (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer);
3830 typedef void ( * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight);
3831 typedef void ( * PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight);
3832 typedef void ( * PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer);
3833 # 8471 "../../include/GL/glext.h"
3834 __attribute__((visibility("default"))) void glFlushVertexArrayRangeNV (void);
3835 __attribute__((visibility("default"))) void glVertexArrayRangeNV (GLsizei length, const GLvoid *pointer);
3837 typedef void ( * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void);
3838 typedef void ( * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer);
3844 __attribute__((visibility("default"))) void glCombinerParameterfvNV (GLenum pname, const GLfloat *params);
3845 __attribute__((visibility("default"))) void glCombinerParameterfNV (GLenum pname, GLfloat param);
3846 __attribute__((visibility("default"))) void glCombinerParameterivNV (GLenum pname, const GLint *params);
3847 __attribute__((visibility("default"))) void glCombinerParameteriNV (GLenum pname, GLint param);
3848 __attribute__((visibility("default"))) void glCombinerInputNV (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
3849 __attribute__((visibility("default"))) void glCombinerOutputNV (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
3850 __attribute__((visibility("default"))) void glFinalCombinerInputNV (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
3851 __attribute__((visibility("default"))) void glGetCombinerInputParameterfvNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
3852 __attribute__((visibility("default"))) void glGetCombinerInputParameterivNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
3853 __attribute__((visibility("default"))) void glGetCombinerOutputParameterfvNV (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
3854 __attribute__((visibility("default"))) void glGetCombinerOutputParameterivNV (GLenum stage, GLenum portion, GLenum pname, GLint *params);
3855 __attribute__((visibility("default"))) void glGetFinalCombinerInputParameterfvNV (GLenum variable, GLenum pname, GLfloat *params);
3856 __attribute__((visibility("default"))) void glGetFinalCombinerInputParameterivNV (GLenum variable, GLenum pname, GLint *params);
3858 typedef void ( * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
3859 typedef void ( * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
3860 typedef void ( * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
3861 typedef void ( * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
3862 typedef void ( * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
3863 typedef void ( * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
3864 typedef void ( * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
3865 typedef void ( * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
3866 typedef void ( * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
3867 typedef void ( * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
3868 typedef void ( * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params);
3869 typedef void ( * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params);
3870 typedef void ( * PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params);
3871 # 8529 "../../include/GL/glext.h"
3872 __attribute__((visibility("default"))) void glResizeBuffersMESA (void);
3874 typedef void ( * PFNGLRESIZEBUFFERSMESAPROC) (void);
3880 __attribute__((visibility("default"))) void glWindowPos2dMESA (GLdouble x, GLdouble y);
3881 __attribute__((visibility("default"))) void glWindowPos2dvMESA (const GLdouble *v);
3882 __attribute__((visibility("default"))) void glWindowPos2fMESA (GLfloat x, GLfloat y);
3883 __attribute__((visibility("default"))) void glWindowPos2fvMESA (const GLfloat *v);
3884 __attribute__((visibility("default"))) void glWindowPos2iMESA (GLint x, GLint y);
3885 __attribute__((visibility("default"))) void glWindowPos2ivMESA (const GLint *v);
3886 __attribute__((visibility("default"))) void glWindowPos2sMESA (GLshort x, GLshort y);
3887 __attribute__((visibility("default"))) void glWindowPos2svMESA (const GLshort *v);
3888 __attribute__((visibility("default"))) void glWindowPos3dMESA (GLdouble x, GLdouble y, GLdouble z);
3889 __attribute__((visibility("default"))) void glWindowPos3dvMESA (const GLdouble *v);
3890 __attribute__((visibility("default"))) void glWindowPos3fMESA (GLfloat x, GLfloat y, GLfloat z);
3891 __attribute__((visibility("default"))) void glWindowPos3fvMESA (const GLfloat *v);
3892 __attribute__((visibility("default"))) void glWindowPos3iMESA (GLint x, GLint y, GLint z);
3893 __attribute__((visibility("default"))) void glWindowPos3ivMESA (const GLint *v);
3894 __attribute__((visibility("default"))) void glWindowPos3sMESA (GLshort x, GLshort y, GLshort z);
3895 __attribute__((visibility("default"))) void glWindowPos3svMESA (const GLshort *v);
3896 __attribute__((visibility("default"))) void glWindowPos4dMESA (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3897 __attribute__((visibility("default"))) void glWindowPos4dvMESA (const GLdouble *v);
3898 __attribute__((visibility("default"))) void glWindowPos4fMESA (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3899 __attribute__((visibility("default"))) void glWindowPos4fvMESA (const GLfloat *v);
3900 __attribute__((visibility("default"))) void glWindowPos4iMESA (GLint x, GLint y, GLint z, GLint w);
3901 __attribute__((visibility("default"))) void glWindowPos4ivMESA (const GLint *v);
3902 __attribute__((visibility("default"))) void glWindowPos4sMESA (GLshort x, GLshort y, GLshort z, GLshort w);
3903 __attribute__((visibility("default"))) void glWindowPos4svMESA (const GLshort *v);
3905 typedef void ( * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y);
3906 typedef void ( * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v);
3907 typedef void ( * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y);
3908 typedef void ( * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v);
3909 typedef void ( * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y);
3910 typedef void ( * PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v);
3911 typedef void ( * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y);
3912 typedef void ( * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v);
3913 typedef void ( * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z);
3914 typedef void ( * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v);
3915 typedef void ( * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z);
3916 typedef void ( * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v);
3917 typedef void ( * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z);
3918 typedef void ( * PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v);
3919 typedef void ( * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z);
3920 typedef void ( * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v);
3921 typedef void ( * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3922 typedef void ( * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v);
3923 typedef void ( * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3924 typedef void ( * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v);
3925 typedef void ( * PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w);
3926 typedef void ( * PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v);
3927 typedef void ( * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w);
3928 typedef void ( * PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v);
3929 # 8595 "../../include/GL/glext.h"
3930 __attribute__((visibility("default"))) void glMultiModeDrawArraysIBM (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
3931 __attribute__((visibility("default"))) void glMultiModeDrawElementsIBM (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride);
3933 typedef void ( * PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
3934 typedef void ( * PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride);
3940 __attribute__((visibility("default"))) void glColorPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3941 __attribute__((visibility("default"))) void glSecondaryColorPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3942 __attribute__((visibility("default"))) void glEdgeFlagPointerListIBM (GLint stride, const GLboolean* *pointer, GLint ptrstride);
3943 __attribute__((visibility("default"))) void glFogCoordPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3944 __attribute__((visibility("default"))) void glIndexPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3945 __attribute__((visibility("default"))) void glNormalPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3946 __attribute__((visibility("default"))) void glTexCoordPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3947 __attribute__((visibility("default"))) void glVertexPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3949 typedef void ( * PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3950 typedef void ( * PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3951 typedef void ( * PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride);
3952 typedef void ( * PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3953 typedef void ( * PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3954 typedef void ( * PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3955 typedef void ( * PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3956 typedef void ( * PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
3957 # 8651 "../../include/GL/glext.h"
3958 __attribute__((visibility("default"))) void glTbufferMask3DFX (GLuint mask);
3960 typedef void ( * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
3966 __attribute__((visibility("default"))) void glSampleMaskEXT (GLclampf value, GLboolean invert);
3967 __attribute__((visibility("default"))) void glSamplePatternEXT (GLenum pattern);
3969 typedef void ( * PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert);
3970 typedef void ( * PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern);
3971 # 8685 "../../include/GL/glext.h"
3972 __attribute__((visibility("default"))) void glTextureColorMaskSGIS (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
3974 typedef void ( * PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
3980 __attribute__((visibility("default"))) void glIglooInterfaceSGIX (GLenum pname, const GLvoid *params);
3982 typedef void ( * PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params);
3983 # 8709 "../../include/GL/glext.h"
3984 __attribute__((visibility("default"))) void glDeleteFencesNV (GLsizei n, const GLuint *fences);
3985 __attribute__((visibility("default"))) void glGenFencesNV (GLsizei n, GLuint *fences);
3986 __attribute__((visibility("default"))) GLboolean glIsFenceNV (GLuint fence);
3987 __attribute__((visibility("default"))) GLboolean glTestFenceNV (GLuint fence);
3988 __attribute__((visibility("default"))) void glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
3989 __attribute__((visibility("default"))) void glFinishFenceNV (GLuint fence);
3990 __attribute__((visibility("default"))) void glSetFenceNV (GLuint fence, GLenum condition);
3992 typedef void ( * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
3993 typedef void ( * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
3994 typedef GLboolean ( * PFNGLISFENCENVPROC) (GLuint fence);
3995 typedef GLboolean ( * PFNGLTESTFENCENVPROC) (GLuint fence);
3996 typedef void ( * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
3997 typedef void ( * PFNGLFINISHFENCENVPROC) (GLuint fence);
3998 typedef void ( * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
4004 __attribute__((visibility("default"))) void glMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points);
4005 __attribute__((visibility("default"))) void glMapParameterivNV (GLenum target, GLenum pname, const GLint *params);
4006 __attribute__((visibility("default"))) void glMapParameterfvNV (GLenum target, GLenum pname, const GLfloat *params);
4007 __attribute__((visibility("default"))) void glGetMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points);
4008 __attribute__((visibility("default"))) void glGetMapParameterivNV (GLenum target, GLenum pname, GLint *params);
4009 __attribute__((visibility("default"))) void glGetMapParameterfvNV (GLenum target, GLenum pname, GLfloat *params);
4010 __attribute__((visibility("default"))) void glGetMapAttribParameterivNV (GLenum target, GLuint index, GLenum pname, GLint *params);
4011 __attribute__((visibility("default"))) void glGetMapAttribParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
4012 __attribute__((visibility("default"))) void glEvalMapsNV (GLenum target, GLenum mode);
4014 typedef void ( * PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points);
4015 typedef void ( * PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params);
4016 typedef void ( * PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params);
4017 typedef void ( * PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points);
4018 typedef void ( * PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params);
4019 typedef void ( * PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params);
4020 typedef void ( * PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
4021 typedef void ( * PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
4022 typedef void ( * PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode);
4023 # 8757 "../../include/GL/glext.h"
4024 __attribute__((visibility("default"))) void glCombinerStageParameterfvNV (GLenum stage, GLenum pname, const GLfloat *params);
4025 __attribute__((visibility("default"))) void glGetCombinerStageParameterfvNV (GLenum stage, GLenum pname, GLfloat *params);
4027 typedef void ( * PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params);
4028 typedef void ( * PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params);
4029 # 8787 "../../include/GL/glext.h"
4030 __attribute__((visibility("default"))) GLboolean glAreProgramsResidentNV (GLsizei n, const GLuint *programs, GLboolean *residences);
4031 __attribute__((visibility("default"))) void glBindProgramNV (GLenum target, GLuint id);
4032 __attribute__((visibility("default"))) void glDeleteProgramsNV (GLsizei n, const GLuint *programs);
4033 __attribute__((visibility("default"))) void glExecuteProgramNV (GLenum target, GLuint id, const GLfloat *params);
4034 __attribute__((visibility("default"))) void glGenProgramsNV (GLsizei n, GLuint *programs);
4035 __attribute__((visibility("default"))) void glGetProgramParameterdvNV (GLenum target, GLuint index, GLenum pname, GLdouble *params);
4036 __attribute__((visibility("default"))) void glGetProgramParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
4037 __attribute__((visibility("default"))) void glGetProgramivNV (GLuint id, GLenum pname, GLint *params);
4038 __attribute__((visibility("default"))) void glGetProgramStringNV (GLuint id, GLenum pname, GLubyte *program);
4039 __attribute__((visibility("default"))) void glGetTrackMatrixivNV (GLenum target, GLuint address, GLenum pname, GLint *params);
4040 __attribute__((visibility("default"))) void glGetVertexAttribdvNV (GLuint index, GLenum pname, GLdouble *params);
4041 __attribute__((visibility("default"))) void glGetVertexAttribfvNV (GLuint index, GLenum pname, GLfloat *params);
4042 __attribute__((visibility("default"))) void glGetVertexAttribivNV (GLuint index, GLenum pname, GLint *params);
4043 __attribute__((visibility("default"))) void glGetVertexAttribPointervNV (GLuint index, GLenum pname, GLvoid* *pointer);
4044 __attribute__((visibility("default"))) GLboolean glIsProgramNV (GLuint id);
4045 __attribute__((visibility("default"))) void glLoadProgramNV (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
4046 __attribute__((visibility("default"))) void glProgramParameter4dNV (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4047 __attribute__((visibility("default"))) void glProgramParameter4dvNV (GLenum target, GLuint index, const GLdouble *v);
4048 __attribute__((visibility("default"))) void glProgramParameter4fNV (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4049 __attribute__((visibility("default"))) void glProgramParameter4fvNV (GLenum target, GLuint index, const GLfloat *v);
4050 __attribute__((visibility("default"))) void glProgramParameters4dvNV (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
4051 __attribute__((visibility("default"))) void glProgramParameters4fvNV (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
4052 __attribute__((visibility("default"))) void glRequestResidentProgramsNV (GLsizei n, const GLuint *programs);
4053 __attribute__((visibility("default"))) void glTrackMatrixNV (GLenum target, GLuint address, GLenum matrix, GLenum transform);
4054 __attribute__((visibility("default"))) void glVertexAttribPointerNV (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer);
4055 __attribute__((visibility("default"))) void glVertexAttrib1dNV (GLuint index, GLdouble x);
4056 __attribute__((visibility("default"))) void glVertexAttrib1dvNV (GLuint index, const GLdouble *v);
4057 __attribute__((visibility("default"))) void glVertexAttrib1fNV (GLuint index, GLfloat x);
4058 __attribute__((visibility("default"))) void glVertexAttrib1fvNV (GLuint index, const GLfloat *v);
4059 __attribute__((visibility("default"))) void glVertexAttrib1sNV (GLuint index, GLshort x);
4060 __attribute__((visibility("default"))) void glVertexAttrib1svNV (GLuint index, const GLshort *v);
4061 __attribute__((visibility("default"))) void glVertexAttrib2dNV (GLuint index, GLdouble x, GLdouble y);
4062 __attribute__((visibility("default"))) void glVertexAttrib2dvNV (GLuint index, const GLdouble *v);
4063 __attribute__((visibility("default"))) void glVertexAttrib2fNV (GLuint index, GLfloat x, GLfloat y);
4064 __attribute__((visibility("default"))) void glVertexAttrib2fvNV (GLuint index, const GLfloat *v);
4065 __attribute__((visibility("default"))) void glVertexAttrib2sNV (GLuint index, GLshort x, GLshort y);
4066 __attribute__((visibility("default"))) void glVertexAttrib2svNV (GLuint index, const GLshort *v);
4067 __attribute__((visibility("default"))) void glVertexAttrib3dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z);
4068 __attribute__((visibility("default"))) void glVertexAttrib3dvNV (GLuint index, const GLdouble *v);
4069 __attribute__((visibility("default"))) void glVertexAttrib3fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z);
4070 __attribute__((visibility("default"))) void glVertexAttrib3fvNV (GLuint index, const GLfloat *v);
4071 __attribute__((visibility("default"))) void glVertexAttrib3sNV (GLuint index, GLshort x, GLshort y, GLshort z);
4072 __attribute__((visibility("default"))) void glVertexAttrib3svNV (GLuint index, const GLshort *v);
4073 __attribute__((visibility("default"))) void glVertexAttrib4dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4074 __attribute__((visibility("default"))) void glVertexAttrib4dvNV (GLuint index, const GLdouble *v);
4075 __attribute__((visibility("default"))) void glVertexAttrib4fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4076 __attribute__((visibility("default"))) void glVertexAttrib4fvNV (GLuint index, const GLfloat *v);
4077 __attribute__((visibility("default"))) void glVertexAttrib4sNV (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
4078 __attribute__((visibility("default"))) void glVertexAttrib4svNV (GLuint index, const GLshort *v);
4079 __attribute__((visibility("default"))) void glVertexAttrib4ubNV (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
4080 __attribute__((visibility("default"))) void glVertexAttrib4ubvNV (GLuint index, const GLubyte *v);
4081 __attribute__((visibility("default"))) void glVertexAttribs1dvNV (GLuint index, GLsizei count, const GLdouble *v);
4082 __attribute__((visibility("default"))) void glVertexAttribs1fvNV (GLuint index, GLsizei count, const GLfloat *v);
4083 __attribute__((visibility("default"))) void glVertexAttribs1svNV (GLuint index, GLsizei count, const GLshort *v);
4084 __attribute__((visibility("default"))) void glVertexAttribs2dvNV (GLuint index, GLsizei count, const GLdouble *v);
4085 __attribute__((visibility("default"))) void glVertexAttribs2fvNV (GLuint index, GLsizei count, const GLfloat *v);
4086 __attribute__((visibility("default"))) void glVertexAttribs2svNV (GLuint index, GLsizei count, const GLshort *v);
4087 __attribute__((visibility("default"))) void glVertexAttribs3dvNV (GLuint index, GLsizei count, const GLdouble *v);
4088 __attribute__((visibility("default"))) void glVertexAttribs3fvNV (GLuint index, GLsizei count, const GLfloat *v);
4089 __attribute__((visibility("default"))) void glVertexAttribs3svNV (GLuint index, GLsizei count, const GLshort *v);
4090 __attribute__((visibility("default"))) void glVertexAttribs4dvNV (GLuint index, GLsizei count, const GLdouble *v);
4091 __attribute__((visibility("default"))) void glVertexAttribs4fvNV (GLuint index, GLsizei count, const GLfloat *v);
4092 __attribute__((visibility("default"))) void glVertexAttribs4svNV (GLuint index, GLsizei count, const GLshort *v);
4093 __attribute__((visibility("default"))) void glVertexAttribs4ubvNV (GLuint index, GLsizei count, const GLubyte *v);
4095 typedef GLboolean ( * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences);
4096 typedef void ( * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id);
4097 typedef void ( * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
4098 typedef void ( * PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params);
4099 typedef void ( * PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs);
4100 typedef void ( * PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params);
4101 typedef void ( * PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
4102 typedef void ( * PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params);
4103 typedef void ( * PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program);
4104 typedef void ( * PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params);
4105 typedef void ( * PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params);
4106 typedef void ( * PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params);
4107 typedef void ( * PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params);
4108 typedef void ( * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
4109 typedef GLboolean ( * PFNGLISPROGRAMNVPROC) (GLuint id);
4110 typedef void ( * PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
4111 typedef void ( * PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4112 typedef void ( * PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v);
4113 typedef void ( * PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4114 typedef void ( * PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v);
4115 typedef void ( * PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
4116 typedef void ( * PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
4117 typedef void ( * PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
4118 typedef void ( * PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
4119 typedef void ( * PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer);
4120 typedef void ( * PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x);
4121 typedef void ( * PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v);
4122 typedef void ( * PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x);
4123 typedef void ( * PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v);
4124 typedef void ( * PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x);
4125 typedef void ( * PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v);
4126 typedef void ( * PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y);
4127 typedef void ( * PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v);
4128 typedef void ( * PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y);
4129 typedef void ( * PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v);
4130 typedef void ( * PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y);
4131 typedef void ( * PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v);
4132 typedef void ( * PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
4133 typedef void ( * PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v);
4134 typedef void ( * PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
4135 typedef void ( * PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v);
4136 typedef void ( * PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
4137 typedef void ( * PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v);
4138 typedef void ( * PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4139 typedef void ( * PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v);
4140 typedef void ( * PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4141 typedef void ( * PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v);
4142 typedef void ( * PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
4143 typedef void ( * PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v);
4144 typedef void ( * PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
4145 typedef void ( * PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v);
4146 typedef void ( * PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
4147 typedef void ( * PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
4148 typedef void ( * PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
4149 typedef void ( * PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
4150 typedef void ( * PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
4151 typedef void ( * PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
4152 typedef void ( * PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
4153 typedef void ( * PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
4154 typedef void ( * PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
4155 typedef void ( * PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
4156 typedef void ( * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
4157 typedef void ( * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
4158 typedef void ( * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v);
4159 # 8945 "../../include/GL/glext.h"
4160 __attribute__((visibility("default"))) void glTexBumpParameterivATI (GLenum pname, const GLint *param);
4161 __attribute__((visibility("default"))) void glTexBumpParameterfvATI (GLenum pname, const GLfloat *param);
4162 __attribute__((visibility("default"))) void glGetTexBumpParameterivATI (GLenum pname, GLint *param);
4163 __attribute__((visibility("default"))) void glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param);
4165 typedef void ( * PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param);
4166 typedef void ( * PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param);
4167 typedef void ( * PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
4168 typedef void ( * PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
4174 __attribute__((visibility("default"))) GLuint glGenFragmentShadersATI (GLuint range);
4175 __attribute__((visibility("default"))) void glBindFragmentShaderATI (GLuint id);
4176 __attribute__((visibility("default"))) void glDeleteFragmentShaderATI (GLuint id);
4177 __attribute__((visibility("default"))) void glBeginFragmentShaderATI (void);
4178 __attribute__((visibility("default"))) void glEndFragmentShaderATI (void);
4179 __attribute__((visibility("default"))) void glPassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle);
4180 __attribute__((visibility("default"))) void glSampleMapATI (GLuint dst, GLuint interp, GLenum swizzle);
4181 __attribute__((visibility("default"))) void glColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
4182 __attribute__((visibility("default"))) void glColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
4183 __attribute__((visibility("default"))) void glColorFragmentOp3ATI (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);
4184 __attribute__((visibility("default"))) void glAlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
4185 __attribute__((visibility("default"))) void glAlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
4186 __attribute__((visibility("default"))) void glAlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
4187 __attribute__((visibility("default"))) void glSetFragmentShaderConstantATI (GLuint dst, const GLfloat *value);
4189 typedef GLuint ( * PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range);
4190 typedef void ( * PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id);
4191 typedef void ( * PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id);
4192 typedef void ( * PFNGLBEGINFRAGMENTSHADERATIPROC) (void);
4193 typedef void ( * PFNGLENDFRAGMENTSHADERATIPROC) (void);
4194 typedef void ( * PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
4195 typedef void ( * PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
4196 typedef void ( * PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
4197 typedef void ( * PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
4198 typedef 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);
4199 typedef void ( * PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
4200 typedef void ( * PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
4201 typedef 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);
4202 typedef void ( * PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value);
4208 __attribute__((visibility("default"))) void glPNTrianglesiATI (GLenum pname, GLint param);
4209 __attribute__((visibility("default"))) void glPNTrianglesfATI (GLenum pname, GLfloat param);
4211 typedef void ( * PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param);
4212 typedef void ( * PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param);
4218 __attribute__((visibility("default"))) GLuint glNewObjectBufferATI (GLsizei size, const GLvoid *pointer, GLenum usage);
4219 __attribute__((visibility("default"))) GLboolean glIsObjectBufferATI (GLuint buffer);
4220 __attribute__((visibility("default"))) void glUpdateObjectBufferATI (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve);
4221 __attribute__((visibility("default"))) void glGetObjectBufferfvATI (GLuint buffer, GLenum pname, GLfloat *params);
4222 __attribute__((visibility("default"))) void glGetObjectBufferivATI (GLuint buffer, GLenum pname, GLint *params);
4223 __attribute__((visibility("default"))) void glFreeObjectBufferATI (GLuint buffer);
4224 __attribute__((visibility("default"))) void glArrayObjectATI (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
4225 __attribute__((visibility("default"))) void glGetArrayObjectfvATI (GLenum array, GLenum pname, GLfloat *params);
4226 __attribute__((visibility("default"))) void glGetArrayObjectivATI (GLenum array, GLenum pname, GLint *params);
4227 __attribute__((visibility("default"))) void glVariantArrayObjectATI (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
4228 __attribute__((visibility("default"))) void glGetVariantArrayObjectfvATI (GLuint id, GLenum pname, GLfloat *params);
4229 __attribute__((visibility("default"))) void glGetVariantArrayObjectivATI (GLuint id, GLenum pname, GLint *params);
4231 typedef GLuint ( * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage);
4232 typedef GLboolean ( * PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer);
4233 typedef void ( * PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve);
4234 typedef void ( * PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params);
4235 typedef void ( * PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params);
4236 typedef void ( * PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer);
4237 typedef void ( * PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
4238 typedef void ( * PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params);
4239 typedef void ( * PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params);
4240 typedef void ( * PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
4241 typedef void ( * PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params);
4242 typedef void ( * PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params);
4248 __attribute__((visibility("default"))) void glBeginVertexShaderEXT (void);
4249 __attribute__((visibility("default"))) void glEndVertexShaderEXT (void);
4250 __attribute__((visibility("default"))) void glBindVertexShaderEXT (GLuint id);
4251 __attribute__((visibility("default"))) GLuint glGenVertexShadersEXT (GLuint range);
4252 __attribute__((visibility("default"))) void glDeleteVertexShaderEXT (GLuint id);
4253 __attribute__((visibility("default"))) void glShaderOp1EXT (GLenum op, GLuint res, GLuint arg1);
4254 __attribute__((visibility("default"))) void glShaderOp2EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
4255 __attribute__((visibility("default"))) void glShaderOp3EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
4256 __attribute__((visibility("default"))) void glSwizzleEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
4257 __attribute__((visibility("default"))) void glWriteMaskEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
4258 __attribute__((visibility("default"))) void glInsertComponentEXT (GLuint res, GLuint src, GLuint num);
4259 __attribute__((visibility("default"))) void glExtractComponentEXT (GLuint res, GLuint src, GLuint num);
4260 __attribute__((visibility("default"))) GLuint glGenSymbolsEXT (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
4261 __attribute__((visibility("default"))) void glSetInvariantEXT (GLuint id, GLenum type, const GLvoid *addr);
4262 __attribute__((visibility("default"))) void glSetLocalConstantEXT (GLuint id, GLenum type, const GLvoid *addr);
4263 __attribute__((visibility("default"))) void glVariantbvEXT (GLuint id, const GLbyte *addr);
4264 __attribute__((visibility("default"))) void glVariantsvEXT (GLuint id, const GLshort *addr);
4265 __attribute__((visibility("default"))) void glVariantivEXT (GLuint id, const GLint *addr);
4266 __attribute__((visibility("default"))) void glVariantfvEXT (GLuint id, const GLfloat *addr);
4267 __attribute__((visibility("default"))) void glVariantdvEXT (GLuint id, const GLdouble *addr);
4268 __attribute__((visibility("default"))) void glVariantubvEXT (GLuint id, const GLubyte *addr);
4269 __attribute__((visibility("default"))) void glVariantusvEXT (GLuint id, const GLushort *addr);
4270 __attribute__((visibility("default"))) void glVariantuivEXT (GLuint id, const GLuint *addr);
4271 __attribute__((visibility("default"))) void glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, const GLvoid *addr);
4272 __attribute__((visibility("default"))) void glEnableVariantClientStateEXT (GLuint id);
4273 __attribute__((visibility("default"))) void glDisableVariantClientStateEXT (GLuint id);
4274 __attribute__((visibility("default"))) GLuint glBindLightParameterEXT (GLenum light, GLenum value);
4275 __attribute__((visibility("default"))) GLuint glBindMaterialParameterEXT (GLenum face, GLenum value);
4276 __attribute__((visibility("default"))) GLuint glBindTexGenParameterEXT (GLenum unit, GLenum coord, GLenum value);
4277 __attribute__((visibility("default"))) GLuint glBindTextureUnitParameterEXT (GLenum unit, GLenum value);
4278 __attribute__((visibility("default"))) GLuint glBindParameterEXT (GLenum value);
4279 __attribute__((visibility("default"))) GLboolean glIsVariantEnabledEXT (GLuint id, GLenum cap);
4280 __attribute__((visibility("default"))) void glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
4281 __attribute__((visibility("default"))) void glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data);
4282 __attribute__((visibility("default"))) void glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
4283 __attribute__((visibility("default"))) void glGetVariantPointervEXT (GLuint id, GLenum value, GLvoid* *data);
4284 __attribute__((visibility("default"))) void glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
4285 __attribute__((visibility("default"))) void glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data);
4286 __attribute__((visibility("default"))) void glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
4287 __attribute__((visibility("default"))) void glGetLocalConstantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
4288 __attribute__((visibility("default"))) void glGetLocalConstantIntegervEXT (GLuint id, GLenum value, GLint *data);
4289 __attribute__((visibility("default"))) void glGetLocalConstantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
4291 typedef void ( * PFNGLBEGINVERTEXSHADEREXTPROC) (void);
4292 typedef void ( * PFNGLENDVERTEXSHADEREXTPROC) (void);
4293 typedef void ( * PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id);
4294 typedef GLuint ( * PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range);
4295 typedef void ( * PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id);
4296 typedef void ( * PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
4297 typedef void ( * PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
4298 typedef void ( * PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
4299 typedef void ( * PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
4300 typedef void ( * PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
4301 typedef void ( * PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
4302 typedef void ( * PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
4303 typedef GLuint ( * PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
4304 typedef void ( * PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr);
4305 typedef void ( * PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr);
4306 typedef void ( * PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr);
4307 typedef void ( * PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr);
4308 typedef void ( * PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr);
4309 typedef void ( * PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr);
4310 typedef void ( * PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr);
4311 typedef void ( * PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr);
4312 typedef void ( * PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr);
4313 typedef void ( * PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr);
4314 typedef void ( * PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr);
4315 typedef void ( * PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
4316 typedef void ( * PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
4317 typedef GLuint ( * PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value);
4318 typedef GLuint ( * PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value);
4319 typedef GLuint ( * PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value);
4320 typedef GLuint ( * PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value);
4321 typedef GLuint ( * PFNGLBINDPARAMETEREXTPROC) (GLenum value);
4322 typedef GLboolean ( * PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap);
4323 typedef void ( * PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
4324 typedef void ( * PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
4325 typedef void ( * PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
4326 typedef void ( * PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data);
4327 typedef void ( * PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
4328 typedef void ( * PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
4329 typedef void ( * PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
4330 typedef void ( * PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
4331 typedef void ( * PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
4332 typedef void ( * PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
4338 __attribute__((visibility("default"))) void glVertexStream1sATI (GLenum stream, GLshort x);
4339 __attribute__((visibility("default"))) void glVertexStream1svATI (GLenum stream, const GLshort *coords);
4340 __attribute__((visibility("default"))) void glVertexStream1iATI (GLenum stream, GLint x);
4341 __attribute__((visibility("default"))) void glVertexStream1ivATI (GLenum stream, const GLint *coords);
4342 __attribute__((visibility("default"))) void glVertexStream1fATI (GLenum stream, GLfloat x);
4343 __attribute__((visibility("default"))) void glVertexStream1fvATI (GLenum stream, const GLfloat *coords);
4344 __attribute__((visibility("default"))) void glVertexStream1dATI (GLenum stream, GLdouble x);
4345 __attribute__((visibility("default"))) void glVertexStream1dvATI (GLenum stream, const GLdouble *coords);
4346 __attribute__((visibility("default"))) void glVertexStream2sATI (GLenum stream, GLshort x, GLshort y);
4347 __attribute__((visibility("default"))) void glVertexStream2svATI (GLenum stream, const GLshort *coords);
4348 __attribute__((visibility("default"))) void glVertexStream2iATI (GLenum stream, GLint x, GLint y);
4349 __attribute__((visibility("default"))) void glVertexStream2ivATI (GLenum stream, const GLint *coords);
4350 __attribute__((visibility("default"))) void glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y);
4351 __attribute__((visibility("default"))) void glVertexStream2fvATI (GLenum stream, const GLfloat *coords);
4352 __attribute__((visibility("default"))) void glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y);
4353 __attribute__((visibility("default"))) void glVertexStream2dvATI (GLenum stream, const GLdouble *coords);
4354 __attribute__((visibility("default"))) void glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z);
4355 __attribute__((visibility("default"))) void glVertexStream3svATI (GLenum stream, const GLshort *coords);
4356 __attribute__((visibility("default"))) void glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z);
4357 __attribute__((visibility("default"))) void glVertexStream3ivATI (GLenum stream, const GLint *coords);
4358 __attribute__((visibility("default"))) void glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
4359 __attribute__((visibility("default"))) void glVertexStream3fvATI (GLenum stream, const GLfloat *coords);
4360 __attribute__((visibility("default"))) void glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
4361 __attribute__((visibility("default"))) void glVertexStream3dvATI (GLenum stream, const GLdouble *coords);
4362 __attribute__((visibility("default"))) void glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
4363 __attribute__((visibility("default"))) void glVertexStream4svATI (GLenum stream, const GLshort *coords);
4364 __attribute__((visibility("default"))) void glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w);
4365 __attribute__((visibility("default"))) void glVertexStream4ivATI (GLenum stream, const GLint *coords);
4366 __attribute__((visibility("default"))) void glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4367 __attribute__((visibility("default"))) void glVertexStream4fvATI (GLenum stream, const GLfloat *coords);
4368 __attribute__((visibility("default"))) void glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4369 __attribute__((visibility("default"))) void glVertexStream4dvATI (GLenum stream, const GLdouble *coords);
4370 __attribute__((visibility("default"))) void glNormalStream3bATI (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
4371 __attribute__((visibility("default"))) void glNormalStream3bvATI (GLenum stream, const GLbyte *coords);
4372 __attribute__((visibility("default"))) void glNormalStream3sATI (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
4373 __attribute__((visibility("default"))) void glNormalStream3svATI (GLenum stream, const GLshort *coords);
4374 __attribute__((visibility("default"))) void glNormalStream3iATI (GLenum stream, GLint nx, GLint ny, GLint nz);
4375 __attribute__((visibility("default"))) void glNormalStream3ivATI (GLenum stream, const GLint *coords);
4376 __attribute__((visibility("default"))) void glNormalStream3fATI (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
4377 __attribute__((visibility("default"))) void glNormalStream3fvATI (GLenum stream, const GLfloat *coords);
4378 __attribute__((visibility("default"))) void glNormalStream3dATI (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
4379 __attribute__((visibility("default"))) void glNormalStream3dvATI (GLenum stream, const GLdouble *coords);
4380 __attribute__((visibility("default"))) void glClientActiveVertexStreamATI (GLenum stream);
4381 __attribute__((visibility("default"))) void glVertexBlendEnviATI (GLenum pname, GLint param);
4382 __attribute__((visibility("default"))) void glVertexBlendEnvfATI (GLenum pname, GLfloat param);
4384 typedef void ( * PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x);
4385 typedef void ( * PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords);
4386 typedef void ( * PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x);
4387 typedef void ( * PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords);
4388 typedef void ( * PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x);
4389 typedef void ( * PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords);
4390 typedef void ( * PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x);
4391 typedef void ( * PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords);
4392 typedef void ( * PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y);
4393 typedef void ( * PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords);
4394 typedef void ( * PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y);
4395 typedef void ( * PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords);
4396 typedef void ( * PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y);
4397 typedef void ( * PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords);
4398 typedef void ( * PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y);
4399 typedef void ( * PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords);
4400 typedef void ( * PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
4401 typedef void ( * PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
4402 typedef void ( * PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
4403 typedef void ( * PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
4404 typedef void ( * PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
4405 typedef void ( * PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
4406 typedef void ( * PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
4407 typedef void ( * PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
4408 typedef void ( * PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
4409 typedef void ( * PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords);
4410 typedef void ( * PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
4411 typedef void ( * PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords);
4412 typedef void ( * PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4413 typedef void ( * PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords);
4414 typedef void ( * PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4415 typedef void ( * PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords);
4416 typedef void ( * PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
4417 typedef void ( * PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords);
4418 typedef void ( * PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
4419 typedef void ( * PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
4420 typedef void ( * PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz);
4421 typedef void ( * PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
4422 typedef void ( * PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
4423 typedef void ( * PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
4424 typedef void ( * PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
4425 typedef void ( * PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
4426 typedef void ( * PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream);
4427 typedef void ( * PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param);
4428 typedef void ( * PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param);
4434 __attribute__((visibility("default"))) void glElementPointerATI (GLenum type, const GLvoid *pointer);
4435 __attribute__((visibility("default"))) void glDrawElementArrayATI (GLenum mode, GLsizei count);
4436 __attribute__((visibility("default"))) void glDrawRangeElementArrayATI (GLenum mode, GLuint start, GLuint end, GLsizei count);
4438 typedef void ( * PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer);
4439 typedef void ( * PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
4440 typedef void ( * PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
4446 __attribute__((visibility("default"))) void glDrawMeshArraysSUN (GLenum mode, GLint first, GLsizei count, GLsizei width);
4448 typedef void ( * PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width);
4449 # 9251 "../../include/GL/glext.h"
4450 __attribute__((visibility("default"))) void glGenOcclusionQueriesNV (GLsizei n, GLuint *ids);
4451 __attribute__((visibility("default"))) void glDeleteOcclusionQueriesNV (GLsizei n, const GLuint *ids);
4452 __attribute__((visibility("default"))) GLboolean glIsOcclusionQueryNV (GLuint id);
4453 __attribute__((visibility("default"))) void glBeginOcclusionQueryNV (GLuint id);
4454 __attribute__((visibility("default"))) void glEndOcclusionQueryNV (void);
4455 __attribute__((visibility("default"))) void glGetOcclusionQueryivNV (GLuint id, GLenum pname, GLint *params);
4456 __attribute__((visibility("default"))) void glGetOcclusionQueryuivNV (GLuint id, GLenum pname, GLuint *params);
4458 typedef void ( * PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
4459 typedef void ( * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
4460 typedef GLboolean ( * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id);
4461 typedef void ( * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
4462 typedef void ( * PFNGLENDOCCLUSIONQUERYNVPROC) (void);
4463 typedef void ( * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
4464 typedef void ( * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
4470 __attribute__((visibility("default"))) void glPointParameteriNV (GLenum pname, GLint param);
4471 __attribute__((visibility("default"))) void glPointParameterivNV (GLenum pname, const GLint *params);
4473 typedef void ( * PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param);
4474 typedef void ( * PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
4475 # 9293 "../../include/GL/glext.h"
4476 __attribute__((visibility("default"))) void glActiveStencilFaceEXT (GLenum face);
4478 typedef void ( * PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face);
4479 # 9309 "../../include/GL/glext.h"
4480 __attribute__((visibility("default"))) void glElementPointerAPPLE (GLenum type, const GLvoid *pointer);
4481 __attribute__((visibility("default"))) void glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count);
4482 __attribute__((visibility("default"))) void glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
4483 __attribute__((visibility("default"))) void glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
4484 __attribute__((visibility("default"))) void glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
4486 typedef void ( * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer);
4487 typedef void ( * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
4488 typedef void ( * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
4489 typedef void ( * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
4490 typedef void ( * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
4496 __attribute__((visibility("default"))) void glGenFencesAPPLE (GLsizei n, GLuint *fences);
4497 __attribute__((visibility("default"))) void glDeleteFencesAPPLE (GLsizei n, const GLuint *fences);
4498 __attribute__((visibility("default"))) void glSetFenceAPPLE (GLuint fence);
4499 __attribute__((visibility("default"))) GLboolean glIsFenceAPPLE (GLuint fence);
4500 __attribute__((visibility("default"))) GLboolean glTestFenceAPPLE (GLuint fence);
4501 __attribute__((visibility("default"))) void glFinishFenceAPPLE (GLuint fence);
4502 __attribute__((visibility("default"))) GLboolean glTestObjectAPPLE (GLenum object, GLuint name);
4503 __attribute__((visibility("default"))) void glFinishObjectAPPLE (GLenum object, GLint name);
4505 typedef void ( * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences);
4506 typedef void ( * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences);
4507 typedef void ( * PFNGLSETFENCEAPPLEPROC) (GLuint fence);
4508 typedef GLboolean ( * PFNGLISFENCEAPPLEPROC) (GLuint fence);
4509 typedef GLboolean ( * PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
4510 typedef void ( * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
4511 typedef GLboolean ( * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
4512 typedef void ( * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
4518 __attribute__((visibility("default"))) void glBindVertexArrayAPPLE (GLuint array);
4519 __attribute__((visibility("default"))) void glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *arrays);
4520 __attribute__((visibility("default"))) void glGenVertexArraysAPPLE (GLsizei n, GLuint *arrays);
4521 __attribute__((visibility("default"))) GLboolean glIsVertexArrayAPPLE (GLuint array);
4523 typedef void ( * PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
4524 typedef void ( * PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays);
4525 typedef void ( * PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays);
4526 typedef GLboolean ( * PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
4532 __attribute__((visibility("default"))) void glVertexArrayRangeAPPLE (GLsizei length, GLvoid *pointer);
4533 __attribute__((visibility("default"))) void glFlushVertexArrayRangeAPPLE (GLsizei length, GLvoid *pointer);
4534 __attribute__((visibility("default"))) void glVertexArrayParameteriAPPLE (GLenum pname, GLint param);
4536 typedef void ( * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer);
4537 typedef void ( * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer);
4538 typedef void ( * PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
4539 # 9381 "../../include/GL/glext.h"
4540 __attribute__((visibility("default"))) void glDrawBuffersATI (GLsizei n, const GLenum *bufs);
4542 typedef void ( * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
4543 # 9409 "../../include/GL/glext.h"
4544 __attribute__((visibility("default"))) void glProgramNamedParameter4fNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4545 __attribute__((visibility("default"))) void glProgramNamedParameter4dNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4546 __attribute__((visibility("default"))) void glProgramNamedParameter4fvNV (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
4547 __attribute__((visibility("default"))) void glProgramNamedParameter4dvNV (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
4548 __attribute__((visibility("default"))) void glGetProgramNamedParameterfvNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
4549 __attribute__((visibility("default"))) void glGetProgramNamedParameterdvNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
4551 typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
4552 typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4553 typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
4554 typedef void ( * PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
4555 typedef void ( * PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
4556 typedef void ( * PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
4562 __attribute__((visibility("default"))) void glVertex2hNV (GLhalfNV x, GLhalfNV y);
4563 __attribute__((visibility("default"))) void glVertex2hvNV (const GLhalfNV *v);
4564 __attribute__((visibility("default"))) void glVertex3hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z);
4565 __attribute__((visibility("default"))) void glVertex3hvNV (const GLhalfNV *v);
4566 __attribute__((visibility("default"))) void glVertex4hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
4567 __attribute__((visibility("default"))) void glVertex4hvNV (const GLhalfNV *v);
4568 __attribute__((visibility("default"))) void glNormal3hNV (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
4569 __attribute__((visibility("default"))) void glNormal3hvNV (const GLhalfNV *v);
4570 __attribute__((visibility("default"))) void glColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
4571 __attribute__((visibility("default"))) void glColor3hvNV (const GLhalfNV *v);
4572 __attribute__((visibility("default"))) void glColor4hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
4573 __attribute__((visibility("default"))) void glColor4hvNV (const GLhalfNV *v);
4574 __attribute__((visibility("default"))) void glTexCoord1hNV (GLhalfNV s);
4575 __attribute__((visibility("default"))) void glTexCoord1hvNV (const GLhalfNV *v);
4576 __attribute__((visibility("default"))) void glTexCoord2hNV (GLhalfNV s, GLhalfNV t);
4577 __attribute__((visibility("default"))) void glTexCoord2hvNV (const GLhalfNV *v);
4578 __attribute__((visibility("default"))) void glTexCoord3hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r);
4579 __attribute__((visibility("default"))) void glTexCoord3hvNV (const GLhalfNV *v);
4580 __attribute__((visibility("default"))) void glTexCoord4hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
4581 __attribute__((visibility("default"))) void glTexCoord4hvNV (const GLhalfNV *v);
4582 __attribute__((visibility("default"))) void glMultiTexCoord1hNV (GLenum target, GLhalfNV s);
4583 __attribute__((visibility("default"))) void glMultiTexCoord1hvNV (GLenum target, const GLhalfNV *v);
4584 __attribute__((visibility("default"))) void glMultiTexCoord2hNV (GLenum target, GLhalfNV s, GLhalfNV t);
4585 __attribute__((visibility("default"))) void glMultiTexCoord2hvNV (GLenum target, const GLhalfNV *v);
4586 __attribute__((visibility("default"))) void glMultiTexCoord3hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
4587 __attribute__((visibility("default"))) void glMultiTexCoord3hvNV (GLenum target, const GLhalfNV *v);
4588 __attribute__((visibility("default"))) void glMultiTexCoord4hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
4589 __attribute__((visibility("default"))) void glMultiTexCoord4hvNV (GLenum target, const GLhalfNV *v);
4590 __attribute__((visibility("default"))) void glFogCoordhNV (GLhalfNV fog);
4591 __attribute__((visibility("default"))) void glFogCoordhvNV (const GLhalfNV *fog);
4592 __attribute__((visibility("default"))) void glSecondaryColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
4593 __attribute__((visibility("default"))) void glSecondaryColor3hvNV (const GLhalfNV *v);
4594 __attribute__((visibility("default"))) void glVertexWeighthNV (GLhalfNV weight);
4595 __attribute__((visibility("default"))) void glVertexWeighthvNV (const GLhalfNV *weight);
4596 __attribute__((visibility("default"))) void glVertexAttrib1hNV (GLuint index, GLhalfNV x);
4597 __attribute__((visibility("default"))) void glVertexAttrib1hvNV (GLuint index, const GLhalfNV *v);
4598 __attribute__((visibility("default"))) void glVertexAttrib2hNV (GLuint index, GLhalfNV x, GLhalfNV y);
4599 __attribute__((visibility("default"))) void glVertexAttrib2hvNV (GLuint index, const GLhalfNV *v);
4600 __attribute__((visibility("default"))) void glVertexAttrib3hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
4601 __attribute__((visibility("default"))) void glVertexAttrib3hvNV (GLuint index, const GLhalfNV *v);
4602 __attribute__((visibility("default"))) void glVertexAttrib4hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
4603 __attribute__((visibility("default"))) void glVertexAttrib4hvNV (GLuint index, const GLhalfNV *v);
4604 __attribute__((visibility("default"))) void glVertexAttribs1hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
4605 __attribute__((visibility("default"))) void glVertexAttribs2hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
4606 __attribute__((visibility("default"))) void glVertexAttribs3hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
4607 __attribute__((visibility("default"))) void glVertexAttribs4hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
4609 typedef void ( * PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y);
4610 typedef void ( * PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v);
4611 typedef void ( * PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z);
4612 typedef void ( * PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v);
4613 typedef void ( * PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
4614 typedef void ( * PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v);
4615 typedef void ( * PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
4616 typedef void ( * PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v);
4617 typedef void ( * PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
4618 typedef void ( * PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v);
4619 typedef void ( * PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
4620 typedef void ( * PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v);
4621 typedef void ( * PFNGLTEXCOORD1HNVPROC) (GLhalfNV s);
4622 typedef void ( * PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v);
4623 typedef void ( * PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t);
4624 typedef void ( * PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v);
4625 typedef void ( * PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r);
4626 typedef void ( * PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v);
4627 typedef void ( * PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
4628 typedef void ( * PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v);
4629 typedef void ( * PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s);
4630 typedef void ( * PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v);
4631 typedef void ( * PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t);
4632 typedef void ( * PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v);
4633 typedef void ( * PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
4634 typedef void ( * PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v);
4635 typedef void ( * PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
4636 typedef void ( * PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v);
4637 typedef void ( * PFNGLFOGCOORDHNVPROC) (GLhalfNV fog);
4638 typedef void ( * PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog);
4639 typedef void ( * PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
4640 typedef void ( * PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v);
4641 typedef void ( * PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight);
4642 typedef void ( * PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight);
4643 typedef void ( * PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x);
4644 typedef void ( * PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v);
4645 typedef void ( * PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y);
4646 typedef void ( * PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v);
4647 typedef void ( * PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
4648 typedef void ( * PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v);
4649 typedef void ( * PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
4650 typedef void ( * PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v);
4651 typedef void ( * PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
4652 typedef void ( * PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
4653 typedef void ( * PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
4654 typedef void ( * PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
4660 __attribute__((visibility("default"))) void glPixelDataRangeNV (GLenum target, GLsizei length, GLvoid *pointer);
4661 __attribute__((visibility("default"))) void glFlushPixelDataRangeNV (GLenum target);
4663 typedef void ( * PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer);
4664 typedef void ( * PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target);
4670 __attribute__((visibility("default"))) void glPrimitiveRestartNV (void);
4671 __attribute__((visibility("default"))) void glPrimitiveRestartIndexNV (GLuint index);
4673 typedef void ( * PFNGLPRIMITIVERESTARTNVPROC) (void);
4674 typedef void ( * PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
4675 # 9553 "../../include/GL/glext.h"
4676 __attribute__((visibility("default"))) GLvoid* glMapObjectBufferATI (GLuint buffer);
4677 __attribute__((visibility("default"))) void glUnmapObjectBufferATI (GLuint buffer);
4679 typedef GLvoid* ( * PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer);
4680 typedef void ( * PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer);
4686 __attribute__((visibility("default"))) void glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
4687 __attribute__((visibility("default"))) void glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
4689 typedef void ( * PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
4690 typedef void ( * PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
4696 __attribute__((visibility("default"))) void glVertexAttribArrayObjectATI (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
4697 __attribute__((visibility("default"))) void glGetVertexAttribArrayObjectfvATI (GLuint index, GLenum pname, GLfloat *params);
4698 __attribute__((visibility("default"))) void glGetVertexAttribArrayObjectivATI (GLuint index, GLenum pname, GLint *params);
4700 typedef void ( * PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
4701 typedef void ( * PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params);
4702 typedef void ( * PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
4703 # 9589 "../../include/GL/glext.h"
4704 __attribute__((visibility("default"))) void glDepthBoundsEXT (GLclampd zmin, GLclampd zmax);
4706 typedef void ( * PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax);
4707 # 9601 "../../include/GL/glext.h"
4708 __attribute__((visibility("default"))) void glBlendEquationSeparateEXT (GLenum modeRGB, GLenum modeAlpha);
4710 typedef void ( * PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha);
4711 # 9637 "../../include/GL/glext.h"
4712 __attribute__((visibility("default"))) GLboolean glIsRenderbufferEXT (GLuint renderbuffer);
4713 __attribute__((visibility("default"))) void glBindRenderbufferEXT (GLenum target, GLuint renderbuffer);
4714 __attribute__((visibility("default"))) void glDeleteRenderbuffersEXT (GLsizei n, const GLuint *renderbuffers);
4715 __attribute__((visibility("default"))) void glGenRenderbuffersEXT (GLsizei n, GLuint *renderbuffers);
4716 __attribute__((visibility("default"))) void glRenderbufferStorageEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
4717 __attribute__((visibility("default"))) void glGetRenderbufferParameterivEXT (GLenum target, GLenum pname, GLint *params);
4718 __attribute__((visibility("default"))) GLboolean glIsFramebufferEXT (GLuint framebuffer);
4719 __attribute__((visibility("default"))) void glBindFramebufferEXT (GLenum target, GLuint framebuffer);
4720 __attribute__((visibility("default"))) void glDeleteFramebuffersEXT (GLsizei n, const GLuint *framebuffers);
4721 __attribute__((visibility("default"))) void glGenFramebuffersEXT (GLsizei n, GLuint *framebuffers);
4722 __attribute__((visibility("default"))) GLenum glCheckFramebufferStatusEXT (GLenum target);
4723 __attribute__((visibility("default"))) void glFramebufferTexture1DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
4724 __attribute__((visibility("default"))) void glFramebufferTexture2DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
4725 __attribute__((visibility("default"))) void glFramebufferTexture3DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
4726 __attribute__((visibility("default"))) void glFramebufferRenderbufferEXT (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
4727 __attribute__((visibility("default"))) void glGetFramebufferAttachmentParameterivEXT (GLenum target, GLenum attachment, GLenum pname, GLint *params);
4728 __attribute__((visibility("default"))) void glGenerateMipmapEXT (GLenum target);
4730 typedef GLboolean ( * PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer);
4731 typedef void ( * PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer);
4732 typedef void ( * PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers);
4733 typedef void ( * PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers);
4734 typedef void ( * PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
4735 typedef void ( * PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
4736 typedef GLboolean ( * PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer);
4737 typedef void ( * PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer);
4738 typedef void ( * PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers);
4739 typedef void ( * PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers);
4740 typedef GLenum ( * PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target);
4741 typedef void ( * PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
4742 typedef void ( * PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
4743 typedef void ( * PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
4744 typedef void ( * PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
4745 typedef void ( * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
4746 typedef void ( * PFNGLGENERATEMIPMAPEXTPROC) (GLenum target);
4752 __attribute__((visibility("default"))) void glStringMarkerGREMEDY (GLsizei len, const GLvoid *string);
4754 typedef void ( * PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string);
4755 # 9689 "../../include/GL/glext.h"
4756 __attribute__((visibility("default"))) void glStencilClearTagEXT (GLsizei stencilTagBits, GLuint stencilClearTag);
4758 typedef void ( * PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag);
4759 # 9701 "../../include/GL/glext.h"
4760 __attribute__((visibility("default"))) void glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
4762 typedef void ( * PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
4768 __attribute__((visibility("default"))) void glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
4770 typedef void ( * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
4771 # 9721 "../../include/GL/glext.h"
4772 __attribute__((visibility("default"))) void glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64EXT *params);
4773 __attribute__((visibility("default"))) void glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64EXT *params);
4775 typedef void ( * PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params);
4776 typedef void ( * PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params);
4782 __attribute__((visibility("default"))) void glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
4783 __attribute__((visibility("default"))) void glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
4785 typedef void ( * PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
4786 typedef void ( * PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
4792 __attribute__((visibility("default"))) void glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param);
4793 __attribute__((visibility("default"))) void glFlushMappedBufferRangeAPPLE (GLenum target, GLintptr offset, GLsizeiptr size);
4795 typedef void ( * PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
4796 typedef void ( * PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
4802 __attribute__((visibility("default"))) void glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
4803 __attribute__((visibility("default"))) void glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
4804 __attribute__((visibility("default"))) void glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
4805 __attribute__((visibility("default"))) void glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
4806 __attribute__((visibility("default"))) void glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
4807 __attribute__((visibility("default"))) void glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
4808 __attribute__((visibility("default"))) void glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
4809 __attribute__((visibility("default"))) void glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
4810 __attribute__((visibility("default"))) void glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
4811 __attribute__((visibility("default"))) void glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
4812 __attribute__((visibility("default"))) void glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
4813 __attribute__((visibility("default"))) void glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
4814 __attribute__((visibility("default"))) void glGetProgramLocalParameterIivNV (GLenum target, GLuint index, GLint *params);
4815 __attribute__((visibility("default"))) void glGetProgramLocalParameterIuivNV (GLenum target, GLuint index, GLuint *params);
4816 __attribute__((visibility("default"))) void glGetProgramEnvParameterIivNV (GLenum target, GLuint index, GLint *params);
4817 __attribute__((visibility("default"))) void glGetProgramEnvParameterIuivNV (GLenum target, GLuint index, GLuint *params);
4819 typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
4820 typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
4821 typedef void ( * PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
4822 typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
4823 typedef void ( * PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
4824 typedef void ( * PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
4825 typedef void ( * PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
4826 typedef void ( * PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
4827 typedef void ( * PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
4828 typedef void ( * PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
4829 typedef void ( * PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
4830 typedef void ( * PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
4831 typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
4832 typedef void ( * PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
4833 typedef void ( * PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
4834 typedef void ( * PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
4840 __attribute__((visibility("default"))) void glProgramVertexLimitNV (GLenum target, GLint limit);
4841 __attribute__((visibility("default"))) void glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
4842 __attribute__((visibility("default"))) void glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
4843 __attribute__((visibility("default"))) void glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
4845 typedef void ( * PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit);
4846 typedef void ( * PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
4847 typedef void ( * PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
4848 typedef void ( * PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
4854 __attribute__((visibility("default"))) void glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
4856 typedef void ( * PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
4862 __attribute__((visibility("default"))) void glVertexAttribI1iEXT (GLuint index, GLint x);
4863 __attribute__((visibility("default"))) void glVertexAttribI2iEXT (GLuint index, GLint x, GLint y);
4864 __attribute__((visibility("default"))) void glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z);
4865 __attribute__((visibility("default"))) void glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w);
4866 __attribute__((visibility("default"))) void glVertexAttribI1uiEXT (GLuint index, GLuint x);
4867 __attribute__((visibility("default"))) void glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y);
4868 __attribute__((visibility("default"))) void glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z);
4869 __attribute__((visibility("default"))) void glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
4870 __attribute__((visibility("default"))) void glVertexAttribI1ivEXT (GLuint index, const GLint *v);
4871 __attribute__((visibility("default"))) void glVertexAttribI2ivEXT (GLuint index, const GLint *v);
4872 __attribute__((visibility("default"))) void glVertexAttribI3ivEXT (GLuint index, const GLint *v);
4873 __attribute__((visibility("default"))) void glVertexAttribI4ivEXT (GLuint index, const GLint *v);
4874 __attribute__((visibility("default"))) void glVertexAttribI1uivEXT (GLuint index, const GLuint *v);
4875 __attribute__((visibility("default"))) void glVertexAttribI2uivEXT (GLuint index, const GLuint *v);
4876 __attribute__((visibility("default"))) void glVertexAttribI3uivEXT (GLuint index, const GLuint *v);
4877 __attribute__((visibility("default"))) void glVertexAttribI4uivEXT (GLuint index, const GLuint *v);
4878 __attribute__((visibility("default"))) void glVertexAttribI4bvEXT (GLuint index, const GLbyte *v);
4879 __attribute__((visibility("default"))) void glVertexAttribI4svEXT (GLuint index, const GLshort *v);
4880 __attribute__((visibility("default"))) void glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v);
4881 __attribute__((visibility("default"))) void glVertexAttribI4usvEXT (GLuint index, const GLushort *v);
4882 __attribute__((visibility("default"))) void glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
4883 __attribute__((visibility("default"))) void glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params);
4884 __attribute__((visibility("default"))) void glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params);
4886 typedef void ( * PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x);
4887 typedef void ( * PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y);
4888 typedef void ( * PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z);
4889 typedef void ( * PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
4890 typedef void ( * PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x);
4891 typedef void ( * PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y);
4892 typedef void ( * PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
4893 typedef void ( * PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
4894 typedef void ( * PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v);
4895 typedef void ( * PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v);
4896 typedef void ( * PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v);
4897 typedef void ( * PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v);
4898 typedef void ( * PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v);
4899 typedef void ( * PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v);
4900 typedef void ( * PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v);
4901 typedef void ( * PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v);
4902 typedef void ( * PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v);
4903 typedef void ( * PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v);
4904 typedef void ( * PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v);
4905 typedef void ( * PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v);
4906 typedef void ( * PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
4907 typedef void ( * PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params);
4908 typedef void ( * PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params);
4914 __attribute__((visibility("default"))) void glGetUniformuivEXT (GLuint program, GLint location, GLuint *params);
4915 __attribute__((visibility("default"))) void glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name);
4916 __attribute__((visibility("default"))) GLint glGetFragDataLocationEXT (GLuint program, const GLchar *name);
4917 __attribute__((visibility("default"))) void glUniform1uiEXT (GLint location, GLuint v0);
4918 __attribute__((visibility("default"))) void glUniform2uiEXT (GLint location, GLuint v0, GLuint v1);
4919 __attribute__((visibility("default"))) void glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2);
4920 __attribute__((visibility("default"))) void glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
4921 __attribute__((visibility("default"))) void glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value);
4922 __attribute__((visibility("default"))) void glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value);
4923 __attribute__((visibility("default"))) void glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value);
4924 __attribute__((visibility("default"))) void glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value);
4926 typedef void ( * PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params);
4927 typedef void ( * PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
4928 typedef GLint ( * PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name);
4929 typedef void ( * PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0);
4930 typedef void ( * PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1);
4931 typedef void ( * PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
4932 typedef void ( * PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
4933 typedef void ( * PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
4934 typedef void ( * PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
4935 typedef void ( * PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
4936 typedef void ( * PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
4942 __attribute__((visibility("default"))) void glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
4943 __attribute__((visibility("default"))) void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
4945 typedef void ( * PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
4946 typedef void ( * PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
4947 # 9909 "../../include/GL/glext.h"
4948 __attribute__((visibility("default"))) void glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
4950 typedef void ( * PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
4951 # 9929 "../../include/GL/glext.h"
4952 __attribute__((visibility("default"))) void glDepthRangedNV (GLdouble zNear, GLdouble zFar);
4953 __attribute__((visibility("default"))) void glClearDepthdNV (GLdouble depth);
4954 __attribute__((visibility("default"))) void glDepthBoundsdNV (GLdouble zmin, GLdouble zmax);
4956 typedef void ( * PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar);
4957 typedef void ( * PFNGLCLEARDEPTHDNVPROC) (GLdouble depth);
4958 typedef void ( * PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax);
4959 # 9945 "../../include/GL/glext.h"
4960 __attribute__((visibility("default"))) void glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
4962 typedef void ( * PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
4963 # 9961 "../../include/GL/glext.h"
4964 __attribute__((visibility("default"))) void glProgramBufferParametersfvNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params);
4965 __attribute__((visibility("default"))) void glProgramBufferParametersIivNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params);
4966 __attribute__((visibility("default"))) void glProgramBufferParametersIuivNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params);
4968 typedef void ( * PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params);
4969 typedef void ( * PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params);
4970 typedef void ( * PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params);
4976 __attribute__((visibility("default"))) void glColorMaskIndexedEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
4977 __attribute__((visibility("default"))) void glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data);
4978 __attribute__((visibility("default"))) void glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data);
4979 __attribute__((visibility("default"))) void glEnableIndexedEXT (GLenum target, GLuint index);
4980 __attribute__((visibility("default"))) void glDisableIndexedEXT (GLenum target, GLuint index);
4981 __attribute__((visibility("default"))) GLboolean glIsEnabledIndexedEXT (GLenum target, GLuint index);
4983 typedef void ( * PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
4984 typedef void ( * PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data);
4985 typedef void ( * PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data);
4986 typedef void ( * PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
4987 typedef void ( * PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
4988 typedef GLboolean ( * PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index);
4994 __attribute__((visibility("default"))) void glBeginTransformFeedbackNV (GLenum primitiveMode);
4995 __attribute__((visibility("default"))) void glEndTransformFeedbackNV (void);
4996 __attribute__((visibility("default"))) void glTransformFeedbackAttribsNV (GLuint count, const GLint *attribs, GLenum bufferMode);
4997 __attribute__((visibility("default"))) void glBindBufferRangeNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
4998 __attribute__((visibility("default"))) void glBindBufferOffsetNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
4999 __attribute__((visibility("default"))) void glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer);
5000 __attribute__((visibility("default"))) void glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
5001 __attribute__((visibility("default"))) void glActiveVaryingNV (GLuint program, const GLchar *name);
5002 __attribute__((visibility("default"))) GLint glGetVaryingLocationNV (GLuint program, const GLchar *name);
5003 __attribute__((visibility("default"))) void glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
5004 __attribute__((visibility("default"))) void glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location);
5005 __attribute__((visibility("default"))) void glTransformFeedbackStreamAttribsNV (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
5007 typedef void ( * PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode);
5008 typedef void ( * PFNGLENDTRANSFORMFEEDBACKNVPROC) (void);
5009 typedef void ( * PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode);
5010 typedef void ( * PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
5011 typedef void ( * PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
5012 typedef void ( * PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer);
5013 typedef void ( * PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
5014 typedef void ( * PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name);
5015 typedef GLint ( * PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name);
5016 typedef void ( * PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
5017 typedef void ( * PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location);
5018 typedef void ( * PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
5024 __attribute__((visibility("default"))) void glUniformBufferEXT (GLuint program, GLint location, GLuint buffer);
5025 __attribute__((visibility("default"))) GLint glGetUniformBufferSizeEXT (GLuint program, GLint location);
5026 __attribute__((visibility("default"))) GLintptr glGetUniformOffsetEXT (GLuint program, GLint location);
5028 typedef void ( * PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer);
5029 typedef GLint ( * PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location);
5030 typedef GLintptr ( * PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location);
5036 __attribute__((visibility("default"))) void glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
5037 __attribute__((visibility("default"))) void glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
5038 __attribute__((visibility("default"))) void glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
5039 __attribute__((visibility("default"))) void glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
5040 __attribute__((visibility("default"))) void glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha);
5041 __attribute__((visibility("default"))) void glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha);
5043 typedef void ( * PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
5044 typedef void ( * PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
5045 typedef void ( * PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
5046 typedef void ( * PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
5047 typedef void ( * PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha);
5048 typedef void ( * PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha);
5054 __attribute__((visibility("default"))) void glFrameTerminatorGREMEDY (void);
5056 typedef void ( * PFNGLFRAMETERMINATORGREMEDYPROC) (void);
5062 __attribute__((visibility("default"))) void glBeginConditionalRenderNV (GLuint id, GLenum mode);
5063 __attribute__((visibility("default"))) void glEndConditionalRenderNV (void);
5065 typedef void ( * PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
5066 typedef void ( * PFNGLENDCONDITIONALRENDERNVPROC) (void);
5072 __attribute__((visibility("default"))) void glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
5073 __attribute__((visibility("default"))) void glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
5074 __attribute__((visibility("default"))) void glGetVideoivNV (GLuint video_slot, GLenum pname, GLint *params);
5075 __attribute__((visibility("default"))) void glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint *params);
5076 __attribute__((visibility("default"))) void glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT *params);
5077 __attribute__((visibility("default"))) void glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT *params);
5079 typedef void ( * PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
5080 typedef void ( * PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
5081 typedef void ( * PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params);
5082 typedef void ( * PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params);
5083 typedef void ( * PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params);
5084 typedef void ( * PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params);
5090 __attribute__((visibility("default"))) void glBeginTransformFeedbackEXT (GLenum primitiveMode);
5091 __attribute__((visibility("default"))) void glEndTransformFeedbackEXT (void);
5092 __attribute__((visibility("default"))) void glBindBufferRangeEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
5093 __attribute__((visibility("default"))) void glBindBufferOffsetEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
5094 __attribute__((visibility("default"))) void glBindBufferBaseEXT (GLenum target, GLuint index, GLuint buffer);
5095 __attribute__((visibility("default"))) void glTransformFeedbackVaryingsEXT (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
5096 __attribute__((visibility("default"))) void glGetTransformFeedbackVaryingEXT (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
5098 typedef void ( * PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode);
5099 typedef void ( * PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void);
5100 typedef void ( * PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
5101 typedef void ( * PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
5102 typedef void ( * PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer);
5103 typedef void ( * PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
5104 typedef void ( * PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
5110 __attribute__((visibility("default"))) void glClientAttribDefaultEXT (GLbitfield mask);
5111 __attribute__((visibility("default"))) void glPushClientAttribDefaultEXT (GLbitfield mask);
5112 __attribute__((visibility("default"))) void glMatrixLoadfEXT (GLenum mode, const GLfloat *m);
5113 __attribute__((visibility("default"))) void glMatrixLoaddEXT (GLenum mode, const GLdouble *m);
5114 __attribute__((visibility("default"))) void glMatrixMultfEXT (GLenum mode, const GLfloat *m);
5115 __attribute__((visibility("default"))) void glMatrixMultdEXT (GLenum mode, const GLdouble *m);
5116 __attribute__((visibility("default"))) void glMatrixLoadIdentityEXT (GLenum mode);
5117 __attribute__((visibility("default"))) void glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
5118 __attribute__((visibility("default"))) void glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
5119 __attribute__((visibility("default"))) void glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
5120 __attribute__((visibility("default"))) void glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
5121 __attribute__((visibility("default"))) void glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
5122 __attribute__((visibility("default"))) void glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
5123 __attribute__((visibility("default"))) void glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
5124 __attribute__((visibility("default"))) void glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
5125 __attribute__((visibility("default"))) void glMatrixPopEXT (GLenum mode);
5126 __attribute__((visibility("default"))) void glMatrixPushEXT (GLenum mode);
5127 __attribute__((visibility("default"))) void glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m);
5128 __attribute__((visibility("default"))) void glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m);
5129 __attribute__((visibility("default"))) void glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m);
5130 __attribute__((visibility("default"))) void glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m);
5131 __attribute__((visibility("default"))) void glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param);
5132 __attribute__((visibility("default"))) void glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
5133 __attribute__((visibility("default"))) void glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param);
5134 __attribute__((visibility("default"))) void glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
5135 __attribute__((visibility("default"))) void glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5136 __attribute__((visibility("default"))) void glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5137 __attribute__((visibility("default"))) void glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
5138 __attribute__((visibility("default"))) void glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
5139 __attribute__((visibility("default"))) void glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
5140 __attribute__((visibility("default"))) void glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
5141 __attribute__((visibility("default"))) void glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
5142 __attribute__((visibility("default"))) void glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5143 __attribute__((visibility("default"))) void glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
5144 __attribute__((visibility("default"))) void glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
5145 __attribute__((visibility("default"))) void glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
5146 __attribute__((visibility("default"))) void glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
5147 __attribute__((visibility("default"))) void glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
5148 __attribute__((visibility("default"))) void glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5149 __attribute__((visibility("default"))) void glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
5150 __attribute__((visibility("default"))) void glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5151 __attribute__((visibility("default"))) void glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
5152 __attribute__((visibility("default"))) void glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
5153 __attribute__((visibility("default"))) void glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
5154 __attribute__((visibility("default"))) void glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
5155 __attribute__((visibility("default"))) void glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5156 __attribute__((visibility("default"))) void glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5157 __attribute__((visibility("default"))) void glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
5158 __attribute__((visibility("default"))) void glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
5159 __attribute__((visibility("default"))) void glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
5160 __attribute__((visibility("default"))) void glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
5161 __attribute__((visibility("default"))) void glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
5162 __attribute__((visibility("default"))) void glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5163 __attribute__((visibility("default"))) void glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
5164 __attribute__((visibility("default"))) void glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
5165 __attribute__((visibility("default"))) void glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
5166 __attribute__((visibility("default"))) void glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
5167 __attribute__((visibility("default"))) void glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
5168 __attribute__((visibility("default"))) void glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5169 __attribute__((visibility("default"))) void glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
5170 __attribute__((visibility("default"))) void glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5171 __attribute__((visibility("default"))) void glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture);
5172 __attribute__((visibility("default"))) void glEnableClientStateIndexedEXT (GLenum array, GLuint index);
5173 __attribute__((visibility("default"))) void glDisableClientStateIndexedEXT (GLenum array, GLuint index);
5174 __attribute__((visibility("default"))) void glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5175 __attribute__((visibility("default"))) void glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
5176 __attribute__((visibility("default"))) void glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
5177 __attribute__((visibility("default"))) void glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
5178 __attribute__((visibility("default"))) void glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
5179 __attribute__((visibility("default"))) void glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
5180 __attribute__((visibility("default"))) void glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
5181 __attribute__((visibility("default"))) void glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
5182 __attribute__((visibility("default"))) void glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
5183 __attribute__((visibility("default"))) void glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param);
5184 __attribute__((visibility("default"))) void glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
5185 __attribute__((visibility("default"))) void glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
5186 __attribute__((visibility("default"))) void glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
5187 __attribute__((visibility("default"))) void glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
5188 __attribute__((visibility("default"))) void glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
5189 __attribute__((visibility("default"))) void glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
5190 __attribute__((visibility("default"))) void glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data);
5191 __attribute__((visibility("default"))) void glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data);
5192 __attribute__((visibility("default"))) void glGetPointerIndexedvEXT (GLenum target, GLuint index, GLvoid* *data);
5193 __attribute__((visibility("default"))) void glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
5194 __attribute__((visibility("default"))) void glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
5195 __attribute__((visibility("default"))) void glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
5196 __attribute__((visibility("default"))) void glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
5197 __attribute__((visibility("default"))) void glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
5198 __attribute__((visibility("default"))) void glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
5199 __attribute__((visibility("default"))) void glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, GLvoid *img);
5200 __attribute__((visibility("default"))) void glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
5201 __attribute__((visibility("default"))) void glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
5202 __attribute__((visibility("default"))) void glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
5203 __attribute__((visibility("default"))) void glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
5204 __attribute__((visibility("default"))) void glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
5205 __attribute__((visibility("default"))) void glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
5206 __attribute__((visibility("default"))) void glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, GLvoid *img);
5207 __attribute__((visibility("default"))) void glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const GLvoid *string);
5208 __attribute__((visibility("default"))) void glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5209 __attribute__((visibility("default"))) void glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params);
5210 __attribute__((visibility("default"))) void glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5211 __attribute__((visibility("default"))) void glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params);
5212 __attribute__((visibility("default"))) void glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params);
5213 __attribute__((visibility("default"))) void glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params);
5214 __attribute__((visibility("default"))) void glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params);
5215 __attribute__((visibility("default"))) void glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, GLvoid *string);
5216 __attribute__((visibility("default"))) void glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
5217 __attribute__((visibility("default"))) void glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
5218 __attribute__((visibility("default"))) void glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params);
5219 __attribute__((visibility("default"))) void glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
5220 __attribute__((visibility("default"))) void glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
5221 __attribute__((visibility("default"))) void glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params);
5222 __attribute__((visibility("default"))) void glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
5223 __attribute__((visibility("default"))) void glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params);
5224 __attribute__((visibility("default"))) void glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params);
5225 __attribute__((visibility("default"))) void glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
5226 __attribute__((visibility("default"))) void glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
5227 __attribute__((visibility("default"))) void glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
5228 __attribute__((visibility("default"))) void glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params);
5229 __attribute__((visibility("default"))) void glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
5230 __attribute__((visibility("default"))) void glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
5231 __attribute__((visibility("default"))) void glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
5232 __attribute__((visibility("default"))) void glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
5233 __attribute__((visibility("default"))) void glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
5234 __attribute__((visibility("default"))) void glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
5235 __attribute__((visibility("default"))) void glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
5236 __attribute__((visibility("default"))) void glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
5237 __attribute__((visibility("default"))) void glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
5238 __attribute__((visibility("default"))) void glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
5239 __attribute__((visibility("default"))) void glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
5240 __attribute__((visibility("default"))) void glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
5241 __attribute__((visibility("default"))) void glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5242 __attribute__((visibility("default"))) void glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5243 __attribute__((visibility("default"))) void glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5244 __attribute__((visibility("default"))) void glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5245 __attribute__((visibility("default"))) void glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
5246 __attribute__((visibility("default"))) void glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
5247 __attribute__((visibility("default"))) void glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
5248 __attribute__((visibility("default"))) void glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
5249 __attribute__((visibility("default"))) void glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5250 __attribute__((visibility("default"))) void glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5251 __attribute__((visibility("default"))) void glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5252 __attribute__((visibility("default"))) void glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5253 __attribute__((visibility("default"))) void glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5254 __attribute__((visibility("default"))) void glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5255 __attribute__((visibility("default"))) void glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5256 __attribute__((visibility("default"))) void glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5257 __attribute__((visibility("default"))) void glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5258 __attribute__((visibility("default"))) void glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
5259 __attribute__((visibility("default"))) void glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
5260 __attribute__((visibility("default"))) void glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
5261 __attribute__((visibility("default"))) void glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
5262 __attribute__((visibility("default"))) void glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
5263 __attribute__((visibility("default"))) void glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
5264 __attribute__((visibility("default"))) void glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
5265 __attribute__((visibility("default"))) void glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
5266 __attribute__((visibility("default"))) void glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const GLvoid *data, GLenum usage);
5267 __attribute__((visibility("default"))) void glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const GLvoid *data);
5268 __attribute__((visibility("default"))) GLvoid* glMapNamedBufferEXT (GLuint buffer, GLenum access);
5269 __attribute__((visibility("default"))) GLboolean glUnmapNamedBufferEXT (GLuint buffer);
5270 __attribute__((visibility("default"))) GLvoid* glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
5271 __attribute__((visibility("default"))) void glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length);
5272 __attribute__((visibility("default"))) void glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
5273 __attribute__((visibility("default"))) void glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params);
5274 __attribute__((visibility("default"))) void glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, GLvoid* *params);
5275 __attribute__((visibility("default"))) void glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLvoid *data);
5276 __attribute__((visibility("default"))) void glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
5277 __attribute__((visibility("default"))) void glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
5278 __attribute__((visibility("default"))) void glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
5279 __attribute__((visibility("default"))) void glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params);
5280 __attribute__((visibility("default"))) GLenum glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target);
5281 __attribute__((visibility("default"))) void glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
5282 __attribute__((visibility("default"))) void glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
5283 __attribute__((visibility("default"))) void glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
5284 __attribute__((visibility("default"))) void glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
5285 __attribute__((visibility("default"))) void glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
5286 __attribute__((visibility("default"))) void glGenerateTextureMipmapEXT (GLuint texture, GLenum target);
5287 __attribute__((visibility("default"))) void glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target);
5288 __attribute__((visibility("default"))) void glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode);
5289 __attribute__((visibility("default"))) void glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs);
5290 __attribute__((visibility("default"))) void glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode);
5291 __attribute__((visibility("default"))) void glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
5292 __attribute__((visibility("default"))) void glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
5293 __attribute__((visibility("default"))) void glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
5294 __attribute__((visibility("default"))) void glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
5295 __attribute__((visibility("default"))) void glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
5296 __attribute__((visibility("default"))) void glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
5297 __attribute__((visibility("default"))) void glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer);
5298 __attribute__((visibility("default"))) void glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer);
5299 __attribute__((visibility("default"))) void glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x);
5300 __attribute__((visibility("default"))) void glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y);
5301 __attribute__((visibility("default"))) void glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
5302 __attribute__((visibility("default"))) void glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5303 __attribute__((visibility("default"))) void glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5304 __attribute__((visibility("default"))) void glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5305 __attribute__((visibility("default"))) void glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5306 __attribute__((visibility("default"))) void glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5307 __attribute__((visibility("default"))) void glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5308 __attribute__((visibility("default"))) void glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5309 __attribute__((visibility("default"))) void glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5310 __attribute__((visibility("default"))) void glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5311 __attribute__((visibility("default"))) void glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5312 __attribute__((visibility("default"))) void glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5313 __attribute__((visibility("default"))) void glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5314 __attribute__((visibility("default"))) void glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5315 __attribute__((visibility("default"))) void glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5317 typedef void ( * PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
5318 typedef void ( * PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
5319 typedef void ( * PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m);
5320 typedef void ( * PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m);
5321 typedef void ( * PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m);
5322 typedef void ( * PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m);
5323 typedef void ( * PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode);
5324 typedef void ( * PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
5325 typedef void ( * PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
5326 typedef void ( * PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
5327 typedef void ( * PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
5328 typedef void ( * PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
5329 typedef void ( * PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
5330 typedef void ( * PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
5331 typedef void ( * PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
5332 typedef void ( * PFNGLMATRIXPOPEXTPROC) (GLenum mode);
5333 typedef void ( * PFNGLMATRIXPUSHEXTPROC) (GLenum mode);
5334 typedef void ( * PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
5335 typedef void ( * PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
5336 typedef void ( * PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
5337 typedef void ( * PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
5338 typedef void ( * PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param);
5339 typedef void ( * PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
5340 typedef void ( * PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param);
5341 typedef void ( * PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
5342 typedef void ( * PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5343 typedef void ( * PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5344 typedef void ( * PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
5345 typedef void ( * PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
5346 typedef void ( * PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
5347 typedef void ( * PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
5348 typedef void ( * PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
5349 typedef void ( * PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5350 typedef void ( * PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
5351 typedef void ( * PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
5352 typedef void ( * PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
5353 typedef void ( * PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
5354 typedef void ( * PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
5355 typedef void ( * PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5356 typedef void ( * PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
5357 typedef void ( * PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5358 typedef void ( * PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
5359 typedef void ( * PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
5360 typedef void ( * PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
5361 typedef void ( * PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
5362 typedef void ( * PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5363 typedef void ( * PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5364 typedef void ( * PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
5365 typedef void ( * PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
5366 typedef void ( * PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
5367 typedef void ( * PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
5368 typedef void ( * PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
5369 typedef void ( * PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5370 typedef void ( * PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
5371 typedef void ( * PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
5372 typedef void ( * PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
5373 typedef void ( * PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
5374 typedef void ( * PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
5375 typedef void ( * PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
5376 typedef void ( * PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
5377 typedef void ( * PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5378 typedef void ( * PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture);
5379 typedef void ( * PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
5380 typedef void ( * PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
5381 typedef void ( * PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5382 typedef void ( * PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
5383 typedef void ( * PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
5384 typedef void ( * PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
5385 typedef void ( * PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
5386 typedef void ( * PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
5387 typedef void ( * PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
5388 typedef void ( * PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
5389 typedef void ( * PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
5390 typedef void ( * PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param);
5391 typedef void ( * PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
5392 typedef void ( * PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
5393 typedef void ( * PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
5394 typedef void ( * PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
5395 typedef void ( * PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
5396 typedef void ( * PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
5397 typedef void ( * PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data);
5398 typedef void ( * PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data);
5399 typedef void ( * PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLvoid* *data);
5400 typedef void ( * PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
5401 typedef void ( * PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
5402 typedef void ( * PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
5403 typedef void ( * PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
5404 typedef void ( * PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
5405 typedef void ( * PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
5406 typedef void ( * PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, GLvoid *img);
5407 typedef void ( * PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
5408 typedef void ( * PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
5409 typedef void ( * PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
5410 typedef void ( * PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
5411 typedef void ( * PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
5412 typedef void ( * PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
5413 typedef void ( * PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, GLvoid *img);
5414 typedef void ( * PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const GLvoid *string);
5415 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5416 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params);
5417 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5418 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params);
5419 typedef void ( * PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params);
5420 typedef void ( * PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params);
5421 typedef void ( * PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params);
5422 typedef void ( * PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, GLvoid *string);
5423 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
5424 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
5425 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params);
5426 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
5427 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
5428 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params);
5429 typedef void ( * PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
5430 typedef void ( * PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params);
5431 typedef void ( * PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params);
5432 typedef void ( * PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
5433 typedef void ( * PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
5434 typedef void ( * PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
5435 typedef void ( * PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params);
5436 typedef void ( * PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
5437 typedef void ( * PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
5438 typedef void ( * PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
5439 typedef void ( * PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
5440 typedef void ( * PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
5441 typedef void ( * PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
5442 typedef void ( * PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
5443 typedef void ( * PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
5444 typedef void ( * PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
5445 typedef void ( * PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
5446 typedef void ( * PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
5447 typedef void ( * PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
5448 typedef void ( * PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5449 typedef void ( * PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5450 typedef void ( * PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5451 typedef void ( * PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
5452 typedef void ( * PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
5453 typedef void ( * PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
5454 typedef void ( * PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
5455 typedef void ( * PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
5456 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5457 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5458 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5459 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5460 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5461 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5462 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5463 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5464 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
5465 typedef void ( * PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
5466 typedef void ( * PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
5467 typedef void ( * PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
5468 typedef void ( * PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
5469 typedef void ( * PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
5470 typedef void ( * PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
5471 typedef void ( * PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
5472 typedef void ( * PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
5473 typedef void ( * PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const GLvoid *data, GLenum usage);
5474 typedef void ( * PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const GLvoid *data);
5475 typedef GLvoid* ( * PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
5476 typedef GLboolean ( * PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer);
5477 typedef GLvoid* ( * PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
5478 typedef void ( * PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
5479 typedef void ( * PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
5480 typedef void ( * PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params);
5481 typedef void ( * PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, GLvoid* *params);
5482 typedef void ( * PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLvoid *data);
5483 typedef void ( * PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
5484 typedef void ( * PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
5485 typedef void ( * PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
5486 typedef void ( * PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
5487 typedef GLenum ( * PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target);
5488 typedef void ( * PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
5489 typedef void ( * PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
5490 typedef void ( * PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
5491 typedef void ( * PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
5492 typedef void ( * PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
5493 typedef void ( * PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target);
5494 typedef void ( * PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target);
5495 typedef void ( * PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
5496 typedef void ( * PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
5497 typedef void ( * PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
5498 typedef void ( * PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
5499 typedef void ( * PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
5500 typedef void ( * PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
5501 typedef void ( * PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
5502 typedef void ( * PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
5503 typedef void ( * PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
5504 typedef void ( * PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer);
5505 typedef void ( * PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer);
5506 typedef void ( * PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x);
5507 typedef void ( * PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y);
5508 typedef void ( * PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
5509 typedef void ( * PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5510 typedef void ( * PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5511 typedef void ( * PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5512 typedef void ( * PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5513 typedef void ( * PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
5514 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5515 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5516 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5517 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5518 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5519 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5520 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5521 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5522 typedef void ( * PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
5523 # 10533 "../../include/GL/glext.h"
5524 __attribute__((visibility("default"))) void glGetMultisamplefvNV (GLenum pname, GLuint index, GLfloat *val);
5525 __attribute__((visibility("default"))) void glSampleMaskIndexedNV (GLuint index, GLbitfield mask);
5526 __attribute__((visibility("default"))) void glTexRenderbufferNV (GLenum target, GLuint renderbuffer);
5528 typedef void ( * PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat *val);
5529 typedef void ( * PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask);
5530 typedef void ( * PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer);
5536 __attribute__((visibility("default"))) void glBindTransformFeedbackNV (GLenum target, GLuint id);
5537 __attribute__((visibility("default"))) void glDeleteTransformFeedbacksNV (GLsizei n, const GLuint *ids);
5538 __attribute__((visibility("default"))) void glGenTransformFeedbacksNV (GLsizei n, GLuint *ids);
5539 __attribute__((visibility("default"))) GLboolean glIsTransformFeedbackNV (GLuint id);
5540 __attribute__((visibility("default"))) void glPauseTransformFeedbackNV (void);
5541 __attribute__((visibility("default"))) void glResumeTransformFeedbackNV (void);
5542 __attribute__((visibility("default"))) void glDrawTransformFeedbackNV (GLenum mode, GLuint id);
5544 typedef void ( * PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id);
5545 typedef void ( * PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint *ids);
5546 typedef void ( * PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint *ids);
5547 typedef GLboolean ( * PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id);
5548 typedef void ( * PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void);
5549 typedef void ( * PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void);
5550 typedef void ( * PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id);
5551 # 10569 "../../include/GL/glext.h"
5552 __attribute__((visibility("default"))) void glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
5553 __attribute__((visibility("default"))) void glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
5554 __attribute__((visibility("default"))) void glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
5555 __attribute__((visibility("default"))) void glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
5556 __attribute__((visibility("default"))) void glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
5557 __attribute__((visibility("default"))) void glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
5558 __attribute__((visibility("default"))) void glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
5559 __attribute__((visibility("default"))) void glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
5560 __attribute__((visibility("default"))) void glBeginPerfMonitorAMD (GLuint monitor);
5561 __attribute__((visibility("default"))) void glEndPerfMonitorAMD (GLuint monitor);
5562 __attribute__((visibility("default"))) void glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
5564 typedef void ( * PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
5565 typedef void ( * PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
5566 typedef void ( * PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
5567 typedef void ( * PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
5568 typedef void ( * PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
5569 typedef void ( * PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
5570 typedef void ( * PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
5571 typedef void ( * PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
5572 typedef void ( * PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
5573 typedef void ( * PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
5574 typedef void ( * PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
5575 # 10601 "../../include/GL/glext.h"
5576 __attribute__((visibility("default"))) void glTessellationFactorAMD (GLfloat factor);
5577 __attribute__((visibility("default"))) void glTessellationModeAMD (GLenum mode);
5579 typedef void ( * PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
5580 typedef void ( * PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
5586 __attribute__((visibility("default"))) void glProvokingVertexEXT (GLenum mode);
5588 typedef void ( * PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode);
5589 # 10623 "../../include/GL/glext.h"
5590 __attribute__((visibility("default"))) void glBlendFuncIndexedAMD (GLuint buf, GLenum src, GLenum dst);
5591 __attribute__((visibility("default"))) void glBlendFuncSeparateIndexedAMD (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
5592 __attribute__((visibility("default"))) void glBlendEquationIndexedAMD (GLuint buf, GLenum mode);
5593 __attribute__((visibility("default"))) void glBlendEquationSeparateIndexedAMD (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
5595 typedef void ( * PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
5596 typedef void ( * PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
5597 typedef void ( * PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
5598 typedef void ( * PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
5604 __attribute__((visibility("default"))) void glTextureRangeAPPLE (GLenum target, GLsizei length, const GLvoid *pointer);
5605 __attribute__((visibility("default"))) void glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, GLvoid* *params);
5607 typedef void ( * PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const GLvoid *pointer);
5608 typedef void ( * PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid* *params);
5609 # 10651 "../../include/GL/glext.h"
5610 __attribute__((visibility("default"))) void glEnableVertexAttribAPPLE (GLuint index, GLenum pname);
5611 __attribute__((visibility("default"))) void glDisableVertexAttribAPPLE (GLuint index, GLenum pname);
5612 __attribute__((visibility("default"))) GLboolean glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname);
5613 __attribute__((visibility("default"))) void glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
5614 __attribute__((visibility("default"))) void glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
5615 __attribute__((visibility("default"))) void glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
5616 __attribute__((visibility("default"))) void glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
5618 typedef void ( * PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
5619 typedef void ( * PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
5620 typedef GLboolean ( * PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
5621 typedef void ( * PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
5622 typedef void ( * PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
5623 typedef void ( * PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
5624 typedef void ( * PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
5625 # 10675 "../../include/GL/glext.h"
5626 __attribute__((visibility("default"))) GLenum glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
5627 __attribute__((visibility("default"))) GLenum glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
5628 __attribute__((visibility("default"))) void glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint *params);
5630 typedef GLenum ( * PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
5631 typedef GLenum ( * PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
5632 typedef void ( * PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params);
5633 # 10695 "../../include/GL/glext.h"
5634 __attribute__((visibility("default"))) void glBeginVideoCaptureNV (GLuint video_capture_slot);
5635 __attribute__((visibility("default"))) void glBindVideoCaptureStreamBufferNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
5636 __attribute__((visibility("default"))) void glBindVideoCaptureStreamTextureNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
5637 __attribute__((visibility("default"))) void glEndVideoCaptureNV (GLuint video_capture_slot);
5638 __attribute__((visibility("default"))) void glGetVideoCaptureivNV (GLuint video_capture_slot, GLenum pname, GLint *params);
5639 __attribute__((visibility("default"))) void glGetVideoCaptureStreamivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
5640 __attribute__((visibility("default"))) void glGetVideoCaptureStreamfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
5641 __attribute__((visibility("default"))) void glGetVideoCaptureStreamdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
5642 __attribute__((visibility("default"))) GLenum glVideoCaptureNV (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
5643 __attribute__((visibility("default"))) void glVideoCaptureStreamParameterivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
5644 __attribute__((visibility("default"))) void glVideoCaptureStreamParameterfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
5645 __attribute__((visibility("default"))) void glVideoCaptureStreamParameterdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
5647 typedef void ( * PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
5648 typedef void ( * PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
5649 typedef void ( * PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
5650 typedef void ( * PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
5651 typedef void ( * PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params);
5652 typedef void ( * PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
5653 typedef void ( * PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
5654 typedef void ( * PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
5655 typedef GLenum ( * PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
5656 typedef void ( * PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
5657 typedef void ( * PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
5658 typedef void ( * PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
5664 __attribute__((visibility("default"))) void glCopyImageSubDataNV (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
5666 typedef void ( * PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
5672 __attribute__((visibility("default"))) void glUseShaderProgramEXT (GLenum type, GLuint program);
5673 __attribute__((visibility("default"))) void glActiveProgramEXT (GLuint program);
5674 __attribute__((visibility("default"))) GLuint glCreateShaderProgramEXT (GLenum type, const GLchar *string);
5676 typedef void ( * PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program);
5677 typedef void ( * PFNGLACTIVEPROGRAMEXTPROC) (GLuint program);
5678 typedef GLuint ( * PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string);
5679 # 10749 "../../include/GL/glext.h"
5680 __attribute__((visibility("default"))) void glMakeBufferResidentNV (GLenum target, GLenum access);
5681 __attribute__((visibility("default"))) void glMakeBufferNonResidentNV (GLenum target);
5682 __attribute__((visibility("default"))) GLboolean glIsBufferResidentNV (GLenum target);
5683 __attribute__((visibility("default"))) void glMakeNamedBufferResidentNV (GLuint buffer, GLenum access);
5684 __attribute__((visibility("default"))) void glMakeNamedBufferNonResidentNV (GLuint buffer);
5685 __attribute__((visibility("default"))) GLboolean glIsNamedBufferResidentNV (GLuint buffer);
5686 __attribute__((visibility("default"))) void glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params);
5687 __attribute__((visibility("default"))) void glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params);
5688 __attribute__((visibility("default"))) void glGetIntegerui64vNV (GLenum value, GLuint64EXT *result);
5689 __attribute__((visibility("default"))) void glUniformui64NV (GLint location, GLuint64EXT value);
5690 __attribute__((visibility("default"))) void glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
5691 __attribute__((visibility("default"))) void glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params);
5692 __attribute__((visibility("default"))) void glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value);
5693 __attribute__((visibility("default"))) void glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5695 typedef void ( * PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
5696 typedef void ( * PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target);
5697 typedef GLboolean ( * PFNGLISBUFFERRESIDENTNVPROC) (GLenum target);
5698 typedef void ( * PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
5699 typedef void ( * PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer);
5700 typedef GLboolean ( * PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer);
5701 typedef void ( * PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params);
5702 typedef void ( * PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params);
5703 typedef void ( * PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result);
5704 typedef void ( * PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value);
5705 typedef void ( * PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
5706 typedef void ( * PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
5707 typedef void ( * PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value);
5708 typedef void ( * PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5714 __attribute__((visibility("default"))) void glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
5715 __attribute__((visibility("default"))) void glVertexFormatNV (GLint size, GLenum type, GLsizei stride);
5716 __attribute__((visibility("default"))) void glNormalFormatNV (GLenum type, GLsizei stride);
5717 __attribute__((visibility("default"))) void glColorFormatNV (GLint size, GLenum type, GLsizei stride);
5718 __attribute__((visibility("default"))) void glIndexFormatNV (GLenum type, GLsizei stride);
5719 __attribute__((visibility("default"))) void glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride);
5720 __attribute__((visibility("default"))) void glEdgeFlagFormatNV (GLsizei stride);
5721 __attribute__((visibility("default"))) void glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride);
5722 __attribute__((visibility("default"))) void glFogCoordFormatNV (GLenum type, GLsizei stride);
5723 __attribute__((visibility("default"))) void glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
5724 __attribute__((visibility("default"))) void glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
5725 __attribute__((visibility("default"))) void glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result);
5727 typedef void ( * PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
5728 typedef void ( * PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
5729 typedef void ( * PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride);
5730 typedef void ( * PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
5731 typedef void ( * PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride);
5732 typedef void ( * PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
5733 typedef void ( * PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride);
5734 typedef void ( * PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
5735 typedef void ( * PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride);
5736 typedef void ( * PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
5737 typedef void ( * PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
5738 typedef void ( * PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result);
5744 __attribute__((visibility("default"))) void glTextureBarrierNV (void);
5746 typedef void ( * PFNGLTEXTUREBARRIERNVPROC) (void);
5747 # 10833 "../../include/GL/glext.h"
5748 __attribute__((visibility("default"))) void glBindImageTextureEXT (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
5749 __attribute__((visibility("default"))) void glMemoryBarrierEXT (GLbitfield barriers);
5751 typedef void ( * PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
5752 typedef void ( * PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers);
5758 __attribute__((visibility("default"))) void glVertexAttribL1dEXT (GLuint index, GLdouble x);
5759 __attribute__((visibility("default"))) void glVertexAttribL2dEXT (GLuint index, GLdouble x, GLdouble y);
5760 __attribute__((visibility("default"))) void glVertexAttribL3dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z);
5761 __attribute__((visibility("default"))) void glVertexAttribL4dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5762 __attribute__((visibility("default"))) void glVertexAttribL1dvEXT (GLuint index, const GLdouble *v);
5763 __attribute__((visibility("default"))) void glVertexAttribL2dvEXT (GLuint index, const GLdouble *v);
5764 __attribute__((visibility("default"))) void glVertexAttribL3dvEXT (GLuint index, const GLdouble *v);
5765 __attribute__((visibility("default"))) void glVertexAttribL4dvEXT (GLuint index, const GLdouble *v);
5766 __attribute__((visibility("default"))) void glVertexAttribLPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5767 __attribute__((visibility("default"))) void glGetVertexAttribLdvEXT (GLuint index, GLenum pname, GLdouble *params);
5768 __attribute__((visibility("default"))) void glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
5770 typedef void ( * PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x);
5771 typedef void ( * PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y);
5772 typedef void ( * PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
5773 typedef void ( * PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5774 typedef void ( * PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble *v);
5775 typedef void ( * PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble *v);
5776 typedef void ( * PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble *v);
5777 typedef void ( * PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble *v);
5778 typedef void ( * PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
5779 typedef void ( * PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble *params);
5780 typedef void ( * PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
5786 __attribute__((visibility("default"))) void glProgramSubroutineParametersuivNV (GLenum target, GLsizei count, const GLuint *params);
5787 __attribute__((visibility("default"))) void glGetProgramSubroutineParameteruivNV (GLenum target, GLuint index, GLuint *param);
5789 typedef void ( * PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC) (GLenum target, GLsizei count, const GLuint *params);
5790 typedef void ( * PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC) (GLenum target, GLuint index, GLuint *param);
5796 __attribute__((visibility("default"))) void glUniform1i64NV (GLint location, GLint64EXT x);
5797 __attribute__((visibility("default"))) void glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
5798 __attribute__((visibility("default"))) void glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
5799 __attribute__((visibility("default"))) void glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
5800 __attribute__((visibility("default"))) void glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
5801 __attribute__((visibility("default"))) void glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
5802 __attribute__((visibility("default"))) void glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
5803 __attribute__((visibility("default"))) void glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
5804 __attribute__((visibility("default"))) void glUniform1ui64NV (GLint location, GLuint64EXT x);
5805 __attribute__((visibility("default"))) void glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
5806 __attribute__((visibility("default"))) void glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
5807 __attribute__((visibility("default"))) void glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
5808 __attribute__((visibility("default"))) void glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
5809 __attribute__((visibility("default"))) void glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
5810 __attribute__((visibility("default"))) void glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
5811 __attribute__((visibility("default"))) void glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
5812 __attribute__((visibility("default"))) void glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
5813 __attribute__((visibility("default"))) void glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
5814 __attribute__((visibility("default"))) void glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
5815 __attribute__((visibility("default"))) void glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
5816 __attribute__((visibility("default"))) void glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
5817 __attribute__((visibility("default"))) void glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5818 __attribute__((visibility("default"))) void glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5819 __attribute__((visibility("default"))) void glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5820 __attribute__((visibility("default"))) void glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5821 __attribute__((visibility("default"))) void glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
5822 __attribute__((visibility("default"))) void glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
5823 __attribute__((visibility("default"))) void glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
5824 __attribute__((visibility("default"))) void glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
5825 __attribute__((visibility("default"))) void glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5826 __attribute__((visibility("default"))) void glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5827 __attribute__((visibility("default"))) void glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5828 __attribute__((visibility("default"))) void glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5830 typedef void ( * PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
5831 typedef void ( * PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
5832 typedef void ( * PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
5833 typedef void ( * PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
5834 typedef void ( * PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
5835 typedef void ( * PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
5836 typedef void ( * PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
5837 typedef void ( * PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
5838 typedef void ( * PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
5839 typedef void ( * PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
5840 typedef void ( * PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
5841 typedef void ( * PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
5842 typedef void ( * PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
5843 typedef void ( * PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
5844 typedef void ( * PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
5845 typedef void ( * PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
5846 typedef void ( * PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
5847 typedef void ( * PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
5848 typedef void ( * PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
5849 typedef void ( * PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
5850 typedef void ( * PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
5851 typedef void ( * PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5852 typedef void ( * PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5853 typedef void ( * PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5854 typedef void ( * PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
5855 typedef void ( * PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
5856 typedef void ( * PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
5857 typedef void ( * PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
5858 typedef void ( * PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
5859 typedef void ( * PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5860 typedef void ( * PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5861 typedef void ( * PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5862 typedef void ( * PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
5863 # 10961 "../../include/GL/glext.h"
5864 __attribute__((visibility("default"))) void glVertexAttribL1i64NV (GLuint index, GLint64EXT x);
5865 __attribute__((visibility("default"))) void glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y);
5866 __attribute__((visibility("default"))) void glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
5867 __attribute__((visibility("default"))) void glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
5868 __attribute__((visibility("default"))) void glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v);
5869 __attribute__((visibility("default"))) void glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v);
5870 __attribute__((visibility("default"))) void glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v);
5871 __attribute__((visibility("default"))) void glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v);
5872 __attribute__((visibility("default"))) void glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x);
5873 __attribute__((visibility("default"))) void glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y);
5874 __attribute__((visibility("default"))) void glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
5875 __attribute__((visibility("default"))) void glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
5876 __attribute__((visibility("default"))) void glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v);
5877 __attribute__((visibility("default"))) void glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v);
5878 __attribute__((visibility("default"))) void glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v);
5879 __attribute__((visibility("default"))) void glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v);
5880 __attribute__((visibility("default"))) void glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params);
5881 __attribute__((visibility("default"))) void glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params);
5882 __attribute__((visibility("default"))) void glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
5884 typedef void ( * PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x);
5885 typedef void ( * PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y);
5886 typedef void ( * PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
5887 typedef void ( * PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
5888 typedef void ( * PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v);
5889 typedef void ( * PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v);
5890 typedef void ( * PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v);
5891 typedef void ( * PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v);
5892 typedef void ( * PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x);
5893 typedef void ( * PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y);
5894 typedef void ( * PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
5895 typedef void ( * PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
5896 typedef void ( * PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
5897 typedef void ( * PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
5898 typedef void ( * PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
5899 typedef void ( * PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
5900 typedef void ( * PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params);
5901 typedef void ( * PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
5902 typedef void ( * PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
5903 # 11009 "../../include/GL/glext.h"
5904 __attribute__((visibility("default"))) void glGenNamesAMD (GLenum identifier, GLuint num, GLuint *names);
5905 __attribute__((visibility("default"))) void glDeleteNamesAMD (GLenum identifier, GLuint num, const GLuint *names);
5906 __attribute__((visibility("default"))) GLboolean glIsNameAMD (GLenum identifier, GLuint name);
5908 typedef void ( * PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint *names);
5909 typedef void ( * PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint *names);
5910 typedef GLboolean ( * PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name);
5916 __attribute__((visibility("default"))) void glDebugMessageEnableAMD (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
5917 __attribute__((visibility("default"))) void glDebugMessageInsertAMD (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
5918 __attribute__((visibility("default"))) void glDebugMessageCallbackAMD (GLDEBUGPROCAMD callback, GLvoid *userParam);
5919 __attribute__((visibility("default"))) GLuint glGetDebugMessageLogAMD (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
5921 typedef void ( * PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
5922 typedef void ( * PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
5923 typedef void ( * PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, GLvoid *userParam);
5924 typedef GLuint ( * PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
5930 __attribute__((visibility("default"))) void glVDPAUInitNV (const GLvoid *vdpDevice, const GLvoid *getProcAddress);
5931 __attribute__((visibility("default"))) void glVDPAUFiniNV (void);
5932 __attribute__((visibility("default"))) GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceNV (GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
5933 __attribute__((visibility("default"))) GLvdpauSurfaceNV glVDPAURegisterOutputSurfaceNV (GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
5934 __attribute__((visibility("default"))) void glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface);
5935 __attribute__((visibility("default"))) void glVDPAUUnregisterSurfaceNV (GLvdpauSurfaceNV surface);
5936 __attribute__((visibility("default"))) void glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
5937 __attribute__((visibility("default"))) void glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access);
5938 __attribute__((visibility("default"))) void glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
5939 __attribute__((visibility("default"))) void glVDPAUUnmapSurfacesNV (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
5941 typedef void ( * PFNGLVDPAUINITNVPROC) (const GLvoid *vdpDevice, const GLvoid *getProcAddress);
5942 typedef void ( * PFNGLVDPAUFININVPROC) (void);
5943 typedef GLvdpauSurfaceNV ( * PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
5944 typedef GLvdpauSurfaceNV ( * PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
5945 typedef void ( * PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface);
5946 typedef void ( * PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface);
5947 typedef void ( * PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
5948 typedef void ( * PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
5949 typedef void ( * PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
5950 typedef void ( * PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
5951 # 11073 "../../include/GL/glext.h"
5952 __attribute__((visibility("default"))) void glTexImage2DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
5953 __attribute__((visibility("default"))) void glTexImage3DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
5954 __attribute__((visibility("default"))) void glTextureImage2DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
5955 __attribute__((visibility("default"))) void glTextureImage3DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
5956 __attribute__((visibility("default"))) void glTextureImage2DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
5957 __attribute__((visibility("default"))) void glTextureImage3DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
5959 typedef void ( * PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
5960 typedef void ( * PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
5961 typedef void ( * PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
5962 typedef void ( * PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
5963 typedef void ( * PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
5964 typedef void ( * PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
5965 # 11095 "../../include/GL/glext.h"
5966 __attribute__((visibility("default"))) void glSetMultisamplefvAMD (GLenum pname, GLuint index, const GLfloat *val);
5968 typedef void ( * PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat *val);
5974 __attribute__((visibility("default"))) GLsync glImportSyncEXT (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
5976 typedef GLsync ( * PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
5982 __attribute__((visibility("default"))) void glMultiDrawArraysIndirectAMD (GLenum mode, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
5983 __attribute__((visibility("default"))) void glMultiDrawElementsIndirectAMD (GLenum mode, GLenum type, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
5985 typedef void ( * PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
5986 typedef void ( * PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
5987 # 2092 "../../include/GL/gl.h" 2
5988 # 2106 "../../include/GL/gl.h"
5989 __attribute__((visibility("default"))) GLhandleARB glCreateDebugObjectMESA (void);
5990 __attribute__((visibility("default"))) void glClearDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType);
5991 __attribute__((visibility("default"))) void glGetDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType, GLsizei maxLength,
5992 GLsizei *length, GLcharARB *debugLog);
5993 __attribute__((visibility("default"))) GLsizei glGetDebugLogLengthMESA (GLhandleARB obj, GLenum logType, GLenum shaderType);
5994 # 2145 "../../include/GL/gl.h"
5995 typedef void (*GLprogramcallbackMESA)(GLenum target, GLvoid *data);
5997 __attribute__((visibility("default"))) void glProgramCallbackMESA(GLenum target, GLprogramcallbackMESA callback, GLvoid *data);
5999 __attribute__((visibility("default"))) void glGetProgramRegisterfvMESA(GLenum target, GLsizei len, const GLubyte *name, GLfloat *v);
6000 # 2192 "../../include/GL/gl.h"
6001 __attribute__((visibility("default"))) void glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA );
6002 typedef void ( * PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA);
6009 typedef void* GLeglImageOES;
6015 __attribute__((visibility("default"))) void glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
6016 __attribute__((visibility("default"))) void glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
6018 typedef void ( * PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
6019 typedef void ( * PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
6020 # 54 "../../src/mesa/main/glheader.h" 2
6027 typedef int GLfixed;
6028 typedef int GLclampx;
6029 # 33 "swrast/s_triangle.c" 2
6030 # 1 "../../src/mesa/main/context.h" 1
6031 # 52 "../../src/mesa/main/context.h"
6032 # 1 "../../src/mesa/main/imports.h" 1
6033 # 39 "../../src/mesa/main/imports.h"
6034 # 1 "../../src/mesa/main/compiler.h" 1
6035 # 37 "../../src/mesa/main/compiler.h"
6036 # 1 "/usr/include/assert.h" 1 3 4
6037 # 66 "/usr/include/assert.h" 3 4
6041 extern void __assert_fail (__const char *__assertion, __const char *__file,
6042 unsigned int __line, __const char *__function)
6043 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
6046 extern void __assert_perror_fail (int __errnum, __const char *__file,
6047 unsigned int __line,
6048 __const char *__function)
6049 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
6054 extern void __assert (const char *__assertion, const char *__file, int __line)
6055 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
6059 # 38 "../../src/mesa/main/compiler.h" 2
6060 # 1 "/usr/include/ctype.h" 1 3 4
6061 # 28 "/usr/include/ctype.h" 3 4
6062 # 1 "/usr/include/bits/types.h" 1 3 4
6063 # 28 "/usr/include/bits/types.h" 3 4
6064 # 1 "/usr/include/bits/wordsize.h" 1 3 4
6065 # 29 "/usr/include/bits/types.h" 2 3 4
6068 typedef unsigned char __u_char;
6069 typedef unsigned short int __u_short;
6070 typedef unsigned int __u_int;
6071 typedef unsigned long int __u_long;
6074 typedef signed char __int8_t;
6075 typedef unsigned char __uint8_t;
6076 typedef signed short int __int16_t;
6077 typedef unsigned short int __uint16_t;
6078 typedef signed int __int32_t;
6079 typedef unsigned int __uint32_t;
6084 __extension__ typedef signed long long int __int64_t;
6085 __extension__ typedef unsigned long long int __uint64_t;
6093 __extension__ typedef long long int __quad_t;
6094 __extension__ typedef unsigned long long int __u_quad_t;
6095 # 131 "/usr/include/bits/types.h" 3 4
6096 # 1 "/usr/include/bits/typesizes.h" 1 3 4
6097 # 132 "/usr/include/bits/types.h" 2 3 4
6100 __extension__ typedef __u_quad_t __dev_t;
6101 __extension__ typedef unsigned int __uid_t;
6102 __extension__ typedef unsigned int __gid_t;
6103 __extension__ typedef unsigned long int __ino_t;
6104 __extension__ typedef __u_quad_t __ino64_t;
6105 __extension__ typedef unsigned int __mode_t;
6106 __extension__ typedef unsigned int __nlink_t;
6107 __extension__ typedef long int __off_t;
6108 __extension__ typedef __quad_t __off64_t;
6109 __extension__ typedef int __pid_t;
6110 __extension__ typedef struct { int __val[2]; } __fsid_t;
6111 __extension__ typedef long int __clock_t;
6112 __extension__ typedef unsigned long int __rlim_t;
6113 __extension__ typedef __u_quad_t __rlim64_t;
6114 __extension__ typedef unsigned int __id_t;
6115 __extension__ typedef long int __time_t;
6116 __extension__ typedef unsigned int __useconds_t;
6117 __extension__ typedef long int __suseconds_t;
6119 __extension__ typedef int __daddr_t;
6120 __extension__ typedef long int __swblk_t;
6121 __extension__ typedef int __key_t;
6124 __extension__ typedef int __clockid_t;
6127 __extension__ typedef void * __timer_t;
6130 __extension__ typedef long int __blksize_t;
6135 __extension__ typedef long int __blkcnt_t;
6136 __extension__ typedef __quad_t __blkcnt64_t;
6139 __extension__ typedef unsigned long int __fsblkcnt_t;
6140 __extension__ typedef __u_quad_t __fsblkcnt64_t;
6143 __extension__ typedef unsigned long int __fsfilcnt_t;
6144 __extension__ typedef __u_quad_t __fsfilcnt64_t;
6146 __extension__ typedef int __ssize_t;
6150 typedef __off64_t __loff_t;
6151 typedef __quad_t *__qaddr_t;
6152 typedef char *__caddr_t;
6155 __extension__ typedef int __intptr_t;
6158 __extension__ typedef unsigned int __socklen_t;
6159 # 29 "/usr/include/ctype.h" 2 3 4
6162 # 41 "/usr/include/ctype.h" 3 4
6163 # 1 "/usr/include/endian.h" 1 3 4
6164 # 37 "/usr/include/endian.h" 3 4
6165 # 1 "/usr/include/bits/endian.h" 1 3 4
6166 # 38 "/usr/include/endian.h" 2 3 4
6167 # 61 "/usr/include/endian.h" 3 4
6168 # 1 "/usr/include/bits/byteswap.h" 1 3 4
6169 # 62 "/usr/include/endian.h" 2 3 4
6170 # 42 "/usr/include/ctype.h" 2 3 4
6179 _ISupper = (1 << (0)),
6180 _ISlower = (1 << (1)),
6181 _ISalpha = (1 << (2)),
6182 _ISdigit = (1 << (3)),
6183 _ISxdigit = (1 << (4)),
6184 _ISspace = (1 << (5)),
6185 _ISprint = (1 << (6)),
6186 _ISgraph = (1 << (7)),
6187 _ISblank = (1 << (8)),
6188 _IScntrl = (1 << (9)),
6189 _ISpunct = (1 << (10)),
6190 _ISalnum = (1 << (11))
6192 # 81 "/usr/include/ctype.h" 3 4
6193 extern __const unsigned short int **__ctype_b_loc (void)
6194 __attribute__ ((__nothrow__)) __attribute__ ((__const));
6195 extern __const __int32_t **__ctype_tolower_loc (void)
6196 __attribute__ ((__nothrow__)) __attribute__ ((__const));
6197 extern __const __int32_t **__ctype_toupper_loc (void)
6198 __attribute__ ((__nothrow__)) __attribute__ ((__const));
6199 # 96 "/usr/include/ctype.h" 3 4
6206 extern int isalnum (int) __attribute__ ((__nothrow__));
6207 extern int isalpha (int) __attribute__ ((__nothrow__));
6208 extern int iscntrl (int) __attribute__ ((__nothrow__));
6209 extern int isdigit (int) __attribute__ ((__nothrow__));
6210 extern int islower (int) __attribute__ ((__nothrow__));
6211 extern int isgraph (int) __attribute__ ((__nothrow__));
6212 extern int isprint (int) __attribute__ ((__nothrow__));
6213 extern int ispunct (int) __attribute__ ((__nothrow__));
6214 extern int isspace (int) __attribute__ ((__nothrow__));
6215 extern int isupper (int) __attribute__ ((__nothrow__));
6216 extern int isxdigit (int) __attribute__ ((__nothrow__));
6220 extern int tolower (int __c) __attribute__ ((__nothrow__));
6223 extern int toupper (int __c) __attribute__ ((__nothrow__));
6232 extern int isblank (int) __attribute__ ((__nothrow__));
6239 extern int isctype (int __c, int __mask) __attribute__ ((__nothrow__));
6246 extern int isascii (int __c) __attribute__ ((__nothrow__));
6250 extern int toascii (int __c) __attribute__ ((__nothrow__));
6254 extern int _toupper (int) __attribute__ ((__nothrow__));
6255 extern int _tolower (int) __attribute__ ((__nothrow__));
6256 # 190 "/usr/include/ctype.h" 3 4
6257 extern __inline __attribute__ ((__gnu_inline__)) int
6258 __attribute__ ((__nothrow__)) tolower (int __c)
6260 return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c;
6263 extern __inline __attribute__ ((__gnu_inline__)) int
6264 __attribute__ ((__nothrow__)) toupper (int __c)
6266 return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c;
6268 # 233 "/usr/include/ctype.h" 3 4
6269 # 1 "/usr/include/xlocale.h" 1 3 4
6270 # 28 "/usr/include/xlocale.h" 3 4
6271 typedef struct __locale_struct
6274 struct __locale_data *__locales[13];
6277 const unsigned short int *__ctype_b;
6278 const int *__ctype_tolower;
6279 const int *__ctype_toupper;
6282 const char *__names[13];
6286 typedef __locale_t locale_t;
6287 # 234 "/usr/include/ctype.h" 2 3 4
6288 # 247 "/usr/include/ctype.h" 3 4
6289 extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__));
6290 extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__));
6291 extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__));
6292 extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
6293 extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__));
6294 extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__));
6295 extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__));
6296 extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__));
6297 extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__));
6298 extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__));
6299 extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
6301 extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__));
6305 extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
6306 extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
6309 extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
6310 extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
6311 # 323 "/usr/include/ctype.h" 3 4
6313 # 39 "../../src/mesa/main/compiler.h" 2
6317 # 1 "/usr/include/math.h" 1 3 4
6318 # 30 "/usr/include/math.h" 3 4
6323 # 1 "/usr/include/bits/huge_val.h" 1 3 4
6324 # 35 "/usr/include/math.h" 2 3 4
6326 # 1 "/usr/include/bits/huge_valf.h" 1 3 4
6327 # 37 "/usr/include/math.h" 2 3 4
6328 # 1 "/usr/include/bits/huge_vall.h" 1 3 4
6329 # 38 "/usr/include/math.h" 2 3 4
6332 # 1 "/usr/include/bits/inf.h" 1 3 4
6333 # 41 "/usr/include/math.h" 2 3 4
6336 # 1 "/usr/include/bits/nan.h" 1 3 4
6337 # 44 "/usr/include/math.h" 2 3 4
6341 # 1 "/usr/include/bits/mathdef.h" 1 3 4
6342 # 27 "/usr/include/bits/mathdef.h" 3 4
6343 typedef float float_t;
6345 typedef double double_t;
6346 # 48 "/usr/include/math.h" 2 3 4
6347 # 71 "/usr/include/math.h" 3 4
6348 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
6349 # 53 "/usr/include/bits/mathcalls.h" 3 4
6352 extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
6354 extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
6356 extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
6358 extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
6361 extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
6363 extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
6365 extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
6370 extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
6372 extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
6374 extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
6379 extern void sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); extern void __sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__))
6386 extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
6388 extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
6390 extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
6398 extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
6401 extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
6404 extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
6407 extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
6410 extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
6413 extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
6418 extern double exp10 (double __x) __attribute__ ((__nothrow__)); extern double __exp10 (double __x) __attribute__ ((__nothrow__));
6420 extern double pow10 (double __x) __attribute__ ((__nothrow__)); extern double __pow10 (double __x) __attribute__ ((__nothrow__));
6426 extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
6429 extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
6432 extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
6439 extern double exp2 (double __x) __attribute__ ((__nothrow__)); extern double __exp2 (double __x) __attribute__ ((__nothrow__));
6442 extern double log2 (double __x) __attribute__ ((__nothrow__)); extern double __log2 (double __x) __attribute__ ((__nothrow__));
6451 extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
6454 extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
6460 extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
6467 extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
6476 extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6479 extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6482 extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6485 extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
6490 extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6493 extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6499 extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6502 extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6505 extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
6509 extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
6515 extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6522 extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6528 extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6532 extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6535 extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
6536 extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
6537 extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
6538 extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
6539 extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
6540 extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
6547 extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
6548 extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
6549 extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
6556 extern double tgamma (double) __attribute__ ((__nothrow__)); extern double __tgamma (double) __attribute__ ((__nothrow__));
6562 extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
6569 extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
6577 extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
6580 extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6582 extern double nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6586 extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
6590 extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
6594 extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
6599 extern double scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double __scalbln (double __x, long int __n) __attribute__ ((__nothrow__));
6603 extern double nearbyint (double __x) __attribute__ ((__nothrow__)); extern double __nearbyint (double __x) __attribute__ ((__nothrow__));
6607 extern double round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6611 extern double trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6616 extern double remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern double __remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__));
6623 extern long int lrint (double __x) __attribute__ ((__nothrow__)); extern long int __lrint (double __x) __attribute__ ((__nothrow__));
6624 extern long long int llrint (double __x) __attribute__ ((__nothrow__)); extern long long int __llrint (double __x) __attribute__ ((__nothrow__));
6628 extern long int lround (double __x) __attribute__ ((__nothrow__)); extern long int __lround (double __x) __attribute__ ((__nothrow__));
6629 extern long long int llround (double __x) __attribute__ ((__nothrow__)); extern long long int __llround (double __x) __attribute__ ((__nothrow__));
6633 extern double fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fdim (double __x, double __y) __attribute__ ((__nothrow__));
6636 extern double fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmax (double __x, double __y) __attribute__ ((__nothrow__));
6639 extern double fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmin (double __x, double __y) __attribute__ ((__nothrow__));
6643 extern int __fpclassify (double __value) __attribute__ ((__nothrow__))
6644 __attribute__ ((__const__));
6647 extern int __signbit (double __value) __attribute__ ((__nothrow__))
6648 __attribute__ ((__const__));
6652 extern double fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double __fma (double __x, double __y, double __z) __attribute__ ((__nothrow__));
6661 extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__));
6662 # 72 "/usr/include/math.h" 2 3 4
6663 # 94 "/usr/include/math.h" 3 4
6664 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
6665 # 53 "/usr/include/bits/mathcalls.h" 3 4
6668 extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
6670 extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
6672 extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
6674 extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
6677 extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
6679 extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
6681 extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
6686 extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
6688 extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
6690 extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
6697 # 82 "/usr/include/bits/mathcalls.h" 3 4
6698 (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); extern void
6700 # 82 "/usr/include/bits/mathcalls.h" 3 4
6701 (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__))
6708 extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
6710 extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
6712 extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
6720 extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
6723 extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
6726 extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
6729 extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
6732 extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
6735 extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
6740 extern float exp10f (float __x) __attribute__ ((__nothrow__)); extern float __exp10f (float __x) __attribute__ ((__nothrow__));
6742 extern float pow10f (float __x) __attribute__ ((__nothrow__)); extern float __pow10f (float __x) __attribute__ ((__nothrow__));
6748 extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
6751 extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
6754 extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
6761 extern float exp2f (float __x) __attribute__ ((__nothrow__)); extern float __exp2f (float __x) __attribute__ ((__nothrow__));
6764 extern float log2f (float __x) __attribute__ ((__nothrow__)); extern float __log2f (float __x) __attribute__ ((__nothrow__));
6773 extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
6776 extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
6782 extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
6789 extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
6798 extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6801 extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6804 extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6807 extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
6812 extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6815 extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6821 extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6824 extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6827 extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
6831 extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
6837 extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6844 extern float nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6850 extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6854 extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6857 extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
6858 extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
6859 extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
6860 extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
6861 extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
6862 extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
6869 extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
6870 extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
6871 extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
6878 extern float tgammaf (float) __attribute__ ((__nothrow__)); extern float __tgammaf (float) __attribute__ ((__nothrow__));
6884 extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
6891 extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
6899 extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
6902 extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6904 extern float nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6908 extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
6912 extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
6916 extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
6921 extern float scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float __scalblnf (float __x, long int __n) __attribute__ ((__nothrow__));
6925 extern float nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float __nearbyintf (float __x) __attribute__ ((__nothrow__));
6929 extern float roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6933 extern float truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6938 extern float remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern float __remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__));
6945 extern long int lrintf (float __x) __attribute__ ((__nothrow__)); extern long int __lrintf (float __x) __attribute__ ((__nothrow__));
6946 extern long long int llrintf (float __x) __attribute__ ((__nothrow__)); extern long long int __llrintf (float __x) __attribute__ ((__nothrow__));
6950 extern long int lroundf (float __x) __attribute__ ((__nothrow__)); extern long int __lroundf (float __x) __attribute__ ((__nothrow__));
6951 extern long long int llroundf (float __x) __attribute__ ((__nothrow__)); extern long long int __llroundf (float __x) __attribute__ ((__nothrow__));
6955 extern float fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fdimf (float __x, float __y) __attribute__ ((__nothrow__));
6958 extern float fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmaxf (float __x, float __y) __attribute__ ((__nothrow__));
6961 extern float fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fminf (float __x, float __y) __attribute__ ((__nothrow__));
6965 extern int __fpclassifyf (float __value) __attribute__ ((__nothrow__))
6966 __attribute__ ((__const__));
6969 extern int __signbitf (float __value) __attribute__ ((__nothrow__))
6970 __attribute__ ((__const__));
6974 extern float fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float __fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__));
6983 extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__));
6984 # 95 "/usr/include/math.h" 2 3 4
6985 # 141 "/usr/include/math.h" 3 4
6986 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
6987 # 53 "/usr/include/bits/mathcalls.h" 3 4
6990 extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__));
6992 extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__));
6994 extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__));
6996 extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__));
6999 extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__));
7001 extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__));
7003 extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__));
7008 extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__));
7010 extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__));
7012 extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__));
7019 # 82 "/usr/include/bits/mathcalls.h" 3 4
7020 (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); extern void
7022 # 82 "/usr/include/bits/mathcalls.h" 3 4
7023 (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__))
7030 extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__));
7032 extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__));
7034 extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__));
7042 extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__));
7045 extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__));
7048 extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__));
7051 extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__));
7054 extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__));
7057 extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__));
7062 extern long double exp10l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp10l (long double __x) __attribute__ ((__nothrow__));
7064 extern long double pow10l (long double __x) __attribute__ ((__nothrow__)); extern long double __pow10l (long double __x) __attribute__ ((__nothrow__));
7070 extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__));
7073 extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__));
7076 extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__));
7083 extern long double exp2l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp2l (long double __x) __attribute__ ((__nothrow__));
7086 extern long double log2l (long double __x) __attribute__ ((__nothrow__)); extern long double __log2l (long double __x) __attribute__ ((__nothrow__));
7095 extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__));
7098 extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__));
7104 extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__));
7111 extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__));
7120 extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7123 extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7126 extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7129 extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__));
7134 extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7137 extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7143 extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7146 extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7149 extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__));
7153 extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__));
7159 extern 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__));
7166 extern long double nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7172 extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7176 extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7179 extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__));
7180 extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__));
7181 extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__));
7182 extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__));
7183 extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__));
7184 extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__));
7191 extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__));
7192 extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__));
7193 extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__));
7200 extern long double tgammal (long double) __attribute__ ((__nothrow__)); extern long double __tgammal (long double) __attribute__ ((__nothrow__));
7206 extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__));
7213 extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__));
7221 extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__));
7224 extern 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__));
7226 extern 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__));
7230 extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__));
7234 extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__));
7238 extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__));
7243 extern long double scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); extern long double __scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__));
7247 extern long double nearbyintl (long double __x) __attribute__ ((__nothrow__)); extern long double __nearbyintl (long double __x) __attribute__ ((__nothrow__));
7251 extern long double roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7255 extern long double truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
7260 extern 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__));
7267 extern long int lrintl (long double __x) __attribute__ ((__nothrow__)); extern long int __lrintl (long double __x) __attribute__ ((__nothrow__));
7268 extern long long int llrintl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llrintl (long double __x) __attribute__ ((__nothrow__));
7272 extern long int lroundl (long double __x) __attribute__ ((__nothrow__)); extern long int __lroundl (long double __x) __attribute__ ((__nothrow__));
7273 extern long long int llroundl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llroundl (long double __x) __attribute__ ((__nothrow__));
7277 extern long double fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fdiml (long double __x, long double __y) __attribute__ ((__nothrow__));
7280 extern long double fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__));
7283 extern long double fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fminl (long double __x, long double __y) __attribute__ ((__nothrow__));
7287 extern int __fpclassifyl (long double __value) __attribute__ ((__nothrow__))
7288 __attribute__ ((__const__));
7291 extern int __signbitl (long double __value) __attribute__ ((__nothrow__))
7292 __attribute__ ((__const__));
7296 extern 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__));
7305 extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__));
7306 # 142 "/usr/include/math.h" 2 3 4
7307 # 157 "/usr/include/math.h" 3 4
7309 # 198 "/usr/include/math.h" 3 4
7323 # 291 "/usr/include/math.h" 3 4
7331 } _LIB_VERSION_TYPE;
7336 extern _LIB_VERSION_TYPE _LIB_VERSION;
7337 # 316 "/usr/include/math.h" 3 4
7351 extern int matherr (struct exception *__exc);
7352 # 416 "/usr/include/math.h" 3 4
7353 # 1 "/usr/include/bits/mathinline.h" 1 3 4
7354 # 417 "/usr/include/math.h" 2 3 4
7355 # 472 "/usr/include/math.h" 3 4
7357 # 43 "../../src/mesa/main/compiler.h" 2
7359 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/limits.h" 1 3 4
7360 # 34 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/limits.h" 3 4
7361 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/syslimits.h" 1 3 4
7368 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/limits.h" 1 3 4
7369 # 169 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/limits.h" 3 4
7370 # 1 "/usr/include/limits.h" 1 3 4
7371 # 145 "/usr/include/limits.h" 3 4
7372 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
7373 # 157 "/usr/include/bits/posix1_lim.h" 3 4
7374 # 1 "/usr/include/bits/local_lim.h" 1 3 4
7375 # 39 "/usr/include/bits/local_lim.h" 3 4
7376 # 1 "/usr/include/linux/limits.h" 1 3 4
7377 # 40 "/usr/include/bits/local_lim.h" 2 3 4
7378 # 158 "/usr/include/bits/posix1_lim.h" 2 3 4
7379 # 146 "/usr/include/limits.h" 2 3 4
7383 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
7384 # 150 "/usr/include/limits.h" 2 3 4
7388 # 1 "/usr/include/bits/xopen_lim.h" 1 3 4
7389 # 34 "/usr/include/bits/xopen_lim.h" 3 4
7390 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
7391 # 35 "/usr/include/bits/xopen_lim.h" 2 3 4
7392 # 154 "/usr/include/limits.h" 2 3 4
7393 # 170 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/limits.h" 2 3 4
7394 # 8 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/syslimits.h" 2 3 4
7395 # 35 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include-fixed/limits.h" 2 3 4
7396 # 45 "../../src/mesa/main/compiler.h" 2
7397 # 1 "/usr/include/stdlib.h" 1 3 4
7398 # 33 "/usr/include/stdlib.h" 3 4
7399 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
7400 # 34 "/usr/include/stdlib.h" 2 3 4
7409 # 1 "/usr/include/bits/waitflags.h" 1 3 4
7410 # 43 "/usr/include/stdlib.h" 2 3 4
7411 # 1 "/usr/include/bits/waitstatus.h" 1 3 4
7412 # 67 "/usr/include/bits/waitstatus.h" 3 4
7426 unsigned int __w_retcode:8;
7427 unsigned int __w_coredump:1;
7428 unsigned int __w_termsig:7;
7430 } __wait_terminated;
7440 unsigned int __w_stopsig:8;
7441 unsigned int __w_stopval:8;
7445 # 44 "/usr/include/stdlib.h" 2 3 4
7446 # 68 "/usr/include/stdlib.h" 3 4
7451 } __WAIT_STATUS __attribute__ ((__transparent_union__));
7452 # 96 "/usr/include/stdlib.h" 3 4
7475 __extension__ typedef struct
7482 # 140 "/usr/include/stdlib.h" 3 4
7483 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
7488 extern double atof (__const char *__nptr)
7489 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7491 extern int atoi (__const char *__nptr)
7492 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7494 extern long int atol (__const char *__nptr)
7495 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7501 __extension__ extern long long int atoll (__const char *__nptr)
7502 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7508 extern double strtod (__const char *__restrict __nptr,
7509 char **__restrict __endptr)
7510 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7516 extern float strtof (__const char *__restrict __nptr,
7517 char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7519 extern long double strtold (__const char *__restrict __nptr,
7520 char **__restrict __endptr)
7521 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7527 extern long int strtol (__const char *__restrict __nptr,
7528 char **__restrict __endptr, int __base)
7529 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7531 extern unsigned long int strtoul (__const char *__restrict __nptr,
7532 char **__restrict __endptr, int __base)
7533 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7539 extern long long int strtoq (__const char *__restrict __nptr,
7540 char **__restrict __endptr, int __base)
7541 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7544 extern unsigned long long int strtouq (__const char *__restrict __nptr,
7545 char **__restrict __endptr, int __base)
7546 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7553 extern long long int strtoll (__const char *__restrict __nptr,
7554 char **__restrict __endptr, int __base)
7555 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7558 extern unsigned long long int strtoull (__const char *__restrict __nptr,
7559 char **__restrict __endptr, int __base)
7560 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7562 # 240 "/usr/include/stdlib.h" 3 4
7563 extern long int strtol_l (__const char *__restrict __nptr,
7564 char **__restrict __endptr, int __base,
7565 __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) __attribute__ ((__warn_unused_result__));
7567 extern unsigned long int strtoul_l (__const char *__restrict __nptr,
7568 char **__restrict __endptr,
7569 int __base, __locale_t __loc)
7570 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) __attribute__ ((__warn_unused_result__));
7573 extern long long int strtoll_l (__const char *__restrict __nptr,
7574 char **__restrict __endptr, int __base,
7576 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) __attribute__ ((__warn_unused_result__));
7579 extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
7580 char **__restrict __endptr,
7581 int __base, __locale_t __loc)
7582 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) __attribute__ ((__warn_unused_result__));
7584 extern double strtod_l (__const char *__restrict __nptr,
7585 char **__restrict __endptr, __locale_t __loc)
7586 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__));
7588 extern float strtof_l (__const char *__restrict __nptr,
7589 char **__restrict __endptr, __locale_t __loc)
7590 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__));
7592 extern long double strtold_l (__const char *__restrict __nptr,
7593 char **__restrict __endptr,
7595 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__));
7601 extern __inline __attribute__ ((__gnu_inline__)) double
7602 __attribute__ ((__nothrow__)) atof (__const char *__nptr)
7604 return strtod (__nptr, (char **) ((void *)0));
7606 extern __inline __attribute__ ((__gnu_inline__)) int
7607 __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
7609 return (int) strtol (__nptr, (char **) ((void *)0), 10);
7611 extern __inline __attribute__ ((__gnu_inline__)) long int
7612 __attribute__ ((__nothrow__)) atol (__const char *__nptr)
7614 return strtol (__nptr, (char **) ((void *)0), 10);
7620 __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int
7621 __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
7623 return strtoll (__nptr, (char **) ((void *)0), 10);
7626 # 311 "/usr/include/stdlib.h" 3 4
7627 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
7630 extern long int a64l (__const char *__s)
7631 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
7636 # 1 "/usr/include/sys/types.h" 1 3 4
7637 # 28 "/usr/include/sys/types.h" 3 4
7644 typedef __u_char u_char;
7645 typedef __u_short u_short;
7646 typedef __u_int u_int;
7647 typedef __u_long u_long;
7648 typedef __quad_t quad_t;
7649 typedef __u_quad_t u_quad_t;
7650 typedef __fsid_t fsid_t;
7655 typedef __loff_t loff_t;
7659 typedef __ino_t ino_t;
7666 typedef __ino64_t ino64_t;
7671 typedef __dev_t dev_t;
7676 typedef __gid_t gid_t;
7681 typedef __mode_t mode_t;
7686 typedef __nlink_t nlink_t;
7691 typedef __uid_t uid_t;
7697 typedef __off_t off_t;
7704 typedef __off64_t off64_t;
7709 typedef __pid_t pid_t;
7715 typedef __id_t id_t;
7720 typedef __ssize_t ssize_t;
7726 typedef __daddr_t daddr_t;
7727 typedef __caddr_t caddr_t;
7733 typedef __key_t key_t;
7734 # 133 "/usr/include/sys/types.h" 3 4
7735 # 1 "/usr/include/time.h" 1 3 4
7736 # 58 "/usr/include/time.h" 3 4
7739 typedef __clock_t clock_t;
7743 # 74 "/usr/include/time.h" 3 4
7746 typedef __time_t time_t;
7750 # 92 "/usr/include/time.h" 3 4
7751 typedef __clockid_t clockid_t;
7752 # 104 "/usr/include/time.h" 3 4
7753 typedef __timer_t timer_t;
7754 # 134 "/usr/include/sys/types.h" 2 3 4
7758 typedef __useconds_t useconds_t;
7762 typedef __suseconds_t suseconds_t;
7768 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
7769 # 148 "/usr/include/sys/types.h" 2 3 4
7773 typedef unsigned long int ulong;
7774 typedef unsigned short int ushort;
7775 typedef unsigned int uint;
7776 # 201 "/usr/include/sys/types.h" 3 4
7777 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
7778 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
7779 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
7780 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
7782 typedef int register_t __attribute__ ((__mode__ (__word__)));
7783 # 220 "/usr/include/sys/types.h" 3 4
7784 # 1 "/usr/include/sys/select.h" 1 3 4
7785 # 31 "/usr/include/sys/select.h" 3 4
7786 # 1 "/usr/include/bits/select.h" 1 3 4
7787 # 32 "/usr/include/sys/select.h" 2 3 4
7790 # 1 "/usr/include/bits/sigset.h" 1 3 4
7791 # 24 "/usr/include/bits/sigset.h" 3 4
7792 typedef int __sig_atomic_t;
7799 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
7801 # 35 "/usr/include/sys/select.h" 2 3 4
7805 typedef __sigset_t sigset_t;
7811 # 1 "/usr/include/time.h" 1 3 4
7812 # 120 "/usr/include/time.h" 3 4
7818 # 45 "/usr/include/sys/select.h" 2 3 4
7820 # 1 "/usr/include/bits/time.h" 1 3 4
7821 # 75 "/usr/include/bits/time.h" 3 4
7825 __suseconds_t tv_usec;
7827 # 47 "/usr/include/sys/select.h" 2 3 4
7828 # 55 "/usr/include/sys/select.h" 3 4
7829 typedef long int __fd_mask;
7830 # 67 "/usr/include/sys/select.h" 3 4
7836 __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
7849 typedef __fd_mask fd_mask;
7850 # 99 "/usr/include/sys/select.h" 3 4
7852 # 109 "/usr/include/sys/select.h" 3 4
7853 extern int select (int __nfds, fd_set *__restrict __readfds,
7854 fd_set *__restrict __writefds,
7855 fd_set *__restrict __exceptfds,
7856 struct timeval *__restrict __timeout);
7857 # 121 "/usr/include/sys/select.h" 3 4
7858 extern int pselect (int __nfds, fd_set *__restrict __readfds,
7859 fd_set *__restrict __writefds,
7860 fd_set *__restrict __exceptfds,
7861 const struct timespec *__restrict __timeout,
7862 const __sigset_t *__restrict __sigmask);
7866 # 221 "/usr/include/sys/types.h" 2 3 4
7869 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
7870 # 30 "/usr/include/sys/sysmacros.h" 3 4
7872 extern unsigned int gnu_dev_major (unsigned long long int __dev)
7873 __attribute__ ((__nothrow__));
7875 extern unsigned int gnu_dev_minor (unsigned long long int __dev)
7876 __attribute__ ((__nothrow__));
7878 extern unsigned long long int gnu_dev_makedev (unsigned int __major,
7879 unsigned int __minor)
7880 __attribute__ ((__nothrow__));
7883 __extension__ extern __inline __attribute__ ((__gnu_inline__)) unsigned int
7884 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
7886 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
7889 __extension__ extern __inline __attribute__ ((__gnu_inline__)) unsigned int
7890 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
7892 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
7895 __extension__ extern __inline __attribute__ ((__gnu_inline__)) unsigned long long int
7896 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
7898 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
7899 | (((unsigned long long int) (__minor & ~0xff)) << 12)
7900 | (((unsigned long long int) (__major & ~0xfff)) << 32));
7902 # 224 "/usr/include/sys/types.h" 2 3 4
7908 typedef __blksize_t blksize_t;
7915 typedef __blkcnt_t blkcnt_t;
7919 typedef __fsblkcnt_t fsblkcnt_t;
7923 typedef __fsfilcnt_t fsfilcnt_t;
7924 # 263 "/usr/include/sys/types.h" 3 4
7925 typedef __blkcnt64_t blkcnt64_t;
7926 typedef __fsblkcnt64_t fsblkcnt64_t;
7927 typedef __fsfilcnt64_t fsfilcnt64_t;
7933 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
7934 # 46 "/usr/include/bits/pthreadtypes.h" 3 4
7935 typedef unsigned long int pthread_t;
7944 typedef struct __pthread_internal_slist
7946 struct __pthread_internal_slist *__next;
7947 } __pthread_slist_t;
7954 struct __pthread_mutex_s
7956 int __lock __attribute__ ((aligned(16)));
7957 unsigned int __count;
7965 int __compat_padding[4];
7968 unsigned int __nusers;
7972 __pthread_slist_t __list;
7987 } pthread_mutexattr_t;
7988 # 108 "/usr/include/bits/pthreadtypes.h" 3 4
7997 int __lock __attribute__ ((aligned(16)));
8003 unsigned int __futex;
8007 __extension__ unsigned long long int __total_seq;
8008 __extension__ unsigned long long int __wakeup_seq;
8009 __extension__ unsigned long long int __woken_seq;
8010 unsigned int __nwaiters;
8011 unsigned int __broadcast_seq;
8016 __extension__ long long int __align;
8023 } pthread_condattr_t;
8027 typedef unsigned int pthread_key_t;
8031 typedef int pthread_once_t;
8045 int __compat_padding[4] __attribute__ ((aligned(16)));
8047 unsigned int __nr_readers;
8048 unsigned int __readers_wakeup;
8049 unsigned int __writer_wakeup;
8050 unsigned int __nr_readers_queued;
8051 unsigned int __nr_writers_queued;
8059 unsigned char __pad2;
8060 unsigned char __pad1;
8061 unsigned char __shared;
8062 unsigned char __flags;
8078 } pthread_rwlockattr_t;
8084 typedef volatile int pthread_spinlock_t;
8093 } pthread_barrier_t;
8099 } pthread_barrierattr_t;
8100 # 272 "/usr/include/sys/types.h" 2 3 4
8104 # 321 "/usr/include/stdlib.h" 2 3 4
8111 extern long int random (void) __attribute__ ((__nothrow__));
8114 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
8120 extern char *initstate (unsigned int __seed, char *__statebuf,
8121 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
8125 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8144 extern int random_r (struct random_data *__restrict __buf,
8145 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8147 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
8148 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
8150 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
8152 struct random_data *__restrict __buf)
8153 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
8155 extern int setstate_r (char *__restrict __statebuf,
8156 struct random_data *__restrict __buf)
8157 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8164 extern int rand (void) __attribute__ ((__nothrow__));
8166 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
8171 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
8179 extern double drand48 (void) __attribute__ ((__nothrow__));
8180 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8183 extern long int lrand48 (void) __attribute__ ((__nothrow__));
8184 extern long int nrand48 (unsigned short int __xsubi[3])
8185 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8188 extern long int mrand48 (void) __attribute__ ((__nothrow__));
8189 extern long int jrand48 (unsigned short int __xsubi[3])
8190 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8193 extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
8194 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
8195 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8196 extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8204 unsigned short int __x[3];
8205 unsigned short int __old_x[3];
8206 unsigned short int __c;
8207 unsigned short int __init;
8208 unsigned long long int __a;
8212 extern int drand48_r (struct drand48_data *__restrict __buffer,
8213 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8214 extern int erand48_r (unsigned short int __xsubi[3],
8215 struct drand48_data *__restrict __buffer,
8216 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8219 extern int lrand48_r (struct drand48_data *__restrict __buffer,
8220 long int *__restrict __result)
8221 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8222 extern int nrand48_r (unsigned short int __xsubi[3],
8223 struct drand48_data *__restrict __buffer,
8224 long int *__restrict __result)
8225 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8228 extern int mrand48_r (struct drand48_data *__restrict __buffer,
8229 long int *__restrict __result)
8230 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8231 extern int jrand48_r (unsigned short int __xsubi[3],
8232 struct drand48_data *__restrict __buffer,
8233 long int *__restrict __result)
8234 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8237 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
8238 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
8240 extern int seed48_r (unsigned short int __seed16v[3],
8241 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8243 extern int lcong48_r (unsigned short int __param[7],
8244 struct drand48_data *__buffer)
8245 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
8255 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
8257 extern void *calloc (size_t __nmemb, size_t __size)
8258 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
8269 extern void *realloc (void *__ptr, size_t __size)
8270 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8272 extern void free (void *__ptr) __attribute__ ((__nothrow__));
8277 extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
8281 # 1 "/usr/include/alloca.h" 1 3 4
8282 # 25 "/usr/include/alloca.h" 3 4
8283 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
8284 # 26 "/usr/include/alloca.h" 2 3 4
8292 extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
8299 # 498 "/usr/include/stdlib.h" 2 3 4
8305 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
8310 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
8311 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8316 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
8320 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8321 # 528 "/usr/include/stdlib.h" 3 4
8322 extern int at_quick_exit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8330 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
8331 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8338 extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
8346 extern void quick_exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
8354 extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
8361 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8366 extern char *__secure_getenv (__const char *__name)
8367 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8373 extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8379 extern int setenv (__const char *__name, __const char *__value, int __replace)
8380 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
8383 extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8390 extern int clearenv (void) __attribute__ ((__nothrow__));
8391 # 606 "/usr/include/stdlib.h" 3 4
8392 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8393 # 620 "/usr/include/stdlib.h" 3 4
8394 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8395 # 630 "/usr/include/stdlib.h" 3 4
8396 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8397 # 642 "/usr/include/stdlib.h" 3 4
8398 extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8399 # 652 "/usr/include/stdlib.h" 3 4
8400 extern int mkstemps64 (char *__template, int __suffixlen)
8401 __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8402 # 663 "/usr/include/stdlib.h" 3 4
8403 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8404 # 674 "/usr/include/stdlib.h" 3 4
8405 extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8406 # 684 "/usr/include/stdlib.h" 3 4
8407 extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8408 # 694 "/usr/include/stdlib.h" 3 4
8409 extern int mkostemps (char *__template, int __suffixlen, int __flags)
8410 __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8411 # 706 "/usr/include/stdlib.h" 3 4
8412 extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
8413 __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8423 extern int system (__const char *__command) __attribute__ ((__warn_unused_result__));
8430 extern char *canonicalize_file_name (__const char *__name)
8431 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8432 # 734 "/usr/include/stdlib.h" 3 4
8433 extern char *realpath (__const char *__restrict __name,
8434 char *__restrict __resolved) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8441 typedef int (*__compar_fn_t) (__const void *, __const void *);
8444 typedef __compar_fn_t comparison_fn_t;
8448 typedef int (*__compar_d_fn_t) (__const void *, __const void *, void *);
8454 extern void *bsearch (__const void *__key, __const void *__base,
8455 size_t __nmemb, size_t __size, __compar_fn_t __compar)
8456 __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__));
8460 extern void qsort (void *__base, size_t __nmemb, size_t __size,
8461 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
8463 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
8464 __compar_d_fn_t __compar, void *__arg)
8465 __attribute__ ((__nonnull__ (1, 4)));
8470 extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
8471 extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
8475 __extension__ extern long long int llabs (long long int __x)
8476 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
8484 extern div_t div (int __numer, int __denom)
8485 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
8486 extern ldiv_t ldiv (long int __numer, long int __denom)
8487 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
8492 __extension__ extern lldiv_t lldiv (long long int __numer,
8493 long long int __denom)
8494 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
8496 # 808 "/usr/include/stdlib.h" 3 4
8497 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
8498 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));
8503 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
8504 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));
8509 extern char *gcvt (double __value, int __ndigit, char *__buf)
8510 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__));
8515 extern char *qecvt (long double __value, int __ndigit,
8516 int *__restrict __decpt, int *__restrict __sign)
8517 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));
8518 extern char *qfcvt (long double __value, int __ndigit,
8519 int *__restrict __decpt, int *__restrict __sign)
8520 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));
8521 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
8522 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__));
8527 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
8528 int *__restrict __sign, char *__restrict __buf,
8529 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
8530 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
8531 int *__restrict __sign, char *__restrict __buf,
8532 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
8534 extern int qecvt_r (long double __value, int __ndigit,
8535 int *__restrict __decpt, int *__restrict __sign,
8536 char *__restrict __buf, size_t __len)
8537 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
8538 extern int qfcvt_r (long double __value, int __ndigit,
8539 int *__restrict __decpt, int *__restrict __sign,
8540 char *__restrict __buf, size_t __len)
8541 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
8549 extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8552 extern int mbtowc (wchar_t *__restrict __pwc,
8553 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8556 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8560 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
8561 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
8563 extern size_t wcstombs (char *__restrict __s,
8564 __const wchar_t *__restrict __pwcs, size_t __n)
8565 __attribute__ ((__nothrow__));
8574 extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
8575 # 896 "/usr/include/stdlib.h" 3 4
8576 extern int getsubopt (char **__restrict __optionp,
8577 char *__const *__restrict __tokens,
8578 char **__restrict __valuep)
8579 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__));
8585 extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8593 extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__));
8601 extern int grantpt (int __fd) __attribute__ ((__nothrow__));
8605 extern int unlockpt (int __fd) __attribute__ ((__nothrow__));
8610 extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8617 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
8618 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
8621 extern int getpt (void);
8628 extern int getloadavg (double __loadavg[], int __nelem)
8629 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
8635 # 1 "/usr/include/bits/stdlib.h" 1 3 4
8636 # 24 "/usr/include/bits/stdlib.h" 3 4
8637 extern char *__realpath_chk (__const char *__restrict __name,
8638 char *__restrict __resolved,
8639 size_t __resolvedlen) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8640 extern char *__realpath_alias (__const char *__restrict __name, char *__restrict __resolved) __asm__ ("" "realpath") __attribute__ ((__nothrow__))
8642 __attribute__ ((__warn_unused_result__));
8643 extern char *__realpath_chk_warn (__const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) __asm__ ("" "__realpath_chk") __attribute__ ((__nothrow__))
8646 __attribute__ ((__warn_unused_result__))
8647 __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer")))
8650 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) char *
8651 __attribute__ ((__nothrow__)) realpath (__const char *__restrict __name, char *__restrict __resolved)
8653 if (__builtin_object_size (__resolved, 2 > 1) != (size_t) -1)
8656 if (__builtin_object_size (__resolved, 2 > 1) < 4096)
8657 return __realpath_chk_warn (__name, __resolved, __builtin_object_size (__resolved, 2 > 1));
8659 return __realpath_chk (__name, __resolved, __builtin_object_size (__resolved, 2 > 1));
8662 return __realpath_alias (__name, __resolved);
8666 extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
8667 size_t __nreal) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
8668 extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) __asm__ ("" "ptsname_r") __attribute__ ((__nothrow__))
8670 __attribute__ ((__nonnull__ (2)));
8671 extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__ptsname_r_chk") __attribute__ ((__nothrow__))
8674 __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf")))
8677 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
8678 __attribute__ ((__nothrow__)) ptsname_r (int __fd, char *__buf, size_t __buflen)
8680 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
8682 if (!__builtin_constant_p (__buflen))
8683 return __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
8684 if (__buflen > __builtin_object_size (__buf, 2 > 1))
8685 return __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
8687 return __ptsname_r_alias (__fd, __buf, __buflen);
8691 extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
8692 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
8693 extern int __wctomb_alias (char *__s, wchar_t __wchar) __asm__ ("" "wctomb") __attribute__ ((__nothrow__))
8694 __attribute__ ((__warn_unused_result__));
8696 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) int
8697 __attribute__ ((__nothrow__)) wctomb (char *__s, wchar_t __wchar)
8706 if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1))
8707 return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1));
8708 return __wctomb_alias (__s, __wchar);
8712 extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
8713 __const char *__restrict __src,
8714 size_t __len, size_t __dstlen) __attribute__ ((__nothrow__));
8715 extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len) __asm__ ("" "mbstowcs") __attribute__ ((__nothrow__))
8719 extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len, size_t __dstlen) __asm__ ("" "__mbstowcs_chk") __attribute__ ((__nothrow__))
8723 __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)")))
8726 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) size_t
8727 __attribute__ ((__nothrow__)) mbstowcs (wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len)
8730 if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1)
8732 if (!__builtin_constant_p (__len))
8733 return __mbstowcs_chk (__dst, __src, __len,
8734 __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t));
8736 if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t))
8737 return __mbstowcs_chk_warn (__dst, __src, __len,
8738 __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t));
8740 return __mbstowcs_alias (__dst, __src, __len);
8744 extern size_t __wcstombs_chk (char *__restrict __dst,
8745 __const wchar_t *__restrict __src,
8746 size_t __len, size_t __dstlen) __attribute__ ((__nothrow__));
8747 extern size_t __wcstombs_alias (char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len) __asm__ ("" "wcstombs") __attribute__ ((__nothrow__))
8751 extern size_t __wcstombs_chk_warn (char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len, size_t __dstlen) __asm__ ("" "__wcstombs_chk") __attribute__ ((__nothrow__))
8755 __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len")));
8757 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) size_t
8758 __attribute__ ((__nothrow__)) wcstombs (char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len)
8761 if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1)
8763 if (!__builtin_constant_p (__len))
8764 return __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1));
8765 if (__len > __builtin_object_size (__dst, 2 > 1))
8766 return __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1));
8768 return __wcstombs_alias (__dst, __src, __len);
8770 # 956 "/usr/include/stdlib.h" 2 3 4
8771 # 964 "/usr/include/stdlib.h" 3 4
8773 # 46 "../../src/mesa/main/compiler.h" 2
8774 # 1 "/usr/include/stdio.h" 1 3 4
8775 # 30 "/usr/include/stdio.h" 3 4
8780 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
8781 # 35 "/usr/include/stdio.h" 2 3 4
8782 # 45 "/usr/include/stdio.h" 3 4
8787 typedef struct _IO_FILE FILE;
8793 # 65 "/usr/include/stdio.h" 3 4
8794 typedef struct _IO_FILE __FILE;
8795 # 75 "/usr/include/stdio.h" 3 4
8796 # 1 "/usr/include/libio.h" 1 3 4
8797 # 32 "/usr/include/libio.h" 3 4
8798 # 1 "/usr/include/_G_config.h" 1 3 4
8799 # 15 "/usr/include/_G_config.h" 3 4
8800 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
8801 # 16 "/usr/include/_G_config.h" 2 3 4
8806 # 1 "/usr/include/wchar.h" 1 3 4
8807 # 83 "/usr/include/wchar.h" 3 4
8821 # 21 "/usr/include/_G_config.h" 2 3 4
8826 __mbstate_t __state;
8831 __mbstate_t __state;
8833 # 53 "/usr/include/_G_config.h" 3 4
8834 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
8835 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
8836 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
8837 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
8838 # 33 "/usr/include/libio.h" 2 3 4
8839 # 53 "/usr/include/libio.h" 3 4
8840 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stdarg.h" 1 3 4
8841 # 40 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stdarg.h" 3 4
8842 typedef __builtin_va_list __gnuc_va_list;
8843 # 54 "/usr/include/libio.h" 2 3 4
8844 # 170 "/usr/include/libio.h" 3 4
8845 struct _IO_jump_t; struct _IO_FILE;
8846 # 180 "/usr/include/libio.h" 3 4
8847 typedef void _IO_lock_t;
8854 struct _IO_marker *_next;
8855 struct _IO_FILE *_sbuf;
8860 # 203 "/usr/include/libio.h" 3 4
8864 enum __codecvt_result
8871 # 271 "/usr/include/libio.h" 3 4
8880 char* _IO_read_base;
8881 char* _IO_write_base;
8882 char* _IO_write_ptr;
8883 char* _IO_write_end;
8887 char *_IO_save_base;
8888 char *_IO_backup_base;
8891 struct _IO_marker *_markers;
8893 struct _IO_FILE *_chain;
8901 __off_t _old_offset;
8905 unsigned short _cur_column;
8906 signed char _vtable_offset;
8912 # 319 "/usr/include/libio.h" 3 4
8914 # 328 "/usr/include/libio.h" 3 4
8923 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
8928 typedef struct _IO_FILE _IO_FILE;
8931 struct _IO_FILE_plus;
8933 extern struct _IO_FILE_plus _IO_2_1_stdin_;
8934 extern struct _IO_FILE_plus _IO_2_1_stdout_;
8935 extern struct _IO_FILE_plus _IO_2_1_stderr_;
8936 # 364 "/usr/include/libio.h" 3 4
8937 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
8945 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
8954 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
8957 typedef int __io_close_fn (void *__cookie);
8962 typedef __io_read_fn cookie_read_function_t;
8963 typedef __io_write_fn cookie_write_function_t;
8964 typedef __io_seek_fn cookie_seek_function_t;
8965 typedef __io_close_fn cookie_close_function_t;
8971 __io_write_fn *write;
8973 __io_close_fn *close;
8974 } _IO_cookie_io_functions_t;
8975 typedef _IO_cookie_io_functions_t cookie_io_functions_t;
8977 struct _IO_cookie_file;
8980 extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
8981 void *__cookie, _IO_cookie_io_functions_t __fns);
8989 extern int __underflow (_IO_FILE *);
8990 extern int __uflow (_IO_FILE *);
8991 extern int __overflow (_IO_FILE *, int);
8992 # 460 "/usr/include/libio.h" 3 4
8993 extern int _IO_getc (_IO_FILE *__fp);
8994 extern int _IO_putc (int __c, _IO_FILE *__fp);
8995 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
8996 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
8998 extern int _IO_peekc_locked (_IO_FILE *__fp);
9004 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
9005 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
9006 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
9007 # 490 "/usr/include/libio.h" 3 4
9008 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
9009 __gnuc_va_list, int *__restrict);
9010 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
9012 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
9013 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
9015 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
9016 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
9018 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
9019 # 76 "/usr/include/stdio.h" 2 3 4
9024 typedef __gnuc_va_list va_list;
9025 # 109 "/usr/include/stdio.h" 3 4
9028 typedef _G_fpos_t fpos_t;
9034 typedef _G_fpos64_t fpos64_t;
9035 # 161 "/usr/include/stdio.h" 3 4
9036 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
9037 # 162 "/usr/include/stdio.h" 2 3 4
9041 extern struct _IO_FILE *stdin;
9042 extern struct _IO_FILE *stdout;
9043 extern struct _IO_FILE *stderr;
9051 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
9053 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
9058 extern int renameat (int __oldfd, __const char *__old, int __newfd,
9059 __const char *__new) __attribute__ ((__nothrow__));
9068 extern FILE *tmpfile (void) __attribute__ ((__warn_unused_result__));
9069 # 202 "/usr/include/stdio.h" 3 4
9070 extern FILE *tmpfile64 (void) __attribute__ ((__warn_unused_result__));
9074 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9080 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9081 # 224 "/usr/include/stdio.h" 3 4
9082 extern char *tempnam (__const char *__dir, __const char *__pfx)
9083 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
9092 extern int fclose (FILE *__stream);
9097 extern int fflush (FILE *__stream);
9099 # 249 "/usr/include/stdio.h" 3 4
9100 extern int fflush_unlocked (FILE *__stream);
9101 # 259 "/usr/include/stdio.h" 3 4
9102 extern int fcloseall (void);
9112 extern FILE *fopen (__const char *__restrict __filename,
9113 __const char *__restrict __modes) __attribute__ ((__warn_unused_result__));
9118 extern FILE *freopen (__const char *__restrict __filename,
9119 __const char *__restrict __modes,
9120 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9121 # 292 "/usr/include/stdio.h" 3 4
9124 extern FILE *fopen64 (__const char *__restrict __filename,
9125 __const char *__restrict __modes) __attribute__ ((__warn_unused_result__));
9126 extern FILE *freopen64 (__const char *__restrict __filename,
9127 __const char *__restrict __modes,
9128 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9133 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9139 extern FILE *fopencookie (void *__restrict __magic_cookie,
9140 __const char *__restrict __modes,
9141 _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9146 extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
9147 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9152 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9159 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
9163 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
9164 int __modes, size_t __n) __attribute__ ((__nothrow__));
9170 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
9171 size_t __size) __attribute__ ((__nothrow__));
9174 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
9183 extern int fprintf (FILE *__restrict __stream,
9184 __const char *__restrict __format, ...);
9189 extern int printf (__const char *__restrict __format, ...);
9191 extern int sprintf (char *__restrict __s,
9192 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
9198 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
9199 __gnuc_va_list __arg);
9204 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
9206 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
9207 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
9213 extern int snprintf (char *__restrict __s, size_t __maxlen,
9214 __const char *__restrict __format, ...)
9215 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
9217 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
9218 __const char *__restrict __format, __gnuc_va_list __arg)
9219 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
9226 extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
9227 __gnuc_va_list __arg)
9228 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__));
9229 extern int __asprintf (char **__restrict __ptr,
9230 __const char *__restrict __fmt, ...)
9231 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__));
9232 extern int asprintf (char **__restrict __ptr,
9233 __const char *__restrict __fmt, ...)
9234 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__));
9235 # 414 "/usr/include/stdio.h" 3 4
9236 extern int vdprintf (int __fd, __const char *__restrict __fmt,
9237 __gnuc_va_list __arg)
9238 __attribute__ ((__format__ (__printf__, 2, 0)));
9239 extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
9240 __attribute__ ((__format__ (__printf__, 2, 3)));
9249 extern int fscanf (FILE *__restrict __stream,
9250 __const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));
9255 extern int scanf (__const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));
9257 extern int sscanf (__const char *__restrict __s,
9258 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
9259 # 465 "/usr/include/stdio.h" 3 4
9268 extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
9269 __gnuc_va_list __arg)
9270 __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__));
9276 extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
9277 __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__));
9280 extern int vsscanf (__const char *__restrict __s,
9281 __const char *__restrict __format, __gnuc_va_list __arg)
9282 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
9283 # 524 "/usr/include/stdio.h" 3 4
9293 extern int fgetc (FILE *__stream);
9294 extern int getc (FILE *__stream);
9300 extern int getchar (void);
9302 # 552 "/usr/include/stdio.h" 3 4
9303 extern int getc_unlocked (FILE *__stream);
9304 extern int getchar_unlocked (void);
9305 # 563 "/usr/include/stdio.h" 3 4
9306 extern int fgetc_unlocked (FILE *__stream);
9318 extern int fputc (int __c, FILE *__stream);
9319 extern int putc (int __c, FILE *__stream);
9325 extern int putchar (int __c);
9327 # 596 "/usr/include/stdio.h" 3 4
9328 extern int fputc_unlocked (int __c, FILE *__stream);
9336 extern int putc_unlocked (int __c, FILE *__stream);
9337 extern int putchar_unlocked (int __c);
9344 extern int getw (FILE *__stream);
9347 extern int putw (int __w, FILE *__stream);
9356 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
9357 __attribute__ ((__warn_unused_result__));
9364 extern char *gets (char *__s) __attribute__ ((__warn_unused_result__));
9366 # 642 "/usr/include/stdio.h" 3 4
9367 extern char *fgets_unlocked (char *__restrict __s, int __n,
9368 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9369 # 658 "/usr/include/stdio.h" 3 4
9370 extern __ssize_t __getdelim (char **__restrict __lineptr,
9371 size_t *__restrict __n, int __delimiter,
9372 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9373 extern __ssize_t getdelim (char **__restrict __lineptr,
9374 size_t *__restrict __n, int __delimiter,
9375 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9383 extern __ssize_t getline (char **__restrict __lineptr,
9384 size_t *__restrict __n,
9385 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9394 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
9400 extern int puts (__const char *__s);
9407 extern int ungetc (int __c, FILE *__stream);
9414 extern size_t fread (void *__restrict __ptr, size_t __size,
9415 size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9420 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
9421 size_t __n, FILE *__restrict __s) __attribute__ ((__warn_unused_result__));
9423 # 719 "/usr/include/stdio.h" 3 4
9424 extern int fputs_unlocked (__const char *__restrict __s,
9425 FILE *__restrict __stream);
9426 # 730 "/usr/include/stdio.h" 3 4
9427 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
9428 size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9429 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
9430 size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9439 extern int fseek (FILE *__stream, long int __off, int __whence);
9444 extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__));
9449 extern void rewind (FILE *__stream);
9451 # 766 "/usr/include/stdio.h" 3 4
9452 extern int fseeko (FILE *__stream, __off_t __off, int __whence);
9457 extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__));
9458 # 785 "/usr/include/stdio.h" 3 4
9465 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
9470 extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
9471 # 808 "/usr/include/stdio.h" 3 4
9475 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
9476 extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__));
9477 extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
9478 extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
9483 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
9485 extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9487 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9492 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
9493 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9494 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9503 extern void perror (__const char *__s);
9510 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
9511 # 27 "/usr/include/bits/sys_errlist.h" 3 4
9512 extern int sys_nerr;
9513 extern __const char *__const sys_errlist[];
9516 extern int _sys_nerr;
9517 extern __const char *__const _sys_errlist[];
9518 # 847 "/usr/include/stdio.h" 2 3 4
9523 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9528 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9529 # 866 "/usr/include/stdio.h" 3 4
9530 extern FILE *popen (__const char *__command, __const char *__modes) __attribute__ ((__warn_unused_result__));
9536 extern int pclose (FILE *__stream);
9542 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
9548 extern char *cuserid (char *__s);
9556 extern int obstack_printf (struct obstack *__restrict __obstack,
9557 __const char *__restrict __format, ...)
9558 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
9559 extern int obstack_vprintf (struct obstack *__restrict __obstack,
9560 __const char *__restrict __format,
9561 __gnuc_va_list __args)
9562 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));
9570 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
9574 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
9577 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
9578 # 927 "/usr/include/stdio.h" 3 4
9579 # 1 "/usr/include/bits/stdio.h" 1 3 4
9580 # 44 "/usr/include/bits/stdio.h" 3 4
9581 extern __inline __attribute__ ((__gnu_inline__)) int
9584 return _IO_getc (stdin);
9590 extern __inline __attribute__ ((__gnu_inline__)) int
9591 fgetc_unlocked (FILE *__fp)
9593 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
9600 extern __inline __attribute__ ((__gnu_inline__)) int
9601 getc_unlocked (FILE *__fp)
9603 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
9607 extern __inline __attribute__ ((__gnu_inline__)) int
9608 getchar_unlocked (void)
9610 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
9616 extern __inline __attribute__ ((__gnu_inline__)) int
9619 return _IO_putc (__c, stdout);
9625 extern __inline __attribute__ ((__gnu_inline__)) int
9626 fputc_unlocked (int __c, FILE *__stream)
9628 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
9635 extern __inline __attribute__ ((__gnu_inline__)) int
9636 putc_unlocked (int __c, FILE *__stream)
9638 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
9642 extern __inline __attribute__ ((__gnu_inline__)) int
9643 putchar_unlocked (int __c)
9645 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
9652 extern __inline __attribute__ ((__gnu_inline__)) __ssize_t
9653 getline (char **__lineptr, size_t *__n, FILE *__stream)
9655 return __getdelim (__lineptr, __n, '\n', __stream);
9662 extern __inline __attribute__ ((__gnu_inline__)) int
9663 __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
9665 return (((__stream)->_flags & 0x10) != 0);
9669 extern __inline __attribute__ ((__gnu_inline__)) int
9670 __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
9672 return (((__stream)->_flags & 0x20) != 0);
9674 # 928 "/usr/include/stdio.h" 2 3 4
9677 # 1 "/usr/include/bits/stdio2.h" 1 3 4
9678 # 24 "/usr/include/bits/stdio2.h" 3 4
9679 extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,
9680 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
9681 extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
9682 __const char *__restrict __format,
9683 __gnuc_va_list __ap) __attribute__ ((__nothrow__));
9686 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9687 __attribute__ ((__nothrow__)) sprintf (char *__restrict __s, __const char *__restrict __fmt, ...)
9689 return __builtin___sprintf_chk (__s, 2 - 1,
9690 __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
9698 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9699 __attribute__ ((__nothrow__)) vsprintf (char *__restrict __s, __const char *__restrict __fmt, __gnuc_va_list __ap)
9702 return __builtin___vsprintf_chk (__s, 2 - 1,
9703 __builtin_object_size (__s, 2 > 1), __fmt, __ap);
9708 extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
9709 size_t __slen, __const char *__restrict __format,
9710 ...) __attribute__ ((__nothrow__));
9711 extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
9712 size_t __slen, __const char *__restrict __format,
9713 __gnuc_va_list __ap) __attribute__ ((__nothrow__));
9716 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9717 __attribute__ ((__nothrow__)) snprintf (char *__restrict __s, size_t __n, __const char *__restrict __fmt, ...)
9720 return __builtin___snprintf_chk (__s, __n, 2 - 1,
9721 __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
9729 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9730 __attribute__ ((__nothrow__)) vsnprintf (char *__restrict __s, size_t __n, __const char *__restrict __fmt, __gnuc_va_list __ap)
9733 return __builtin___vsnprintf_chk (__s, __n, 2 - 1,
9734 __builtin_object_size (__s, 2 > 1), __fmt, __ap);
9741 extern int __fprintf_chk (FILE *__restrict __stream, int __flag,
9742 __const char *__restrict __format, ...);
9743 extern int __printf_chk (int __flag, __const char *__restrict __format, ...);
9744 extern int __vfprintf_chk (FILE *__restrict __stream, int __flag,
9745 __const char *__restrict __format, __gnuc_va_list __ap);
9746 extern int __vprintf_chk (int __flag, __const char *__restrict __format,
9747 __gnuc_va_list __ap);
9750 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9751 fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)
9753 return __fprintf_chk (__stream, 2 - 1, __fmt,
9754 __builtin_va_arg_pack ());
9757 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9758 printf (__const char *__restrict __fmt, ...)
9760 return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ());
9769 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9770 vprintf (__const char *__restrict __fmt, __gnuc_va_list __ap)
9773 return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap);
9779 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9780 vfprintf (FILE *__restrict __stream,
9781 __const char *__restrict __fmt, __gnuc_va_list __ap)
9783 return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap);
9788 extern int __asprintf_chk (char **__restrict __ptr, int __flag,
9789 __const char *__restrict __fmt, ...)
9790 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__));
9791 extern int __vasprintf_chk (char **__restrict __ptr, int __flag,
9792 __const char *__restrict __fmt, __gnuc_va_list __arg)
9793 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__));
9794 extern int __dprintf_chk (int __fd, int __flag, __const char *__restrict __fmt,
9795 ...) __attribute__ ((__format__ (__printf__, 3, 4)));
9796 extern int __vdprintf_chk (int __fd, int __flag,
9797 __const char *__restrict __fmt, __gnuc_va_list __arg)
9798 __attribute__ ((__format__ (__printf__, 3, 0)));
9799 extern int __obstack_printf_chk (struct obstack *__restrict __obstack,
9800 int __flag, __const char *__restrict __format,
9802 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
9803 extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack,
9805 __const char *__restrict __format,
9806 __gnuc_va_list __args)
9807 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
9810 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9811 __attribute__ ((__nothrow__)) asprintf (char **__restrict __ptr, __const char *__restrict __fmt, ...)
9813 return __asprintf_chk (__ptr, 2 - 1, __fmt,
9814 __builtin_va_arg_pack ());
9817 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9818 __attribute__ ((__nothrow__)) __asprintf (char **__restrict __ptr, __const char *__restrict __fmt, ...)
9821 return __asprintf_chk (__ptr, 2 - 1, __fmt,
9822 __builtin_va_arg_pack ());
9825 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9826 dprintf (int __fd, __const char *__restrict __fmt, ...)
9828 return __dprintf_chk (__fd, 2 - 1, __fmt,
9829 __builtin_va_arg_pack ());
9832 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9833 __attribute__ ((__nothrow__)) obstack_printf (struct obstack *__restrict __obstack, __const char *__restrict __fmt, ...)
9836 return __obstack_printf_chk (__obstack, 2 - 1, __fmt,
9837 __builtin_va_arg_pack ());
9839 # 195 "/usr/include/bits/stdio2.h" 3 4
9840 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9841 __attribute__ ((__nothrow__)) vasprintf (char **__restrict __ptr, __const char *__restrict __fmt, __gnuc_va_list __ap)
9844 return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap);
9847 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9848 vdprintf (int __fd, __const char *__restrict __fmt, __gnuc_va_list __ap)
9850 return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap);
9853 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int
9854 __attribute__ ((__nothrow__)) obstack_vprintf (struct obstack *__restrict __obstack, __const char *__restrict __fmt, __gnuc_va_list __ap)
9857 return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt,
9865 extern char *__gets_chk (char *__str, size_t) __attribute__ ((__warn_unused_result__));
9866 extern char *__gets_warn (char *__str) __asm__ ("" "gets")
9867 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use fgets or getline instead, gets can't " "specify buffer size")))
9870 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) char *
9873 if (__builtin_object_size (__str, 2 > 1) != (size_t) -1)
9874 return __gets_chk (__str, __builtin_object_size (__str, 2 > 1));
9875 return __gets_warn (__str);
9878 extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
9879 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9880 extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets")
9882 __attribute__ ((__warn_unused_result__));
9883 extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk")
9886 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer")))
9889 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) char *
9890 fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
9892 if (__builtin_object_size (__s, 2 > 1) != (size_t) -1)
9894 if (!__builtin_constant_p (__n) || __n <= 0)
9895 return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
9897 if ((size_t) __n > __builtin_object_size (__s, 2 > 1))
9898 return __fgets_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
9900 return __fgets_alias (__s, __n, __stream);
9903 extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen,
9904 size_t __size, size_t __n,
9905 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9906 extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread")
9909 __attribute__ ((__warn_unused_result__));
9910 extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk")
9915 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer")))
9918 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) size_t
9919 fread (void *__restrict __ptr, size_t __size, size_t __n,
9920 FILE *__restrict __stream)
9922 if (__builtin_object_size (__ptr, 0) != (size_t) -1)
9924 if (!__builtin_constant_p (__size)
9925 || !__builtin_constant_p (__n)
9926 || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))
9927 return __fread_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);
9929 if (__size * __n > __builtin_object_size (__ptr, 0))
9930 return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);
9932 return __fread_alias (__ptr, __size, __n, __stream);
9936 extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size,
9937 int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9938 extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked")
9940 __attribute__ ((__warn_unused_result__));
9941 extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk")
9944 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer")))
9947 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) char *
9948 fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream)
9950 if (__builtin_object_size (__s, 2 > 1) != (size_t) -1)
9952 if (!__builtin_constant_p (__n) || __n <= 0)
9953 return __fgets_unlocked_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
9955 if ((size_t) __n > __builtin_object_size (__s, 2 > 1))
9956 return __fgets_unlocked_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
9958 return __fgets_unlocked_alias (__s, __n, __stream);
9964 extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen,
9965 size_t __size, size_t __n,
9966 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
9967 extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked")
9970 __attribute__ ((__warn_unused_result__));
9971 extern size_t __fread_unlocked_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_unlocked_chk")
9976 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer")))
9979 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __attribute__ ((__warn_unused_result__)) size_t
9980 fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n,
9981 FILE *__restrict __stream)
9983 if (__builtin_object_size (__ptr, 0) != (size_t) -1)
9985 if (!__builtin_constant_p (__size)
9986 || !__builtin_constant_p (__n)
9987 || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))
9988 return __fread_unlocked_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
9991 if (__size * __n > __builtin_object_size (__ptr, 0))
9992 return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
9997 if (__builtin_constant_p (__size)
9998 && __builtin_constant_p (__n)
9999 && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2))
10000 && __size * __n <= 8)
10002 size_t __cnt = __size * __n;
10003 char *__cptr = (char *) __ptr;
10007 for (; __cnt > 0; --__cnt)
10009 int __c = (__builtin_expect (((__stream)->_IO_read_ptr >= (__stream)->_IO_read_end), 0) ? __uflow (__stream) : *(unsigned char *) (__stream)->_IO_read_ptr++);
10014 return (__cptr - (char *) __ptr) / __size;
10017 return __fread_unlocked_alias (__ptr, __size, __n, __stream);
10019 # 931 "/usr/include/stdio.h" 2 3 4
10026 # 47 "../../src/mesa/main/compiler.h" 2
10027 # 1 "/usr/include/string.h" 1 3 4
10028 # 29 "/usr/include/string.h" 3 4
10034 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
10035 # 35 "/usr/include/string.h" 2 3 4
10045 extern void *memcpy (void *__restrict __dest,
10046 __const void *__restrict __src, size_t __n)
10047 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10050 extern void *memmove (void *__dest, __const void *__src, size_t __n)
10051 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10058 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
10059 int __c, size_t __n)
10060 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10066 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10069 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
10070 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10071 # 95 "/usr/include/string.h" 3 4
10072 extern void *memchr (__const void *__s, int __c, size_t __n)
10073 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10076 # 109 "/usr/include/string.h" 3 4
10077 extern void *rawmemchr (__const void *__s, int __c)
10078 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10079 # 120 "/usr/include/string.h" 3 4
10080 extern void *memrchr (__const void *__s, int __c, size_t __n)
10081 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10088 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
10089 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10091 extern char *strncpy (char *__restrict __dest,
10092 __const char *__restrict __src, size_t __n)
10093 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10096 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
10097 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10099 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
10100 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10103 extern int strcmp (__const char *__s1, __const char *__s2)
10104 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10106 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
10107 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10110 extern int strcoll (__const char *__s1, __const char *__s2)
10111 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10113 extern size_t strxfrm (char *__restrict __dest,
10114 __const char *__restrict __src, size_t __n)
10115 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
10117 # 165 "/usr/include/string.h" 3 4
10118 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
10119 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
10121 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
10122 __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
10128 extern char *strdup (__const char *__s)
10129 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
10136 extern char *strndup (__const char *__string, size_t __n)
10137 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
10138 # 210 "/usr/include/string.h" 3 4
10140 # 235 "/usr/include/string.h" 3 4
10141 extern char *strchr (__const char *__s, int __c)
10142 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10143 # 262 "/usr/include/string.h" 3 4
10144 extern char *strrchr (__const char *__s, int __c)
10145 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10148 # 276 "/usr/include/string.h" 3 4
10149 extern char *strchrnul (__const char *__s, int __c)
10150 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10157 extern size_t strcspn (__const char *__s, __const char *__reject)
10158 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10161 extern size_t strspn (__const char *__s, __const char *__accept)
10162 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10163 # 314 "/usr/include/string.h" 3 4
10164 extern char *strpbrk (__const char *__s, __const char *__accept)
10165 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10166 # 342 "/usr/include/string.h" 3 4
10167 extern char *strstr (__const char *__haystack, __const char *__needle)
10168 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10173 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
10174 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
10179 extern char *__strtok_r (char *__restrict __s,
10180 __const char *__restrict __delim,
10181 char **__restrict __save_ptr)
10182 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
10184 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
10185 char **__restrict __save_ptr)
10186 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
10187 # 373 "/usr/include/string.h" 3 4
10188 extern char *strcasestr (__const char *__haystack, __const char *__needle)
10189 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10197 extern void *memmem (__const void *__haystack, size_t __haystacklen,
10198 __const void *__needle, size_t __needlelen)
10199 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
10203 extern void *__mempcpy (void *__restrict __dest,
10204 __const void *__restrict __src, size_t __n)
10205 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10206 extern void *mempcpy (void *__restrict __dest,
10207 __const void *__restrict __src, size_t __n)
10208 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10214 extern size_t strlen (__const char *__s)
10215 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10221 extern size_t strnlen (__const char *__string, size_t __maxlen)
10222 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10228 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
10230 # 438 "/usr/include/string.h" 3 4
10231 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
10232 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
10238 extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__));
10244 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10248 extern void bcopy (__const void *__src, void *__dest, size_t __n)
10249 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10252 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10255 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
10256 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10257 # 489 "/usr/include/string.h" 3 4
10258 extern char *index (__const char *__s, int __c)
10259 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10260 # 517 "/usr/include/string.h" 3 4
10261 extern char *rindex (__const char *__s, int __c)
10262 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10267 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
10272 extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
10274 __extension__ extern int ffsll (long long int __ll)
10275 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
10280 extern int strcasecmp (__const char *__s1, __const char *__s2)
10281 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10284 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
10285 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10291 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
10293 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
10295 extern int strncasecmp_l (__const char *__s1, __const char *__s2,
10296 size_t __n, __locale_t __loc)
10297 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
10303 extern char *strsep (char **__restrict __stringp,
10304 __const char *__restrict __delim)
10305 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10310 extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
10313 extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
10314 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10315 extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
10316 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10320 extern char *__stpncpy (char *__restrict __dest,
10321 __const char *__restrict __src, size_t __n)
10322 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10323 extern char *stpncpy (char *__restrict __dest,
10324 __const char *__restrict __src, size_t __n)
10325 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10330 extern int strverscmp (__const char *__s1, __const char *__s2)
10331 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
10334 extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10337 extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10338 # 606 "/usr/include/string.h" 3 4
10339 extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10340 # 634 "/usr/include/string.h" 3 4
10341 # 1 "/usr/include/bits/string.h" 1 3 4
10342 # 635 "/usr/include/string.h" 2 3 4
10345 # 1 "/usr/include/bits/string2.h" 1 3 4
10346 # 80 "/usr/include/bits/string2.h" 3 4
10347 typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2;
10348 typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3;
10349 typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4;
10350 typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5;
10351 typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6;
10352 typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7;
10353 typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8;
10354 # 394 "/usr/include/bits/string2.h" 3 4
10355 extern void *__rawmemchr (const void *__s, int __c);
10356 # 969 "/usr/include/bits/string2.h" 3 4
10357 extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c1 (__const char *__s, int __reject);
10358 extern __inline __attribute__ ((__gnu_inline__)) size_t
10359 __strcspn_c1 (__const char *__s, int __reject)
10361 register size_t __result = 0;
10362 while (__s[__result] != '\0' && __s[__result] != __reject)
10367 extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c2 (__const char *__s, int __reject1,
10369 extern __inline __attribute__ ((__gnu_inline__)) size_t
10370 __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
10372 register size_t __result = 0;
10373 while (__s[__result] != '\0' && __s[__result] != __reject1
10374 && __s[__result] != __reject2)
10379 extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c3 (__const char *__s, int __reject1,
10380 int __reject2, int __reject3);
10381 extern __inline __attribute__ ((__gnu_inline__)) size_t
10382 __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
10385 register size_t __result = 0;
10386 while (__s[__result] != '\0' && __s[__result] != __reject1
10387 && __s[__result] != __reject2 && __s[__result] != __reject3)
10391 # 1045 "/usr/include/bits/string2.h" 3 4
10392 extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c1 (__const char *__s, int __accept);
10393 extern __inline __attribute__ ((__gnu_inline__)) size_t
10394 __strspn_c1 (__const char *__s, int __accept)
10396 register size_t __result = 0;
10398 while (__s[__result] == __accept)
10403 extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c2 (__const char *__s, int __accept1,
10405 extern __inline __attribute__ ((__gnu_inline__)) size_t
10406 __strspn_c2 (__const char *__s, int __accept1, int __accept2)
10408 register size_t __result = 0;
10410 while (__s[__result] == __accept1 || __s[__result] == __accept2)
10415 extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c3 (__const char *__s, int __accept1,
10416 int __accept2, int __accept3);
10417 extern __inline __attribute__ ((__gnu_inline__)) size_t
10418 __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
10420 register size_t __result = 0;
10422 while (__s[__result] == __accept1 || __s[__result] == __accept2
10423 || __s[__result] == __accept3)
10427 # 1121 "/usr/include/bits/string2.h" 3 4
10428 extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c2 (__const char *__s, int __accept1,
10430 extern __inline __attribute__ ((__gnu_inline__)) char *
10431 __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
10434 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
10436 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
10439 extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c3 (__const char *__s, int __accept1,
10440 int __accept2, int __accept3);
10441 extern __inline __attribute__ ((__gnu_inline__)) char *
10442 __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
10446 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
10447 && *__s != __accept3)
10449 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
10451 # 1172 "/usr/include/bits/string2.h" 3 4
10452 extern __inline __attribute__ ((__gnu_inline__)) char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
10453 extern __inline __attribute__ ((__gnu_inline__)) char *
10454 __strtok_r_1c (char *__s, char __sep, char **__nextp)
10457 if (__s == ((void *)0))
10459 while (*__s == __sep)
10461 __result = ((void *)0);
10465 while (*__s != '\0')
10466 if (*__s++ == __sep)
10475 # 1204 "/usr/include/bits/string2.h" 3 4
10476 extern char *__strsep_g (char **__stringp, __const char *__delim);
10477 # 1222 "/usr/include/bits/string2.h" 3 4
10478 extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_1c (char **__s, char __reject);
10479 extern __inline __attribute__ ((__gnu_inline__)) char *
10480 __strsep_1c (char **__s, char __reject)
10482 register char *__retval = *__s;
10483 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))
10488 extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_2c (char **__s, char __reject1, char __reject2);
10489 extern __inline __attribute__ ((__gnu_inline__)) char *
10490 __strsep_2c (char **__s, char __reject1, char __reject2)
10492 register char *__retval = *__s;
10493 if (__retval != ((void *)0))
10495 register char *__cp = __retval;
10500 __cp = ((void *)0);
10503 if (*__cp == __reject1 || *__cp == __reject2)
10515 extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_3c (char **__s, char __reject1, char __reject2,
10517 extern __inline __attribute__ ((__gnu_inline__)) char *
10518 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
10520 register char *__retval = *__s;
10521 if (__retval != ((void *)0))
10523 register char *__cp = __retval;
10528 __cp = ((void *)0);
10531 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
10542 # 1303 "/usr/include/bits/string2.h" 3 4
10543 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
10544 # 1322 "/usr/include/bits/string2.h" 3 4
10545 extern char *__strndup (__const char *__string, size_t __n)
10546 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
10547 # 638 "/usr/include/string.h" 2 3 4
10552 # 1 "/usr/include/bits/string3.h" 1 3 4
10553 # 23 "/usr/include/bits/string3.h" 3 4
10554 extern void __warn_memset_zero_len (void) __attribute__((__warning__ ("memset used with constant zero length parameter; this could be due to transposed parameters")))
10556 # 48 "/usr/include/bits/string3.h" 3 4
10557 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void *
10558 __attribute__ ((__nothrow__)) memcpy (void *__restrict __dest, __const void *__restrict __src, size_t __len)
10561 return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
10564 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void *
10565 __attribute__ ((__nothrow__)) memmove (void *__dest, __const void *__src, size_t __len)
10567 return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
10571 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void *
10572 __attribute__ ((__nothrow__)) mempcpy (void *__restrict __dest, __const void *__restrict __src, size_t __len)
10575 return __builtin___mempcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
10577 # 76 "/usr/include/bits/string3.h" 3 4
10578 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void *
10579 __attribute__ ((__nothrow__)) memset (void *__dest, int __ch, size_t __len)
10581 if (__builtin_constant_p (__len) && __len == 0
10582 && (!__builtin_constant_p (__ch) || __ch != 0))
10584 __warn_memset_zero_len ();
10587 return __builtin___memset_chk (__dest, __ch, __len, __builtin_object_size (__dest, 0));
10591 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void
10592 __attribute__ ((__nothrow__)) bcopy (__const void *__src, void *__dest, size_t __len)
10594 (void) __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
10597 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void
10598 __attribute__ ((__nothrow__)) bzero (void *__dest, size_t __len)
10600 (void) __builtin___memset_chk (__dest, '\0', __len, __builtin_object_size (__dest, 0));
10604 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
10605 __attribute__ ((__nothrow__)) strcpy (char *__restrict __dest, __const char *__restrict __src)
10607 return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
10611 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
10612 __attribute__ ((__nothrow__)) stpcpy (char *__restrict __dest, __const char *__restrict __src)
10614 return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
10619 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
10620 __attribute__ ((__nothrow__)) strncpy (char *__restrict __dest, __const char *__restrict __src, size_t __len)
10623 return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1));
10627 extern char *__stpncpy_chk (char *__dest, __const char *__src, size_t __n,
10628 size_t __destlen) __attribute__ ((__nothrow__));
10629 extern char *__stpncpy_alias (char *__dest, __const char *__src, size_t __n) __asm__ ("" "stpncpy") __attribute__ ((__nothrow__))
10633 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
10634 __attribute__ ((__nothrow__)) stpncpy (char *__dest, __const char *__src, size_t __n)
10636 if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1
10637 && (!__builtin_constant_p (__n) || __n <= __builtin_object_size (__dest, 2 > 1)))
10638 return __stpncpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1));
10639 return __stpncpy_alias (__dest, __src, __n);
10643 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
10644 __attribute__ ((__nothrow__)) strcat (char *__restrict __dest, __const char *__restrict __src)
10646 return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
10650 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
10651 __attribute__ ((__nothrow__)) strncat (char *__restrict __dest, __const char *__restrict __src, size_t __len)
10654 return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1));
10656 # 643 "/usr/include/string.h" 2 3 4
10661 # 48 "../../src/mesa/main/compiler.h" 2
10665 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/float.h" 1 3 4
10666 # 52 "../../src/mesa/main/compiler.h" 2
10667 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stdarg.h" 1 3 4
10668 # 53 "../../src/mesa/main/compiler.h" 2
10669 # 253 "../../src/mesa/main/compiler.h"
10670 # 1 "/usr/include/byteswap.h" 1 3 4
10671 # 23 "/usr/include/byteswap.h" 3 4
10672 # 1 "/usr/include/bits/byteswap.h" 1 3 4
10673 # 24 "/usr/include/byteswap.h" 2 3 4
10674 # 254 "../../src/mesa/main/compiler.h" 2
10675 # 40 "../../src/mesa/main/imports.h" 2
10676 # 1 "../../src/mesa/main/glheader.h" 1
10677 # 41 "../../src/mesa/main/imports.h" 2
10678 # 84 "../../src/mesa/main/imports.h"
10679 typedef union { GLfloat f; GLint i; } fi_type;
10680 # 181 "../../src/mesa/main/imports.h"
10681 static __inline__ GLfloat LOG2(GLfloat val)
10686 log_2 = ((num.i >> 23) & 255) - 128;
10687 num.i &= ~(255 << 23);
10688 num.i += 127 << 23;
10689 num.f = ((-1.0f/3) * num.f + 2) * num.f - 2.0f/3;
10690 return num.f + log_2;
10692 # 205 "../../src/mesa/main/imports.h"
10693 static __inline__ int IS_INF_OR_NAN( float x )
10697 return !(int)((unsigned int)((tmp.i & 0x7fffffff)-0x7f800000) >> 31);
10699 # 228 "../../src/mesa/main/imports.h"
10700 static __inline__ int GET_FLOAT_BITS( float x )
10706 # 354 "../../src/mesa/main/imports.h"
10707 static __inline__ int ifloor(float f)
10713 af = (3 << 22) + 0.5 + (double)f;
10714 bf = (3 << 22) + 0.5 - (double)f;
10715 u.f = (float) af; ai = u.i;
10716 u.f = (float) bf; bi = u.i;
10717 return (ai - bi) >> 1;
10719 # 401 "../../src/mesa/main/imports.h"
10720 static __inline__ int iceil(float f)
10725 af = (3 << 22) + 0.5 + (double)f;
10726 bf = (3 << 22) + 0.5 - (double)f;
10727 u.f = (float) af; ai = u.i;
10728 u.f = (float) bf; bi = u.i;
10729 return (ai - bi + 1) >> 1;
10731 # 426 "../../src/mesa/main/imports.h"
10732 static __inline__ int
10733 _mesa_is_pow_two(int x)
10735 return !(x & (x - 1));
10737 # 446 "../../src/mesa/main/imports.h"
10738 static __inline__ int32_t
10739 _mesa_next_pow_two_32(uint32_t x)
10743 uint32_t y = (x != 1);
10744 return (1 + y) << ((__builtin_clz(x - y) ^ 31) );
10745 # 463 "../../src/mesa/main/imports.h"
10748 static __inline__ int64_t
10749 _mesa_next_pow_two_64(uint64_t x)
10753 uint64_t y = (x != 1);
10754 if (sizeof(x) == sizeof(long))
10755 return (1 + y) << ((__builtin_clzl(x - y) ^ 63));
10757 return (1 + y) << ((__builtin_clzll(x - y) ^ 63));
10758 # 486 "../../src/mesa/main/imports.h"
10765 static __inline__ GLuint
10766 _mesa_logbase2(GLuint n)
10770 return (31 - __builtin_clz(n | 1));
10771 # 507 "../../src/mesa/main/imports.h"
10778 static __inline__ GLboolean
10779 _mesa_little_endian(void)
10781 const GLuint ui = 1;
10782 return *((const GLubyte *) &ui);
10792 _mesa_align_malloc( size_t bytes, unsigned long alignment );
10795 _mesa_align_calloc( size_t bytes, unsigned long alignment );
10798 _mesa_align_free( void *ptr );
10801 _mesa_align_realloc(void *oldBuffer, size_t oldSize, size_t newSize,
10802 unsigned long alignment);
10805 _mesa_exec_malloc( GLuint size );
10808 _mesa_exec_free( void *addr );
10811 _mesa_realloc( void *oldBuffer, size_t oldSize, size_t newSize );
10814 _mesa_memset16( unsigned short *dst, unsigned short val, size_t n );
10817 _mesa_sqrtd(double x);
10820 _mesa_sqrtf(float x);
10823 _mesa_inv_sqrtf(float x);
10826 _mesa_init_sqrt_table(void);
10827 # 591 "../../src/mesa/main/imports.h"
10829 _mesa_float_to_half(float f);
10832 _mesa_half_to_float(GLhalfARB h);
10836 _mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size,
10837 int (*compar)(const void *, const void *) );
10840 _mesa_getenv( const char *var );
10843 _mesa_strdup( const char *s );
10846 _mesa_strtof( const char *s, char **end );
10848 extern unsigned int
10849 _mesa_str_checksum(const char *str);
10852 _mesa_snprintf( char *str, size_t size, const char *fmt, ... ) __attribute__ ((format(__printf__, 3, 4)));
10857 _mesa_warning( struct gl_context *gc, const char *fmtString, ... ) __attribute__ ((format(__printf__, 2, 3)));
10860 _mesa_problem( const struct gl_context *ctx, const char *fmtString, ... ) __attribute__ ((format(__printf__, 2, 3)));
10863 _mesa_error( struct gl_context *ctx, GLenum error, const char *fmtString, ... ) __attribute__ ((format(__printf__, 3, 4)));
10866 _mesa_debug( const struct gl_context *ctx, const char *fmtString, ... ) __attribute__ ((format(__printf__, 2, 3)));
10867 # 53 "../../src/mesa/main/context.h" 2
10868 # 1 "../../src/mesa/main/mtypes.h" 1
10869 # 38 "../../src/mesa/main/mtypes.h"
10870 # 1 "../../src/mesa/main/config.h" 1
10871 # 39 "../../src/mesa/main/mtypes.h" 2
10872 # 1 "../../src/mesa/main/mfeatures.h" 1
10873 # 40 "../../src/mesa/main/mtypes.h" 2
10874 # 1 "../../src/mapi/glapi/glapi.h" 1
10875 # 75 "../../src/mapi/glapi/glapi.h"
10876 # 1 "../../src/mapi/glapi/glthread.h" 1
10880 # 1 "../../src/mapi/mapi/u_thread.h" 1
10881 # 45 "../../src/mapi/mapi/u_thread.h"
10882 # 1 "../../src/mapi/mapi/u_compiler.h" 1
10883 # 46 "../../src/mapi/mapi/u_thread.h" 2
10884 # 63 "../../src/mapi/mapi/u_thread.h"
10885 # 1 "/usr/include/pthread.h" 1 3 4
10886 # 25 "/usr/include/pthread.h" 3 4
10887 # 1 "/usr/include/sched.h" 1 3 4
10888 # 30 "/usr/include/sched.h" 3 4
10889 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
10890 # 31 "/usr/include/sched.h" 2 3 4
10894 # 1 "/usr/include/time.h" 1 3 4
10895 # 35 "/usr/include/sched.h" 2 3 4
10896 # 43 "/usr/include/sched.h" 3 4
10897 # 1 "/usr/include/bits/sched.h" 1 3 4
10898 # 74 "/usr/include/bits/sched.h" 3 4
10901 int __sched_priority;
10908 extern int clone (int (*__fn) (void *__arg), void *__child_stack,
10909 int __flags, void *__arg, ...) __attribute__ ((__nothrow__));
10912 extern int unshare (int __flags) __attribute__ ((__nothrow__));
10915 extern int sched_getcpu (void) __attribute__ ((__nothrow__));
10926 struct __sched_param
10928 int __sched_priority;
10930 # 116 "/usr/include/bits/sched.h" 3 4
10931 typedef unsigned long int __cpu_mask;
10940 __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
10942 # 199 "/usr/include/bits/sched.h" 3 4
10945 extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
10946 __attribute__ ((__nothrow__));
10947 extern cpu_set_t *__sched_cpualloc (size_t __count) __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
10948 extern void __sched_cpufree (cpu_set_t *__set) __attribute__ ((__nothrow__));
10951 # 44 "/usr/include/sched.h" 2 3 4
10959 extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
10960 __attribute__ ((__nothrow__));
10963 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__));
10966 extern int sched_setscheduler (__pid_t __pid, int __policy,
10967 __const struct sched_param *__param) __attribute__ ((__nothrow__));
10970 extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__));
10973 extern int sched_yield (void) __attribute__ ((__nothrow__));
10976 extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__));
10979 extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__));
10982 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__));
10983 # 118 "/usr/include/sched.h" 3 4
10984 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
10985 __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
10988 extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
10989 cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
10993 # 26 "/usr/include/pthread.h" 2 3 4
10994 # 1 "/usr/include/time.h" 1 3 4
10995 # 30 "/usr/include/time.h" 3 4
11004 # 1 "/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/include/stddef.h" 1 3 4
11005 # 39 "/usr/include/time.h" 2 3 4
11009 # 1 "/usr/include/bits/time.h" 1 3 4
11010 # 43 "/usr/include/time.h" 2 3 4
11011 # 131 "/usr/include/time.h" 3 4
11027 long int tm_gmtoff;
11028 __const char *tm_zone;
11044 struct timespec it_interval;
11045 struct timespec it_value;
11050 # 180 "/usr/include/time.h" 3 4
11054 extern clock_t clock (void) __attribute__ ((__nothrow__));
11057 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
11060 extern double difftime (time_t __time1, time_t __time0)
11061 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
11064 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
11070 extern size_t strftime (char *__restrict __s, size_t __maxsize,
11071 __const char *__restrict __format,
11072 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
11078 extern char *strptime (__const char *__restrict __s,
11079 __const char *__restrict __fmt, struct tm *__tp)
11080 __attribute__ ((__nothrow__));
11088 extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
11089 __const char *__restrict __format,
11090 __const struct tm *__restrict __tp,
11091 __locale_t __loc) __attribute__ ((__nothrow__));
11095 extern char *strptime_l (__const char *__restrict __s,
11096 __const char *__restrict __fmt, struct tm *__tp,
11097 __locale_t __loc) __attribute__ ((__nothrow__));
11104 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
11108 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
11114 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
11115 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
11119 extern struct tm *localtime_r (__const time_t *__restrict __timer,
11120 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
11126 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
11129 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
11137 extern char *asctime_r (__const struct tm *__restrict __tp,
11138 char *__restrict __buf) __attribute__ ((__nothrow__));
11141 extern char *ctime_r (__const time_t *__restrict __timer,
11142 char *__restrict __buf) __attribute__ ((__nothrow__));
11147 extern char *__tzname[2];
11148 extern int __daylight;
11149 extern long int __timezone;
11154 extern char *tzname[2];
11158 extern void tzset (void) __attribute__ ((__nothrow__));
11162 extern int daylight;
11163 extern long int timezone;
11169 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
11170 # 313 "/usr/include/time.h" 3 4
11171 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
11174 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
11177 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
11178 # 328 "/usr/include/time.h" 3 4
11179 extern int nanosleep (__const struct timespec *__requested_time,
11180 struct timespec *__remaining);
11184 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
11187 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
11190 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
11191 __attribute__ ((__nothrow__));
11198 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
11199 __const struct timespec *__req,
11200 struct timespec *__rem);
11203 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
11208 extern int timer_create (clockid_t __clock_id,
11209 struct sigevent *__restrict __evp,
11210 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
11213 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
11216 extern int timer_settime (timer_t __timerid, int __flags,
11217 __const struct itimerspec *__restrict __value,
11218 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
11221 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
11222 __attribute__ ((__nothrow__));
11225 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
11226 # 390 "/usr/include/time.h" 3 4
11227 extern int getdate_err;
11228 # 399 "/usr/include/time.h" 3 4
11229 extern struct tm *getdate (__const char *__string);
11230 # 413 "/usr/include/time.h" 3 4
11231 extern int getdate_r (__const char *__restrict __string,
11232 struct tm *__restrict __resbufp);
11236 # 27 "/usr/include/pthread.h" 2 3 4
11239 # 1 "/usr/include/bits/setjmp.h" 1 3 4
11240 # 33 "/usr/include/bits/setjmp.h" 3 4
11241 typedef double __jmp_buf[21];
11242 # 30 "/usr/include/pthread.h" 2 3 4
11243 # 1 "/usr/include/bits/wordsize.h" 1 3 4
11244 # 31 "/usr/include/pthread.h" 2 3 4
11250 PTHREAD_CREATE_JOINABLE,
11252 PTHREAD_CREATE_DETACHED
11260 PTHREAD_MUTEX_TIMED_NP,
11261 PTHREAD_MUTEX_RECURSIVE_NP,
11262 PTHREAD_MUTEX_ERRORCHECK_NP,
11263 PTHREAD_MUTEX_ADAPTIVE_NP
11266 PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
11267 PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
11268 PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
11269 PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
11273 , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP
11282 PTHREAD_MUTEX_STALLED,
11283 PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
11284 PTHREAD_MUTEX_ROBUST,
11285 PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
11295 PTHREAD_PRIO_INHERIT,
11296 PTHREAD_PRIO_PROTECT
11298 # 115 "/usr/include/pthread.h" 3 4
11301 PTHREAD_RWLOCK_PREFER_READER_NP,
11302 PTHREAD_RWLOCK_PREFER_WRITER_NP,
11303 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
11304 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
11306 # 147 "/usr/include/pthread.h" 3 4
11309 PTHREAD_INHERIT_SCHED,
11311 PTHREAD_EXPLICIT_SCHED
11319 PTHREAD_SCOPE_SYSTEM,
11321 PTHREAD_SCOPE_PROCESS
11329 PTHREAD_PROCESS_PRIVATE,
11331 PTHREAD_PROCESS_SHARED
11334 # 182 "/usr/include/pthread.h" 3 4
11335 struct _pthread_cleanup_buffer
11337 void (*__routine) (void *);
11340 struct _pthread_cleanup_buffer *__prev;
11346 PTHREAD_CANCEL_ENABLE,
11348 PTHREAD_CANCEL_DISABLE
11353 PTHREAD_CANCEL_DEFERRED,
11355 PTHREAD_CANCEL_ASYNCHRONOUS
11358 # 220 "/usr/include/pthread.h" 3 4
11364 extern int pthread_create (pthread_t *__restrict __newthread,
11365 __const pthread_attr_t *__restrict __attr,
11366 void *(*__start_routine) (void *),
11367 void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
11373 extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
11381 extern int pthread_join (pthread_t __th, void **__thread_return);
11386 extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __attribute__ ((__nothrow__));
11394 extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,
11395 __const struct timespec *__abstime);
11402 extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__));
11406 extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
11409 extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__));
11417 extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11420 extern int pthread_attr_destroy (pthread_attr_t *__attr)
11421 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11424 extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
11425 int *__detachstate)
11426 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11429 extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
11431 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11435 extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
11436 size_t *__guardsize)
11437 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11440 extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
11441 size_t __guardsize)
11442 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11446 extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
11448 struct sched_param *__restrict __param)
11449 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11452 extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
11453 __const struct sched_param *__restrict
11454 __param) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11457 extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
11458 __attr, int *__restrict __policy)
11459 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11462 extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
11463 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11466 extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
11467 __attr, int *__restrict __inherit)
11468 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11471 extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
11473 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11477 extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
11478 int *__restrict __scope)
11479 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11482 extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
11483 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11486 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
11487 __attr, void **__restrict __stackaddr)
11488 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
11494 extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
11496 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
11499 extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
11500 __attr, size_t *__restrict __stacksize)
11501 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11506 extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
11507 size_t __stacksize)
11508 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11512 extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
11513 void **__restrict __stackaddr,
11514 size_t *__restrict __stacksize)
11515 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
11520 extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
11521 size_t __stacksize) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11527 extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
11528 size_t __cpusetsize,
11529 __const cpu_set_t *__cpuset)
11530 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
11534 extern int pthread_attr_getaffinity_np (__const pthread_attr_t *__attr,
11535 size_t __cpusetsize,
11536 cpu_set_t *__cpuset)
11537 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
11543 extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr)
11544 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
11552 extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
11553 __const struct sched_param *__param)
11554 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
11557 extern int pthread_getschedparam (pthread_t __target_thread,
11558 int *__restrict __policy,
11559 struct sched_param *__restrict __param)
11560 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
11563 extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
11564 __attribute__ ((__nothrow__));
11569 extern int pthread_getname_np (pthread_t __target_thread, char *__buf,
11571 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
11574 extern int pthread_setname_np (pthread_t __target_thread, __const char *__name)
11575 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
11581 extern int pthread_getconcurrency (void) __attribute__ ((__nothrow__));
11584 extern int pthread_setconcurrency (int __level) __attribute__ ((__nothrow__));
11592 extern int pthread_yield (void) __attribute__ ((__nothrow__));
11597 extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
11598 __const cpu_set_t *__cpuset)
11599 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
11602 extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
11603 cpu_set_t *__cpuset)
11604 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
11605 # 478 "/usr/include/pthread.h" 3 4
11606 extern int pthread_once (pthread_once_t *__once_control,
11607 void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
11608 # 490 "/usr/include/pthread.h" 3 4
11609 extern int pthread_setcancelstate (int __state, int *__oldstate);
11613 extern int pthread_setcanceltype (int __type, int *__oldtype);
11616 extern int pthread_cancel (pthread_t __th);
11621 extern void pthread_testcancel (void);
11630 __jmp_buf __cancel_jmp_buf;
11631 int __mask_was_saved;
11632 } __cancel_jmp_buf[1];
11634 } __pthread_unwind_buf_t __attribute__ ((__aligned__));
11635 # 524 "/usr/include/pthread.h" 3 4
11636 struct __pthread_cleanup_frame
11638 void (*__cancel_routine) (void *);
11639 void *__cancel_arg;
11643 # 664 "/usr/include/pthread.h" 3 4
11644 extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
11646 # 676 "/usr/include/pthread.h" 3 4
11647 extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
11649 # 699 "/usr/include/pthread.h" 3 4
11650 extern void __pthread_register_cancel_defer (__pthread_unwind_buf_t *__buf)
11652 # 712 "/usr/include/pthread.h" 3 4
11653 extern void __pthread_unregister_cancel_restore (__pthread_unwind_buf_t *__buf)
11658 extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
11659 __attribute__ ((__noreturn__))
11661 __attribute__ ((__weak__))
11667 struct __jmp_buf_tag;
11668 extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__));
11674 extern int pthread_mutex_init (pthread_mutex_t *__mutex,
11675 __const pthread_mutexattr_t *__mutexattr)
11676 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11679 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
11680 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11683 extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
11684 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11687 extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
11688 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11692 extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
11693 __const struct timespec *__restrict
11694 __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11698 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
11699 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11703 extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
11704 __restrict __mutex,
11705 int *__restrict __prioceiling)
11706 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11710 extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
11712 int *__restrict __old_ceiling)
11713 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
11718 extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
11719 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11721 extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex)
11722 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11723 # 790 "/usr/include/pthread.h" 3 4
11724 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
11725 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11728 extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
11729 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11732 extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
11734 int *__restrict __pshared)
11735 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11738 extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
11740 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11744 extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
11745 __attr, int *__restrict __kind)
11746 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11751 extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
11752 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11756 extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
11758 int *__restrict __protocol)
11759 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11763 extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
11765 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11768 extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
11770 int *__restrict __prioceiling)
11771 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11774 extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
11776 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11780 extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,
11782 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11784 extern int pthread_mutexattr_getrobust_np (__const pthread_mutexattr_t *__attr,
11786 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11790 extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
11792 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11794 extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr,
11796 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11797 # 872 "/usr/include/pthread.h" 3 4
11798 extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
11799 __const pthread_rwlockattr_t *__restrict
11800 __attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11803 extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
11804 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11807 extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
11808 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11811 extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
11812 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11816 extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
11817 __const struct timespec *__restrict
11818 __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11822 extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
11823 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11826 extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
11827 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11831 extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
11832 __const struct timespec *__restrict
11833 __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11837 extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
11838 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11844 extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
11845 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11848 extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
11849 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11852 extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
11854 int *__restrict __pshared)
11855 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11858 extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
11860 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11863 extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
11865 int *__restrict __pref)
11866 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11869 extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
11870 int __pref) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11878 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
11879 __const pthread_condattr_t *__restrict
11880 __cond_attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11883 extern int pthread_cond_destroy (pthread_cond_t *__cond)
11884 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11887 extern int pthread_cond_signal (pthread_cond_t *__cond)
11888 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11891 extern int pthread_cond_broadcast (pthread_cond_t *__cond)
11892 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11899 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
11900 pthread_mutex_t *__restrict __mutex)
11901 __attribute__ ((__nonnull__ (1, 2)));
11902 # 984 "/usr/include/pthread.h" 3 4
11903 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
11904 pthread_mutex_t *__restrict __mutex,
11905 __const struct timespec *__restrict
11906 __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
11911 extern int pthread_condattr_init (pthread_condattr_t *__attr)
11912 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11915 extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
11916 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11919 extern int pthread_condattr_getpshared (__const pthread_condattr_t *
11921 int *__restrict __pshared)
11922 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11925 extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
11926 int __pshared) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11930 extern int pthread_condattr_getclock (__const pthread_condattr_t *
11932 __clockid_t *__restrict __clock_id)
11933 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11936 extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
11937 __clockid_t __clock_id)
11938 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11939 # 1028 "/usr/include/pthread.h" 3 4
11940 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
11941 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11944 extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
11945 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11948 extern int pthread_spin_lock (pthread_spinlock_t *__lock)
11949 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11952 extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
11953 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11956 extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
11957 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11964 extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
11965 __const pthread_barrierattr_t *__restrict
11966 __attr, unsigned int __count)
11967 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11970 extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
11971 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11974 extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
11975 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11979 extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
11980 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11983 extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
11984 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11987 extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
11989 int *__restrict __pshared)
11990 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
11993 extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
11995 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
11996 # 1095 "/usr/include/pthread.h" 3 4
11997 extern int pthread_key_create (pthread_key_t *__key,
11998 void (*__destr_function) (void *))
11999 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
12002 extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__));
12005 extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__));
12008 extern int pthread_setspecific (pthread_key_t __key,
12009 __const void *__pointer) __attribute__ ((__nothrow__)) ;
12014 extern int pthread_getcpuclockid (pthread_t __thread_id,
12015 __clockid_t *__clock_id)
12016 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
12017 # 1129 "/usr/include/pthread.h" 3 4
12018 extern int pthread_atfork (void (*__prepare) (void),
12019 void (*__parent) (void),
12020 void (*__child) (void)) __attribute__ ((__nothrow__));
12025 extern __inline __attribute__ ((__gnu_inline__)) int
12026 __attribute__ ((__nothrow__)) pthread_equal (pthread_t __thread1, pthread_t __thread2)
12028 return __thread1 == __thread2;
12033 # 64 "../../src/mapi/mapi/u_thread.h" 2
12040 typedef pthread_mutex_t u_mutex;
12041 # 186 "../../src/mapi/mapi/u_thread.h"
12043 u_thread_self(void);
12046 u_tsd_init(struct u_tsd *tsd);
12049 u_tsd_destroy(struct u_tsd *tsd);
12052 u_tsd_get(struct u_tsd *tsd);
12055 u_tsd_set(struct u_tsd *tsd, void *ptr);
12056 # 5 "../../src/mapi/glapi/glthread.h" 2
12057 # 17 "../../src/mapi/glapi/glthread.h"
12058 typedef struct u_tsd _glthread_TSD;
12059 typedef u_mutex _glthread_Mutex;
12060 # 76 "../../src/mapi/glapi/glapi.h" 2
12062 typedef void (*_glapi_proc)(void);
12063 struct _glapi_table;
12068 __attribute__((visibility("default"))) extern __thread struct _glapi_table * _glapi_tls_Dispatch
12069 __attribute__((tls_model("initial-exec")));
12071 __attribute__((visibility("default"))) extern __thread void * _glapi_tls_Context
12072 __attribute__((tls_model("initial-exec")));
12074 __attribute__((visibility("default"))) extern const struct _glapi_table *_glapi_Dispatch;
12075 __attribute__((visibility("default"))) extern const void *_glapi_Context;
12076 # 118 "../../src/mapi/glapi/glapi.h"
12078 _glapi_destroy_multithread(void);
12081 __attribute__((visibility("default"))) void
12082 _glapi_check_multithread(void);
12085 __attribute__((visibility("default"))) void
12086 _glapi_set_context(void *context);
12089 __attribute__((visibility("default"))) void *
12090 _glapi_get_context(void);
12093 __attribute__((visibility("default"))) void
12094 _glapi_set_dispatch(struct _glapi_table *dispatch);
12097 __attribute__((visibility("default"))) struct _glapi_table *
12098 _glapi_get_dispatch(void);
12101 __attribute__((visibility("default"))) unsigned int
12102 _glapi_get_dispatch_table_size(void);
12105 __attribute__((visibility("default"))) int
12106 _glapi_add_dispatch( const char * const * function_names,
12107 const char * parameter_signature );
12109 __attribute__((visibility("default"))) int
12110 _glapi_get_proc_offset(const char *funcName);
12113 __attribute__((visibility("default"))) _glapi_proc
12114 _glapi_get_proc_address(const char *funcName);
12117 __attribute__((visibility("default"))) const char *
12118 _glapi_get_proc_name(unsigned int offset);
12121 __attribute__((visibility("default"))) struct _glapi_table *
12122 _glapi_create_table_from_handle(void *handle, const char *symbol_prefix);
12125 __attribute__((visibility("default"))) unsigned long
12126 _glthread_GetID(void);
12132 __attribute__((visibility("default"))) void
12133 _glapi_noop_enable_warnings(unsigned char enable);
12136 __attribute__((visibility("default"))) void
12137 _glapi_set_warning_func(_glapi_proc func);
12138 # 41 "../../src/mesa/main/mtypes.h" 2
12139 # 1 "../../src/mesa/math/m_matrix.h" 1
12140 # 57 "../../src/mesa/math/m_matrix.h"
12141 enum GLmatrixtype {
12145 MATRIX_PERSPECTIVE,
12160 enum GLmatrixtype type;
12167 _math_matrix_ctr( GLmatrix *m );
12170 _math_matrix_dtr( GLmatrix *m );
12173 _math_matrix_alloc_inv( GLmatrix *m );
12176 _math_matrix_mul_matrix( GLmatrix *dest, const GLmatrix *a, const GLmatrix *b );
12179 _math_matrix_mul_floats( GLmatrix *dest, const GLfloat *b );
12182 _math_matrix_loadf( GLmatrix *mat, const GLfloat *m );
12185 _math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
12188 _math_matrix_rotate( GLmatrix *m, GLfloat angle,
12189 GLfloat x, GLfloat y, GLfloat z );
12192 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
12195 _math_matrix_ortho( GLmatrix *mat,
12196 GLfloat left, GLfloat right,
12197 GLfloat bottom, GLfloat top,
12198 GLfloat nearval, GLfloat farval );
12201 _math_matrix_frustum( GLmatrix *mat,
12202 GLfloat left, GLfloat right,
12203 GLfloat bottom, GLfloat top,
12204 GLfloat nearval, GLfloat farval );
12207 _math_matrix_viewport(GLmatrix *m, GLint x, GLint y, GLint width, GLint height,
12208 GLfloat zNear, GLfloat zFar, GLfloat depthMax);
12211 _math_matrix_set_identity( GLmatrix *dest );
12214 _math_matrix_copy( GLmatrix *to, const GLmatrix *from );
12217 _math_matrix_analyse( GLmatrix *mat );
12220 _math_matrix_print( const GLmatrix *m );
12223 _math_matrix_is_length_preserving( const GLmatrix *m );
12226 _math_matrix_has_rotation( const GLmatrix *m );
12229 _math_matrix_is_general_scale( const GLmatrix *m );
12232 _math_matrix_is_dirty( const GLmatrix *m );
12241 _math_transposef( GLfloat to[16], const GLfloat from[16] );
12244 _math_transposed( GLdouble to[16], const GLdouble from[16] );
12247 _math_transposefd( GLfloat to[16], const GLdouble from[16] );
12248 # 205 "../../src/mesa/math/m_matrix.h"
12250 _mesa_transform_vector(GLfloat u[4], const GLfloat v[4], const GLfloat m[16]);
12251 # 42 "../../src/mesa/main/mtypes.h" 2
12252 # 1 "../../src/mesa/main/simple_list.h" 1
12253 # 40 "../../src/mesa/main/simple_list.h"
12254 struct simple_node {
12255 struct simple_node *next;
12256 struct simple_node *prev;
12258 # 43 "../../src/mesa/main/mtypes.h" 2
12259 # 1 "../../src/mesa/main/formats.h" 1
12260 # 46 "../../src/mesa/main/formats.h"
12263 MESA_FORMAT_NONE = 0,
12271 MESA_FORMAT_RGBA8888,
12272 MESA_FORMAT_RGBA8888_REV,
12273 MESA_FORMAT_ARGB8888,
12274 MESA_FORMAT_ARGB8888_REV,
12275 MESA_FORMAT_XRGB8888,
12276 MESA_FORMAT_XRGB8888_REV,
12277 MESA_FORMAT_RGB888,
12278 MESA_FORMAT_BGR888,
12279 MESA_FORMAT_RGB565,
12280 MESA_FORMAT_RGB565_REV,
12281 MESA_FORMAT_ARGB4444,
12282 MESA_FORMAT_ARGB4444_REV,
12283 MESA_FORMAT_RGBA5551,
12284 MESA_FORMAT_ARGB1555,
12285 MESA_FORMAT_ARGB1555_REV,
12288 MESA_FORMAT_AL88_REV,
12289 MESA_FORMAT_AL1616,
12290 MESA_FORMAT_AL1616_REV,
12291 MESA_FORMAT_RGB332,
12300 MESA_FORMAT_YCBCR_REV,
12303 MESA_FORMAT_RG88_REV,
12305 MESA_FORMAT_RG1616,
12306 MESA_FORMAT_RG1616_REV,
12307 MESA_FORMAT_ARGB2101010,
12308 MESA_FORMAT_Z24_S8,
12309 MESA_FORMAT_S8_Z24,
12311 MESA_FORMAT_X8_Z24,
12312 MESA_FORMAT_Z24_X8,
12322 MESA_FORMAT_SRGBA8,
12323 MESA_FORMAT_SARGB8,
12326 MESA_FORMAT_SRGB_DXT1,
12327 MESA_FORMAT_SRGBA_DXT1,
12328 MESA_FORMAT_SRGBA_DXT3,
12329 MESA_FORMAT_SRGBA_DXT5,
12336 MESA_FORMAT_RGB_FXT1,
12337 MESA_FORMAT_RGBA_FXT1,
12338 MESA_FORMAT_RGB_DXT1,
12339 MESA_FORMAT_RGBA_DXT1,
12340 MESA_FORMAT_RGBA_DXT3,
12341 MESA_FORMAT_RGBA_DXT5,
12348 MESA_FORMAT_RGBA_FLOAT32,
12349 MESA_FORMAT_RGBA_FLOAT16,
12350 MESA_FORMAT_RGB_FLOAT32,
12351 MESA_FORMAT_RGB_FLOAT16,
12352 MESA_FORMAT_ALPHA_FLOAT32,
12353 MESA_FORMAT_ALPHA_FLOAT16,
12354 MESA_FORMAT_LUMINANCE_FLOAT32,
12355 MESA_FORMAT_LUMINANCE_FLOAT16,
12356 MESA_FORMAT_LUMINANCE_ALPHA_FLOAT32,
12357 MESA_FORMAT_LUMINANCE_ALPHA_FLOAT16,
12358 MESA_FORMAT_INTENSITY_FLOAT32,
12359 MESA_FORMAT_INTENSITY_FLOAT16,
12360 MESA_FORMAT_R_FLOAT32,
12361 MESA_FORMAT_R_FLOAT16,
12362 MESA_FORMAT_RG_FLOAT32,
12363 MESA_FORMAT_RG_FLOAT16,
12371 MESA_FORMAT_RGBA_INT8,
12372 MESA_FORMAT_RGBA_INT16,
12373 MESA_FORMAT_RGBA_INT32,
12378 MESA_FORMAT_RGBA_UINT8,
12379 MESA_FORMAT_RGBA_UINT16,
12380 MESA_FORMAT_RGBA_UINT32,
12389 MESA_FORMAT_SIGNED_R8,
12390 MESA_FORMAT_SIGNED_RG88_REV,
12391 MESA_FORMAT_SIGNED_RGBX8888,
12392 MESA_FORMAT_SIGNED_RGBA8888,
12393 MESA_FORMAT_SIGNED_RGBA8888_REV,
12394 MESA_FORMAT_SIGNED_R16,
12395 MESA_FORMAT_SIGNED_GR1616,
12396 MESA_FORMAT_SIGNED_RGB_16,
12397 MESA_FORMAT_SIGNED_RGBA_16,
12398 MESA_FORMAT_RGBA_16,
12402 MESA_FORMAT_RED_RGTC1,
12403 MESA_FORMAT_SIGNED_RED_RGTC1,
12404 MESA_FORMAT_RG_RGTC2,
12405 MESA_FORMAT_SIGNED_RG_RGTC2,
12409 MESA_FORMAT_L_LATC1,
12410 MESA_FORMAT_SIGNED_L_LATC1,
12411 MESA_FORMAT_LA_LATC2,
12412 MESA_FORMAT_SIGNED_LA_LATC2,
12415 MESA_FORMAT_SIGNED_A8,
12416 MESA_FORMAT_SIGNED_L8,
12417 MESA_FORMAT_SIGNED_AL88,
12418 MESA_FORMAT_SIGNED_I8,
12419 MESA_FORMAT_SIGNED_A16,
12420 MESA_FORMAT_SIGNED_L16,
12421 MESA_FORMAT_SIGNED_AL1616,
12422 MESA_FORMAT_SIGNED_I16,
12424 MESA_FORMAT_RGB9_E5_FLOAT,
12425 MESA_FORMAT_R11_G11_B10_FLOAT,
12431 extern const char *
12432 _mesa_get_format_name(gl_format format);
12435 _mesa_get_format_bytes(gl_format format);
12438 _mesa_get_format_bits(gl_format format, GLenum pname);
12441 _mesa_get_format_datatype(gl_format format);
12444 _mesa_get_format_base_format(gl_format format);
12447 _mesa_get_format_block_size(gl_format format, GLuint *bw, GLuint *bh);
12450 _mesa_is_format_compressed(gl_format format);
12453 _mesa_is_format_packed_depth_stencil(gl_format format);
12456 _mesa_is_format_integer_color(gl_format format);
12459 _mesa_get_format_color_encoding(gl_format format);
12462 _mesa_format_image_size(gl_format format, GLsizei width,
12463 GLsizei height, GLsizei depth);
12466 _mesa_format_image_size64(gl_format format, GLsizei width,
12467 GLsizei height, GLsizei depth);
12470 _mesa_format_row_stride(gl_format format, GLsizei width);
12473 _mesa_format_to_type_and_comps(gl_format format,
12474 GLenum *datatype, GLuint *comps);
12477 _mesa_test_formats(void);
12480 _mesa_get_srgb_format_linear(gl_format format);
12481 # 44 "../../src/mesa/main/mtypes.h" 2
12488 typedef GLubyte GLchan;
12489 # 73 "../../src/mesa/main/mtypes.h"
12490 typedef GLubyte GLstencil;
12491 # 85 "../../src/mesa/main/mtypes.h"
12492 typedef GLuint64 GLbitfield64;
12493 # 95 "../../src/mesa/main/mtypes.h"
12494 struct _mesa_HashTable;
12495 struct gl_attrib_node;
12496 struct gl_list_extensions;
12497 struct gl_meta_state;
12498 struct gl_pixelstore_attrib;
12499 struct gl_program_cache;
12500 struct gl_texture_format;
12501 struct gl_texture_image;
12502 struct gl_texture_object;
12505 # 119 "../../src/mesa/main/mtypes.h"
12508 MESA_SHADER_VERTEX = 0,
12509 MESA_SHADER_FRAGMENT = 1,
12510 MESA_SHADER_GEOMETRY = 2,
12511 MESA_SHADER_TYPES = 3
12513 # 136 "../../src/mesa/main/mtypes.h"
12516 VERT_ATTRIB_POS = 0,
12517 VERT_ATTRIB_WEIGHT = 1,
12518 VERT_ATTRIB_NORMAL = 2,
12519 VERT_ATTRIB_COLOR0 = 3,
12520 VERT_ATTRIB_COLOR1 = 4,
12521 VERT_ATTRIB_FOG = 5,
12522 VERT_ATTRIB_COLOR_INDEX = 6,
12523 VERT_ATTRIB_POINT_SIZE = 6,
12524 VERT_ATTRIB_EDGEFLAG = 7,
12525 VERT_ATTRIB_TEX0 = 8,
12526 VERT_ATTRIB_TEX1 = 9,
12527 VERT_ATTRIB_TEX2 = 10,
12528 VERT_ATTRIB_TEX3 = 11,
12529 VERT_ATTRIB_TEX4 = 12,
12530 VERT_ATTRIB_TEX5 = 13,
12531 VERT_ATTRIB_TEX6 = 14,
12532 VERT_ATTRIB_TEX7 = 15,
12533 VERT_ATTRIB_GENERIC0 = 16,
12534 VERT_ATTRIB_GENERIC1 = 17,
12535 VERT_ATTRIB_GENERIC2 = 18,
12536 VERT_ATTRIB_GENERIC3 = 19,
12537 VERT_ATTRIB_GENERIC4 = 20,
12538 VERT_ATTRIB_GENERIC5 = 21,
12539 VERT_ATTRIB_GENERIC6 = 22,
12540 VERT_ATTRIB_GENERIC7 = 23,
12541 VERT_ATTRIB_GENERIC8 = 24,
12542 VERT_ATTRIB_GENERIC9 = 25,
12543 VERT_ATTRIB_GENERIC10 = 26,
12544 VERT_ATTRIB_GENERIC11 = 27,
12545 VERT_ATTRIB_GENERIC12 = 28,
12546 VERT_ATTRIB_GENERIC13 = 29,
12547 VERT_ATTRIB_GENERIC14 = 30,
12548 VERT_ATTRIB_GENERIC15 = 31,
12549 VERT_ATTRIB_MAX = 32
12551 # 220 "../../src/mesa/main/mtypes.h"
12554 VERT_RESULT_HPOS = 0,
12555 VERT_RESULT_COL0 = 1,
12556 VERT_RESULT_COL1 = 2,
12557 VERT_RESULT_FOGC = 3,
12558 VERT_RESULT_TEX0 = 4,
12559 VERT_RESULT_TEX1 = 5,
12560 VERT_RESULT_TEX2 = 6,
12561 VERT_RESULT_TEX3 = 7,
12562 VERT_RESULT_TEX4 = 8,
12563 VERT_RESULT_TEX5 = 9,
12564 VERT_RESULT_TEX6 = 10,
12565 VERT_RESULT_TEX7 = 11,
12566 VERT_RESULT_PSIZ = 12,
12567 VERT_RESULT_BFC0 = 13,
12568 VERT_RESULT_BFC1 = 14,
12569 VERT_RESULT_EDGE = 15,
12570 VERT_RESULT_VAR0 = 16,
12571 VERT_RESULT_MAX = (VERT_RESULT_VAR0 + 16)
12582 GEOM_ATTRIB_POSITION = 0,
12583 GEOM_ATTRIB_COLOR0 = 1,
12584 GEOM_ATTRIB_COLOR1 = 2,
12585 GEOM_ATTRIB_SECONDARY_COLOR0 = 3,
12586 GEOM_ATTRIB_SECONDARY_COLOR1 = 4,
12587 GEOM_ATTRIB_FOG_FRAG_COORD = 5,
12588 GEOM_ATTRIB_POINT_SIZE = 6,
12589 GEOM_ATTRIB_CLIP_VERTEX = 7,
12590 GEOM_ATTRIB_PRIMITIVE_ID = 8,
12591 GEOM_ATTRIB_TEX_COORD = 9,
12593 GEOM_ATTRIB_VAR0 = 16,
12594 GEOM_ATTRIB_MAX = (GEOM_ATTRIB_VAR0 + 16)
12596 # 289 "../../src/mesa/main/mtypes.h"
12599 GEOM_RESULT_POS = 0,
12600 GEOM_RESULT_COL0 = 1,
12601 GEOM_RESULT_COL1 = 2,
12602 GEOM_RESULT_SCOL0 = 3,
12603 GEOM_RESULT_SCOL1 = 4,
12604 GEOM_RESULT_FOGC = 5,
12605 GEOM_RESULT_TEX0 = 6,
12606 GEOM_RESULT_TEX1 = 7,
12607 GEOM_RESULT_TEX2 = 8,
12608 GEOM_RESULT_TEX3 = 9,
12609 GEOM_RESULT_TEX4 = 10,
12610 GEOM_RESULT_TEX5 = 11,
12611 GEOM_RESULT_TEX6 = 12,
12612 GEOM_RESULT_TEX7 = 13,
12613 GEOM_RESULT_PSIZ = 14,
12614 GEOM_RESULT_CLPV = 15,
12615 GEOM_RESULT_PRID = 16,
12616 GEOM_RESULT_LAYR = 17,
12617 GEOM_RESULT_VAR0 = 18,
12619 GEOM_RESULT_MAX = (GEOM_RESULT_VAR0 + 16 - 2)
12628 FRAG_ATTRIB_WPOS = 0,
12629 FRAG_ATTRIB_COL0 = 1,
12630 FRAG_ATTRIB_COL1 = 2,
12631 FRAG_ATTRIB_FOGC = 3,
12632 FRAG_ATTRIB_TEX0 = 4,
12633 FRAG_ATTRIB_TEX1 = 5,
12634 FRAG_ATTRIB_TEX2 = 6,
12635 FRAG_ATTRIB_TEX3 = 7,
12636 FRAG_ATTRIB_TEX4 = 8,
12637 FRAG_ATTRIB_TEX5 = 9,
12638 FRAG_ATTRIB_TEX6 = 10,
12639 FRAG_ATTRIB_TEX7 = 11,
12640 FRAG_ATTRIB_FACE = 12,
12641 FRAG_ATTRIB_PNTC = 13,
12642 FRAG_ATTRIB_VAR0 = 14,
12643 FRAG_ATTRIB_MAX = (FRAG_ATTRIB_VAR0 + 16)
12645 # 375 "../../src/mesa/main/mtypes.h"
12648 FRAG_RESULT_DEPTH = 0,
12649 FRAG_RESULT_STENCIL = 1,
12653 FRAG_RESULT_COLOR = 2,
12659 FRAG_RESULT_DATA0 = 3,
12660 FRAG_RESULT_MAX = (FRAG_RESULT_DATA0 + 8)
12672 BUFFER_FRONT_RIGHT,
12690 # 466 "../../src/mesa/main/mtypes.h"
12694 GLboolean floatMode;
12695 GLboolean colorIndexMode;
12696 GLuint doubleBufferMode;
12699 GLboolean haveAccumBuffer;
12700 GLboolean haveDepthBuffer;
12701 GLboolean haveStencilBuffer;
12703 GLint redBits, greenBits, blueBits, alphaBits;
12704 GLuint redMask, greenMask, blueMask, alphaMask;
12708 GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits;
12712 GLint numAuxBuffers;
12717 GLint visualRating;
12720 GLint transparentPixel;
12722 GLint transparentRed, transparentGreen, transparentBlue, transparentAlpha;
12723 GLint transparentIndex;
12726 GLint sampleBuffers;
12730 GLint maxPbufferWidth;
12731 GLint maxPbufferHeight;
12732 GLint maxPbufferPixels;
12733 GLint optimalPbufferWidth;
12734 GLint optimalPbufferHeight;
12740 GLint bindToTextureRgb;
12741 GLint bindToTextureRgba;
12742 GLint bindToMipmapTexture;
12743 GLint bindToTextureTargets;
12754 struct gl_color_table
12756 GLenum InternalFormat;
12757 GLenum _BaseFormat;
12765 GLubyte LuminanceSize;
12766 GLubyte IntensitySize;
12768 # 612 "../../src/mesa/main/mtypes.h"
12769 struct gl_shine_tab
12771 struct gl_shine_tab *next, *prev;
12772 GLfloat tab[256 +1];
12783 struct gl_light *next;
12784 struct gl_light *prev;
12786 GLfloat Ambient[4];
12787 GLfloat Diffuse[4];
12788 GLfloat Specular[4];
12789 GLfloat EyePosition[4];
12790 GLfloat SpotDirection[4];
12791 GLfloat SpotExponent;
12792 GLfloat SpotCutoff;
12793 GLfloat _CosCutoffNeg;
12794 GLfloat _CosCutoff;
12795 GLfloat ConstantAttenuation;
12796 GLfloat LinearAttenuation;
12797 GLfloat QuadraticAttenuation;
12806 GLfloat _Position[4];
12807 GLfloat _VP_inf_norm[3];
12808 GLfloat _h_inf_norm[3];
12809 GLfloat _NormSpotDirection[4];
12810 GLfloat _VP_inf_spot_attenuation;
12812 GLfloat _SpotExpTable[512][2];
12813 GLfloat _MatAmbient[2][3];
12814 GLfloat _MatDiffuse[2][3];
12815 GLfloat _MatSpecular[2][3];
12825 struct gl_lightmodel
12827 GLfloat Ambient[4];
12828 GLboolean LocalViewer;
12830 GLenum ColorControl;
12840 GLfloat Attrib[12][4];
12847 struct gl_accum_attrib
12849 GLfloat ClearColor[4];
12856 struct gl_colorbuffer_attrib
12859 GLfloat ClearColorUnclamped[4];
12860 GLclampf ClearColor[4];
12863 GLubyte ColorMask[8][4];
12865 GLenum DrawBuffer[8];
12871 GLboolean AlphaEnabled;
12873 GLfloat AlphaRefUnclamped;
12881 GLbitfield BlendEnabled;
12887 GLfloat BlendColorUnclamped[4];
12888 GLfloat BlendColor[4];
12896 GLenum EquationRGB;
12900 GLboolean _BlendFuncPerBuffer;
12902 GLboolean _BlendEquationPerBuffer;
12910 GLboolean IndexLogicOpEnabled;
12911 GLboolean ColorLogicOpEnabled;
12912 GLboolean _LogicOpEnabled;
12915 GLboolean DitherFlag;
12917 GLenum ClampFragmentColor;
12918 GLboolean _ClampFragmentColor;
12919 GLenum ClampReadColor;
12920 GLboolean _ClampReadColor;
12922 GLboolean sRGBEnabled;
12929 struct gl_current_attrib
12937 GLfloat Attrib[VERT_ATTRIB_MAX][4];
12944 GLfloat RasterPos[4];
12945 GLfloat RasterDistance;
12946 GLfloat RasterColor[4];
12947 GLfloat RasterSecondaryColor[4];
12948 GLfloat RasterTexCoords[8][4];
12949 GLboolean RasterPosValid;
12957 struct gl_depthbuffer_attrib
12963 GLboolean BoundsTest;
12964 GLfloat BoundsMin, BoundsMax;
12971 struct gl_eval_attrib
12977 GLboolean Map1Color4;
12978 GLboolean Map1Index;
12979 GLboolean Map1Normal;
12980 GLboolean Map1TextureCoord1;
12981 GLboolean Map1TextureCoord2;
12982 GLboolean Map1TextureCoord3;
12983 GLboolean Map1TextureCoord4;
12984 GLboolean Map1Vertex3;
12985 GLboolean Map1Vertex4;
12986 GLboolean Map1Attrib[16];
12987 GLboolean Map2Color4;
12988 GLboolean Map2Index;
12989 GLboolean Map2Normal;
12990 GLboolean Map2TextureCoord1;
12991 GLboolean Map2TextureCoord2;
12992 GLboolean Map2TextureCoord3;
12993 GLboolean Map2TextureCoord4;
12994 GLboolean Map2Vertex3;
12995 GLboolean Map2Vertex4;
12996 GLboolean Map2Attrib[16];
12997 GLboolean AutoNormal;
13005 GLfloat MapGrid1u1, MapGrid1u2, MapGrid1du;
13006 GLint MapGrid2un, MapGrid2vn;
13007 GLfloat MapGrid2u1, MapGrid2u2, MapGrid2du;
13008 GLfloat MapGrid2v1, MapGrid2v2, MapGrid2dv;
13016 struct gl_fog_attrib
13019 GLfloat ColorUnclamped[4];
13026 GLboolean ColorSumEnabled;
13027 GLenum FogCoordinateSource;
13030 # 883 "../../src/mesa/main/mtypes.h"
13031 enum gl_frag_depth_layout {
13032 FRAG_DEPTH_LAYOUT_NONE,
13033 FRAG_DEPTH_LAYOUT_ANY,
13034 FRAG_DEPTH_LAYOUT_GREATER,
13035 FRAG_DEPTH_LAYOUT_LESS,
13036 FRAG_DEPTH_LAYOUT_UNCHANGED
13045 struct gl_hint_attrib
13047 GLenum PerspectiveCorrection;
13048 GLenum PointSmooth;
13050 GLenum PolygonSmooth;
13052 GLenum ClipVolumeClipping;
13053 GLenum TextureCompression;
13054 GLenum GenerateMipmap;
13055 GLenum FragmentShaderDerivative;
13057 # 924 "../../src/mesa/main/mtypes.h"
13058 struct gl_light_attrib
13060 struct gl_light Light[8];
13061 struct gl_lightmodel Model;
13067 struct gl_material Material;
13072 GLenum ProvokingVertex;
13073 GLenum ColorMaterialFace;
13074 GLenum ColorMaterialMode;
13075 GLbitfield ColorMaterialBitmask;
13076 GLboolean ColorMaterialEnabled;
13077 GLenum ClampVertexColor;
13078 GLboolean _ClampVertexColor;
13080 struct gl_light EnabledList;
13086 GLboolean _NeedEyeCoords;
13087 GLboolean _NeedVertices;
13089 GLfloat _BaseColor[2][3];
13097 struct gl_line_attrib
13099 GLboolean SmoothFlag;
13100 GLboolean StippleFlag;
13101 GLushort StipplePattern;
13102 GLint StippleFactor;
13110 struct gl_list_attrib
13119 struct gl_multisample_attrib
13122 GLboolean _Enabled;
13123 GLboolean SampleAlphaToCoverage;
13124 GLboolean SampleAlphaToOne;
13125 GLboolean SampleCoverage;
13126 GLfloat SampleCoverageValue;
13127 GLboolean SampleCoverageInvert;
13145 struct gl_pixelmaps
13147 struct gl_pixelmap RtoR;
13148 struct gl_pixelmap GtoG;
13149 struct gl_pixelmap BtoB;
13150 struct gl_pixelmap AtoA;
13151 struct gl_pixelmap ItoR;
13152 struct gl_pixelmap ItoG;
13153 struct gl_pixelmap ItoB;
13154 struct gl_pixelmap ItoA;
13155 struct gl_pixelmap ItoI;
13156 struct gl_pixelmap StoS;
13163 struct gl_pixel_attrib
13172 GLfloat RedBias, RedScale;
13173 GLfloat GreenBias, GreenScale;
13174 GLfloat BlueBias, BlueScale;
13175 GLfloat AlphaBias, AlphaScale;
13176 GLfloat DepthBias, DepthScale;
13177 GLint IndexShift, IndexOffset;
13182 GLboolean MapColorFlag;
13183 GLboolean MapStencilFlag;
13188 GLfloat ZoomX, ZoomY;
13195 struct gl_point_attrib
13197 GLboolean SmoothFlag;
13200 GLfloat MinSize, MaxSize;
13202 GLboolean _Attenuated;
13203 GLboolean PointSprite;
13204 GLboolean CoordReplace[8];
13205 GLenum SpriteRMode;
13206 GLenum SpriteOrigin;
13213 struct gl_polygon_attrib
13218 GLboolean _FrontBit;
13219 GLboolean CullFlag;
13220 GLboolean SmoothFlag;
13221 GLboolean StippleFlag;
13222 GLenum CullFaceMode;
13223 GLfloat OffsetFactor;
13224 GLfloat OffsetUnits;
13225 GLboolean OffsetPoint;
13226 GLboolean OffsetLine;
13227 GLboolean OffsetFill;
13234 struct gl_scissor_attrib
13238 GLsizei Width, Height;
13240 # 1124 "../../src/mesa/main/mtypes.h"
13241 struct gl_stencil_attrib
13244 GLboolean TestTwoSide;
13245 GLubyte ActiveFace;
13246 GLboolean _Enabled;
13247 GLboolean _TestTwoSide;
13249 GLenum Function[3];
13250 GLenum FailFunc[3];
13251 GLenum ZPassFunc[3];
13252 GLenum ZFailFunc[3];
13254 GLuint ValueMask[3];
13255 GLuint WriteMask[3];
13267 TEXTURE_BUFFER_INDEX,
13268 TEXTURE_2D_ARRAY_INDEX,
13269 TEXTURE_1D_ARRAY_INDEX,
13270 TEXTURE_CUBE_INDEX,
13272 TEXTURE_RECT_INDEX,
13275 NUM_TEXTURE_TARGETS
13276 } gl_texture_index;
13277 # 1230 "../../src/mesa/main/mtypes.h"
13278 typedef void (*FetchTexelFuncC)( const struct gl_texture_image *texImage,
13279 GLint col, GLint row, GLint img,
13280 GLchan *texelOut );
13287 typedef void (*FetchTexelFuncF)( const struct gl_texture_image *texImage,
13288 GLint col, GLint row, GLint img,
13289 GLfloat *texelOut );
13292 typedef void (*StoreTexelFunc)(struct gl_texture_image *texImage,
13293 GLint col, GLint row, GLint img,
13294 const void *texel);
13301 struct gl_texture_image
13303 GLint InternalFormat;
13304 GLenum _BaseFormat;
13310 gl_format TexFormat;
13323 GLfloat WidthScale;
13324 GLfloat HeightScale;
13325 GLfloat DepthScale;
13326 GLboolean IsClientData;
13327 GLboolean _IsPowerOfTwo;
13329 struct gl_texture_object *TexObject;
13331 FetchTexelFuncC FetchTexelc;
13332 FetchTexelFuncF FetchTexelf;
13335 GLuint *ImageOffsets;
13367 struct gl_sampler_object
13385 GLfloat MaxAnisotropy;
13386 GLenum CompareMode;
13387 GLenum CompareFunc;
13388 GLfloat CompareFailValue;
13390 GLboolean CubeMapSeamless;
13396 GLboolean _CompleteTexture;
13405 struct gl_texture_object
13407 _glthread_Mutex Mutex;
13412 struct gl_sampler_object Sampler;
13418 GLfloat _MaxLambda;
13422 GLboolean GenerateMipmap;
13423 GLboolean _Complete;
13424 GLboolean _RenderToTexture;
13425 GLboolean Purgeable;
13428 struct gl_texture_image *Image[MAX_FACES][15];
13431 struct gl_buffer_object *BufferObject;
13432 GLenum BufferObjectFormat;
13435 struct gl_color_table Palette;
13436 # 1396 "../../src/mesa/main/mtypes.h"
13439 # 1407 "../../src/mesa/main/mtypes.h"
13440 struct gl_tex_env_combine_state
13445 GLenum SourceRGB[4];
13448 GLenum OperandRGB[4];
13449 GLenum OperandA[4];
13450 GLuint ScaleShiftRGB;
13451 GLuint ScaleShiftA;
13452 GLuint _NumArgsRGB;
13463 GLbitfield _ModeBit;
13464 GLfloat ObjectPlane[4];
13465 GLfloat EyePlane[4];
13473 struct gl_texture_unit
13475 GLbitfield Enabled;
13476 GLbitfield _ReallyEnabled;
13479 GLclampf EnvColor[4];
13480 GLfloat EnvColorUnclamped[4];
13482 struct gl_texgen GenS;
13483 struct gl_texgen GenT;
13484 struct gl_texgen GenR;
13485 struct gl_texgen GenQ;
13486 GLbitfield TexGenEnabled;
13487 GLbitfield _GenFlags;
13491 GLfloat RotMatrix[4];
13494 struct gl_sampler_object *Sampler;
13499 struct gl_tex_env_combine_state Combine;
13505 struct gl_tex_env_combine_state _EnvMode;
13511 struct gl_tex_env_combine_state *_CurrentCombine;
13514 struct gl_texture_object *CurrentTex[NUM_TEXTURE_TARGETS];
13517 struct gl_texture_object *_Current;
13524 struct gl_texture_attrib
13526 GLuint CurrentUnit;
13527 struct gl_texture_unit Unit[(16 + 16)];
13529 struct gl_texture_object *ProxyTex[NUM_TEXTURE_TARGETS];
13532 struct gl_buffer_object *BufferObject;
13535 GLboolean CubeMapSeamless;
13538 GLboolean SharedPalette;
13539 struct gl_color_table Palette;
13542 GLbitfield _EnabledUnits;
13545 GLbitfield _EnabledCoordUnits;
13548 GLbitfield _TexGenEnabled;
13551 GLbitfield _TexMatEnabled;
13554 GLbitfield _GenFlags;
13561 struct gl_transform_attrib
13564 GLfloat EyeUserPlane[6][4];
13565 GLfloat _ClipUserPlane[6][4];
13566 GLbitfield ClipPlanesEnabled;
13567 GLboolean Normalize;
13568 GLboolean RescaleNormals;
13569 GLboolean RasterPositionUnclipped;
13570 GLboolean DepthClamp;
13572 GLfloat CullEyePos[4];
13573 GLfloat CullObjPos[4];
13580 struct gl_viewport_attrib
13583 GLsizei Width, Height;
13585 GLmatrix _WindowMap;
13592 struct gl_buffer_object
13594 _glthread_Mutex Mutex;
13598 GLsizeiptrARB Size;
13602 GLbitfield AccessFlags;
13608 GLboolean Purgeable;
13615 struct gl_pixelstore_attrib
13623 GLboolean SwapBytes;
13624 GLboolean LsbFirst;
13625 GLboolean ClientStorage;
13627 struct gl_buffer_object *BufferObj;
13634 struct gl_client_array
13641 const GLubyte *Ptr;
13643 GLboolean Normalized;
13645 GLuint InstanceDivisor;
13646 GLuint _ElementSize;
13648 struct gl_buffer_object *BufferObj;
13649 GLuint _MaxElement;
13657 struct gl_array_object
13663 _glthread_Mutex Mutex;
13668 struct gl_client_array Vertex;
13669 struct gl_client_array Weight;
13670 struct gl_client_array Normal;
13671 struct gl_client_array Color;
13672 struct gl_client_array SecondaryColor;
13673 struct gl_client_array FogCoord;
13674 struct gl_client_array Index;
13675 struct gl_client_array EdgeFlag;
13676 struct gl_client_array TexCoord[8];
13677 struct gl_client_array PointSize;
13678 # 1653 "../../src/mesa/main/mtypes.h"
13679 struct gl_client_array VertexAttrib[16];
13682 GLbitfield _Enabled;
13688 GLuint _MaxElement;
13695 struct gl_array_attrib
13698 struct gl_array_object *ArrayObj;
13701 struct gl_array_object *DefaultArrayObj;
13704 struct _mesa_HashTable *Objects;
13706 GLint ActiveTexture;
13711 GLboolean PrimitiveRestart;
13712 GLuint RestartIndex;
13714 GLbitfield NewState;
13715 GLboolean RebindArrays;
13718 struct gl_buffer_object *ArrayBufferObj;
13719 struct gl_buffer_object *ElementArrayBufferObj;
13739 struct gl_selection
13743 GLuint BufferCount;
13745 GLuint NameStackDepth;
13746 GLuint NameStack[64];
13759 GLfloat u1, u2, du;
13771 GLfloat u1, u2, du;
13772 GLfloat v1, v2, dv;
13780 struct gl_evaluators
13786 struct gl_1d_map Map1Vertex3;
13787 struct gl_1d_map Map1Vertex4;
13788 struct gl_1d_map Map1Index;
13789 struct gl_1d_map Map1Color4;
13790 struct gl_1d_map Map1Normal;
13791 struct gl_1d_map Map1Texture1;
13792 struct gl_1d_map Map1Texture2;
13793 struct gl_1d_map Map1Texture3;
13794 struct gl_1d_map Map1Texture4;
13795 struct gl_1d_map Map1Attrib[16];
13802 struct gl_2d_map Map2Vertex3;
13803 struct gl_2d_map Map2Vertex4;
13804 struct gl_2d_map Map2Index;
13805 struct gl_2d_map Map2Color4;
13806 struct gl_2d_map Map2Normal;
13807 struct gl_2d_map Map2Texture1;
13808 struct gl_2d_map Map2Texture2;
13809 struct gl_2d_map Map2Texture3;
13810 struct gl_2d_map Map2Texture4;
13811 struct gl_2d_map Map2Attrib[16];
13814 # 1801 "../../src/mesa/main/mtypes.h"
13821 PROGRAM_LOCAL_PARAM,
13824 PROGRAM_NAMED_PARAM,
13827 PROGRAM_WRITE_ONLY,
13830 PROGRAM_SYSTEM_VALUE,
13833 } gl_register_file;
13842 SYSTEM_VALUE_FRONT_FACE,
13843 SYSTEM_VALUE_INSTANCE_ID,
13849 struct prog_instruction;
13850 struct gl_program_parameter_list;
13851 struct gl_uniform_list;
13864 GLboolean Resident;
13866 struct prog_instruction *Instructions;
13868 GLbitfield InputsRead;
13869 GLbitfield64 OutputsWritten;
13870 GLbitfield SystemValuesRead;
13871 GLbitfield InputFlags[32];
13872 GLbitfield OutputFlags[64];
13873 GLbitfield TexturesUsed[((8 > 16) ? 8 : 16)];
13874 GLbitfield SamplersUsed;
13875 GLbitfield ShadowSamplers;
13879 struct gl_program_parameter_list *Parameters;
13881 GLfloat LocalParams[1024][4];
13884 struct gl_program_parameter_list *Varying;
13886 struct gl_program_parameter_list *Attributes;
13889 GLubyte SamplerUnits[16];
13891 gl_texture_index SamplerTargets[16];
13896 GLbitfield IndirectRegisterFiles;
13900 GLuint NumInstructions;
13901 GLuint NumTemporaries;
13902 GLuint NumParameters;
13903 GLuint NumAttributes;
13904 GLuint NumAddressRegs;
13905 GLuint NumAluInstructions;
13906 GLuint NumTexInstructions;
13907 GLuint NumTexIndirections;
13911 GLuint NumNativeInstructions;
13912 GLuint NumNativeTemporaries;
13913 GLuint NumNativeParameters;
13914 GLuint NumNativeAttributes;
13915 GLuint NumNativeAddressRegs;
13916 GLuint NumNativeAluInstructions;
13917 GLuint NumNativeTexInstructions;
13918 GLuint NumNativeTexIndirections;
13924 struct gl_vertex_program
13926 struct gl_program Base;
13927 GLboolean IsNVProgram;
13928 GLboolean IsPositionInvariant;
13933 struct gl_geometry_program
13935 struct gl_program Base;
13945 struct gl_fragment_program
13947 struct gl_program Base;
13948 GLboolean UsesKill;
13949 GLboolean OriginUpperLeft;
13950 GLboolean PixelCenterInteger;
13951 enum gl_frag_depth_layout FragDepthLayout;
13958 struct gl_program_state
13961 const char *ErrorString;
13968 struct gl_vertex_program_state
13971 GLboolean _Enabled;
13972 GLboolean PointSizeEnabled;
13973 GLboolean TwoSideEnabled;
13974 struct gl_vertex_program *Current;
13980 struct gl_vertex_program *_Current;
13982 GLfloat Parameters[256][4];
13985 GLenum TrackMatrix[256 / 4];
13986 GLenum TrackMatrixTransform[256 / 4];
13989 GLboolean _MaintainTnlProgram;
13992 struct gl_vertex_program *_TnlProgram;
13995 struct gl_program_cache *Cache;
13997 GLboolean _Overriden;
14004 struct gl_geometry_program_state
14007 GLboolean _Enabled;
14008 struct gl_geometry_program *Current;
14013 struct gl_geometry_program *_Current;
14015 GLfloat Parameters[256][4];
14018 struct gl_program_cache *Cache;
14024 struct gl_fragment_program_state
14027 GLboolean _Enabled;
14028 struct gl_fragment_program *Current;
14034 struct gl_fragment_program *_Current;
14036 GLfloat Parameters[256][4];
14039 GLboolean _MaintainTexEnvProgram;
14042 struct gl_fragment_program *_TexEnvProgram;
14045 struct gl_program_cache *Cache;
14047 # 2041 "../../src/mesa/main/mtypes.h"
14048 struct atifs_instruction;
14049 struct atifs_setupinst;
14054 struct ati_fragment_shader
14058 struct atifs_instruction *Instructions[2];
14059 struct atifs_setupinst *SetupInst[2];
14060 GLfloat Constants[8][4];
14061 GLbitfield LocalConstDef;
14062 GLubyte numArithInstr[2];
14063 GLubyte regsAssigned[2];
14066 GLubyte last_optype;
14067 GLboolean interpinp1;
14075 struct gl_ati_fragment_shader_state
14078 GLboolean _Enabled;
14079 GLboolean Compiling;
14080 GLfloat GlobalConstants[8][4];
14081 struct ati_fragment_shader *Current;
14088 struct gl_query_object
14092 GLuint64EXT Result;
14101 struct gl_query_state
14103 struct _mesa_HashTable *QueryObjects;
14104 struct gl_query_object *CurrentOcclusionObject;
14105 struct gl_query_object *CurrentTimerObject;
14108 struct gl_query_object *CondRenderQuery;
14111 struct gl_query_object *PrimitivesGenerated;
14112 struct gl_query_object *PrimitivesWritten;
14115 struct gl_query_object *TimeElapsed;
14117 GLenum CondRenderMode;
14122 struct gl_sync_object {
14123 struct simple_node link;
14127 GLboolean DeletePending;
14130 GLenum SyncCondition;
14132 GLuint StatusFlag:1;
14137 struct gl_sl_pragmas
14139 GLboolean IgnoreOptimize;
14140 GLboolean IgnoreDebug;
14141 GLboolean Optimize;
14154 GLboolean DeletePending;
14155 GLboolean CompileStatus;
14156 const GLchar *Source;
14157 GLuint SourceChecksum;
14158 struct gl_program *Program;
14160 struct gl_sl_pragmas Pragmas;
14164 struct exec_list *ir;
14165 struct glsl_symbol_table *symbols;
14168 struct gl_shader *builtins_to_link[16];
14169 unsigned num_builtins_to_link;
14177 struct gl_shader_program
14182 GLboolean DeletePending;
14185 struct gl_shader **Shaders;
14188 struct gl_program_parameter_list *Attributes;
14194 GLchar **VaryingNames;
14195 } TransformFeedback;
14206 struct gl_vertex_program *VertexProgram;
14207 struct gl_fragment_program *FragmentProgram;
14208 struct gl_geometry_program *GeometryProgram;
14209 struct gl_uniform_list *Uniforms;
14210 struct gl_program_parameter_list *Varying;
14211 GLboolean LinkStatus;
14212 GLboolean Validated;
14217 # 2218 "../../src/mesa/main/mtypes.h"
14218 struct gl_shader *_LinkedShaders[MESA_SHADER_TYPES];
14220 # 2235 "../../src/mesa/main/mtypes.h"
14221 struct gl_shader_state
14230 struct gl_shader_program *CurrentVertexProgram;
14231 struct gl_shader_program *CurrentGeometryProgram;
14232 struct gl_shader_program *CurrentFragmentProgram;
14239 struct gl_shader_program *ActiveProgram;
14249 struct gl_shader_compiler_options
14252 GLboolean EmitCondCodes;
14253 GLboolean EmitNVTempInitialization;
14258 GLboolean EmitNoIfs;
14259 GLboolean EmitNoLoops;
14260 GLboolean EmitNoFunctions;
14261 GLboolean EmitNoCont;
14262 GLboolean EmitNoMainReturn;
14263 GLboolean EmitNoNoise;
14264 GLboolean EmitNoPow;
14270 GLboolean EmitNoIndirectInput;
14271 GLboolean EmitNoIndirectOutput;
14272 GLboolean EmitNoIndirectTemp;
14273 GLboolean EmitNoIndirectUniform;
14276 GLuint MaxUnrollIterations;
14278 struct gl_sl_pragmas DefaultPragmas;
14284 struct gl_transform_feedback_object
14292 GLuint BufferNames[32];
14293 struct gl_buffer_object *Buffers[32];
14296 GLintptr Offset[32];
14298 GLsizeiptr Size[32];
14305 struct gl_transform_feedback
14309 GLboolean RasterDiscard;
14312 struct gl_buffer_object *CurrentBuffer;
14315 struct _mesa_HashTable *Objects;
14318 struct gl_transform_feedback_object *CurrentObject;
14321 struct gl_transform_feedback_object *DefaultObject;
14329 struct gl_shared_state
14331 _glthread_Mutex Mutex;
14333 struct _mesa_HashTable *DisplayList;
14334 struct _mesa_HashTable *TexObjects;
14337 struct gl_texture_object *DefaultTex[NUM_TEXTURE_TARGETS];
14340 struct gl_texture_object *FallbackTex;
14341 # 2363 "../../src/mesa/main/mtypes.h"
14342 _glthread_Mutex TexMutex;
14343 GLuint TextureStateStamp;
14347 struct gl_buffer_object *NullBufferObj;
14353 struct _mesa_HashTable *Programs;
14354 struct gl_vertex_program *DefaultVertexProgram;
14355 struct gl_fragment_program *DefaultFragmentProgram;
14356 struct gl_geometry_program *DefaultGeometryProgram;
14360 struct _mesa_HashTable *ATIShaders;
14361 struct ati_fragment_shader *DefaultFragmentShader;
14363 struct _mesa_HashTable *BufferObjects;
14366 struct _mesa_HashTable *ShaderObjects;
14369 struct _mesa_HashTable *RenderBuffers;
14370 struct _mesa_HashTable *FrameBuffers;
14373 struct simple_node SyncObjects;
14376 struct _mesa_HashTable *SamplerObjects;
14380 # 2414 "../../src/mesa/main/mtypes.h"
14381 struct gl_renderbuffer
14383 _glthread_Mutex Mutex;
14387 GLuint Width, Height;
14389 GLboolean Purgeable;
14391 GLboolean AttachedAnytime;
14393 GLubyte NumSamples;
14395 GLenum InternalFormat;
14396 GLenum _BaseFormat;
14404 struct gl_renderbuffer *Wrapped;
14407 void (*Delete)(struct gl_renderbuffer *rb);
14410 GLboolean (*AllocStorage)(struct gl_context *ctx, struct gl_renderbuffer *rb,
14411 GLenum internalFormat,
14412 GLuint width, GLuint height);
14413 # 2456 "../../src/mesa/main/mtypes.h"
14414 void *(*GetPointer)(struct gl_context *ctx, struct gl_renderbuffer *rb,
14420 void (*GetRow)(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count,
14421 GLint x, GLint y, void *values);
14426 void (*GetValues)(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count,
14427 const GLint x[], const GLint y[], void *values);
14432 void (*PutRow)(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count,
14433 GLint x, GLint y, const void *values, const GLubyte *mask);
14440 void (*PutRowRGB)(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count,
14441 GLint x, GLint y, const void *values, const GLubyte *mask);
14447 void (*PutMonoRow)(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count,
14448 GLint x, GLint y, const void *value, const GLubyte *mask);
14453 void (*PutValues)(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count,
14454 const GLint x[], const GLint y[], const void *values,
14455 const GLubyte *mask);
14459 void (*PutMonoValues)(struct gl_context *ctx, struct gl_renderbuffer *rb,
14460 GLuint count, const GLint x[], const GLint y[],
14461 const void *value, const GLubyte *mask);
14469 struct gl_renderbuffer_attachment
14472 GLboolean Complete;
14478 struct gl_renderbuffer *Renderbuffer;
14484 struct gl_texture_object *Texture;
14485 GLuint TextureLevel;
14486 GLuint CubeMapFace;
14497 struct gl_framebuffer
14499 _glthread_Mutex Mutex;
14510 GLboolean DeletePending;
14516 struct gl_config Visual;
14518 GLboolean Initialized;
14520 GLuint Width, Height;
14524 GLint _Xmin, _Xmax;
14525 GLint _Ymin, _Ymax;
14531 GLfloat _DepthMaxF;
14539 GLboolean _IntegerColor;
14542 struct gl_renderbuffer_attachment Attachment[BUFFER_COUNT];
14547 GLenum ColorDrawBuffer[8];
14548 GLenum ColorReadBuffer;
14551 GLuint _NumColorDrawBuffers;
14552 GLint _ColorDrawBufferIndexes[8];
14553 GLint _ColorReadBufferIndex;
14554 struct gl_renderbuffer *_ColorDrawBuffers[8];
14555 struct gl_renderbuffer *_ColorReadBuffer;
14559 struct gl_renderbuffer *_DepthBuffer;
14560 struct gl_renderbuffer *_StencilBuffer;
14563 void (*Delete)(struct gl_framebuffer *fb);
14570 struct gl_precision
14574 GLushort Precision;
14581 struct gl_program_constants
14584 GLuint MaxInstructions;
14585 GLuint MaxAluInstructions;
14586 GLuint MaxTexInstructions;
14587 GLuint MaxTexIndirections;
14590 GLuint MaxAddressRegs;
14591 GLuint MaxAddressOffset;
14592 GLuint MaxParameters;
14593 GLuint MaxLocalParams;
14594 GLuint MaxEnvParams;
14596 GLuint MaxNativeInstructions;
14597 GLuint MaxNativeAluInstructions;
14598 GLuint MaxNativeTexInstructions;
14599 GLuint MaxNativeTexIndirections;
14600 GLuint MaxNativeAttribs;
14601 GLuint MaxNativeTemps;
14602 GLuint MaxNativeAddressRegs;
14603 GLuint MaxNativeParameters;
14605 GLuint MaxUniformComponents;
14607 struct gl_precision LowFloat, MediumFloat, HighFloat;
14608 struct gl_precision LowInt, MediumInt, HighInt;
14616 struct gl_constants
14618 GLint MaxTextureMbytes;
14619 GLint MaxTextureLevels;
14620 GLint Max3DTextureLevels;
14621 GLint MaxCubeTextureLevels;
14622 GLint MaxArrayTextureLayers;
14623 GLint MaxTextureRectSize;
14624 GLuint MaxTextureCoordUnits;
14625 GLuint MaxTextureImageUnits;
14626 GLuint MaxVertexTextureImageUnits;
14627 GLuint MaxCombinedTextureImageUnits;
14628 GLuint MaxGeometryTextureImageUnits;
14629 GLuint MaxTextureUnits;
14630 GLfloat MaxTextureMaxAnisotropy;
14631 GLfloat MaxTextureLodBias;
14632 GLuint MaxTextureBufferSize;
14634 GLuint MaxArrayLockSize;
14636 GLint SubPixelBits;
14638 GLfloat MinPointSize, MaxPointSize;
14639 GLfloat MinPointSizeAA, MaxPointSizeAA;
14640 GLfloat PointSizeGranularity;
14641 GLfloat MinLineWidth, MaxLineWidth;
14642 GLfloat MinLineWidthAA, MaxLineWidthAA;
14643 GLfloat LineWidthGranularity;
14645 GLuint MaxColorTableSize;
14647 GLuint MaxClipPlanes;
14649 GLfloat MaxShininess;
14650 GLfloat MaxSpotExponent;
14652 GLuint MaxViewportWidth, MaxViewportHeight;
14654 struct gl_program_constants VertexProgram;
14655 struct gl_program_constants FragmentProgram;
14656 struct gl_program_constants GeometryProgram;
14657 GLuint MaxProgramMatrices;
14658 GLuint MaxProgramMatrixStackDepth;
14661 GLboolean CheckArrayBounds;
14663 GLuint MaxDrawBuffers;
14665 GLuint MaxColorAttachments;
14666 GLuint MaxRenderbufferSize;
14671 GLuint MaxVertexVaryingComponents;
14672 GLuint MaxGeometryVaryingComponents;
14675 GLuint MaxGeometryOutputVertices;
14676 GLuint MaxGeometryTotalOutputComponents;
14678 GLuint GLSLVersion;
14681 GLbitfield SupportedBumpUnits;
14686 GLuint64 MaxServerWaitTimeout;
14689 GLboolean QuadsFollowProvokingVertexConvention;
14692 GLbitfield ContextFlags;
14695 GLbitfield ProfileMask;
14698 GLuint MaxTransformFeedbackSeparateAttribs;
14699 GLuint MaxTransformFeedbackSeparateComponents;
14700 GLuint MaxTransformFeedbackInterleavedComponents;
14703 GLint MinProgramTexelOffset, MaxProgramTexelOffset;
14706 GLboolean sRGBCapable;
14709 GLenum ResetStrategy;
14717 struct gl_extensions
14720 GLboolean dummy_true;
14721 GLboolean dummy_false;
14722 GLboolean ARB_ES2_compatibility;
14723 GLboolean ARB_blend_func_extended;
14724 GLboolean ARB_color_buffer_float;
14725 GLboolean ARB_copy_buffer;
14726 GLboolean ARB_depth_buffer_float;
14727 GLboolean ARB_depth_clamp;
14728 GLboolean ARB_depth_texture;
14729 GLboolean ARB_draw_buffers;
14730 GLboolean ARB_draw_buffers_blend;
14731 GLboolean ARB_draw_elements_base_vertex;
14732 GLboolean ARB_draw_instanced;
14733 GLboolean ARB_fragment_coord_conventions;
14734 GLboolean ARB_fragment_program;
14735 GLboolean ARB_fragment_program_shadow;
14736 GLboolean ARB_fragment_shader;
14737 GLboolean ARB_framebuffer_object;
14738 GLboolean ARB_explicit_attrib_location;
14739 GLboolean ARB_geometry_shader4;
14740 GLboolean ARB_half_float_pixel;
14741 GLboolean ARB_half_float_vertex;
14742 GLboolean ARB_instanced_arrays;
14743 GLboolean ARB_map_buffer_range;
14744 GLboolean ARB_multisample;
14745 GLboolean ARB_multitexture;
14746 GLboolean ARB_occlusion_query;
14747 GLboolean ARB_occlusion_query2;
14748 GLboolean ARB_point_sprite;
14749 GLboolean ARB_sampler_objects;
14750 GLboolean ARB_seamless_cube_map;
14751 GLboolean ARB_shader_objects;
14752 GLboolean ARB_shader_stencil_export;
14753 GLboolean ARB_shader_texture_lod;
14754 GLboolean ARB_shading_language_100;
14755 GLboolean ARB_shadow;
14756 GLboolean ARB_shadow_ambient;
14757 GLboolean ARB_sync;
14758 GLboolean ARB_texture_border_clamp;
14759 GLboolean ARB_texture_buffer_object;
14760 GLboolean ARB_texture_compression;
14761 GLboolean ARB_texture_compression_rgtc;
14762 GLboolean ARB_texture_cube_map;
14763 GLboolean ARB_texture_env_combine;
14764 GLboolean ARB_texture_env_crossbar;
14765 GLboolean ARB_texture_env_dot3;
14766 GLboolean ARB_texture_float;
14767 GLboolean ARB_texture_mirrored_repeat;
14768 GLboolean ARB_texture_multisample;
14769 GLboolean ARB_texture_non_power_of_two;
14770 GLboolean ARB_texture_rg;
14771 GLboolean ARB_texture_rgb10_a2ui;
14772 GLboolean ARB_timer_query;
14773 GLboolean ARB_transform_feedback2;
14774 GLboolean ARB_transpose_matrix;
14775 GLboolean ARB_uniform_buffer_object;
14776 GLboolean ARB_vertex_array_object;
14777 GLboolean ARB_vertex_buffer_object;
14778 GLboolean ARB_vertex_program;
14779 GLboolean ARB_vertex_shader;
14780 GLboolean ARB_vertex_type_2_10_10_10_rev;
14781 GLboolean ARB_window_pos;
14782 GLboolean EXT_abgr;
14783 GLboolean EXT_bgra;
14784 GLboolean EXT_blend_color;
14785 GLboolean EXT_blend_equation_separate;
14786 GLboolean EXT_blend_func_separate;
14787 GLboolean EXT_blend_logic_op;
14788 GLboolean EXT_blend_minmax;
14789 GLboolean EXT_blend_subtract;
14790 GLboolean EXT_clip_volume_hint;
14791 GLboolean EXT_compiled_vertex_array;
14792 GLboolean EXT_copy_texture;
14793 GLboolean EXT_depth_bounds_test;
14794 GLboolean EXT_draw_buffers2;
14795 GLboolean EXT_draw_range_elements;
14796 GLboolean EXT_fog_coord;
14797 GLboolean EXT_framebuffer_blit;
14798 GLboolean EXT_framebuffer_multisample;
14799 GLboolean EXT_framebuffer_object;
14800 GLboolean EXT_framebuffer_sRGB;
14801 GLboolean EXT_gpu_program_parameters;
14802 GLboolean EXT_gpu_shader4;
14803 GLboolean EXT_multi_draw_arrays;
14804 GLboolean EXT_paletted_texture;
14805 GLboolean EXT_packed_depth_stencil;
14806 GLboolean EXT_packed_float;
14807 GLboolean EXT_packed_pixels;
14808 GLboolean EXT_pixel_buffer_object;
14809 GLboolean EXT_point_parameters;
14810 GLboolean EXT_polygon_offset;
14811 GLboolean EXT_provoking_vertex;
14812 GLboolean EXT_rescale_normal;
14813 GLboolean EXT_shadow_funcs;
14814 GLboolean EXT_secondary_color;
14815 GLboolean EXT_separate_shader_objects;
14816 GLboolean EXT_separate_specular_color;
14817 GLboolean EXT_shared_texture_palette;
14818 GLboolean EXT_stencil_wrap;
14819 GLboolean EXT_stencil_two_side;
14820 GLboolean EXT_subtexture;
14821 GLboolean EXT_texture;
14822 GLboolean EXT_texture_object;
14823 GLboolean EXT_texture3D;
14824 GLboolean EXT_texture_array;
14825 GLboolean EXT_texture_compression_latc;
14826 GLboolean EXT_texture_compression_s3tc;
14827 GLboolean EXT_texture_env_add;
14828 GLboolean EXT_texture_env_combine;
14829 GLboolean EXT_texture_env_dot3;
14830 GLboolean EXT_texture_filter_anisotropic;
14831 GLboolean EXT_texture_integer;
14832 GLboolean EXT_texture_lod_bias;
14833 GLboolean EXT_texture_mirror_clamp;
14834 GLboolean EXT_texture_shared_exponent;
14835 GLboolean EXT_texture_snorm;
14836 GLboolean EXT_texture_sRGB;
14837 GLboolean EXT_texture_sRGB_decode;
14838 GLboolean EXT_texture_swizzle;
14839 GLboolean EXT_transform_feedback;
14840 GLboolean EXT_timer_query;
14841 GLboolean EXT_vertex_array;
14842 GLboolean EXT_vertex_array_bgra;
14843 GLboolean EXT_vertex_array_set;
14844 GLboolean OES_standard_derivatives;
14846 GLboolean AMD_conservative_depth;
14847 GLboolean AMD_seamless_cubemap_per_texture;
14848 GLboolean APPLE_client_storage;
14849 GLboolean APPLE_packed_pixels;
14850 GLboolean APPLE_vertex_array_object;
14851 GLboolean APPLE_object_purgeable;
14852 GLboolean ATI_envmap_bumpmap;
14853 GLboolean ATI_texture_compression_3dc;
14854 GLboolean ATI_texture_mirror_once;
14855 GLboolean ATI_texture_env_combine3;
14856 GLboolean ATI_fragment_shader;
14857 GLboolean ATI_separate_stencil;
14858 GLboolean IBM_rasterpos_clip;
14859 GLboolean IBM_multimode_draw_arrays;
14860 GLboolean MESA_pack_invert;
14861 GLboolean MESA_resize_buffers;
14862 GLboolean MESA_ycbcr_texture;
14863 GLboolean MESA_texture_array;
14864 GLboolean NV_blend_square;
14865 GLboolean NV_conditional_render;
14866 GLboolean NV_fragment_program;
14867 GLboolean NV_fragment_program_option;
14868 GLboolean NV_light_max_exponent;
14869 GLboolean NV_point_sprite;
14870 GLboolean NV_primitive_restart;
14871 GLboolean NV_texture_barrier;
14872 GLboolean NV_texgen_reflection;
14873 GLboolean NV_texture_env_combine4;
14874 GLboolean NV_texture_rectangle;
14875 GLboolean NV_vertex_program;
14876 GLboolean NV_vertex_program1_1;
14877 GLboolean OES_read_format;
14878 GLboolean SGIS_generate_mipmap;
14879 GLboolean SGIS_texture_edge_clamp;
14880 GLboolean SGIS_texture_lod;
14881 GLboolean TDFX_texture_compression_FXT1;
14883 GLboolean OES_EGL_image;
14884 GLboolean OES_draw_texture;
14885 GLboolean EXT_texture_format_BGRA8888;
14886 GLboolean extension_sentinel;
14888 const GLubyte *String;
14897 struct gl_matrix_stack
14905 # 3094 "../../src/mesa/main/mtypes.h"
14906 # 1 "../../src/mesa/main/dd.h" 1
14907 # 38 "../../src/mesa/main/dd.h"
14908 struct gl_buffer_object;
14910 struct gl_display_list;
14911 struct gl_framebuffer;
14912 struct gl_pixelstore_attrib;
14914 struct gl_renderbuffer;
14915 struct gl_renderbuffer_attachment;
14917 struct gl_shader_program;
14918 struct gl_texture_image;
14919 struct gl_texture_object;
14920 # 79 "../../src/mesa/main/dd.h"
14921 struct dd_function_table {
14927 const GLubyte * (*GetString)( struct gl_context *ctx, GLenum name );
14935 void (*UpdateState)( struct gl_context *ctx, GLbitfield new_state );
14943 void (*GetBufferSize)( struct gl_framebuffer *buffer,
14944 GLuint *width, GLuint *height );
14950 void (*ResizeBuffers)( struct gl_context *ctx, struct gl_framebuffer *fb,
14951 GLuint width, GLuint height);
14957 void (*Error)( struct gl_context *ctx );
14962 void (*Finish)( struct gl_context *ctx );
14967 void (*Flush)( struct gl_context *ctx );
14974 void (*Clear)( struct gl_context *ctx, GLbitfield buffers );
14979 void (*Accum)( struct gl_context *ctx, GLenum op, GLfloat value );
14985 void (*RasterPos)( struct gl_context *ctx, const GLfloat v[4] );
14986 # 154 "../../src/mesa/main/dd.h"
14987 void (*DrawPixels)( struct gl_context *ctx,
14988 GLint x, GLint y, GLsizei width, GLsizei height,
14989 GLenum format, GLenum type,
14990 const struct gl_pixelstore_attrib *unpack,
14991 const GLvoid *pixels );
14996 void (*ReadPixels)( struct gl_context *ctx,
14997 GLint x, GLint y, GLsizei width, GLsizei height,
14998 GLenum format, GLenum type,
14999 const struct gl_pixelstore_attrib *unpack,
15005 void (*CopyPixels)( struct gl_context *ctx, GLint srcx, GLint srcy,
15006 GLsizei width, GLsizei height,
15007 GLint dstx, GLint dsty, GLenum type );
15012 void (*Bitmap)( struct gl_context *ctx,
15013 GLint x, GLint y, GLsizei width, GLsizei height,
15014 const struct gl_pixelstore_attrib *unpack,
15015 const GLubyte *bitmap );
15016 # 198 "../../src/mesa/main/dd.h"
15017 GLuint (*ChooseTextureFormat)( struct gl_context *ctx, GLint internalFormat,
15018 GLenum srcFormat, GLenum srcType );
15019 # 218 "../../src/mesa/main/dd.h"
15020 void (*TexImage1D)( struct gl_context *ctx, GLenum target, GLint level,
15021 GLint internalFormat,
15022 GLint width, GLint border,
15023 GLenum format, GLenum type, const GLvoid *pixels,
15024 const struct gl_pixelstore_attrib *packing,
15025 struct gl_texture_object *texObj,
15026 struct gl_texture_image *texImage );
15033 void (*TexImage2D)( struct gl_context *ctx, GLenum target, GLint level,
15034 GLint internalFormat,
15035 GLint width, GLint height, GLint border,
15036 GLenum format, GLenum type, const GLvoid *pixels,
15037 const struct gl_pixelstore_attrib *packing,
15038 struct gl_texture_object *texObj,
15039 struct gl_texture_image *texImage );
15046 void (*TexImage3D)( struct gl_context *ctx, GLenum target, GLint level,
15047 GLint internalFormat,
15048 GLint width, GLint height, GLint depth, GLint border,
15049 GLenum format, GLenum type, const GLvoid *pixels,
15050 const struct gl_pixelstore_attrib *packing,
15051 struct gl_texture_object *texObj,
15052 struct gl_texture_image *texImage );
15053 # 273 "../../src/mesa/main/dd.h"
15054 void (*TexSubImage1D)( struct gl_context *ctx, GLenum target, GLint level,
15055 GLint xoffset, GLsizei width,
15056 GLenum format, GLenum type,
15057 const GLvoid *pixels,
15058 const struct gl_pixelstore_attrib *packing,
15059 struct gl_texture_object *texObj,
15060 struct gl_texture_image *texImage );
15067 void (*TexSubImage2D)( struct gl_context *ctx, GLenum target, GLint level,
15068 GLint xoffset, GLint yoffset,
15069 GLsizei width, GLsizei height,
15070 GLenum format, GLenum type,
15071 const GLvoid *pixels,
15072 const struct gl_pixelstore_attrib *packing,
15073 struct gl_texture_object *texObj,
15074 struct gl_texture_image *texImage );
15081 void (*TexSubImage3D)( struct gl_context *ctx, GLenum target, GLint level,
15082 GLint xoffset, GLint yoffset, GLint zoffset,
15083 GLsizei width, GLsizei height, GLint depth,
15084 GLenum format, GLenum type,
15085 const GLvoid *pixels,
15086 const struct gl_pixelstore_attrib *packing,
15087 struct gl_texture_object *texObj,
15088 struct gl_texture_image *texImage );
15093 void (*GetTexImage)( struct gl_context *ctx, GLenum target, GLint level,
15094 GLenum format, GLenum type, GLvoid *pixels,
15095 struct gl_texture_object *texObj,
15096 struct gl_texture_image *texImage );
15103 void (*CopyTexImage1D)( struct gl_context *ctx, GLenum target, GLint level,
15104 GLenum internalFormat, GLint x, GLint y,
15105 GLsizei width, GLint border );
15112 void (*CopyTexImage2D)( struct gl_context *ctx, GLenum target, GLint level,
15113 GLenum internalFormat, GLint x, GLint y,
15114 GLsizei width, GLsizei height, GLint border );
15121 void (*CopyTexSubImage1D)( struct gl_context *ctx, GLenum target, GLint level,
15123 GLint x, GLint y, GLsizei width );
15129 void (*CopyTexSubImage2D)( struct gl_context *ctx, GLenum target, GLint level,
15130 GLint xoffset, GLint yoffset,
15132 GLsizei width, GLsizei height );
15138 void (*CopyTexSubImage3D)( struct gl_context *ctx, GLenum target, GLint level,
15139 GLint xoffset, GLint yoffset, GLint zoffset,
15141 GLsizei width, GLsizei height );
15146 void (*GenerateMipmap)(struct gl_context *ctx, GLenum target,
15147 struct gl_texture_object *texObj);
15155 GLboolean (*TestProxyTexImage)(struct gl_context *ctx, GLenum target,
15156 GLint level, GLint internalFormat,
15157 GLenum format, GLenum type,
15158 GLint width, GLint height,
15159 GLint depth, GLint border);
15160 # 402 "../../src/mesa/main/dd.h"
15161 void (*CompressedTexImage1D)( struct gl_context *ctx, GLenum target,
15162 GLint level, GLint internalFormat,
15163 GLsizei width, GLint border,
15164 GLsizei imageSize, const GLvoid *data,
15165 struct gl_texture_object *texObj,
15166 struct gl_texture_image *texImage );
15172 void (*CompressedTexImage2D)( struct gl_context *ctx, GLenum target,
15173 GLint level, GLint internalFormat,
15174 GLsizei width, GLsizei height, GLint border,
15175 GLsizei imageSize, const GLvoid *data,
15176 struct gl_texture_object *texObj,
15177 struct gl_texture_image *texImage );
15183 void (*CompressedTexImage3D)( struct gl_context *ctx, GLenum target,
15184 GLint level, GLint internalFormat,
15185 GLsizei width, GLsizei height, GLsizei depth,
15187 GLsizei imageSize, const GLvoid *data,
15188 struct gl_texture_object *texObj,
15189 struct gl_texture_image *texImage );
15190 # 449 "../../src/mesa/main/dd.h"
15191 void (*CompressedTexSubImage1D)(struct gl_context *ctx, GLenum target, GLint level,
15192 GLint xoffset, GLsizei width,
15194 GLsizei imageSize, const GLvoid *data,
15195 struct gl_texture_object *texObj,
15196 struct gl_texture_image *texImage);
15202 void (*CompressedTexSubImage2D)(struct gl_context *ctx, GLenum target, GLint level,
15203 GLint xoffset, GLint yoffset,
15204 GLsizei width, GLint height,
15206 GLsizei imageSize, const GLvoid *data,
15207 struct gl_texture_object *texObj,
15208 struct gl_texture_image *texImage);
15214 void (*CompressedTexSubImage3D)(struct gl_context *ctx, GLenum target, GLint level,
15215 GLint xoffset, GLint yoffset, GLint zoffset,
15216 GLsizei width, GLint height, GLint depth,
15218 GLsizei imageSize, const GLvoid *data,
15219 struct gl_texture_object *texObj,
15220 struct gl_texture_image *texImage);
15226 void (*GetCompressedTexImage)(struct gl_context *ctx, GLenum target, GLint level,
15228 struct gl_texture_object *texObj,
15229 struct gl_texture_image *texImage);
15230 # 499 "../../src/mesa/main/dd.h"
15231 void (*BindTexture)( struct gl_context *ctx, GLenum target,
15232 struct gl_texture_object *tObj );
15239 struct gl_texture_object * (*NewTextureObject)( struct gl_context *ctx, GLuint name,
15247 void (*DeleteTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
15252 struct gl_texture_image * (*NewTextureImage)( struct gl_context *ctx );
15257 void (*FreeTexImageData)( struct gl_context *ctx, struct gl_texture_image *tImage );
15260 void (*MapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
15262 void (*UnmapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
15263 # 543 "../../src/mesa/main/dd.h"
15264 void* (*TextureMemCpy)( void *to, const void *from, size_t sz );
15269 GLboolean (*IsTextureResident)( struct gl_context *ctx,
15270 struct gl_texture_object *t );
15278 void (*UpdateTexturePalette)( struct gl_context *ctx,
15279 struct gl_texture_object *tObj );
15287 void (*CopyColorTable)( struct gl_context *ctx,
15288 GLenum target, GLenum internalformat,
15289 GLint x, GLint y, GLsizei width );
15291 void (*CopyColorSubTable)( struct gl_context *ctx,
15292 GLenum target, GLsizei start,
15293 GLint x, GLint y, GLsizei width );
15294 # 581 "../../src/mesa/main/dd.h"
15295 void (*BindProgram)(struct gl_context *ctx, GLenum target, struct gl_program *prog);
15297 struct gl_program * (*NewProgram)(struct gl_context *ctx, GLenum target, GLuint id);
15299 void (*DeleteProgram)(struct gl_context *ctx, struct gl_program *prog);
15305 GLboolean (*ProgramStringNotify)(struct gl_context *ctx, GLenum target,
15306 struct gl_program *prog);
15309 GLboolean (*IsProgramNative)(struct gl_context *ctx, GLenum target,
15310 struct gl_program *prog);
15311 # 610 "../../src/mesa/main/dd.h"
15312 GLboolean (*LinkShader)(struct gl_context *ctx, struct gl_shader_program *shader);
15313 # 624 "../../src/mesa/main/dd.h"
15314 void (*AlphaFunc)(struct gl_context *ctx, GLenum func, GLfloat ref);
15316 void (*BlendColor)(struct gl_context *ctx, const GLfloat color[4]);
15318 void (*BlendEquationSeparate)(struct gl_context *ctx, GLenum modeRGB, GLenum modeA);
15319 void (*BlendEquationSeparatei)(struct gl_context *ctx, GLuint buffer,
15320 GLenum modeRGB, GLenum modeA);
15322 void (*BlendFuncSeparate)(struct gl_context *ctx,
15323 GLenum sfactorRGB, GLenum dfactorRGB,
15324 GLenum sfactorA, GLenum dfactorA);
15325 void (*BlendFuncSeparatei)(struct gl_context *ctx, GLuint buffer,
15326 GLenum sfactorRGB, GLenum dfactorRGB,
15327 GLenum sfactorA, GLenum dfactorA);
15329 void (*ClearColor)(struct gl_context *ctx, const GLfloat color[4]);
15331 void (*ClearDepth)(struct gl_context *ctx, GLclampd d);
15333 void (*ClearStencil)(struct gl_context *ctx, GLint s);
15335 void (*ClipPlane)(struct gl_context *ctx, GLenum plane, const GLfloat *equation );
15337 void (*ColorMask)(struct gl_context *ctx, GLboolean rmask, GLboolean gmask,
15338 GLboolean bmask, GLboolean amask );
15339 void (*ColorMaskIndexed)(struct gl_context *ctx, GLuint buf, GLboolean rmask,
15340 GLboolean gmask, GLboolean bmask, GLboolean amask);
15342 void (*ColorMaterial)(struct gl_context *ctx, GLenum face, GLenum mode);
15344 void (*CullFace)(struct gl_context *ctx, GLenum mode);
15346 void (*FrontFace)(struct gl_context *ctx, GLenum mode);
15348 void (*DepthFunc)(struct gl_context *ctx, GLenum func);
15350 void (*DepthMask)(struct gl_context *ctx, GLboolean flag);
15352 void (*DepthRange)(struct gl_context *ctx, GLclampd nearval, GLclampd farval);
15354 void (*DrawBuffer)( struct gl_context *ctx, GLenum buffer );
15356 void (*DrawBuffers)( struct gl_context *ctx, GLsizei n, const GLenum *buffers );
15358 void (*Enable)(struct gl_context *ctx, GLenum cap, GLboolean state);
15360 void (*Fogfv)(struct gl_context *ctx, GLenum pname, const GLfloat *params);
15362 void (*Hint)(struct gl_context *ctx, GLenum target, GLenum mode);
15367 void (*Lightfv)(struct gl_context *ctx, GLenum light,
15368 GLenum pname, const GLfloat *params );
15370 void (*LightModelfv)(struct gl_context *ctx, GLenum pname, const GLfloat *params);
15372 void (*LineStipple)(struct gl_context *ctx, GLint factor, GLushort pattern );
15374 void (*LineWidth)(struct gl_context *ctx, GLfloat width);
15376 void (*LogicOpcode)(struct gl_context *ctx, GLenum opcode);
15377 void (*PointParameterfv)(struct gl_context *ctx, GLenum pname,
15378 const GLfloat *params);
15380 void (*PointSize)(struct gl_context *ctx, GLfloat size);
15382 void (*PolygonMode)(struct gl_context *ctx, GLenum face, GLenum mode);
15384 void (*PolygonOffset)(struct gl_context *ctx, GLfloat factor, GLfloat units);
15386 void (*PolygonStipple)(struct gl_context *ctx, const GLubyte *mask );
15388 void (*ReadBuffer)( struct gl_context *ctx, GLenum buffer );
15390 void (*RenderMode)(struct gl_context *ctx, GLenum mode );
15392 void (*Scissor)(struct gl_context *ctx, GLint x, GLint y, GLsizei w, GLsizei h);
15394 void (*ShadeModel)(struct gl_context *ctx, GLenum mode);
15396 void (*StencilFuncSeparate)(struct gl_context *ctx, GLenum face, GLenum func,
15397 GLint ref, GLuint mask);
15399 void (*StencilMaskSeparate)(struct gl_context *ctx, GLenum face, GLuint mask);
15401 void (*StencilOpSeparate)(struct gl_context *ctx, GLenum face, GLenum fail,
15402 GLenum zfail, GLenum zpass);
15404 void (*TexGen)(struct gl_context *ctx, GLenum coord, GLenum pname,
15405 const GLfloat *params);
15407 void (*TexEnv)(struct gl_context *ctx, GLenum target, GLenum pname,
15408 const GLfloat *param);
15410 void (*TexParameter)(struct gl_context *ctx, GLenum target,
15411 struct gl_texture_object *texObj,
15412 GLenum pname, const GLfloat *params);
15414 void (*Viewport)(struct gl_context *ctx, GLint x, GLint y, GLsizei w, GLsizei h);
15422 void (*BindBuffer)( struct gl_context *ctx, GLenum target,
15423 struct gl_buffer_object *obj );
15425 struct gl_buffer_object * (*NewBufferObject)( struct gl_context *ctx, GLuint buffer,
15428 void (*DeleteBuffer)( struct gl_context *ctx, struct gl_buffer_object *obj );
15430 GLboolean (*BufferData)( struct gl_context *ctx, GLenum target, GLsizeiptrARB size,
15431 const GLvoid *data, GLenum usage,
15432 struct gl_buffer_object *obj );
15434 void (*BufferSubData)( struct gl_context *ctx, GLenum target, GLintptrARB offset,
15435 GLsizeiptrARB size, const GLvoid *data,
15436 struct gl_buffer_object *obj );
15438 void (*GetBufferSubData)( struct gl_context *ctx, GLenum target,
15439 GLintptrARB offset, GLsizeiptrARB size,
15440 GLvoid *data, struct gl_buffer_object *obj );
15442 void * (*MapBuffer)( struct gl_context *ctx, GLenum target, GLenum access,
15443 struct gl_buffer_object *obj );
15445 void (*CopyBufferSubData)( struct gl_context *ctx,
15446 struct gl_buffer_object *src,
15447 struct gl_buffer_object *dst,
15448 GLintptr readOffset, GLintptr writeOffset,
15453 void * (*MapBufferRange)( struct gl_context *ctx, GLenum target, GLintptr offset,
15454 GLsizeiptr length, GLbitfield access,
15455 struct gl_buffer_object *obj);
15457 void (*FlushMappedBufferRange)(struct gl_context *ctx, GLenum target,
15458 GLintptr offset, GLsizeiptr length,
15459 struct gl_buffer_object *obj);
15461 GLboolean (*UnmapBuffer)( struct gl_context *ctx, GLenum target,
15462 struct gl_buffer_object *obj );
15470 GLenum (*BufferObjectPurgeable)( struct gl_context *ctx, struct gl_buffer_object *obj, GLenum option );
15471 GLenum (*RenderObjectPurgeable)( struct gl_context *ctx, struct gl_renderbuffer *obj, GLenum option );
15472 GLenum (*TextureObjectPurgeable)( struct gl_context *ctx, struct gl_texture_object *obj, GLenum option );
15475 GLenum (*BufferObjectUnpurgeable)( struct gl_context *ctx, struct gl_buffer_object *obj, GLenum option );
15476 GLenum (*RenderObjectUnpurgeable)( struct gl_context *ctx, struct gl_renderbuffer *obj, GLenum option );
15477 GLenum (*TextureObjectUnpurgeable)( struct gl_context *ctx, struct gl_texture_object *obj, GLenum option );
15484 struct gl_framebuffer * (*NewFramebuffer)(struct gl_context *ctx, GLuint name);
15485 struct gl_renderbuffer * (*NewRenderbuffer)(struct gl_context *ctx, GLuint name);
15486 void (*BindFramebuffer)(struct gl_context *ctx, GLenum target,
15487 struct gl_framebuffer *drawFb,
15488 struct gl_framebuffer *readFb);
15489 void (*FramebufferRenderbuffer)(struct gl_context *ctx,
15490 struct gl_framebuffer *fb,
15492 struct gl_renderbuffer *rb);
15493 void (*RenderTexture)(struct gl_context *ctx,
15494 struct gl_framebuffer *fb,
15495 struct gl_renderbuffer_attachment *att);
15496 void (*FinishRenderTexture)(struct gl_context *ctx,
15497 struct gl_renderbuffer_attachment *att);
15498 void (*ValidateFramebuffer)(struct gl_context *ctx,
15499 struct gl_framebuffer *fb);
15501 void (*BlitFramebuffer)(struct gl_context *ctx,
15502 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
15503 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
15504 GLbitfield mask, GLenum filter);
15510 struct gl_query_object * (*NewQueryObject)(struct gl_context *ctx, GLuint id);
15511 void (*DeleteQuery)(struct gl_context *ctx, struct gl_query_object *q);
15512 void (*BeginQuery)(struct gl_context *ctx, struct gl_query_object *q);
15513 void (*EndQuery)(struct gl_context *ctx, struct gl_query_object *q);
15514 void (*CheckQuery)(struct gl_context *ctx, struct gl_query_object *q);
15515 void (*WaitQuery)(struct gl_context *ctx, struct gl_query_object *q);
15523 struct gl_array_object * (*NewArrayObject)(struct gl_context *ctx, GLuint id);
15524 void (*DeleteArrayObject)(struct gl_context *ctx, struct gl_array_object *obj);
15525 void (*BindArrayObject)(struct gl_context *ctx, struct gl_array_object *obj);
15532 struct gl_shader *(*NewShader)(struct gl_context *ctx, GLuint name, GLenum type);
15533 void (*DeleteShader)(struct gl_context *ctx, struct gl_shader *shader);
15534 struct gl_shader_program *(*NewShaderProgram)(struct gl_context *ctx, GLuint name);
15535 void (*DeleteShaderProgram)(struct gl_context *ctx,
15536 struct gl_shader_program *shProg);
15537 void (*UseProgram)(struct gl_context *ctx, struct gl_shader_program *shProg);
15538 # 860 "../../src/mesa/main/dd.h"
15539 GLuint NeedValidate;
15540 # 873 "../../src/mesa/main/dd.h"
15541 void (*ValidateTnlModule)( struct gl_context *ctx, GLuint new_state );
15548 GLuint CurrentExecPrimitive;
15556 GLuint CurrentSavePrimitive;
15557 # 901 "../../src/mesa/main/dd.h"
15559 GLuint SaveNeedFlush;
15565 void (*BeginVertices)( struct gl_context *ctx );
15566 # 919 "../../src/mesa/main/dd.h"
15567 void (*FlushVertices)( struct gl_context *ctx, GLuint flags );
15568 void (*SaveFlushVertices)( struct gl_context *ctx );
15575 GLboolean (*NotifySaveBegin)( struct gl_context *ctx, GLenum mode );
15581 void (*LightingSpaceChange)( struct gl_context *ctx );
15589 void (*NewList)( struct gl_context *ctx, GLuint list, GLenum mode );
15595 void (*EndList)( struct gl_context *ctx );
15602 void (*BeginCallList)( struct gl_context *ctx,
15603 struct gl_display_list *dlist );
15609 void (*EndCallList)( struct gl_context *ctx );
15616 struct gl_sync_object * (*NewSyncObject)(struct gl_context *, GLenum);
15617 void (*FenceSync)(struct gl_context *, struct gl_sync_object *, GLenum, GLbitfield);
15618 void (*DeleteSyncObject)(struct gl_context *, struct gl_sync_object *);
15619 void (*CheckSync)(struct gl_context *, struct gl_sync_object *);
15620 void (*ClientWaitSync)(struct gl_context *, struct gl_sync_object *,
15621 GLbitfield, GLuint64);
15622 void (*ServerWaitSync)(struct gl_context *, struct gl_sync_object *,
15623 GLbitfield, GLuint64);
15627 void (*BeginConditionalRender)(struct gl_context *ctx, struct gl_query_object *q,
15629 void (*EndConditionalRender)(struct gl_context *ctx, struct gl_query_object *q);
15635 void (*DrawTex)(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
15636 GLfloat width, GLfloat height);
15642 void (*EGLImageTargetTexture2D)(struct gl_context *ctx, GLenum target,
15643 struct gl_texture_object *texObj,
15644 struct gl_texture_image *texImage,
15645 GLeglImageOES image_handle);
15646 void (*EGLImageTargetRenderbufferStorage)(struct gl_context *ctx,
15647 struct gl_renderbuffer *rb,
15648 void *image_handle);
15653 struct gl_transform_feedback_object *
15654 (*NewTransformFeedback)(struct gl_context *ctx, GLuint name);
15655 void (*DeleteTransformFeedback)(struct gl_context *ctx,
15656 struct gl_transform_feedback_object *obj);
15657 void (*BeginTransformFeedback)(struct gl_context *ctx, GLenum mode,
15658 struct gl_transform_feedback_object *obj);
15659 void (*EndTransformFeedback)(struct gl_context *ctx,
15660 struct gl_transform_feedback_object *obj);
15661 void (*PauseTransformFeedback)(struct gl_context *ctx,
15662 struct gl_transform_feedback_object *obj);
15663 void (*ResumeTransformFeedback)(struct gl_context *ctx,
15664 struct gl_transform_feedback_object *obj);
15665 void (*DrawTransformFeedback)(struct gl_context *ctx, GLenum mode,
15666 struct gl_transform_feedback_object *obj);
15671 void (*TextureBarrier)(struct gl_context *ctx);
15676 struct gl_sampler_object * (*NewSamplerObject)(struct gl_context *ctx,
15678 void (*DeleteSamplerObject)(struct gl_context *ctx,
15679 struct gl_sampler_object *samp);
15681 # 1053 "../../src/mesa/main/dd.h"
15687 void ( * ArrayElement)( GLint );
15688 void ( * Color3f)( GLfloat, GLfloat, GLfloat );
15689 void ( * Color3fv)( const GLfloat * );
15690 void ( * Color4f)( GLfloat, GLfloat, GLfloat, GLfloat );
15691 void ( * Color4fv)( const GLfloat * );
15692 void ( * EdgeFlag)( GLboolean );
15693 void ( * EvalCoord1f)( GLfloat );
15694 void ( * EvalCoord1fv)( const GLfloat * );
15695 void ( * EvalCoord2f)( GLfloat, GLfloat );
15696 void ( * EvalCoord2fv)( const GLfloat * );
15697 void ( * EvalPoint1)( GLint );
15698 void ( * EvalPoint2)( GLint, GLint );
15699 void ( * FogCoordfEXT)( GLfloat );
15700 void ( * FogCoordfvEXT)( const GLfloat * );
15701 void ( * Indexf)( GLfloat );
15702 void ( * Indexfv)( const GLfloat * );
15703 void ( * Materialfv)( GLenum face, GLenum pname, const GLfloat * );
15704 void ( * MultiTexCoord1fARB)( GLenum, GLfloat );
15705 void ( * MultiTexCoord1fvARB)( GLenum, const GLfloat * );
15706 void ( * MultiTexCoord2fARB)( GLenum, GLfloat, GLfloat );
15707 void ( * MultiTexCoord2fvARB)( GLenum, const GLfloat * );
15708 void ( * MultiTexCoord3fARB)( GLenum, GLfloat, GLfloat, GLfloat );
15709 void ( * MultiTexCoord3fvARB)( GLenum, const GLfloat * );
15710 void ( * MultiTexCoord4fARB)( GLenum, GLfloat, GLfloat, GLfloat, GLfloat );
15711 void ( * MultiTexCoord4fvARB)( GLenum, const GLfloat * );
15712 void ( * Normal3f)( GLfloat, GLfloat, GLfloat );
15713 void ( * Normal3fv)( const GLfloat * );
15714 void ( * SecondaryColor3fEXT)( GLfloat, GLfloat, GLfloat );
15715 void ( * SecondaryColor3fvEXT)( const GLfloat * );
15716 void ( * TexCoord1f)( GLfloat );
15717 void ( * TexCoord1fv)( const GLfloat * );
15718 void ( * TexCoord2f)( GLfloat, GLfloat );
15719 void ( * TexCoord2fv)( const GLfloat * );
15720 void ( * TexCoord3f)( GLfloat, GLfloat, GLfloat );
15721 void ( * TexCoord3fv)( const GLfloat * );
15722 void ( * TexCoord4f)( GLfloat, GLfloat, GLfloat, GLfloat );
15723 void ( * TexCoord4fv)( const GLfloat * );
15724 void ( * Vertex2f)( GLfloat, GLfloat );
15725 void ( * Vertex2fv)( const GLfloat * );
15726 void ( * Vertex3f)( GLfloat, GLfloat, GLfloat );
15727 void ( * Vertex3fv)( const GLfloat * );
15728 void ( * Vertex4f)( GLfloat, GLfloat, GLfloat, GLfloat );
15729 void ( * Vertex4fv)( const GLfloat * );
15730 void ( * CallList)( GLuint );
15731 void ( * CallLists)( GLsizei, GLenum, const GLvoid * );
15732 void ( * Begin)( GLenum );
15733 void ( * End)( void );
15734 void ( * PrimitiveRestartNV)( void );
15736 void ( * VertexAttrib1fNV)( GLuint index, GLfloat x );
15737 void ( * VertexAttrib1fvNV)( GLuint index, const GLfloat *v );
15738 void ( * VertexAttrib2fNV)( GLuint index, GLfloat x, GLfloat y );
15739 void ( * VertexAttrib2fvNV)( GLuint index, const GLfloat *v );
15740 void ( * VertexAttrib3fNV)( GLuint index, GLfloat x, GLfloat y, GLfloat z );
15741 void ( * VertexAttrib3fvNV)( GLuint index, const GLfloat *v );
15742 void ( * VertexAttrib4fNV)( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w );
15743 void ( * VertexAttrib4fvNV)( GLuint index, const GLfloat *v );
15745 void ( * VertexAttrib1fARB)( GLuint index, GLfloat x );
15746 void ( * VertexAttrib1fvARB)( GLuint index, const GLfloat *v );
15747 void ( * VertexAttrib2fARB)( GLuint index, GLfloat x, GLfloat y );
15748 void ( * VertexAttrib2fvARB)( GLuint index, const GLfloat *v );
15749 void ( * VertexAttrib3fARB)( GLuint index, GLfloat x, GLfloat y, GLfloat z );
15750 void ( * VertexAttrib3fvARB)( GLuint index, const GLfloat *v );
15751 void ( * VertexAttrib4fARB)( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w );
15752 void ( * VertexAttrib4fvARB)( GLuint index, const GLfloat *v );
15755 void ( * VertexAttribI1i)( GLuint index, GLint x);
15756 void ( * VertexAttribI2i)( GLuint index, GLint x, GLint y);
15757 void ( * VertexAttribI3i)( GLuint index, GLint x, GLint y, GLint z);
15758 void ( * VertexAttribI4i)( GLuint index, GLint x, GLint y, GLint z, GLint w);
15759 void ( * VertexAttribI2iv)( GLuint index, const GLint *v);
15760 void ( * VertexAttribI3iv)( GLuint index, const GLint *v);
15761 void ( * VertexAttribI4iv)( GLuint index, const GLint *v);
15763 void ( * VertexAttribI1ui)( GLuint index, GLuint x);
15764 void ( * VertexAttribI2ui)( GLuint index, GLuint x, GLuint y);
15765 void ( * VertexAttribI3ui)( GLuint index, GLuint x, GLuint y, GLuint z);
15766 void ( * VertexAttribI4ui)( GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
15767 void ( * VertexAttribI2uiv)( GLuint index, const GLuint *v);
15768 void ( * VertexAttribI3uiv)( GLuint index, const GLuint *v);
15769 void ( * VertexAttribI4uiv)( GLuint index, const GLuint *v);
15773 void ( * Rectf)( GLfloat, GLfloat, GLfloat, GLfloat );
15779 void ( * DrawArrays)( GLenum mode, GLint start, GLsizei count );
15780 void ( * DrawElements)( GLenum mode, GLsizei count, GLenum type,
15781 const GLvoid *indices );
15782 void ( * DrawRangeElements)( GLenum mode, GLuint start,
15783 GLuint end, GLsizei count,
15784 GLenum type, const GLvoid *indices );
15785 void ( * MultiDrawElementsEXT)( GLenum mode, const GLsizei *count,
15787 const GLvoid **indices,
15788 GLsizei primcount);
15789 void ( * DrawElementsBaseVertex)( GLenum mode, GLsizei count,
15791 const GLvoid *indices,
15792 GLint basevertex );
15793 void ( * DrawRangeElementsBaseVertex)( GLenum mode, GLuint start,
15794 GLuint end, GLsizei count,
15796 const GLvoid *indices,
15798 void ( * MultiDrawElementsBaseVertex)( GLenum mode,
15799 const GLsizei *count,
15801 const GLvoid **indices,
15803 const GLint *basevertex);
15804 void ( * DrawArraysInstanced)(GLenum mode, GLint first,
15805 GLsizei count, GLsizei primcount);
15806 void ( * DrawElementsInstanced)(GLenum mode, GLsizei count,
15807 GLenum type, const GLvoid *indices,
15808 GLsizei primcount);
15809 void ( * DrawElementsInstancedBaseVertex)(GLenum mode, GLsizei count,
15810 GLenum type, const GLvoid *indices,
15811 GLsizei primcount, GLint basevertex);
15812 # 1196 "../../src/mesa/main/dd.h"
15813 void ( * EvalMesh1)( GLenum mode, GLint i1, GLint i2 );
15814 void ( * EvalMesh2)( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
15818 # 3095 "../../src/mesa/main/mtypes.h" 2
15819 # 3107 "../../src/mesa/main/mtypes.h"
15820 union gl_dlist_node;
15828 struct gl_display_list
15833 union gl_dlist_node *Head;
15840 struct gl_dlist_state
15844 struct gl_display_list *CurrentList;
15845 union gl_dlist_node *CurrentBlock;
15848 GLvertexformat ListVtxfmt;
15850 GLubyte ActiveAttribSize[VERT_ATTRIB_MAX];
15851 GLfloat CurrentAttrib[VERT_ATTRIB_MAX][4];
15853 GLubyte ActiveMaterialSize[12];
15854 GLfloat CurrentMaterial[12][4];
15856 GLubyte ActiveIndex;
15857 GLfloat CurrentIndex;
15859 GLubyte ActiveEdgeFlag;
15860 GLboolean CurrentEdgeFlag;
15880 # 3179 "../../src/mesa/main/mtypes.h"
15884 struct gl_shared_state *Shared;
15889 struct _glapi_table *Save;
15890 struct _glapi_table *Exec;
15891 struct _glapi_table *CurrentDispatch;
15894 struct gl_config Visual;
15895 struct gl_framebuffer *DrawBuffer;
15896 struct gl_framebuffer *ReadBuffer;
15897 struct gl_framebuffer *WinSysDrawBuffer;
15898 struct gl_framebuffer *WinSysReadBuffer;
15903 struct dd_function_table Driver;
15908 struct gl_constants Const;
15912 struct gl_matrix_stack ModelviewMatrixStack;
15913 struct gl_matrix_stack ProjectionMatrixStack;
15914 struct gl_matrix_stack TextureMatrixStack[((8 > 16) ? 8 : 16)];
15915 struct gl_matrix_stack ProgramMatrixStack[8];
15916 struct gl_matrix_stack *CurrentStack;
15920 GLmatrix _ModelProjectMatrix;
15923 struct gl_dlist_state ListState;
15925 GLboolean ExecuteFlag;
15926 GLboolean CompileFlag;
15929 struct gl_extensions Extensions;
15932 GLuint VersionMajor, VersionMinor;
15933 char *VersionString;
15937 GLuint AttribStackDepth;
15938 struct gl_attrib_node *AttribStack[16];
15939 # 3245 "../../src/mesa/main/mtypes.h"
15940 struct gl_accum_attrib Accum;
15941 struct gl_colorbuffer_attrib Color;
15942 struct gl_current_attrib Current;
15943 struct gl_depthbuffer_attrib Depth;
15944 struct gl_eval_attrib Eval;
15945 struct gl_fog_attrib Fog;
15946 struct gl_hint_attrib Hint;
15947 struct gl_light_attrib Light;
15948 struct gl_line_attrib Line;
15949 struct gl_list_attrib List;
15950 struct gl_multisample_attrib Multisample;
15951 struct gl_pixel_attrib Pixel;
15952 struct gl_point_attrib Point;
15953 struct gl_polygon_attrib Polygon;
15954 GLuint PolygonStipple[32];
15955 struct gl_scissor_attrib Scissor;
15956 struct gl_stencil_attrib Stencil;
15957 struct gl_texture_attrib Texture;
15958 struct gl_transform_attrib Transform;
15959 struct gl_viewport_attrib Viewport;
15964 GLuint ClientAttribStackDepth;
15965 struct gl_attrib_node *ClientAttribStack[16];
15970 struct gl_array_attrib Array;
15971 struct gl_pixelstore_attrib Pack;
15972 struct gl_pixelstore_attrib Unpack;
15973 struct gl_pixelstore_attrib DefaultPacking;
15978 struct gl_pixelmaps PixelMaps;
15980 struct gl_evaluators EvalMap;
15981 struct gl_feedback Feedback;
15982 struct gl_selection Select;
15984 struct gl_program_state Program;
15985 struct gl_vertex_program_state VertexProgram;
15986 struct gl_fragment_program_state FragmentProgram;
15987 struct gl_geometry_program_state GeometryProgram;
15988 struct gl_ati_fragment_shader_state ATIFragmentShader;
15990 struct gl_shader_state Shader;
15991 struct gl_shader_compiler_options ShaderCompilerOptions[MESA_SHADER_TYPES];
15993 struct gl_query_state Query;
15995 struct gl_transform_feedback TransformFeedback;
15997 struct gl_buffer_object *CopyReadBuffer;
15998 struct gl_buffer_object *CopyWriteBuffer;
16001 struct gl_meta_state *Meta;
16004 struct gl_renderbuffer *CurrentRenderbuffer;
16009 GLenum ResetStatus;
16014 const char *ErrorDebugFmtString;
16015 GLuint ErrorDebugCount;
16018 GLbitfield NewState;
16020 GLboolean ViewportInitialized;
16022 GLbitfield varying_vp_inputs;
16029 GLbitfield _TriangleCaps;
16030 GLbitfield _ImageTransferState;
16031 GLfloat _EyeZDir[3];
16032 GLfloat _ModelViewInvScale;
16033 GLboolean _NeedEyeCoords;
16034 GLboolean _ForceEyeCoords;
16036 GLuint TextureStateTimestamp;
16038 struct gl_shine_tab *_ShineTable[2];
16039 struct gl_shine_tab *_ShineTabList;
16042 struct gl_list_extensions *ListExt;
16046 GLboolean FirstTimeCurrent;
16050 GLboolean Mesa_DXTn;
16052 GLboolean TextureFormatSupported[MESA_FORMAT_COUNT];
16058 GLboolean mvp_with_dp4;
16066 void *swrast_context;
16067 void *swsetup_context;
16068 void *swtnl_context;
16070 struct st_context *st;
16071 void *aelt_context;
16074 # 3396 "../../src/mesa/main/mtypes.h"
16077 VERBOSE_VARRAY = 0x0001,
16078 VERBOSE_TEXTURE = 0x0002,
16079 VERBOSE_MATERIAL = 0x0004,
16080 VERBOSE_PIPELINE = 0x0008,
16081 VERBOSE_DRIVER = 0x0010,
16082 VERBOSE_STATE = 0x0020,
16083 VERBOSE_API = 0x0040,
16084 VERBOSE_DISPLAY_LIST = 0x0100,
16085 VERBOSE_LIGHTING = 0x0200,
16086 VERBOSE_PRIMS = 0x0400,
16087 VERBOSE_VERTS = 0x0800,
16088 VERBOSE_DISASSEM = 0x1000,
16089 VERBOSE_DRAW = 0x2000,
16090 VERBOSE_SWAPBUFFERS = 0x4000
16097 DEBUG_ALWAYS_FLUSH = 0x1
16099 # 54 "../../src/mesa/main/context.h" 2
16102 struct _glapi_table;
16108 extern struct gl_config *
16109 _mesa_create_visual( GLboolean dbFlag,
16110 GLboolean stereoFlag,
16117 GLint accumRedBits,
16118 GLint accumGreenBits,
16119 GLint accumBlueBits,
16120 GLint accumAlphaBits,
16121 GLint numSamples );
16124 _mesa_initialize_visual( struct gl_config *v,
16126 GLboolean stereoFlag,
16133 GLint accumRedBits,
16134 GLint accumGreenBits,
16135 GLint accumBlueBits,
16136 GLint accumAlphaBits,
16137 GLint numSamples );
16140 _mesa_destroy_visual( struct gl_config *vis );
16149 _mesa_initialize_context( struct gl_context *ctx,
16151 const struct gl_config *visual,
16152 struct gl_context *share_list,
16153 const struct dd_function_table *driverFunctions,
16154 void *driverContext );
16156 extern struct gl_context *
16157 _mesa_create_context(gl_api api,
16158 const struct gl_config *visual,
16159 struct gl_context *share_list,
16160 const struct dd_function_table *driverFunctions,
16161 void *driverContext);
16164 _mesa_free_context_data( struct gl_context *ctx );
16167 _mesa_destroy_context( struct gl_context *ctx );
16171 _mesa_copy_context(const struct gl_context *src, struct gl_context *dst, GLuint mask);
16175 _mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height);
16178 _mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer,
16179 struct gl_framebuffer *readBuffer );
16182 _mesa_share_state(struct gl_context *ctx, struct gl_context *ctxToShare);
16184 extern struct gl_context *
16185 _mesa_get_current_context(void);
16190 _mesa_init_get_hash(struct gl_context *ctx);
16193 _mesa_notifySwapBuffers(struct gl_context *gc);
16196 extern struct _glapi_table *
16197 _mesa_get_dispatch(struct gl_context *ctx);
16201 _mesa_set_mvp_with_dp4( struct gl_context *ctx,
16206 _mesa_valid_to_render(struct gl_context *ctx, const char *where);
16214 _mesa_record_error( struct gl_context *ctx, GLenum error );
16218 _mesa_finish(struct gl_context *ctx);
16221 _mesa_flush(struct gl_context *ctx);
16225 _mesa_Finish( void );
16228 _mesa_Flush( void );
16229 # 34 "swrast/s_triangle.c" 2
16230 # 1 "../../src/mesa/main/colormac.h" 1
16231 # 36 "../../src/mesa/main/colormac.h"
16232 # 1 "../../src/mesa/main/config.h" 1
16233 # 37 "../../src/mesa/main/colormac.h" 2
16234 # 1 "../../src/mesa/main/macros.h" 1
16235 # 43 "../../src/mesa/main/macros.h"
16236 extern GLfloat _mesa_ubyte_to_float_color_tab[256];
16237 # 38 "../../src/mesa/main/colormac.h" 2
16238 # 35 "swrast/s_triangle.c" 2
16239 # 1 "../../src/mesa/main/imports.h" 1
16240 # 36 "swrast/s_triangle.c" 2
16241 # 1 "../../src/mesa/main/macros.h" 1
16242 # 37 "swrast/s_triangle.c" 2
16243 # 1 "../../src/mesa/main/mtypes.h" 1
16244 # 38 "swrast/s_triangle.c" 2
16245 # 1 "../../src/mesa/main/state.h" 1
16246 # 31 "../../src/mesa/main/state.h"
16248 _mesa_update_state(struct gl_context *ctx);
16254 _mesa_update_state_locked(struct gl_context *ctx);
16258 _mesa_set_varying_vp_inputs(struct gl_context *ctx, GLbitfield varying_inputs);
16262 _mesa_set_vp_override(struct gl_context *ctx, GLboolean flag);
16268 static __inline__ GLboolean
16269 _mesa_need_secondary_color(const struct gl_context *ctx)
16271 if (ctx->Light.Enabled &&
16272 ctx->Light.Model.ColorControl == 0x81FA)
16275 if (ctx->Fog.ColorSumEnabled)
16278 if (ctx->VertexProgram._Current &&
16279 (ctx->VertexProgram._Current != ctx->VertexProgram._TnlProgram) &&
16280 (ctx->VertexProgram._Current->Base.InputsRead & (1 << VERT_ATTRIB_COLOR1)))
16283 if (ctx->FragmentProgram._Current &&
16284 (ctx->FragmentProgram._Current != ctx->FragmentProgram._TexEnvProgram) &&
16285 (ctx->FragmentProgram._Current->Base.InputsRead & (1 << FRAG_ATTRIB_COL1)))
16295 static __inline__ GLboolean
16296 _mesa_rgba_logicop_enabled(const struct gl_context *ctx)
16298 return ctx->Color.ColorLogicOpEnabled ||
16299 (ctx->Color.BlendEnabled && ctx->Color.Blend[0].EquationRGB == 0x0BF1);
16301 # 39 "swrast/s_triangle.c" 2
16302 # 1 "../../src/mesa/program/prog_instruction.h" 1
16303 # 144 "../../src/mesa/program/prog_instruction.h"
16304 typedef enum prog_opcode {
16332 OPCODE_EMIT_VERTEX,
16334 OPCODE_END_PRIMITIVE,
16404 # 256 "../../src/mesa/program/prog_instruction.h"
16405 struct prog_src_register
16408 GLint Index:(12 +1);
16423 # 285 "../../src/mesa/program/prog_instruction.h"
16424 GLuint HasIndex2:1;
16426 GLint Index2:(12 +1);
16435 struct prog_dst_register
16439 GLuint WriteMask:4;
16441 # 317 "../../src/mesa/program/prog_instruction.h"
16447 GLuint CondSwizzle:12;
16463 struct prog_instruction
16465 gl_inst_opcode Opcode;
16466 struct prog_src_register SrcReg[3];
16467 struct prog_dst_register DstReg;
16468 # 352 "../../src/mesa/program/prog_instruction.h"
16469 GLuint CondUpdate:1;
16470 # 366 "../../src/mesa/program/prog_instruction.h"
16472 # 377 "../../src/mesa/program/prog_instruction.h"
16473 GLuint SaturateMode:2;
16481 GLuint Precision:3;
16488 GLuint TexSrcUnit:5;
16491 GLuint TexSrcTarget:3;
16494 GLuint TexShadow:1;
16495 # 408 "../../src/mesa/program/prog_instruction.h"
16496 GLint BranchTarget;
16499 const char *Comment;
16510 _mesa_init_instructions(struct prog_instruction *inst, GLuint count);
16512 extern struct prog_instruction *
16513 _mesa_alloc_instructions(GLuint numInst);
16515 extern struct prog_instruction *
16516 _mesa_realloc_instructions(struct prog_instruction *oldInst,
16517 GLuint numOldInst, GLuint numNewInst);
16519 extern struct prog_instruction *
16520 _mesa_copy_instructions(struct prog_instruction *dest,
16521 const struct prog_instruction *src, GLuint n);
16524 _mesa_free_instructions(struct prog_instruction *inst, GLuint count);
16527 _mesa_num_inst_src_regs(gl_inst_opcode opcode);
16530 _mesa_num_inst_dst_regs(gl_inst_opcode opcode);
16533 _mesa_is_tex_instruction(gl_inst_opcode opcode);
16536 _mesa_check_soa_dependencies(const struct prog_instruction *inst);
16538 extern const char *
16539 _mesa_opcode_string(gl_inst_opcode opcode);
16540 # 40 "swrast/s_triangle.c" 2
16542 # 1 "swrast/s_aatriangle.h" 1
16543 # 31 "swrast/s_aatriangle.h"
16548 _swrast_set_aa_triangle_function(struct gl_context *ctx);
16549 # 42 "swrast/s_triangle.c" 2
16550 # 1 "swrast/s_context.h" 1
16551 # 46 "swrast/s_context.h"
16552 # 1 "../../src/mesa/main/compiler.h" 1
16553 # 47 "swrast/s_context.h" 2
16555 # 1 "../../src/mesa/program/prog_execute.h" 1
16556 # 32 "../../src/mesa/program/prog_execute.h"
16557 typedef void (*FetchTexelLodFunc)(struct gl_context *ctx, const GLfloat texcoord[4],
16558 GLfloat lambda, GLuint unit, GLfloat color[4]);
16560 typedef void (*FetchTexelDerivFunc)(struct gl_context *ctx, const GLfloat texcoord[4],
16561 const GLfloat texdx[4],
16562 const GLfloat texdy[4],
16564 GLuint unit, GLfloat color[4]);
16570 struct gl_program_machine
16572 const struct gl_program *CurProgram;
16575 GLfloat (*Attribs)[16384][4];
16576 GLfloat (*DerivX)[4];
16577 GLfloat (*DerivY)[4];
16582 GLfloat VertAttribs[VERT_ATTRIB_MAX][4];
16584 GLfloat Temporaries[256][4];
16585 GLfloat Outputs[64][4];
16586 GLfloat (*EnvParams)[4];
16587 GLuint CondCodes[4];
16588 GLint AddressReg[2][4];
16589 GLfloat SystemValues[SYSTEM_VALUE_MAX][4];
16591 const GLubyte *Samplers;
16593 GLuint CallStack[8];
16597 FetchTexelLodFunc FetchTexelLod;
16598 FetchTexelDerivFunc FetchTexelDeriv;
16603 _mesa_get_program_register(struct gl_context *ctx, gl_register_file file,
16604 GLuint index, GLfloat val[4]);
16607 _mesa_execute_program(struct gl_context *ctx,
16608 const struct gl_program *program,
16609 struct gl_program_machine *machine);
16610 # 49 "swrast/s_context.h" 2
16611 # 1 "swrast/swrast.h" 1
16612 # 71 "swrast/swrast.h"
16614 GLfloat attrib[FRAG_ATTRIB_MAX][4];
16623 struct swrast_device_driver;
16630 _swrast_CreateContext( struct gl_context *ctx );
16633 _swrast_DestroyContext( struct gl_context *ctx );
16637 extern struct swrast_device_driver *
16638 _swrast_GetDeviceDriverReference( struct gl_context *ctx );
16641 _swrast_Bitmap( struct gl_context *ctx,
16642 GLint px, GLint py,
16643 GLsizei width, GLsizei height,
16644 const struct gl_pixelstore_attrib *unpack,
16645 const GLubyte *bitmap );
16648 _swrast_CopyPixels( struct gl_context *ctx,
16649 GLint srcx, GLint srcy,
16650 GLint destx, GLint desty,
16651 GLsizei width, GLsizei height,
16655 _swrast_DrawPixels( struct gl_context *ctx,
16657 GLsizei width, GLsizei height,
16658 GLenum format, GLenum type,
16659 const struct gl_pixelstore_attrib *unpack,
16660 const GLvoid *pixels );
16663 _swrast_ReadPixels( struct gl_context *ctx,
16664 GLint x, GLint y, GLsizei width, GLsizei height,
16665 GLenum format, GLenum type,
16666 const struct gl_pixelstore_attrib *unpack,
16670 _swrast_BlitFramebuffer(struct gl_context *ctx,
16671 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
16672 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
16673 GLbitfield mask, GLenum filter);
16676 _swrast_Clear(struct gl_context *ctx, GLbitfield buffers);
16679 _swrast_Accum(struct gl_context *ctx, GLenum op, GLfloat value);
16686 _swrast_ResetLineStipple( struct gl_context *ctx );
16693 _swrast_SetFacing(struct gl_context *ctx, GLuint facing);
16701 _swrast_Point( struct gl_context *ctx, const SWvertex *v );
16704 _swrast_Line( struct gl_context *ctx, const SWvertex *v0, const SWvertex *v1 );
16707 _swrast_Triangle( struct gl_context *ctx, const SWvertex *v0,
16708 const SWvertex *v1, const SWvertex *v2 );
16711 _swrast_Quad( struct gl_context *ctx,
16712 const SWvertex *v0, const SWvertex *v1,
16713 const SWvertex *v2, const SWvertex *v3);
16716 _swrast_flush( struct gl_context *ctx );
16719 _swrast_render_primitive( struct gl_context *ctx, GLenum mode );
16722 _swrast_render_start( struct gl_context *ctx );
16725 _swrast_render_finish( struct gl_context *ctx );
16730 _swrast_InvalidateState( struct gl_context *ctx, GLbitfield new_state );
16735 _swrast_allow_vertex_fog( struct gl_context *ctx, GLboolean value );
16738 _swrast_allow_pixel_fog( struct gl_context *ctx, GLboolean value );
16743 _swrast_print_vertex( struct gl_context *ctx, const SWvertex *v );
16748 _swrast_eject_texture_images(struct gl_context *ctx);
16752 _swrast_render_texture(struct gl_context *ctx,
16753 struct gl_framebuffer *fb,
16754 struct gl_renderbuffer_attachment *att);
16757 _swrast_finish_render_texture(struct gl_context *ctx,
16758 struct gl_renderbuffer_attachment *att);
16759 # 225 "swrast/swrast.h"
16760 struct swrast_device_driver {
16761 # 236 "swrast/swrast.h"
16762 void (*SpanRenderStart)(struct gl_context *ctx);
16763 void (*SpanRenderFinish)(struct gl_context *ctx);
16765 # 50 "swrast/s_context.h" 2
16766 # 1 "swrast/s_span.h" 1
16767 # 35 "swrast/s_span.h"
16769 struct gl_renderbuffer;
16770 # 66 "swrast/s_span.h"
16771 typedef struct sw_span_arrays
16777 GLfloat attribs[FRAG_ATTRIB_MAX][16384][4];
16780 GLubyte mask[16384];
16786 GLubyte rgba8[16384][4];
16787 GLushort rgba16[16384][4];
16792 GLuint index[16384];
16793 GLfloat lambda[8][16384];
16794 GLfloat coverage[16384];
16797 # 106 "swrast/s_span.h"
16798 typedef struct sw_span
16810 GLboolean writeAll;
16822 GLbitfield interpMask;
16825 GLfloat attrStart[FRAG_ATTRIB_MAX][4];
16826 GLfloat attrStepX[FRAG_ATTRIB_MAX][4];
16827 GLfloat attrStepY[FRAG_ATTRIB_MAX][4];
16834 GLfixed red, redStep;
16835 GLfixed green, greenStep;
16836 GLfixed blue, blueStep;
16837 GLfixed alpha, alphaStep;
16838 GLfixed index, indexStep;
16840 GLfixed intTex[2], intTexStep[2];
16846 GLbitfield arrayMask;
16848 GLbitfield arrayAttribs;
16856 SWspanarrays *array;
16858 # 183 "swrast/s_span.h"
16860 _swrast_span_default_attribs(struct gl_context *ctx, SWspan *span);
16863 _swrast_span_interpolate_z( const struct gl_context *ctx, SWspan *span );
16866 _swrast_compute_lambda(GLfloat dsdx, GLfloat dsdy, GLfloat dtdx, GLfloat dtdy,
16867 GLfloat dqdx, GLfloat dqdy, GLfloat texW, GLfloat texH,
16868 GLfloat s, GLfloat t, GLfloat q, GLfloat invQ);
16872 _swrast_write_rgba_span( struct gl_context *ctx, SWspan *span);
16876 _swrast_read_rgba_span(struct gl_context *ctx, struct gl_renderbuffer *rb,
16877 GLuint n, GLint x, GLint y, GLenum type, GLvoid *rgba);
16880 _swrast_get_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
16881 GLuint count, const GLint x[], const GLint y[],
16882 void *values, GLuint valueSize);
16885 _swrast_put_row(struct gl_context *ctx, struct gl_renderbuffer *rb,
16886 GLuint count, GLint x, GLint y,
16887 const GLvoid *values, GLuint valueSize);
16890 _swrast_get_row(struct gl_context *ctx, struct gl_renderbuffer *rb,
16891 GLuint count, GLint x, GLint y,
16892 GLvoid *values, GLuint valueSize);
16896 _swrast_get_dest_rgba(struct gl_context *ctx, struct gl_renderbuffer *rb,
16898 # 51 "swrast/s_context.h" 2
16901 typedef void (*texture_sample_func)(struct gl_context *ctx,
16902 const struct gl_texture_object *tObj,
16903 GLuint n, const GLfloat texcoords[][4],
16904 const GLfloat lambda[], GLfloat rgba[][4]);
16906 typedef void ( * blend_func)( struct gl_context *ctx, GLuint n,
16907 const GLubyte mask[],
16908 GLvoid *src, const GLvoid *dst,
16911 typedef void (*swrast_point_func)( struct gl_context *ctx, const SWvertex *);
16913 typedef void (*swrast_line_func)( struct gl_context *ctx,
16914 const SWvertex *, const SWvertex *);
16916 typedef void (*swrast_tri_func)( struct gl_context *ctx, const SWvertex *,
16917 const SWvertex *, const SWvertex *);
16920 typedef void (*validate_texture_image_func)(struct gl_context *ctx,
16921 struct gl_texture_object *texObj,
16922 GLuint face, GLuint level);
16923 # 116 "swrast/s_context.h"
16928 struct swrast_device_driver Driver;
16933 GLboolean AllowVertexFog;
16934 GLboolean AllowPixelFog;
16939 GLbitfield _RasterMask;
16940 GLfloat _BackfaceSign;
16941 GLfloat _BackfaceCullSign;
16942 GLboolean _PreferPixelFog;
16943 GLboolean _TextureCombinePrimary;
16944 GLboolean _FogEnabled;
16945 GLboolean _DeferredTexture;
16948 GLuint _ActiveAttribs[FRAG_ATTRIB_MAX];
16950 GLbitfield _ActiveAttribMask;
16952 GLuint _NumActiveAttribs;
16954 GLenum _InterpMode[FRAG_ATTRIB_MAX];
16958 GLboolean _IntegerAccumMode;
16959 GLfloat _IntegerAccumScaler;
16963 GLuint StippleCounter;
16964 GLuint PointLineFacing;
16965 GLbitfield NewState;
16966 GLuint StateChanges;
16968 GLboolean SpecularVertexAdd;
16970 void (*InvalidateState)( struct gl_context *ctx, GLbitfield new_state );
16977 GLbitfield InvalidatePointMask;
16978 GLbitfield InvalidateLineMask;
16979 GLbitfield InvalidateTriangleMask;
16987 void (*choose_point)( struct gl_context * );
16988 void (*choose_line)( struct gl_context * );
16989 void (*choose_triangle)( struct gl_context * );
16996 swrast_point_func Point;
16997 swrast_line_func Line;
16998 swrast_tri_func Triangle;
17006 swrast_point_func SpecPoint;
17007 swrast_line_func SpecLine;
17008 swrast_tri_func SpecTriangle;
17009 # 209 "swrast/s_context.h"
17010 SWspanarrays *SpanArrays;
17011 SWspanarrays *ZoomedArrays;
17020 blend_func BlendFunc;
17021 texture_sample_func TextureSample[16];
17026 GLfloat *TexelBuffer;
17028 validate_texture_image_func ValidateTextureImage;
17031 struct gl_program_machine FragProgMachine;
17037 _swrast_validate_derived( struct gl_context *ctx );
17040 _swrast_update_texture_samplers(struct gl_context *ctx);
17044 static __inline__ SWcontext *
17045 SWRAST_CONTEXT(struct gl_context *ctx)
17047 return (SWcontext *) ctx->swrast_context;
17051 static __inline__ const SWcontext *
17052 CONST_SWRAST_CONTEXT(const struct gl_context *ctx)
17054 return (const SWcontext *) ctx->swrast_context;
17063 static __inline__ void
17064 swrast_render_start(struct gl_context *ctx)
17066 SWcontext *swrast = SWRAST_CONTEXT(ctx);
17067 if (swrast->Driver.SpanRenderStart)
17068 swrast->Driver.SpanRenderStart(ctx);
17073 static __inline__ void
17074 swrast_render_finish(struct gl_context *ctx)
17076 SWcontext *swrast = SWRAST_CONTEXT(ctx);
17077 if (swrast->Driver.SpanRenderFinish)
17078 swrast->Driver.SpanRenderFinish(ctx);
17080 # 43 "swrast/s_triangle.c" 2
17081 # 1 "swrast/s_feedback.h" 1
17082 # 34 "swrast/s_feedback.h"
17083 extern void _swrast_feedback_point( struct gl_context *ctx, const SWvertex *v );
17085 extern void _swrast_feedback_line( struct gl_context *ctx,
17086 const SWvertex *v1, const SWvertex *v2 );
17088 extern void _swrast_feedback_triangle( struct gl_context *ctx, const SWvertex *v0,
17089 const SWvertex *v1, const SWvertex *v2 );
17091 extern void _swrast_select_point( struct gl_context *ctx, const SWvertex *v );
17093 extern void _swrast_select_line( struct gl_context *ctx,
17094 const SWvertex *v1, const SWvertex *v2 );
17096 extern void _swrast_select_triangle( struct gl_context *ctx, const SWvertex *v0,
17097 const SWvertex *v1, const SWvertex *v2 );
17098 # 44 "swrast/s_triangle.c" 2
17100 # 1 "swrast/s_triangle.h" 1
17101 # 34 "swrast/s_triangle.h"
17103 _swrast_culltriangle( struct gl_context *ctx,
17104 const SWvertex *v0,
17105 const SWvertex *v1,
17106 const SWvertex *v2);
17109 _swrast_choose_triangle( struct gl_context *ctx );
17112 _swrast_add_spec_terms_triangle( struct gl_context *ctx,
17113 const SWvertex *v0,
17114 const SWvertex *v1,
17115 const SWvertex *v2 );
17116 # 46 "swrast/s_triangle.c" 2
17124 _swrast_culltriangle( struct gl_context *ctx,
17125 const SWvertex *v0,
17126 const SWvertex *v1,
17127 const SWvertex *v2 )
17129 SWcontext *swrast = SWRAST_CONTEXT(ctx);
17130 GLfloat ex = v1->attrib[FRAG_ATTRIB_WPOS][0] - v0->attrib[FRAG_ATTRIB_WPOS][0];
17131 GLfloat ey = v1->attrib[FRAG_ATTRIB_WPOS][1] - v0->attrib[FRAG_ATTRIB_WPOS][1];
17132 GLfloat fx = v2->attrib[FRAG_ATTRIB_WPOS][0] - v0->attrib[FRAG_ATTRIB_WPOS][0];
17133 GLfloat fy = v2->attrib[FRAG_ATTRIB_WPOS][1] - v0->attrib[FRAG_ATTRIB_WPOS][1];
17134 GLfloat c = ex*fy-ey*fx;
17136 if (c * swrast->_BackfaceSign * swrast->_BackfaceCullSign <= 0.0F)
17141 # 91 "swrast/s_triangle.c"
17142 # 1 "swrast/s_tritemp.h" 1
17143 # 111 "swrast/s_tritemp.h"
17144 static void flat_rgba_triangle(struct gl_context *ctx, const SWvertex *v0,
17145 const SWvertex *v1,
17146 const SWvertex *v2 )
17149 const SWvertex *v0, *v1;
17161 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
17163 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
17164 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
17165 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
17168 EdgeT eMaj, eTop, eBot;
17169 GLfloat oneOverArea;
17170 const SWvertex *vMin, *vMid, *vMax;
17171 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
17172 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
17173 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
17179 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
17183 (void) fixedToDepthShift;
17184 # 172 "swrast/s_tritemp.h"
17186 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17187 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17188 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17192 vMin = v0; vMid = v1; vMax = v2;
17193 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
17195 else if (fy2 <= fy0) {
17197 vMin = v2; vMid = v0; vMax = v1;
17198 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
17202 vMin = v0; vMid = v2; vMax = v1;
17203 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
17210 vMin = v1; vMid = v0; vMax = v2;
17211 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
17214 else if (fy2 <= fy1) {
17216 vMin = v2; vMid = v1; vMax = v0;
17217 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
17222 vMin = v1; vMid = v2; vMax = v0;
17223 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
17228 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17229 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17230 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17234 eMaj.v0 = vMin; eMaj.v1 = vMax;
17235 eTop.v0 = vMid; eTop.v1 = vMax;
17236 eBot.v0 = vMin; eBot.v1 = vMid;
17239 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
17240 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
17241 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
17242 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
17243 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
17244 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
17248 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
17250 if (IS_INF_OR_NAN(area) || area == 0.0F)
17253 if (area * bf * swrast->_BackfaceCullSign < 0.0)
17256 oneOverArea = 1.0F / area;
17259 span.facing = oneOverArea * bf > 0.0F;
17264 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17265 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
17266 if (eMaj.lines > 0) {
17267 eMaj.dxdy = eMaj.dx / eMaj.dy;
17268 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
17269 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
17270 eMaj.fx0 = vMin_fx;
17271 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
17277 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17278 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
17279 if (eTop.lines > 0) {
17280 eTop.dxdy = eTop.dx / eTop.dy;
17281 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
17282 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
17283 eTop.fx0 = vMid_fx;
17284 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
17287 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17288 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
17289 if (eBot.lines > 0) {
17290 eBot.dxdy = eBot.dx / eBot.dy;
17291 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
17292 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
17293 eBot.fx0 = vMin_fx;
17294 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
17297 # 319 "swrast/s_tritemp.h"
17299 GLint scan_from_left_to_right;
17305 ; ; span.interpMask |= 0x01; span.red = ((v2->color[0]) << 11); span.green = ((v2->color[1]) << 11); span.blue = ((v2->color[2]) << 11); span.alpha = ((v2->color[3]) << 11); span.redStep = 0; span.greenStep = 0; span.blueStep = 0; span.alphaStep = 0;
17308 scan_from_left_to_right = (oneOverArea < 0.0F);
17313 span.interpMask |= 0x02;
17315 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
17316 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
17317 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
17318 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
17319 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
17321 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
17322 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
17325 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
17327 if (depthBits <= 16)
17328 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
17330 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
17332 # 488 "swrast/s_tritemp.h"
17335 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
17336 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
17337 GLfixed fError = 0, fdError = 0;
17338 # 504 "swrast/s_tritemp.h"
17340 GLfixed fdzOuter = 0, fdzInner;
17341 # 525 "swrast/s_tritemp.h"
17342 for (subTriangle=0; subTriangle<=1; subTriangle++) {
17343 EdgeT *eLeft, *eRight;
17344 int setupLeft, setupRight;
17347 if (subTriangle==0) {
17349 if (scan_from_left_to_right) {
17352 lines = eRight->lines;
17359 lines = eLeft->lines;
17366 if (scan_from_left_to_right) {
17369 lines = eRight->lines;
17376 lines = eLeft->lines;
17384 if (setupLeft && eLeft->lines > 0) {
17385 const SWvertex *vLower = eLeft->v0;
17386 const GLfixed fsy = eLeft->fsy;
17387 const GLfixed fsx = eLeft->fsx;
17388 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17389 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
17390 const GLfixed adjy = (GLfixed) eLeft->adjy;
17395 fError = fx - fsx - (1 << 11);
17396 fxLeftEdge = fsx - 1;
17397 fdxLeftEdge = eLeft->fdxdy;
17398 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
17399 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
17400 idxOuter = ((fdxOuter) >> 11);
17401 dxOuter = (GLfloat) idxOuter;
17402 span.y = ((fsy) >> 11);
17409 # 611 "swrast/s_tritemp.h"
17411 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
17412 if (depthBits <= 16) {
17414 GLfloat tmp = (z0 * ((float) (1 << 11))
17415 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
17416 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
17417 if (tmp < 0xffffffff / 2)
17418 zLeft = (GLfixed) tmp;
17420 zLeft = 0xffffffff / 2;
17421 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
17426 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
17427 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
17428 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
17429 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
17437 # 722 "swrast/s_tritemp.h"
17441 if (setupRight && eRight->lines>0) {
17442 fxRightEdge = eRight->fsx - 1;
17443 fdxRightEdge = eRight->fdxdy;
17449 # 743 "swrast/s_tritemp.h"
17450 fdzInner = fdzOuter + span.zStep;
17451 # 767 "swrast/s_tritemp.h"
17452 while (lines > 0) {
17455 const GLint right = ((fxRightEdge) >> 11);
17456 span.x = ((fxLeftEdge) >> 11);
17457 if (right <= span.x)
17460 span.end = right - span.x;
17464 # 807 "swrast/s_tritemp.h"
17465 if (span.end > 0 && span.y >= 0) {
17466 const GLint len = span.end - 1;
17468 # 818 "swrast/s_tritemp.h"
17470 _swrast_write_rgba_span(ctx, &span);;
17483 fxLeftEdge += fdxLeftEdge;
17484 fxRightEdge += fdxRightEdge;
17488 fError -= (1 << 11);
17489 # 846 "swrast/s_tritemp.h"
17491 # 869 "swrast/s_tritemp.h"
17502 # 901 "swrast/s_tritemp.h"
17511 # 92 "swrast/s_triangle.c" 2
17512 # 109 "swrast/s_triangle.c"
17513 # 1 "swrast/s_tritemp.h" 1
17514 # 111 "swrast/s_tritemp.h"
17515 static void smooth_rgba_triangle(struct gl_context *ctx, const SWvertex *v0,
17516 const SWvertex *v1,
17517 const SWvertex *v2 )
17520 const SWvertex *v0, *v1;
17532 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
17534 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
17535 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
17536 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
17539 EdgeT eMaj, eTop, eBot;
17540 GLfloat oneOverArea;
17541 const SWvertex *vMin, *vMid, *vMax;
17542 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
17543 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
17544 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
17550 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
17554 (void) fixedToDepthShift;
17555 # 172 "swrast/s_tritemp.h"
17557 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17558 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17559 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17563 vMin = v0; vMid = v1; vMax = v2;
17564 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
17566 else if (fy2 <= fy0) {
17568 vMin = v2; vMid = v0; vMax = v1;
17569 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
17573 vMin = v0; vMid = v2; vMax = v1;
17574 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
17581 vMin = v1; vMid = v0; vMax = v2;
17582 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
17585 else if (fy2 <= fy1) {
17587 vMin = v2; vMid = v1; vMax = v0;
17588 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
17593 vMin = v1; vMid = v2; vMax = v0;
17594 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
17599 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17600 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17601 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
17605 eMaj.v0 = vMin; eMaj.v1 = vMax;
17606 eTop.v0 = vMid; eTop.v1 = vMax;
17607 eBot.v0 = vMin; eBot.v1 = vMid;
17610 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
17611 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
17612 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
17613 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
17614 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
17615 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
17619 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
17621 if (IS_INF_OR_NAN(area) || area == 0.0F)
17624 if (area * bf * swrast->_BackfaceCullSign < 0.0)
17627 oneOverArea = 1.0F / area;
17630 span.facing = oneOverArea * bf > 0.0F;
17635 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17636 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
17637 if (eMaj.lines > 0) {
17638 eMaj.dxdy = eMaj.dx / eMaj.dy;
17639 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
17640 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
17641 eMaj.fx0 = vMin_fx;
17642 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
17648 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17649 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
17650 if (eTop.lines > 0) {
17651 eTop.dxdy = eTop.dx / eTop.dy;
17652 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
17653 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
17654 eTop.fx0 = vMid_fx;
17655 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
17658 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17659 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
17660 if (eBot.lines > 0) {
17661 eBot.dxdy = eBot.dx / eBot.dy;
17662 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
17663 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
17664 eBot.fx0 = vMin_fx;
17665 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
17668 # 319 "swrast/s_tritemp.h"
17670 GLint scan_from_left_to_right;
17679 scan_from_left_to_right = (oneOverArea < 0.0F);
17684 span.interpMask |= 0x02;
17686 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
17687 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
17688 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
17689 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
17690 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
17692 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
17693 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
17696 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
17698 if (depthBits <= 16)
17699 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
17701 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
17705 span.interpMask |= 0x01;
17706 if (ctx->Light.ShadeModel == 0x1D01) {
17707 GLfloat eMaj_dr = (GLfloat) (vMax->color[0] - vMin->color[0]);
17708 GLfloat eBot_dr = (GLfloat) (vMid->color[0] - vMin->color[0]);
17709 GLfloat eMaj_dg = (GLfloat) (vMax->color[1] - vMin->color[1]);
17710 GLfloat eBot_dg = (GLfloat) (vMid->color[1] - vMin->color[1]);
17711 GLfloat eMaj_db = (GLfloat) (vMax->color[2] - vMin->color[2]);
17712 GLfloat eBot_db = (GLfloat) (vMid->color[2] - vMin->color[2]);
17714 GLfloat eMaj_da = (GLfloat) (vMax->color[3] - vMin->color[3]);
17715 GLfloat eBot_da = (GLfloat) (vMid->color[3] - vMin->color[3]);
17717 span.attrStepX[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj_dr * eBot.dy - eMaj.dy * eBot_dr);
17718 span.attrStepY[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj.dx * eBot_dr - eMaj_dr * eBot.dx);
17719 span.attrStepX[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj_dg * eBot.dy - eMaj.dy * eBot_dg);
17720 span.attrStepY[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj.dx * eBot_dg - eMaj_dg * eBot.dx);
17721 span.attrStepX[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj_db * eBot.dy - eMaj.dy * eBot_db);
17722 span.attrStepY[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj.dx * eBot_db - eMaj_db * eBot.dx);
17723 span.redStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))));
17724 span.greenStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))));
17725 span.blueStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))));
17727 span.attrStepX[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj_da * eBot.dy - eMaj.dy * eBot_da);
17728 span.attrStepY[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj.dx * eBot_da - eMaj_da * eBot.dx);
17729 span.alphaStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))));
17734 span.interpMask |= 0x04;
17735 span.attrStepX[FRAG_ATTRIB_COL0][0] = span.attrStepY[FRAG_ATTRIB_COL0][0] = 0.0F;
17736 span.attrStepX[FRAG_ATTRIB_COL0][1] = span.attrStepY[FRAG_ATTRIB_COL0][1] = 0.0F;
17737 span.attrStepX[FRAG_ATTRIB_COL0][2] = span.attrStepY[FRAG_ATTRIB_COL0][2] = 0.0F;
17739 span.greenStep = 0;
17742 span.attrStepX[FRAG_ATTRIB_COL0][3] = span.attrStepY[FRAG_ATTRIB_COL0][3] = 0.0F;
17743 span.alphaStep = 0;
17746 # 488 "swrast/s_tritemp.h"
17749 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
17750 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
17751 GLfixed fError = 0, fdError = 0;
17752 # 504 "swrast/s_tritemp.h"
17754 GLfixed fdzOuter = 0, fdzInner;
17757 GLint rLeft = 0, fdrOuter = 0, fdrInner;
17758 GLint gLeft = 0, fdgOuter = 0, fdgInner;
17759 GLint bLeft = 0, fdbOuter = 0, fdbInner;
17762 GLint aLeft = 0, fdaOuter = 0, fdaInner;
17763 # 525 "swrast/s_tritemp.h"
17764 for (subTriangle=0; subTriangle<=1; subTriangle++) {
17765 EdgeT *eLeft, *eRight;
17766 int setupLeft, setupRight;
17769 if (subTriangle==0) {
17771 if (scan_from_left_to_right) {
17774 lines = eRight->lines;
17781 lines = eLeft->lines;
17788 if (scan_from_left_to_right) {
17791 lines = eRight->lines;
17798 lines = eLeft->lines;
17806 if (setupLeft && eLeft->lines > 0) {
17807 const SWvertex *vLower = eLeft->v0;
17808 const GLfixed fsy = eLeft->fsy;
17809 const GLfixed fsx = eLeft->fsx;
17810 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
17811 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
17812 const GLfixed adjy = (GLfixed) eLeft->adjy;
17817 fError = fx - fsx - (1 << 11);
17818 fxLeftEdge = fsx - 1;
17819 fdxLeftEdge = eLeft->fdxdy;
17820 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
17821 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
17822 idxOuter = ((fdxOuter) >> 11);
17823 dxOuter = (GLfloat) idxOuter;
17824 span.y = ((fsy) >> 11);
17831 # 611 "swrast/s_tritemp.h"
17833 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
17834 if (depthBits <= 16) {
17836 GLfloat tmp = (z0 * ((float) (1 << 11))
17837 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
17838 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
17839 if (tmp < 0xffffffff / 2)
17840 zLeft = (GLfixed) tmp;
17842 zLeft = 0xffffffff / 2;
17843 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
17848 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
17849 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
17850 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
17851 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
17861 if (ctx->Light.ShadeModel == 0x1D01) {
17862 rLeft = (GLint)(((vLower->color[0]) << 11)
17863 + span.attrStepX[FRAG_ATTRIB_COL0][0] * adjx
17864 + span.attrStepY[FRAG_ATTRIB_COL0][0] * adjy) + (1 << (11 -1));
17865 gLeft = (GLint)(((vLower->color[1]) << 11)
17866 + span.attrStepX[FRAG_ATTRIB_COL0][1] * adjx
17867 + span.attrStepY[FRAG_ATTRIB_COL0][1] * adjy) + (1 << (11 -1));
17868 bLeft = (GLint)(((vLower->color[2]) << 11)
17869 + span.attrStepX[FRAG_ATTRIB_COL0][2] * adjx
17870 + span.attrStepY[FRAG_ATTRIB_COL0][2] * adjy) + (1 << (11 -1));
17871 fdrOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))))
17873 fdgOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))))
17875 fdbOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))))
17878 aLeft = (GLint)(((vLower->color[3]) << 11)
17879 + span.attrStepX[FRAG_ATTRIB_COL0][3] * adjx
17880 + span.attrStepY[FRAG_ATTRIB_COL0][3] * adjy) + (1 << (11 -1));
17881 fdaOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))))
17887 rLeft = ((v2->color[0]) << 11);
17888 gLeft = ((v2->color[1]) << 11);
17889 bLeft = ((v2->color[2]) << 11);
17890 fdrOuter = fdgOuter = fdbOuter = 0;
17892 aLeft = ((v2->color[3]) << 11);
17896 # 722 "swrast/s_tritemp.h"
17900 if (setupRight && eRight->lines>0) {
17901 fxRightEdge = eRight->fsx - 1;
17902 fdxRightEdge = eRight->fdxdy;
17908 # 743 "swrast/s_tritemp.h"
17909 fdzInner = fdzOuter + span.zStep;
17912 fdrInner = fdrOuter + span.redStep;
17913 fdgInner = fdgOuter + span.greenStep;
17914 fdbInner = fdbOuter + span.blueStep;
17917 fdaInner = fdaOuter + span.alphaStep;
17918 # 767 "swrast/s_tritemp.h"
17919 while (lines > 0) {
17922 const GLint right = ((fxRightEdge) >> 11);
17923 span.x = ((fxLeftEdge) >> 11);
17924 if (right <= span.x)
17927 span.end = right - span.x;
17934 span.green = gLeft;
17938 span.alpha = aLeft;
17939 # 807 "swrast/s_tritemp.h"
17940 if (span.end > 0 && span.y >= 0) {
17941 const GLint len = span.end - 1;
17944 do { GLfixed endVal = span.red + (len) * span.redStep; if (endVal < 0) { span.red -= endVal; } if (span.red < 0) { span.red = 0; } } while (0);
17945 do { GLfixed endVal = span.green + (len) * span.greenStep; if (endVal < 0) { span.green -= endVal; } if (span.green < 0) { span.green = 0; } } while (0);
17946 do { GLfixed endVal = span.blue + (len) * span.blueStep; if (endVal < 0) { span.blue -= endVal; } if (span.blue < 0) { span.blue = 0; } } while (0);
17949 do { GLfixed endVal = span.alpha + (len) * span.alphaStep; if (endVal < 0) { span.alpha -= endVal; } if (span.alpha < 0) { span.alpha = 0; } } while (0);
17952 _swrast_write_rgba_span(ctx, &span);;
17965 fxLeftEdge += fdxLeftEdge;
17966 fxRightEdge += fdxRightEdge;
17970 fError -= (1 << 11);
17971 # 846 "swrast/s_tritemp.h"
17981 # 869 "swrast/s_tritemp.h"
18000 # 901 "swrast/s_tritemp.h"
18009 # 110 "swrast/s_triangle.c" 2
18010 # 159 "swrast/s_triangle.c"
18011 # 1 "swrast/s_tritemp.h" 1
18012 # 111 "swrast/s_tritemp.h"
18013 static void simple_textured_triangle(struct gl_context *ctx, const SWvertex *v0,
18014 const SWvertex *v1,
18015 const SWvertex *v2 )
18018 const SWvertex *v0, *v1;
18030 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
18037 EdgeT eMaj, eTop, eBot;
18038 GLfloat oneOverArea;
18039 const SWvertex *vMin, *vMid, *vMax;
18040 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
18041 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
18042 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
18048 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
18050 # 172 "swrast/s_tritemp.h"
18052 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18053 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18054 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18058 vMin = v0; vMid = v1; vMax = v2;
18059 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
18061 else if (fy2 <= fy0) {
18063 vMin = v2; vMid = v0; vMax = v1;
18064 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
18068 vMin = v0; vMid = v2; vMax = v1;
18069 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
18076 vMin = v1; vMid = v0; vMax = v2;
18077 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
18080 else if (fy2 <= fy1) {
18082 vMin = v2; vMid = v1; vMax = v0;
18083 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
18088 vMin = v1; vMid = v2; vMax = v0;
18089 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
18094 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18095 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18096 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18100 eMaj.v0 = vMin; eMaj.v1 = vMax;
18101 eTop.v0 = vMid; eTop.v1 = vMax;
18102 eBot.v0 = vMin; eBot.v1 = vMid;
18105 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
18106 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
18107 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
18108 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
18109 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
18110 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
18114 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
18116 if (IS_INF_OR_NAN(area) || area == 0.0F)
18119 if (area * bf * swrast->_BackfaceCullSign < 0.0)
18122 oneOverArea = 1.0F / area;
18125 span.facing = oneOverArea * bf > 0.0F;
18130 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18131 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
18132 if (eMaj.lines > 0) {
18133 eMaj.dxdy = eMaj.dx / eMaj.dy;
18134 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
18135 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
18136 eMaj.fx0 = vMin_fx;
18137 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
18143 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18144 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
18145 if (eTop.lines > 0) {
18146 eTop.dxdy = eTop.dx / eTop.dy;
18147 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
18148 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
18149 eTop.fx0 = vMid_fx;
18150 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
18153 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18154 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
18155 if (eBot.lines > 0) {
18156 eBot.dxdy = eBot.dx / eBot.dy;
18157 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
18158 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
18159 eBot.fx0 = vMin_fx;
18160 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
18163 # 319 "swrast/s_tritemp.h"
18165 GLint scan_from_left_to_right;
18171 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; const struct gl_texture_object *obj = ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; const struct gl_texture_image *texImg = obj->Image[0][obj->BaseLevel]; const GLfloat twidth = (GLfloat) texImg->Width; const GLfloat theight = (GLfloat) texImg->Height; const GLint twidth_log2 = texImg->WidthLog2; const GLubyte *texture = (const GLubyte *) texImg->Data; const GLint smask = texImg->Width - 1; const GLint tmask = texImg->Height - 1; ; if (!rb || !texture) { return; }
18174 scan_from_left_to_right = (oneOverArea < 0.0F);
18175 # 398 "swrast/s_tritemp.h"
18177 GLfloat eMaj_ds = (vMax->attrib[FRAG_ATTRIB_TEX0][0] - vMin->attrib[FRAG_ATTRIB_TEX0][0]) * twidth;
18178 GLfloat eBot_ds = (vMid->attrib[FRAG_ATTRIB_TEX0][0] - vMin->attrib[FRAG_ATTRIB_TEX0][0]) * twidth;
18179 GLfloat eMaj_dt = (vMax->attrib[FRAG_ATTRIB_TEX0][1] - vMin->attrib[FRAG_ATTRIB_TEX0][1]) * theight;
18180 GLfloat eBot_dt = (vMid->attrib[FRAG_ATTRIB_TEX0][1] - vMin->attrib[FRAG_ATTRIB_TEX0][1]) * theight;
18181 span.attrStepX[FRAG_ATTRIB_TEX0][0] = oneOverArea * (eMaj_ds * eBot.dy - eMaj.dy * eBot_ds);
18182 span.attrStepY[FRAG_ATTRIB_TEX0][0] = oneOverArea * (eMaj.dx * eBot_ds - eMaj_ds * eBot.dx);
18183 span.attrStepX[FRAG_ATTRIB_TEX0][1] = oneOverArea * (eMaj_dt * eBot.dy - eMaj.dy * eBot_dt);
18184 span.attrStepY[FRAG_ATTRIB_TEX0][1] = oneOverArea * (eMaj.dx * eBot_dt - eMaj_dt * eBot.dx);
18185 span.intTexStep[0] = (((int) ((((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) - 0.5F))));
18186 span.intTexStep[1] = (((int) ((((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) - 0.5F))));
18188 # 488 "swrast/s_tritemp.h"
18191 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
18192 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
18193 GLfixed fError = 0, fdError = 0;
18194 # 516 "swrast/s_tritemp.h"
18195 GLfixed sLeft=0, dsOuter=0, dsInner;
18196 GLfixed tLeft=0, dtOuter=0, dtInner;
18204 for (subTriangle=0; subTriangle<=1; subTriangle++) {
18205 EdgeT *eLeft, *eRight;
18206 int setupLeft, setupRight;
18209 if (subTriangle==0) {
18211 if (scan_from_left_to_right) {
18214 lines = eRight->lines;
18221 lines = eLeft->lines;
18228 if (scan_from_left_to_right) {
18231 lines = eRight->lines;
18238 lines = eLeft->lines;
18246 if (setupLeft && eLeft->lines > 0) {
18247 const SWvertex *vLower = eLeft->v0;
18248 const GLfixed fsy = eLeft->fsy;
18249 const GLfixed fsx = eLeft->fsx;
18250 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18251 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
18252 const GLfixed adjy = (GLfixed) eLeft->adjy;
18257 fError = fx - fsx - (1 << 11);
18258 fxLeftEdge = fsx - 1;
18259 fdxLeftEdge = eLeft->fdxdy;
18260 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
18261 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
18262 idxOuter = ((fdxOuter) >> 11);
18263 dxOuter = (GLfloat) idxOuter;
18264 span.y = ((fsy) >> 11);
18271 # 679 "swrast/s_tritemp.h"
18274 s0 = vLower->attrib[FRAG_ATTRIB_TEX0][0] * twidth;
18275 sLeft = (GLfixed)(s0 * ((float) (1 << 11)) + span.attrStepX[FRAG_ATTRIB_TEX0][0] * adjx
18276 + span.attrStepY[FRAG_ATTRIB_TEX0][0] * adjy) + (1 << (11 -1));
18277 dsOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) - 0.5F))))
18280 t0 = vLower->attrib[FRAG_ATTRIB_TEX0][1] * theight;
18281 tLeft = (GLfixed)(t0 * ((float) (1 << 11)) + span.attrStepX[FRAG_ATTRIB_TEX0][1] * adjx
18282 + span.attrStepY[FRAG_ATTRIB_TEX0][1] * adjy) + (1 << (11 -1));
18283 dtOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) - 0.5F))))
18286 # 722 "swrast/s_tritemp.h"
18290 if (setupRight && eRight->lines>0) {
18291 fxRightEdge = eRight->fsx - 1;
18292 fdxRightEdge = eRight->fdxdy;
18298 # 754 "swrast/s_tritemp.h"
18299 dsInner = dsOuter + span.intTexStep[0];
18300 dtInner = dtOuter + span.intTexStep[1];
18301 # 767 "swrast/s_tritemp.h"
18302 while (lines > 0) {
18305 const GLint right = ((fxRightEdge) >> 11);
18306 span.x = ((fxLeftEdge) >> 11);
18307 if (right <= span.x)
18310 span.end = right - span.x;
18311 # 789 "swrast/s_tritemp.h"
18312 span.intTex[0] = sLeft;
18313 span.intTex[1] = tLeft;
18314 # 807 "swrast/s_tritemp.h"
18315 if (span.end > 0 && span.y >= 0) {
18316 const GLint len = span.end - 1;
18318 # 818 "swrast/s_tritemp.h"
18320 GLuint i; GLubyte rgb[16384][3]; span.intTex[0] -= (1 << (11 -1)); span.intTex[1] -= (1 << (11 -1)); for (i = 0; i < span.end; i++) { GLint s = ((span.intTex[0]) >> 11) & smask; GLint t = ((span.intTex[1]) >> 11) & tmask; GLint pos = (t << twidth_log2) + s; pos = pos + pos + pos; rgb[i][0] = texture[pos+2]; rgb[i][1] = texture[pos+1]; rgb[i][2] = texture[pos+0]; span.intTex[0] += span.intTexStep[0]; span.intTex[1] += span.intTexStep[1]; } rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, rgb, ((void *)0));;
18333 fxLeftEdge += fdxLeftEdge;
18334 fxRightEdge += fdxRightEdge;
18338 fError -= (1 << 11);
18339 # 857 "swrast/s_tritemp.h"
18342 # 869 "swrast/s_tritemp.h"
18345 # 889 "swrast/s_tritemp.h"
18348 # 901 "swrast/s_tritemp.h"
18357 # 160 "swrast/s_triangle.c" 2
18358 # 222 "swrast/s_triangle.c"
18359 # 1 "swrast/s_tritemp.h" 1
18360 # 111 "swrast/s_tritemp.h"
18361 static void simple_z_textured_triangle(struct gl_context *ctx, const SWvertex *v0,
18362 const SWvertex *v1,
18363 const SWvertex *v2 )
18366 const SWvertex *v0, *v1;
18378 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
18380 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
18381 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
18382 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
18385 EdgeT eMaj, eTop, eBot;
18386 GLfloat oneOverArea;
18387 const SWvertex *vMin, *vMid, *vMax;
18388 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
18389 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
18390 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
18396 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
18400 (void) fixedToDepthShift;
18401 # 172 "swrast/s_tritemp.h"
18403 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18404 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18405 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18409 vMin = v0; vMid = v1; vMax = v2;
18410 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
18412 else if (fy2 <= fy0) {
18414 vMin = v2; vMid = v0; vMax = v1;
18415 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
18419 vMin = v0; vMid = v2; vMax = v1;
18420 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
18427 vMin = v1; vMid = v0; vMax = v2;
18428 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
18431 else if (fy2 <= fy1) {
18433 vMin = v2; vMid = v1; vMax = v0;
18434 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
18439 vMin = v1; vMid = v2; vMax = v0;
18440 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
18445 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18446 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18447 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
18451 eMaj.v0 = vMin; eMaj.v1 = vMax;
18452 eTop.v0 = vMid; eTop.v1 = vMax;
18453 eBot.v0 = vMin; eBot.v1 = vMid;
18456 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
18457 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
18458 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
18459 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
18460 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
18461 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
18465 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
18467 if (IS_INF_OR_NAN(area) || area == 0.0F)
18470 if (area * bf * swrast->_BackfaceCullSign < 0.0)
18473 oneOverArea = 1.0F / area;
18476 span.facing = oneOverArea * bf > 0.0F;
18481 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18482 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
18483 if (eMaj.lines > 0) {
18484 eMaj.dxdy = eMaj.dx / eMaj.dy;
18485 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
18486 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
18487 eMaj.fx0 = vMin_fx;
18488 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
18494 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18495 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
18496 if (eTop.lines > 0) {
18497 eTop.dxdy = eTop.dx / eTop.dy;
18498 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
18499 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
18500 eTop.fx0 = vMid_fx;
18501 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
18504 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18505 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
18506 if (eBot.lines > 0) {
18507 eBot.dxdy = eBot.dx / eBot.dy;
18508 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
18509 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
18510 eBot.fx0 = vMin_fx;
18511 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
18514 # 319 "swrast/s_tritemp.h"
18516 GLint scan_from_left_to_right;
18522 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; const struct gl_texture_object *obj = ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; const struct gl_texture_image *texImg = obj->Image[0][obj->BaseLevel]; const GLfloat twidth = (GLfloat) texImg->Width; const GLfloat theight = (GLfloat) texImg->Height; const GLint twidth_log2 = texImg->WidthLog2; const GLubyte *texture = (const GLubyte *) texImg->Data; const GLint smask = texImg->Width - 1; const GLint tmask = texImg->Height - 1; ; if (!rb || !texture) { return; }
18525 scan_from_left_to_right = (oneOverArea < 0.0F);
18530 span.interpMask |= 0x02;
18532 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
18533 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
18534 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
18535 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
18536 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
18538 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
18539 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
18542 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
18544 if (depthBits <= 16)
18545 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
18547 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
18549 # 398 "swrast/s_tritemp.h"
18551 GLfloat eMaj_ds = (vMax->attrib[FRAG_ATTRIB_TEX0][0] - vMin->attrib[FRAG_ATTRIB_TEX0][0]) * twidth;
18552 GLfloat eBot_ds = (vMid->attrib[FRAG_ATTRIB_TEX0][0] - vMin->attrib[FRAG_ATTRIB_TEX0][0]) * twidth;
18553 GLfloat eMaj_dt = (vMax->attrib[FRAG_ATTRIB_TEX0][1] - vMin->attrib[FRAG_ATTRIB_TEX0][1]) * theight;
18554 GLfloat eBot_dt = (vMid->attrib[FRAG_ATTRIB_TEX0][1] - vMin->attrib[FRAG_ATTRIB_TEX0][1]) * theight;
18555 span.attrStepX[FRAG_ATTRIB_TEX0][0] = oneOverArea * (eMaj_ds * eBot.dy - eMaj.dy * eBot_ds);
18556 span.attrStepY[FRAG_ATTRIB_TEX0][0] = oneOverArea * (eMaj.dx * eBot_ds - eMaj_ds * eBot.dx);
18557 span.attrStepX[FRAG_ATTRIB_TEX0][1] = oneOverArea * (eMaj_dt * eBot.dy - eMaj.dy * eBot_dt);
18558 span.attrStepY[FRAG_ATTRIB_TEX0][1] = oneOverArea * (eMaj.dx * eBot_dt - eMaj_dt * eBot.dx);
18559 span.intTexStep[0] = (((int) ((((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) - 0.5F))));
18560 span.intTexStep[1] = (((int) ((((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) - 0.5F))));
18562 # 488 "swrast/s_tritemp.h"
18565 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
18566 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
18567 GLfixed fError = 0, fdError = 0;
18574 struct gl_renderbuffer *zrb
18575 = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer;
18576 GLushort *zRow = ((void *)0);
18577 GLint dZRowOuter = 0, dZRowInner;
18580 GLfixed fdzOuter = 0, fdzInner;
18581 # 516 "swrast/s_tritemp.h"
18582 GLfixed sLeft=0, dsOuter=0, dsInner;
18583 GLfixed tLeft=0, dtOuter=0, dtInner;
18591 for (subTriangle=0; subTriangle<=1; subTriangle++) {
18592 EdgeT *eLeft, *eRight;
18593 int setupLeft, setupRight;
18596 if (subTriangle==0) {
18598 if (scan_from_left_to_right) {
18601 lines = eRight->lines;
18608 lines = eLeft->lines;
18615 if (scan_from_left_to_right) {
18618 lines = eRight->lines;
18625 lines = eLeft->lines;
18633 if (setupLeft && eLeft->lines > 0) {
18634 const SWvertex *vLower = eLeft->v0;
18635 const GLfixed fsy = eLeft->fsy;
18636 const GLfixed fsx = eLeft->fsx;
18637 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
18638 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
18639 const GLfixed adjy = (GLfixed) eLeft->adjy;
18644 fError = fx - fsx - (1 << 11);
18645 fxLeftEdge = fsx - 1;
18646 fdxLeftEdge = eLeft->fdxdy;
18647 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
18648 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
18649 idxOuter = ((fdxOuter) >> 11);
18650 dxOuter = (GLfloat) idxOuter;
18651 span.y = ((fsy) >> 11);
18658 # 611 "swrast/s_tritemp.h"
18660 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
18661 if (depthBits <= 16) {
18663 GLfloat tmp = (z0 * ((float) (1 << 11))
18664 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
18665 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
18666 if (tmp < 0xffffffff / 2)
18667 zLeft = (GLfixed) tmp;
18669 zLeft = 0xffffffff / 2;
18670 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
18675 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
18676 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
18677 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
18678 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
18681 zRow = (GLushort *)
18682 zrb->GetPointer(ctx, zrb, ((fxLeftEdge) >> 11), span.y);
18683 dZRowOuter = (ctx->DrawBuffer->Width + idxOuter) * sizeof(GLushort);
18686 # 679 "swrast/s_tritemp.h"
18689 s0 = vLower->attrib[FRAG_ATTRIB_TEX0][0] * twidth;
18690 sLeft = (GLfixed)(s0 * ((float) (1 << 11)) + span.attrStepX[FRAG_ATTRIB_TEX0][0] * adjx
18691 + span.attrStepY[FRAG_ATTRIB_TEX0][0] * adjy) + (1 << (11 -1));
18692 dsOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) - 0.5F))))
18695 t0 = vLower->attrib[FRAG_ATTRIB_TEX0][1] * theight;
18696 tLeft = (GLfixed)(t0 * ((float) (1 << 11)) + span.attrStepX[FRAG_ATTRIB_TEX0][1] * adjx
18697 + span.attrStepY[FRAG_ATTRIB_TEX0][1] * adjy) + (1 << (11 -1));
18698 dtOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) - 0.5F))))
18701 # 722 "swrast/s_tritemp.h"
18705 if (setupRight && eRight->lines>0) {
18706 fxRightEdge = eRight->fsx - 1;
18707 fdxRightEdge = eRight->fdxdy;
18713 # 741 "swrast/s_tritemp.h"
18714 dZRowInner = dZRowOuter + sizeof(GLushort);
18716 fdzInner = fdzOuter + span.zStep;
18717 # 754 "swrast/s_tritemp.h"
18718 dsInner = dsOuter + span.intTexStep[0];
18719 dtInner = dtOuter + span.intTexStep[1];
18720 # 767 "swrast/s_tritemp.h"
18721 while (lines > 0) {
18724 const GLint right = ((fxRightEdge) >> 11);
18725 span.x = ((fxLeftEdge) >> 11);
18726 if (right <= span.x)
18729 span.end = right - span.x;
18733 # 789 "swrast/s_tritemp.h"
18734 span.intTex[0] = sLeft;
18735 span.intTex[1] = tLeft;
18736 # 807 "swrast/s_tritemp.h"
18737 if (span.end > 0 && span.y >= 0) {
18738 const GLint len = span.end - 1;
18740 # 818 "swrast/s_tritemp.h"
18742 GLuint i; GLubyte rgb[16384][3]; span.intTex[0] -= (1 << (11 -1)); span.intTex[1] -= (1 << (11 -1)); for (i = 0; i < span.end; i++) { const GLuint z = ((span.z) >> fixedToDepthShift); if (z < zRow[i]) { GLint s = ((span.intTex[0]) >> 11) & smask; GLint t = ((span.intTex[1]) >> 11) & tmask; GLint pos = (t << twidth_log2) + s; pos = pos + pos + pos; rgb[i][0] = texture[pos+2]; rgb[i][1] = texture[pos+1]; rgb[i][2] = texture[pos+0]; zRow[i] = z; span.array->mask[i] = 1; } else { span.array->mask[i] = 0; } span.intTex[0] += span.intTexStep[0]; span.intTex[1] += span.intTexStep[1]; span.z += span.zStep; } rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, rgb, span.array->mask);;
18755 fxLeftEdge += fdxLeftEdge;
18756 fxRightEdge += fdxRightEdge;
18760 fError -= (1 << 11);
18767 zRow = (GLushort *) ((GLubyte *) zRow + dZRowOuter);
18770 # 857 "swrast/s_tritemp.h"
18773 # 869 "swrast/s_tritemp.h"
18781 zRow = (GLushort *) ((GLubyte *) zRow + dZRowInner);
18784 # 889 "swrast/s_tritemp.h"
18787 # 901 "swrast/s_tritemp.h"
18796 # 223 "swrast/s_triangle.c" 2
18806 GLint smask, tmask;
18808 const GLchan *texture;
18809 GLfixed er, eg, eb, ea;
18810 GLint tbytesline, tsize;
18814 static __inline__ GLint
18815 ilerp(GLint t, GLint a, GLint b)
18817 return a + ((t * (b - a)) >> 11);
18820 static __inline__ GLint
18821 ilerp_2d(GLint ia, GLint ib, GLint v00, GLint v10, GLint v01, GLint v11)
18823 const GLint temp0 = ilerp(ia, v00, v10);
18824 const GLint temp1 = ilerp(ia, v01, v11);
18825 return ilerp(ib, temp0, temp1);
18833 static __inline__ void
18834 affine_span(struct gl_context *ctx, SWspan *span,
18835 struct affine_info *info)
18838 const GLuint texEnableSave = ctx->Texture._EnabledCoordUnits;
18839 # 399 "swrast/s_triangle.c"
18841 GLchan *dest = span->array->rgba[0];
18844 ctx->Texture._EnabledCoordUnits = 0x0;
18846 span->intTex[0] -= (1 << (11 -1));
18847 span->intTex[1] -= (1 << (11 -1));
18848 switch (info->filter) {
18850 switch (info->format) {
18851 case MESA_FORMAT_RGB888:
18852 switch (info->envmode) {
18854 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;;dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18858 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;; dest[0] = sample[0]; dest[1] = sample[1]; dest[2] = sample[2]; dest[3] = ((span->alpha) >> 11);; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18861 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;;dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18864 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;;{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18867 _mesa_problem(ctx, "bad tex env mode in SPAN_LINEAR");
18871 case MESA_FORMAT_RGBA8888:
18872 switch(info->envmode) {
18874 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18877 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;dest[0] = ((255 - sample[3]) * span->red + ((sample[3] + 1) * sample[0] << 11)) >> (11 + 8); dest[1] = ((255 - sample[3]) * span->green + ((sample[3] + 1) * sample[1] << 11)) >> (11 + 8); dest[2] = ((255 - sample[3]) * span->blue + ((sample[3] + 1) * sample[2] << 11)) >> (11 + 8); dest[3] = ((span->alpha) >> 11); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18880 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18883 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18886 for (i = 0; i < span->end; i++) { GLint s = ((span->intTex[0]) >> 11) & info->smask; GLint t = ((span->intTex[1]) >> 11) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; dest[0] = tex00[3]; dest[1] = tex00[2]; dest[2] = tex00[1]; dest[3] = tex00[0]; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18889 _mesa_problem(ctx, "bad tex env mode (2) in SPAN_LINEAR");
18897 span->intTex[0] -= (1 << (11 -1));
18898 span->intTex[1] -= (1 << (11 -1));
18899 switch (info->format) {
18900 case MESA_FORMAT_RGB888:
18901 switch (info->envmode) {
18903 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18907 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;do { (dest)[0] = (sample)[0]; (dest)[1] = (sample)[1]; (dest)[2] = (sample)[2]; (dest)[3] = (sample)[3]; } while (0); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18910 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18913 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18916 _mesa_problem(ctx, "bad tex env mode (3) in SPAN_LINEAR");
18920 case MESA_FORMAT_RGBA8888:
18921 switch (info->envmode) {
18923 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18926 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);dest[0] = ((255 - sample[3]) * span->red + ((sample[3] + 1) * sample[0] << 11)) >> (11 + 8); dest[1] = ((255 - sample[3]) * span->green + ((sample[3] + 1) * sample[1] << 11)) >> (11 + 8); dest[2] = ((255 - sample[3]) * span->blue + ((sample[3] + 1) * sample[2] << 11)) >> (11 + 8); dest[3] = ((span->alpha) >> 11); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18929 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18932 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18935 for (i = 0; i < span->end; i++) { const GLint s = ((span->intTex[0]) >> 11) & info->smask; const GLint t = ((span->intTex[1]) >> 11) & info->tmask; const GLfixed sf = span->intTex[0] & ((1 << 11) - 1); const GLfixed tf = span->intTex[1] & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);do { (dest)[0] = (sample)[0]; (dest)[1] = (sample)[1]; (dest)[2] = (sample)[2]; (dest)[3] = (sample)[3]; } while (0); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; span->intTex[0] += span->intTexStep[0]; span->intTex[1] += span->intTexStep[1]; dest += 4; };
18938 _mesa_problem(ctx, "bad tex env mode (4) in SPAN_LINEAR");
18945 span->interpMask &= ~0x01;
18948 _swrast_write_rgba_span(ctx, span);
18951 ctx->Texture._EnabledCoordUnits = texEnableSave;
18956 # 577 "swrast/s_triangle.c"
18957 # 1 "swrast/s_tritemp.h" 1
18958 # 111 "swrast/s_tritemp.h"
18959 static void affine_textured_triangle(struct gl_context *ctx, const SWvertex *v0,
18960 const SWvertex *v1,
18961 const SWvertex *v2 )
18964 const SWvertex *v0, *v1;
18976 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
18978 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
18979 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
18980 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
18983 EdgeT eMaj, eTop, eBot;
18984 GLfloat oneOverArea;
18985 const SWvertex *vMin, *vMid, *vMax;
18986 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
18987 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
18988 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
18994 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
18998 (void) fixedToDepthShift;
18999 # 172 "swrast/s_tritemp.h"
19001 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19002 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19003 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19007 vMin = v0; vMid = v1; vMax = v2;
19008 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
19010 else if (fy2 <= fy0) {
19012 vMin = v2; vMid = v0; vMax = v1;
19013 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
19017 vMin = v0; vMid = v2; vMax = v1;
19018 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
19025 vMin = v1; vMid = v0; vMax = v2;
19026 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
19029 else if (fy2 <= fy1) {
19031 vMin = v2; vMid = v1; vMax = v0;
19032 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
19037 vMin = v1; vMid = v2; vMax = v0;
19038 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
19043 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19044 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19045 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19049 eMaj.v0 = vMin; eMaj.v1 = vMax;
19050 eTop.v0 = vMid; eTop.v1 = vMax;
19051 eBot.v0 = vMin; eBot.v1 = vMid;
19054 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
19055 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
19056 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
19057 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
19058 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
19059 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
19063 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
19065 if (IS_INF_OR_NAN(area) || area == 0.0F)
19068 if (area * bf * swrast->_BackfaceCullSign < 0.0)
19071 oneOverArea = 1.0F / area;
19074 span.facing = oneOverArea * bf > 0.0F;
19079 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19080 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
19081 if (eMaj.lines > 0) {
19082 eMaj.dxdy = eMaj.dx / eMaj.dy;
19083 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
19084 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
19085 eMaj.fx0 = vMin_fx;
19086 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
19092 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19093 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
19094 if (eTop.lines > 0) {
19095 eTop.dxdy = eTop.dx / eTop.dy;
19096 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
19097 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
19098 eTop.fx0 = vMid_fx;
19099 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
19102 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19103 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
19104 if (eBot.lines > 0) {
19105 eBot.dxdy = eBot.dx / eBot.dy;
19106 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
19107 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
19108 eBot.fx0 = vMin_fx;
19109 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
19112 # 319 "swrast/s_tritemp.h"
19114 GLint scan_from_left_to_right;
19120 struct affine_info info; struct gl_texture_unit *unit = ctx->Texture.Unit+0; const struct gl_texture_object *obj = ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; const struct gl_texture_image *texImg = obj->Image[0][obj->BaseLevel]; const GLfloat twidth = (GLfloat) texImg->Width; const GLfloat theight = (GLfloat) texImg->Height; info.texture = (const GLchan *) texImg->Data; info.twidth_log2 = texImg->WidthLog2; info.smask = texImg->Width - 1; info.tmask = texImg->Height - 1; info.format = texImg->TexFormat; info.filter = obj->Sampler.MinFilter; info.envmode = unit->EnvMode; info.er = 0; info.eg = 0; info.eb = 0; span.arrayMask |= 0x01; if (info.envmode == 0x0BE2) { info.er = (((int) ((((unit->EnvColor[0] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[0] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[0] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); info.eg = (((int) ((((unit->EnvColor[1] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[1] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[1] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); info.eb = (((int) ((((unit->EnvColor[2] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[2] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[2] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); info.ea = (((int) ((((unit->EnvColor[3] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[3] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[3] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); } if (!info.texture) { return; } switch (info.format) { case MESA_FORMAT_RGB888: info.tbytesline = texImg->Width * 3; break; case MESA_FORMAT_RGBA8888: info.tbytesline = texImg->Width * 4; break; default: _mesa_problem(((void *)0), "Bad texture format in affine_texture_triangle"); return; } info.tsize = texImg->Height * info.tbytesline;
19123 scan_from_left_to_right = (oneOverArea < 0.0F);
19128 span.interpMask |= 0x02;
19130 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
19131 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
19132 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
19133 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
19134 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
19136 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
19137 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
19140 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
19142 if (depthBits <= 16)
19143 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
19145 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
19149 span.interpMask |= 0x01;
19150 if (ctx->Light.ShadeModel == 0x1D01) {
19151 GLfloat eMaj_dr = (GLfloat) (vMax->color[0] - vMin->color[0]);
19152 GLfloat eBot_dr = (GLfloat) (vMid->color[0] - vMin->color[0]);
19153 GLfloat eMaj_dg = (GLfloat) (vMax->color[1] - vMin->color[1]);
19154 GLfloat eBot_dg = (GLfloat) (vMid->color[1] - vMin->color[1]);
19155 GLfloat eMaj_db = (GLfloat) (vMax->color[2] - vMin->color[2]);
19156 GLfloat eBot_db = (GLfloat) (vMid->color[2] - vMin->color[2]);
19158 GLfloat eMaj_da = (GLfloat) (vMax->color[3] - vMin->color[3]);
19159 GLfloat eBot_da = (GLfloat) (vMid->color[3] - vMin->color[3]);
19161 span.attrStepX[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj_dr * eBot.dy - eMaj.dy * eBot_dr);
19162 span.attrStepY[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj.dx * eBot_dr - eMaj_dr * eBot.dx);
19163 span.attrStepX[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj_dg * eBot.dy - eMaj.dy * eBot_dg);
19164 span.attrStepY[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj.dx * eBot_dg - eMaj_dg * eBot.dx);
19165 span.attrStepX[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj_db * eBot.dy - eMaj.dy * eBot_db);
19166 span.attrStepY[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj.dx * eBot_db - eMaj_db * eBot.dx);
19167 span.redStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))));
19168 span.greenStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))));
19169 span.blueStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))));
19171 span.attrStepX[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj_da * eBot.dy - eMaj.dy * eBot_da);
19172 span.attrStepY[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj.dx * eBot_da - eMaj_da * eBot.dx);
19173 span.alphaStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))));
19178 span.interpMask |= 0x04;
19179 span.attrStepX[FRAG_ATTRIB_COL0][0] = span.attrStepY[FRAG_ATTRIB_COL0][0] = 0.0F;
19180 span.attrStepX[FRAG_ATTRIB_COL0][1] = span.attrStepY[FRAG_ATTRIB_COL0][1] = 0.0F;
19181 span.attrStepX[FRAG_ATTRIB_COL0][2] = span.attrStepY[FRAG_ATTRIB_COL0][2] = 0.0F;
19183 span.greenStep = 0;
19186 span.attrStepX[FRAG_ATTRIB_COL0][3] = span.attrStepY[FRAG_ATTRIB_COL0][3] = 0.0F;
19187 span.alphaStep = 0;
19193 GLfloat eMaj_ds = (vMax->attrib[FRAG_ATTRIB_TEX0][0] - vMin->attrib[FRAG_ATTRIB_TEX0][0]) * twidth;
19194 GLfloat eBot_ds = (vMid->attrib[FRAG_ATTRIB_TEX0][0] - vMin->attrib[FRAG_ATTRIB_TEX0][0]) * twidth;
19195 GLfloat eMaj_dt = (vMax->attrib[FRAG_ATTRIB_TEX0][1] - vMin->attrib[FRAG_ATTRIB_TEX0][1]) * theight;
19196 GLfloat eBot_dt = (vMid->attrib[FRAG_ATTRIB_TEX0][1] - vMin->attrib[FRAG_ATTRIB_TEX0][1]) * theight;
19197 span.attrStepX[FRAG_ATTRIB_TEX0][0] = oneOverArea * (eMaj_ds * eBot.dy - eMaj.dy * eBot_ds);
19198 span.attrStepY[FRAG_ATTRIB_TEX0][0] = oneOverArea * (eMaj.dx * eBot_ds - eMaj_ds * eBot.dx);
19199 span.attrStepX[FRAG_ATTRIB_TEX0][1] = oneOverArea * (eMaj_dt * eBot.dy - eMaj.dy * eBot_dt);
19200 span.attrStepY[FRAG_ATTRIB_TEX0][1] = oneOverArea * (eMaj.dx * eBot_dt - eMaj_dt * eBot.dx);
19201 span.intTexStep[0] = (((int) ((((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) - 0.5F))));
19202 span.intTexStep[1] = (((int) ((((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) - 0.5F))));
19204 # 488 "swrast/s_tritemp.h"
19207 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
19208 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
19209 GLfixed fError = 0, fdError = 0;
19210 # 504 "swrast/s_tritemp.h"
19212 GLfixed fdzOuter = 0, fdzInner;
19215 GLint rLeft = 0, fdrOuter = 0, fdrInner;
19216 GLint gLeft = 0, fdgOuter = 0, fdgInner;
19217 GLint bLeft = 0, fdbOuter = 0, fdbInner;
19220 GLint aLeft = 0, fdaOuter = 0, fdaInner;
19223 GLfixed sLeft=0, dsOuter=0, dsInner;
19224 GLfixed tLeft=0, dtOuter=0, dtInner;
19232 for (subTriangle=0; subTriangle<=1; subTriangle++) {
19233 EdgeT *eLeft, *eRight;
19234 int setupLeft, setupRight;
19237 if (subTriangle==0) {
19239 if (scan_from_left_to_right) {
19242 lines = eRight->lines;
19249 lines = eLeft->lines;
19256 if (scan_from_left_to_right) {
19259 lines = eRight->lines;
19266 lines = eLeft->lines;
19274 if (setupLeft && eLeft->lines > 0) {
19275 const SWvertex *vLower = eLeft->v0;
19276 const GLfixed fsy = eLeft->fsy;
19277 const GLfixed fsx = eLeft->fsx;
19278 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19279 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
19280 const GLfixed adjy = (GLfixed) eLeft->adjy;
19285 fError = fx - fsx - (1 << 11);
19286 fxLeftEdge = fsx - 1;
19287 fdxLeftEdge = eLeft->fdxdy;
19288 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
19289 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
19290 idxOuter = ((fdxOuter) >> 11);
19291 dxOuter = (GLfloat) idxOuter;
19292 span.y = ((fsy) >> 11);
19299 # 611 "swrast/s_tritemp.h"
19301 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
19302 if (depthBits <= 16) {
19304 GLfloat tmp = (z0 * ((float) (1 << 11))
19305 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
19306 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
19307 if (tmp < 0xffffffff / 2)
19308 zLeft = (GLfixed) tmp;
19310 zLeft = 0xffffffff / 2;
19311 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
19316 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
19317 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
19318 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
19319 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
19329 if (ctx->Light.ShadeModel == 0x1D01) {
19330 rLeft = (GLint)(((vLower->color[0]) << 11)
19331 + span.attrStepX[FRAG_ATTRIB_COL0][0] * adjx
19332 + span.attrStepY[FRAG_ATTRIB_COL0][0] * adjy) + (1 << (11 -1));
19333 gLeft = (GLint)(((vLower->color[1]) << 11)
19334 + span.attrStepX[FRAG_ATTRIB_COL0][1] * adjx
19335 + span.attrStepY[FRAG_ATTRIB_COL0][1] * adjy) + (1 << (11 -1));
19336 bLeft = (GLint)(((vLower->color[2]) << 11)
19337 + span.attrStepX[FRAG_ATTRIB_COL0][2] * adjx
19338 + span.attrStepY[FRAG_ATTRIB_COL0][2] * adjy) + (1 << (11 -1));
19339 fdrOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))))
19341 fdgOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))))
19343 fdbOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))))
19346 aLeft = (GLint)(((vLower->color[3]) << 11)
19347 + span.attrStepX[FRAG_ATTRIB_COL0][3] * adjx
19348 + span.attrStepY[FRAG_ATTRIB_COL0][3] * adjy) + (1 << (11 -1));
19349 fdaOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))))
19355 rLeft = ((v2->color[0]) << 11);
19356 gLeft = ((v2->color[1]) << 11);
19357 bLeft = ((v2->color[2]) << 11);
19358 fdrOuter = fdgOuter = fdbOuter = 0;
19360 aLeft = ((v2->color[3]) << 11);
19370 s0 = vLower->attrib[FRAG_ATTRIB_TEX0][0] * twidth;
19371 sLeft = (GLfixed)(s0 * ((float) (1 << 11)) + span.attrStepX[FRAG_ATTRIB_TEX0][0] * adjx
19372 + span.attrStepY[FRAG_ATTRIB_TEX0][0] * adjy) + (1 << (11 -1));
19373 dsOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_TEX0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][0]) * ((float) (1 << 11))) - 0.5F))))
19376 t0 = vLower->attrib[FRAG_ATTRIB_TEX0][1] * theight;
19377 tLeft = (GLfixed)(t0 * ((float) (1 << 11)) + span.attrStepX[FRAG_ATTRIB_TEX0][1] * adjx
19378 + span.attrStepY[FRAG_ATTRIB_TEX0][1] * adjy) + (1 << (11 -1));
19379 dtOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_TEX0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_TEX0][1]) * ((float) (1 << 11))) - 0.5F))))
19382 # 722 "swrast/s_tritemp.h"
19386 if (setupRight && eRight->lines>0) {
19387 fxRightEdge = eRight->fsx - 1;
19388 fdxRightEdge = eRight->fdxdy;
19394 # 743 "swrast/s_tritemp.h"
19395 fdzInner = fdzOuter + span.zStep;
19398 fdrInner = fdrOuter + span.redStep;
19399 fdgInner = fdgOuter + span.greenStep;
19400 fdbInner = fdbOuter + span.blueStep;
19403 fdaInner = fdaOuter + span.alphaStep;
19406 dsInner = dsOuter + span.intTexStep[0];
19407 dtInner = dtOuter + span.intTexStep[1];
19408 # 767 "swrast/s_tritemp.h"
19409 while (lines > 0) {
19412 const GLint right = ((fxRightEdge) >> 11);
19413 span.x = ((fxLeftEdge) >> 11);
19414 if (right <= span.x)
19417 span.end = right - span.x;
19424 span.green = gLeft;
19428 span.alpha = aLeft;
19431 span.intTex[0] = sLeft;
19432 span.intTex[1] = tLeft;
19433 # 807 "swrast/s_tritemp.h"
19434 if (span.end > 0 && span.y >= 0) {
19435 const GLint len = span.end - 1;
19438 do { GLfixed endVal = span.red + (len) * span.redStep; if (endVal < 0) { span.red -= endVal; } if (span.red < 0) { span.red = 0; } } while (0);
19439 do { GLfixed endVal = span.green + (len) * span.greenStep; if (endVal < 0) { span.green -= endVal; } if (span.green < 0) { span.green = 0; } } while (0);
19440 do { GLfixed endVal = span.blue + (len) * span.blueStep; if (endVal < 0) { span.blue -= endVal; } if (span.blue < 0) { span.blue = 0; } } while (0);
19443 do { GLfixed endVal = span.alpha + (len) * span.alphaStep; if (endVal < 0) { span.alpha -= endVal; } if (span.alpha < 0) { span.alpha = 0; } } while (0);
19446 affine_span(ctx, &span, &info);;
19459 fxLeftEdge += fdxLeftEdge;
19460 fxRightEdge += fdxRightEdge;
19464 fError -= (1 << 11);
19465 # 846 "swrast/s_tritemp.h"
19479 # 869 "swrast/s_tritemp.h"
19502 # 901 "swrast/s_tritemp.h"
19511 # 578 "swrast/s_triangle.c" 2
19520 GLint smask, tmask;
19522 const GLchan *texture;
19523 GLfixed er, eg, eb, ea;
19524 GLint tbytesline, tsize;
19528 static __inline__ void
19529 fast_persp_span(struct gl_context *ctx, SWspan *span,
19530 struct persp_info *info)
19533 # 662 "swrast/s_triangle.c"
19535 GLfloat tex_coord[3], tex_step[3];
19536 GLchan *dest = span->array->rgba[0];
19538 const GLuint texEnableSave = ctx->Texture._EnabledCoordUnits;
19539 ctx->Texture._EnabledCoordUnits = 0;
19541 tex_coord[0] = span->attrStart[FRAG_ATTRIB_TEX0][0] * (info->smask + 1);
19542 tex_step[0] = span->attrStepX[FRAG_ATTRIB_TEX0][0] * (info->smask + 1);
19543 tex_coord[1] = span->attrStart[FRAG_ATTRIB_TEX0][1] * (info->tmask + 1);
19544 tex_step[1] = span->attrStepX[FRAG_ATTRIB_TEX0][1] * (info->tmask + 1);
19546 tex_coord[2] = span->attrStart[FRAG_ATTRIB_TEX0][3];
19547 tex_step[2] = span->attrStepX[FRAG_ATTRIB_TEX0][3];
19549 switch (info->filter) {
19551 switch (info->format) {
19552 case MESA_FORMAT_RGB888:
19553 switch (info->envmode) {
19555 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;;dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19559 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;; dest[0] = sample[0]; dest[1] = sample[1]; dest[2] = sample[2]; dest[3] = ((span->alpha) >> 11);; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19562 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;;dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19565 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; sample[0] = tex00[2]; sample[1] = tex00[1]; sample[2] = tex00[0]; sample[3] = 255;;{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19568 _mesa_problem(ctx, "bad tex env mode (5) in SPAN_LINEAR");
19572 case MESA_FORMAT_RGBA8888:
19573 switch(info->envmode) {
19575 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19578 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;dest[0] = ((255 - sample[3]) * span->red + ((sample[3] + 1) * sample[0] << 11)) >> (11 + 8); dest[1] = ((255 - sample[3]) * span->green + ((sample[3] + 1) * sample[1] << 11)) >> (11 + 8); dest[2] = ((255 - sample[3]) * span->blue + ((sample[3] + 1) * sample[2] << 11)) >> (11 + 8); dest[3] = ((span->alpha) >> 11); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19581 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19584 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; sample[0] = tex00[3]; sample[1] = tex00[2]; sample[2] = tex00[1]; sample[3] = tex00[0];;{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19587 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); GLint s = ifloor(s_tmp) & info->smask; GLint t = ifloor(t_tmp) & info->tmask; GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; dest[0] = tex00[3]; dest[1] = tex00[2]; dest[2] = tex00[1]; dest[3] = tex00[0]; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19590 _mesa_problem(ctx, "bad tex env mode (6) in SPAN_LINEAR");
19598 switch (info->format) {
19599 case MESA_FORMAT_RGB888:
19600 switch (info->envmode) {
19602 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19606 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;do { (dest)[0] = (sample)[0]; (dest)[1] = (sample)[1]; (dest)[2] = (sample)[2]; (dest)[3] = (sample)[3]; } while (0); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19609 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19612 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 3 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 3; const GLchan *tex11 = tex10 + 3; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[1] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[2] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]); sample[3] = 255;;{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19615 _mesa_problem(ctx, "bad tex env mode (7) in SPAN_LINEAR");
19619 case MESA_FORMAT_RGBA8888:
19620 switch (info->envmode) {
19622 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);dest[0] = span->red * (sample[0] + 1u) >> (11 + 8); dest[1] = span->green * (sample[1] + 1u) >> (11 + 8); dest[2] = span->blue * (sample[2] + 1u) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1u) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19625 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);dest[0] = ((255 - sample[3]) * span->red + ((sample[3] + 1) * sample[0] << 11)) >> (11 + 8); dest[1] = ((255 - sample[3]) * span->green + ((sample[3] + 1) * sample[1] << 11)) >> (11 + 8); dest[2] = ((255 - sample[3]) * span->blue + ((sample[3] + 1) * sample[2] << 11)) >> (11 + 8); dest[3] = ((span->alpha) >> 11); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19628 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);dest[0] = ((255 - sample[0]) * span->red + (sample[0] + 1) * info->er) >> (11 + 8); dest[1] = ((255 - sample[1]) * span->green + (sample[1] + 1) * info->eg) >> (11 + 8); dest[2] = ((255 - sample[2]) * span->blue + (sample[2] + 1) * info->eb) >> (11 + 8); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19631 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);{ GLint rSum = ((span->red) >> 11) + (GLint) sample[0]; GLint gSum = ((span->green) >> 11) + (GLint) sample[1]; GLint bSum = ((span->blue) >> 11) + (GLint) sample[2]; dest[0] = ( (rSum)<(255) ? (rSum) : (255) ); dest[1] = ( (gSum)<(255) ? (gSum) : (255) ); dest[2] = ( (bSum)<(255) ? (bSum) : (255) ); dest[3] = span->alpha * (sample[3] + 1) >> (11 + 8); }; span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19634 for (i = 0; i < span->end; i++) { GLdouble invQ = tex_coord[2] ? (1.0 / tex_coord[2]) : 1.0; const GLfloat s_tmp = (GLfloat) (tex_coord[0] * invQ); const GLfloat t_tmp = (GLfloat) (tex_coord[1] * invQ); const GLfixed s_fix = (((int) ((((s_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((s_tmp) * ((float) (1 << 11))) + 0.5F) : (((s_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLfixed t_fix = (((int) ((((t_tmp) * ((float) (1 << 11))) >= 0.0F) ? (((t_tmp) * ((float) (1 << 11))) + 0.5F) : (((t_tmp) * ((float) (1 << 11))) - 0.5F)))) - (1 << (11 -1)); const GLint s = ((((s_fix) & (~((1 << 11) - 1)))) >> 11) & info->smask; const GLint t = ((((t_fix) & (~((1 << 11) - 1)))) >> 11) & info->tmask; const GLfixed sf = s_fix & ((1 << 11) - 1); const GLfixed tf = t_fix & ((1 << 11) - 1); const GLint pos = (t << info->twidth_log2) + s; const GLchan *tex00 = info->texture + 4 * pos; const GLchan *tex10 = tex00 + info->tbytesline; const GLchan *tex01 = tex00 + 4; const GLchan *tex11 = tex10 + 4; if (t == info->tmask) { tex10 -= info->tsize; tex11 -= info->tsize; } if (s == info->smask) { tex01 -= info->tbytesline; tex11 -= info->tbytesline; } sample[0] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]); sample[1] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]); sample[2] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]); sample[3] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);do { (dest)[0] = (sample)[0]; (dest)[1] = (sample)[1]; (dest)[2] = (sample)[2]; (dest)[3] = (sample)[3]; } while (0); span->red += span->redStep; span->green += span->greenStep; span->blue += span->blueStep; span->alpha += span->alphaStep; tex_coord[0] += tex_step[0]; tex_coord[1] += tex_step[1]; tex_coord[2] += tex_step[2]; dest += 4; };
19637 _mesa_problem(ctx, "bad tex env mode (8) in SPAN_LINEAR");
19646 _swrast_write_rgba_span(ctx, span);
19652 ctx->Texture._EnabledCoordUnits = texEnableSave;
19654 # 844 "swrast/s_triangle.c"
19655 # 1 "swrast/s_tritemp.h" 1
19656 # 111 "swrast/s_tritemp.h"
19657 static void persp_textured_triangle(struct gl_context *ctx, const SWvertex *v0,
19658 const SWvertex *v1,
19659 const SWvertex *v2 )
19662 const SWvertex *v0, *v1;
19674 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
19676 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
19677 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
19678 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
19681 EdgeT eMaj, eTop, eBot;
19682 GLfloat oneOverArea;
19683 const SWvertex *vMin, *vMid, *vMax;
19684 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
19685 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
19686 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
19692 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
19696 (void) fixedToDepthShift;
19697 # 172 "swrast/s_tritemp.h"
19699 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19700 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19701 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19705 vMin = v0; vMid = v1; vMax = v2;
19706 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
19708 else if (fy2 <= fy0) {
19710 vMin = v2; vMid = v0; vMax = v1;
19711 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
19715 vMin = v0; vMid = v2; vMax = v1;
19716 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
19723 vMin = v1; vMid = v0; vMax = v2;
19724 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
19727 else if (fy2 <= fy1) {
19729 vMin = v2; vMid = v1; vMax = v0;
19730 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
19735 vMin = v1; vMid = v2; vMax = v0;
19736 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
19741 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19742 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19743 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
19747 eMaj.v0 = vMin; eMaj.v1 = vMax;
19748 eTop.v0 = vMid; eTop.v1 = vMax;
19749 eBot.v0 = vMin; eBot.v1 = vMid;
19752 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
19753 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
19754 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
19755 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
19756 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
19757 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
19761 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
19763 if (IS_INF_OR_NAN(area) || area == 0.0F)
19766 if (area * bf * swrast->_BackfaceCullSign < 0.0)
19769 oneOverArea = 1.0F / area;
19772 span.facing = oneOverArea * bf > 0.0F;
19777 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19778 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
19779 if (eMaj.lines > 0) {
19780 eMaj.dxdy = eMaj.dx / eMaj.dy;
19781 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
19782 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
19783 eMaj.fx0 = vMin_fx;
19784 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
19790 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19791 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
19792 if (eTop.lines > 0) {
19793 eTop.dxdy = eTop.dx / eTop.dy;
19794 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
19795 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
19796 eTop.fx0 = vMid_fx;
19797 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
19800 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19801 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
19802 if (eBot.lines > 0) {
19803 eBot.dxdy = eBot.dx / eBot.dy;
19804 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
19805 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
19806 eBot.fx0 = vMin_fx;
19807 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
19810 # 319 "swrast/s_tritemp.h"
19812 GLint scan_from_left_to_right;
19818 struct persp_info info; const struct gl_texture_unit *unit = ctx->Texture.Unit+0; const struct gl_texture_object *obj = ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; const struct gl_texture_image *texImg = obj->Image[0][obj->BaseLevel]; info.texture = (const GLchan *) texImg->Data; info.twidth_log2 = texImg->WidthLog2; info.smask = texImg->Width - 1; info.tmask = texImg->Height - 1; info.format = texImg->TexFormat; info.filter = obj->Sampler.MinFilter; info.envmode = unit->EnvMode; info.er = 0; info.eg = 0; info.eb = 0; if (info.envmode == 0x0BE2) { info.er = (((int) ((((unit->EnvColor[0] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[0] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[0] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); info.eg = (((int) ((((unit->EnvColor[1] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[1] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[1] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); info.eb = (((int) ((((unit->EnvColor[2] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[2] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[2] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); info.ea = (((int) ((((unit->EnvColor[3] * 255.0F) * ((float) (1 << 11))) >= 0.0F) ? (((unit->EnvColor[3] * 255.0F) * ((float) (1 << 11))) + 0.5F) : (((unit->EnvColor[3] * 255.0F) * ((float) (1 << 11))) - 0.5F)))); } if (!info.texture) { return; } switch (info.format) { case MESA_FORMAT_RGB888: info.tbytesline = texImg->Width * 3; break; case MESA_FORMAT_RGBA8888: info.tbytesline = texImg->Width * 4; break; default: _mesa_problem(((void *)0), "Bad texture format in persp_textured_triangle"); return; } info.tsize = texImg->Height * info.tbytesline;
19821 scan_from_left_to_right = (oneOverArea < 0.0F);
19826 span.interpMask |= 0x02;
19828 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
19829 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
19830 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
19831 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
19832 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
19834 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
19835 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
19838 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
19840 if (depthBits <= 16)
19841 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
19843 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
19847 span.interpMask |= 0x01;
19848 if (ctx->Light.ShadeModel == 0x1D01) {
19849 GLfloat eMaj_dr = (GLfloat) (vMax->color[0] - vMin->color[0]);
19850 GLfloat eBot_dr = (GLfloat) (vMid->color[0] - vMin->color[0]);
19851 GLfloat eMaj_dg = (GLfloat) (vMax->color[1] - vMin->color[1]);
19852 GLfloat eBot_dg = (GLfloat) (vMid->color[1] - vMin->color[1]);
19853 GLfloat eMaj_db = (GLfloat) (vMax->color[2] - vMin->color[2]);
19854 GLfloat eBot_db = (GLfloat) (vMid->color[2] - vMin->color[2]);
19856 GLfloat eMaj_da = (GLfloat) (vMax->color[3] - vMin->color[3]);
19857 GLfloat eBot_da = (GLfloat) (vMid->color[3] - vMin->color[3]);
19859 span.attrStepX[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj_dr * eBot.dy - eMaj.dy * eBot_dr);
19860 span.attrStepY[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj.dx * eBot_dr - eMaj_dr * eBot.dx);
19861 span.attrStepX[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj_dg * eBot.dy - eMaj.dy * eBot_dg);
19862 span.attrStepY[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj.dx * eBot_dg - eMaj_dg * eBot.dx);
19863 span.attrStepX[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj_db * eBot.dy - eMaj.dy * eBot_db);
19864 span.attrStepY[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj.dx * eBot_db - eMaj_db * eBot.dx);
19865 span.redStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))));
19866 span.greenStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))));
19867 span.blueStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))));
19869 span.attrStepX[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj_da * eBot.dy - eMaj.dy * eBot_da);
19870 span.attrStepY[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj.dx * eBot_da - eMaj_da * eBot.dx);
19871 span.alphaStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))));
19876 span.interpMask |= 0x04;
19877 span.attrStepX[FRAG_ATTRIB_COL0][0] = span.attrStepY[FRAG_ATTRIB_COL0][0] = 0.0F;
19878 span.attrStepX[FRAG_ATTRIB_COL0][1] = span.attrStepY[FRAG_ATTRIB_COL0][1] = 0.0F;
19879 span.attrStepX[FRAG_ATTRIB_COL0][2] = span.attrStepY[FRAG_ATTRIB_COL0][2] = 0.0F;
19881 span.greenStep = 0;
19884 span.attrStepX[FRAG_ATTRIB_COL0][3] = span.attrStepY[FRAG_ATTRIB_COL0][3] = 0.0F;
19885 span.alphaStep = 0;
19888 # 412 "swrast/s_tritemp.h"
19891 const GLfloat wMax = vMax->attrib[FRAG_ATTRIB_WPOS][3];
19892 const GLfloat wMin = vMin->attrib[FRAG_ATTRIB_WPOS][3];
19893 const GLfloat wMid = vMid->attrib[FRAG_ATTRIB_WPOS][3];
19895 const GLfloat eMaj_dw = wMax - wMin;
19896 const GLfloat eBot_dw = wMid - wMin;
19897 span.attrStepX[FRAG_ATTRIB_WPOS][3] = oneOverArea * (eMaj_dw * eBot.dy - eMaj.dy * eBot_dw);
19898 span.attrStepY[FRAG_ATTRIB_WPOS][3] = oneOverArea * (eMaj.dx * eBot_dw - eMaj_dw * eBot.dx);
19900 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
19901 if (swrast->_InterpMode[attr] == 0x1D00) {
19902 do { span.attrStepX[attr][0] = 0.0; span.attrStepX[attr][1] = 0.0; span.attrStepX[attr][2] = 0.0; span.attrStepX[attr][3] = 0.0; } while(0);
19903 do { span.attrStepY[attr][0] = 0.0; span.attrStepY[attr][1] = 0.0; span.attrStepY[attr][2] = 0.0; span.attrStepY[attr][3] = 0.0; } while(0);
19907 for (c = 0; c < 4; c++) {
19908 GLfloat eMaj_da = vMax->attrib[attr][c] * wMax - vMin->attrib[attr][c] * wMin;
19909 GLfloat eBot_da = vMid->attrib[attr][c] * wMid - vMin->attrib[attr][c] * wMin;
19910 span.attrStepX[attr][c] = oneOverArea * (eMaj_da * eBot.dy - eMaj.dy * eBot_da);
19911 span.attrStepY[attr][c] = oneOverArea * (eMaj.dx * eBot_da - eMaj_da * eBot.dx);
19916 # 488 "swrast/s_tritemp.h"
19919 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
19920 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
19921 GLfixed fError = 0, fdError = 0;
19922 # 504 "swrast/s_tritemp.h"
19924 GLfixed fdzOuter = 0, fdzInner;
19927 GLint rLeft = 0, fdrOuter = 0, fdrInner;
19928 GLint gLeft = 0, fdgOuter = 0, fdgInner;
19929 GLint bLeft = 0, fdbOuter = 0, fdbInner;
19932 GLint aLeft = 0, fdaOuter = 0, fdaInner;
19939 GLfloat wLeft = 0, dwOuter = 0, dwInner;
19940 GLfloat attrLeft[FRAG_ATTRIB_MAX][4];
19941 GLfloat daOuter[FRAG_ATTRIB_MAX][4], daInner[FRAG_ATTRIB_MAX][4];
19944 for (subTriangle=0; subTriangle<=1; subTriangle++) {
19945 EdgeT *eLeft, *eRight;
19946 int setupLeft, setupRight;
19949 if (subTriangle==0) {
19951 if (scan_from_left_to_right) {
19954 lines = eRight->lines;
19961 lines = eLeft->lines;
19968 if (scan_from_left_to_right) {
19971 lines = eRight->lines;
19978 lines = eLeft->lines;
19986 if (setupLeft && eLeft->lines > 0) {
19987 const SWvertex *vLower = eLeft->v0;
19988 const GLfixed fsy = eLeft->fsy;
19989 const GLfixed fsx = eLeft->fsx;
19990 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
19991 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
19992 const GLfixed adjy = (GLfixed) eLeft->adjy;
19997 fError = fx - fsx - (1 << 11);
19998 fxLeftEdge = fsx - 1;
19999 fdxLeftEdge = eLeft->fdxdy;
20000 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
20001 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
20002 idxOuter = ((fdxOuter) >> 11);
20003 dxOuter = (GLfloat) idxOuter;
20004 span.y = ((fsy) >> 11);
20011 # 611 "swrast/s_tritemp.h"
20013 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
20014 if (depthBits <= 16) {
20016 GLfloat tmp = (z0 * ((float) (1 << 11))
20017 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
20018 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
20019 if (tmp < 0xffffffff / 2)
20020 zLeft = (GLfixed) tmp;
20022 zLeft = 0xffffffff / 2;
20023 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
20028 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
20029 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
20030 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
20031 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
20041 if (ctx->Light.ShadeModel == 0x1D01) {
20042 rLeft = (GLint)(((vLower->color[0]) << 11)
20043 + span.attrStepX[FRAG_ATTRIB_COL0][0] * adjx
20044 + span.attrStepY[FRAG_ATTRIB_COL0][0] * adjy) + (1 << (11 -1));
20045 gLeft = (GLint)(((vLower->color[1]) << 11)
20046 + span.attrStepX[FRAG_ATTRIB_COL0][1] * adjx
20047 + span.attrStepY[FRAG_ATTRIB_COL0][1] * adjy) + (1 << (11 -1));
20048 bLeft = (GLint)(((vLower->color[2]) << 11)
20049 + span.attrStepX[FRAG_ATTRIB_COL0][2] * adjx
20050 + span.attrStepY[FRAG_ATTRIB_COL0][2] * adjy) + (1 << (11 -1));
20051 fdrOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))))
20053 fdgOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))))
20055 fdbOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))))
20058 aLeft = (GLint)(((vLower->color[3]) << 11)
20059 + span.attrStepX[FRAG_ATTRIB_COL0][3] * adjx
20060 + span.attrStepY[FRAG_ATTRIB_COL0][3] * adjy) + (1 << (11 -1));
20061 fdaOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))))
20067 rLeft = ((v2->color[0]) << 11);
20068 gLeft = ((v2->color[1]) << 11);
20069 bLeft = ((v2->color[2]) << 11);
20070 fdrOuter = fdgOuter = fdbOuter = 0;
20072 aLeft = ((v2->color[3]) << 11);
20076 # 695 "swrast/s_tritemp.h"
20078 const GLuint attr = FRAG_ATTRIB_WPOS;
20079 wLeft = vLower->attrib[FRAG_ATTRIB_WPOS][3]
20080 + (span.attrStepX[attr][3] * adjx
20081 + span.attrStepY[attr][3] * adjy) * (1.0F/((float) (1 << 11)));
20082 dwOuter = span.attrStepY[attr][3] + dxOuter * span.attrStepX[attr][3];
20084 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20085 const GLfloat invW = vLower->attrib[FRAG_ATTRIB_WPOS][3];
20086 if (swrast->_InterpMode[attr] == 0x1D00) {
20088 for (c = 0; c < 4; c++) {
20089 attrLeft[attr][c] = v2->attrib[attr][c] * invW;
20090 daOuter[attr][c] = 0.0;
20095 for (c = 0; c < 4; c++) {
20096 const GLfloat a = vLower->attrib[attr][c] * invW;
20097 attrLeft[attr][c] = a + ( span.attrStepX[attr][c] * adjx
20098 + span.attrStepY[attr][c] * adjy) * (1.0F/((float) (1 << 11)));
20099 daOuter[attr][c] = span.attrStepY[attr][c] + dxOuter * span.attrStepX[attr][c];
20107 if (setupRight && eRight->lines>0) {
20108 fxRightEdge = eRight->fsx - 1;
20109 fdxRightEdge = eRight->fdxdy;
20115 # 743 "swrast/s_tritemp.h"
20116 fdzInner = fdzOuter + span.zStep;
20119 fdrInner = fdrOuter + span.redStep;
20120 fdgInner = fdgOuter + span.greenStep;
20121 fdbInner = fdbOuter + span.blueStep;
20124 fdaInner = fdaOuter + span.alphaStep;
20131 dwInner = dwOuter + span.attrStepX[FRAG_ATTRIB_WPOS][3];
20132 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20134 for (c = 0; c < 4; c++) {
20135 daInner[attr][c] = daOuter[attr][c] + span.attrStepX[attr][c];
20140 while (lines > 0) {
20143 const GLint right = ((fxRightEdge) >> 11);
20144 span.x = ((fxLeftEdge) >> 11);
20145 if (right <= span.x)
20148 span.end = right - span.x;
20155 span.green = gLeft;
20159 span.alpha = aLeft;
20167 span.attrStart[FRAG_ATTRIB_WPOS][3] = wLeft;
20168 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20170 for (c = 0; c < 4; c++) {
20171 span.attrStart[attr][c] = attrLeft[attr][c];
20180 if (span.end > 0 && span.y >= 0) {
20181 const GLint len = span.end - 1;
20184 do { GLfixed endVal = span.red + (len) * span.redStep; if (endVal < 0) { span.red -= endVal; } if (span.red < 0) { span.red = 0; } } while (0);
20185 do { GLfixed endVal = span.green + (len) * span.greenStep; if (endVal < 0) { span.green -= endVal; } if (span.green < 0) { span.green = 0; } } while (0);
20186 do { GLfixed endVal = span.blue + (len) * span.blueStep; if (endVal < 0) { span.blue -= endVal; } if (span.blue < 0) { span.blue = 0; } } while (0);
20189 do { GLfixed endVal = span.alpha + (len) * span.alphaStep; if (endVal < 0) { span.alpha -= endVal; } if (span.alpha < 0) { span.alpha = 0; } } while (0);
20192 span.interpMask &= ~0x01; span.arrayMask |= 0x01; fast_persp_span(ctx, &span, &info);;
20205 fxLeftEdge += fdxLeftEdge;
20206 fxRightEdge += fdxRightEdge;
20210 fError -= (1 << 11);
20211 # 846 "swrast/s_tritemp.h"
20228 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20230 for (c = 0; c < 4; c++) {
20231 attrLeft[attr][c] += daOuter[attr][c];
20260 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20262 for (c = 0; c < 4; c++) {
20263 attrLeft[attr][c] += daInner[attr][c];
20275 # 845 "swrast/s_triangle.c" 2
20276 # 859 "swrast/s_triangle.c"
20277 # 1 "swrast/s_tritemp.h" 1
20278 # 111 "swrast/s_tritemp.h"
20279 static void general_triangle(struct gl_context *ctx, const SWvertex *v0,
20280 const SWvertex *v1,
20281 const SWvertex *v2 )
20284 const SWvertex *v0, *v1;
20296 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
20298 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
20299 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
20300 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
20303 EdgeT eMaj, eTop, eBot;
20304 GLfloat oneOverArea;
20305 const SWvertex *vMin, *vMid, *vMax;
20306 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
20307 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
20308 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
20314 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
20318 (void) fixedToDepthShift;
20319 # 172 "swrast/s_tritemp.h"
20321 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20322 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20323 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20327 vMin = v0; vMid = v1; vMax = v2;
20328 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
20330 else if (fy2 <= fy0) {
20332 vMin = v2; vMid = v0; vMax = v1;
20333 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
20337 vMin = v0; vMid = v2; vMax = v1;
20338 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
20345 vMin = v1; vMid = v0; vMax = v2;
20346 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
20349 else if (fy2 <= fy1) {
20351 vMin = v2; vMid = v1; vMax = v0;
20352 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
20357 vMin = v1; vMid = v2; vMax = v0;
20358 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
20363 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20364 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20365 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20369 eMaj.v0 = vMin; eMaj.v1 = vMax;
20370 eTop.v0 = vMid; eTop.v1 = vMax;
20371 eBot.v0 = vMin; eBot.v1 = vMid;
20374 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
20375 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
20376 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
20377 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
20378 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
20379 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
20383 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
20385 if (IS_INF_OR_NAN(area) || area == 0.0F)
20388 if (area * bf * swrast->_BackfaceCullSign < 0.0)
20391 oneOverArea = 1.0F / area;
20394 span.facing = oneOverArea * bf > 0.0F;
20399 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
20400 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
20401 if (eMaj.lines > 0) {
20402 eMaj.dxdy = eMaj.dx / eMaj.dy;
20403 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
20404 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
20405 eMaj.fx0 = vMin_fx;
20406 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
20412 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
20413 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
20414 if (eTop.lines > 0) {
20415 eTop.dxdy = eTop.dx / eTop.dy;
20416 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
20417 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
20418 eTop.fx0 = vMid_fx;
20419 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
20422 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
20423 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
20424 if (eBot.lines > 0) {
20425 eBot.dxdy = eBot.dx / eBot.dy;
20426 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
20427 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
20428 eBot.fx0 = vMin_fx;
20429 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
20432 # 319 "swrast/s_tritemp.h"
20434 GLint scan_from_left_to_right;
20435 # 329 "swrast/s_tritemp.h"
20436 scan_from_left_to_right = (oneOverArea < 0.0F);
20441 span.interpMask |= 0x02;
20443 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
20444 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
20445 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
20446 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
20447 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
20449 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
20450 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
20453 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
20455 if (depthBits <= 16)
20456 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
20458 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
20462 span.interpMask |= 0x01;
20463 if (ctx->Light.ShadeModel == 0x1D01) {
20464 GLfloat eMaj_dr = (GLfloat) (vMax->color[0] - vMin->color[0]);
20465 GLfloat eBot_dr = (GLfloat) (vMid->color[0] - vMin->color[0]);
20466 GLfloat eMaj_dg = (GLfloat) (vMax->color[1] - vMin->color[1]);
20467 GLfloat eBot_dg = (GLfloat) (vMid->color[1] - vMin->color[1]);
20468 GLfloat eMaj_db = (GLfloat) (vMax->color[2] - vMin->color[2]);
20469 GLfloat eBot_db = (GLfloat) (vMid->color[2] - vMin->color[2]);
20471 GLfloat eMaj_da = (GLfloat) (vMax->color[3] - vMin->color[3]);
20472 GLfloat eBot_da = (GLfloat) (vMid->color[3] - vMin->color[3]);
20474 span.attrStepX[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj_dr * eBot.dy - eMaj.dy * eBot_dr);
20475 span.attrStepY[FRAG_ATTRIB_COL0][0] = oneOverArea * (eMaj.dx * eBot_dr - eMaj_dr * eBot.dx);
20476 span.attrStepX[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj_dg * eBot.dy - eMaj.dy * eBot_dg);
20477 span.attrStepY[FRAG_ATTRIB_COL0][1] = oneOverArea * (eMaj.dx * eBot_dg - eMaj_dg * eBot.dx);
20478 span.attrStepX[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj_db * eBot.dy - eMaj.dy * eBot_db);
20479 span.attrStepY[FRAG_ATTRIB_COL0][2] = oneOverArea * (eMaj.dx * eBot_db - eMaj_db * eBot.dx);
20480 span.redStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))));
20481 span.greenStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))));
20482 span.blueStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))));
20484 span.attrStepX[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj_da * eBot.dy - eMaj.dy * eBot_da);
20485 span.attrStepY[FRAG_ATTRIB_COL0][3] = oneOverArea * (eMaj.dx * eBot_da - eMaj_da * eBot.dx);
20486 span.alphaStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))));
20491 span.interpMask |= 0x04;
20492 span.attrStepX[FRAG_ATTRIB_COL0][0] = span.attrStepY[FRAG_ATTRIB_COL0][0] = 0.0F;
20493 span.attrStepX[FRAG_ATTRIB_COL0][1] = span.attrStepY[FRAG_ATTRIB_COL0][1] = 0.0F;
20494 span.attrStepX[FRAG_ATTRIB_COL0][2] = span.attrStepY[FRAG_ATTRIB_COL0][2] = 0.0F;
20496 span.greenStep = 0;
20499 span.attrStepX[FRAG_ATTRIB_COL0][3] = span.attrStepY[FRAG_ATTRIB_COL0][3] = 0.0F;
20500 span.alphaStep = 0;
20503 # 412 "swrast/s_tritemp.h"
20506 const GLfloat wMax = vMax->attrib[FRAG_ATTRIB_WPOS][3];
20507 const GLfloat wMin = vMin->attrib[FRAG_ATTRIB_WPOS][3];
20508 const GLfloat wMid = vMid->attrib[FRAG_ATTRIB_WPOS][3];
20510 const GLfloat eMaj_dw = wMax - wMin;
20511 const GLfloat eBot_dw = wMid - wMin;
20512 span.attrStepX[FRAG_ATTRIB_WPOS][3] = oneOverArea * (eMaj_dw * eBot.dy - eMaj.dy * eBot_dw);
20513 span.attrStepY[FRAG_ATTRIB_WPOS][3] = oneOverArea * (eMaj.dx * eBot_dw - eMaj_dw * eBot.dx);
20515 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20516 if (swrast->_InterpMode[attr] == 0x1D00) {
20517 do { span.attrStepX[attr][0] = 0.0; span.attrStepX[attr][1] = 0.0; span.attrStepX[attr][2] = 0.0; span.attrStepX[attr][3] = 0.0; } while(0);
20518 do { span.attrStepY[attr][0] = 0.0; span.attrStepY[attr][1] = 0.0; span.attrStepY[attr][2] = 0.0; span.attrStepY[attr][3] = 0.0; } while(0);
20522 for (c = 0; c < 4; c++) {
20523 GLfloat eMaj_da = vMax->attrib[attr][c] * wMax - vMin->attrib[attr][c] * wMin;
20524 GLfloat eBot_da = vMid->attrib[attr][c] * wMid - vMin->attrib[attr][c] * wMin;
20525 span.attrStepX[attr][c] = oneOverArea * (eMaj_da * eBot.dy - eMaj.dy * eBot_da);
20526 span.attrStepY[attr][c] = oneOverArea * (eMaj.dx * eBot_da - eMaj_da * eBot.dx);
20531 # 488 "swrast/s_tritemp.h"
20534 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
20535 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
20536 GLfixed fError = 0, fdError = 0;
20537 # 504 "swrast/s_tritemp.h"
20539 GLfixed fdzOuter = 0, fdzInner;
20542 GLint rLeft = 0, fdrOuter = 0, fdrInner;
20543 GLint gLeft = 0, fdgOuter = 0, fdgInner;
20544 GLint bLeft = 0, fdbOuter = 0, fdbInner;
20547 GLint aLeft = 0, fdaOuter = 0, fdaInner;
20554 GLfloat wLeft = 0, dwOuter = 0, dwInner;
20555 GLfloat attrLeft[FRAG_ATTRIB_MAX][4];
20556 GLfloat daOuter[FRAG_ATTRIB_MAX][4], daInner[FRAG_ATTRIB_MAX][4];
20559 for (subTriangle=0; subTriangle<=1; subTriangle++) {
20560 EdgeT *eLeft, *eRight;
20561 int setupLeft, setupRight;
20564 if (subTriangle==0) {
20566 if (scan_from_left_to_right) {
20569 lines = eRight->lines;
20576 lines = eLeft->lines;
20583 if (scan_from_left_to_right) {
20586 lines = eRight->lines;
20593 lines = eLeft->lines;
20601 if (setupLeft && eLeft->lines > 0) {
20602 const SWvertex *vLower = eLeft->v0;
20603 const GLfixed fsy = eLeft->fsy;
20604 const GLfixed fsx = eLeft->fsx;
20605 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
20606 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
20607 const GLfixed adjy = (GLfixed) eLeft->adjy;
20612 fError = fx - fsx - (1 << 11);
20613 fxLeftEdge = fsx - 1;
20614 fdxLeftEdge = eLeft->fdxdy;
20615 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
20616 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
20617 idxOuter = ((fdxOuter) >> 11);
20618 dxOuter = (GLfloat) idxOuter;
20619 span.y = ((fsy) >> 11);
20626 # 611 "swrast/s_tritemp.h"
20628 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
20629 if (depthBits <= 16) {
20631 GLfloat tmp = (z0 * ((float) (1 << 11))
20632 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
20633 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
20634 if (tmp < 0xffffffff / 2)
20635 zLeft = (GLfixed) tmp;
20637 zLeft = 0xffffffff / 2;
20638 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
20643 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
20644 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
20645 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
20646 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
20656 if (ctx->Light.ShadeModel == 0x1D01) {
20657 rLeft = (GLint)(((vLower->color[0]) << 11)
20658 + span.attrStepX[FRAG_ATTRIB_COL0][0] * adjx
20659 + span.attrStepY[FRAG_ATTRIB_COL0][0] * adjy) + (1 << (11 -1));
20660 gLeft = (GLint)(((vLower->color[1]) << 11)
20661 + span.attrStepX[FRAG_ATTRIB_COL0][1] * adjx
20662 + span.attrStepY[FRAG_ATTRIB_COL0][1] * adjy) + (1 << (11 -1));
20663 bLeft = (GLint)(((vLower->color[2]) << 11)
20664 + span.attrStepX[FRAG_ATTRIB_COL0][2] * adjx
20665 + span.attrStepY[FRAG_ATTRIB_COL0][2] * adjy) + (1 << (11 -1));
20666 fdrOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][0] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][0]) * ((float) (1 << 11))) - 0.5F))))
20668 fdgOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][1] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][1]) * ((float) (1 << 11))) - 0.5F))))
20670 fdbOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][2]) * ((float) (1 << 11))) - 0.5F))))
20673 aLeft = (GLint)(((vLower->color[3]) << 11)
20674 + span.attrStepX[FRAG_ATTRIB_COL0][3] * adjx
20675 + span.attrStepY[FRAG_ATTRIB_COL0][3] * adjy) + (1 << (11 -1));
20676 fdaOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_COL0][3] + dxOuter * span.attrStepX[FRAG_ATTRIB_COL0][3]) * ((float) (1 << 11))) - 0.5F))))
20682 rLeft = ((v2->color[0]) << 11);
20683 gLeft = ((v2->color[1]) << 11);
20684 bLeft = ((v2->color[2]) << 11);
20685 fdrOuter = fdgOuter = fdbOuter = 0;
20687 aLeft = ((v2->color[3]) << 11);
20691 # 695 "swrast/s_tritemp.h"
20693 const GLuint attr = FRAG_ATTRIB_WPOS;
20694 wLeft = vLower->attrib[FRAG_ATTRIB_WPOS][3]
20695 + (span.attrStepX[attr][3] * adjx
20696 + span.attrStepY[attr][3] * adjy) * (1.0F/((float) (1 << 11)));
20697 dwOuter = span.attrStepY[attr][3] + dxOuter * span.attrStepX[attr][3];
20699 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20700 const GLfloat invW = vLower->attrib[FRAG_ATTRIB_WPOS][3];
20701 if (swrast->_InterpMode[attr] == 0x1D00) {
20703 for (c = 0; c < 4; c++) {
20704 attrLeft[attr][c] = v2->attrib[attr][c] * invW;
20705 daOuter[attr][c] = 0.0;
20710 for (c = 0; c < 4; c++) {
20711 const GLfloat a = vLower->attrib[attr][c] * invW;
20712 attrLeft[attr][c] = a + ( span.attrStepX[attr][c] * adjx
20713 + span.attrStepY[attr][c] * adjy) * (1.0F/((float) (1 << 11)));
20714 daOuter[attr][c] = span.attrStepY[attr][c] + dxOuter * span.attrStepX[attr][c];
20722 if (setupRight && eRight->lines>0) {
20723 fxRightEdge = eRight->fsx - 1;
20724 fdxRightEdge = eRight->fdxdy;
20730 # 743 "swrast/s_tritemp.h"
20731 fdzInner = fdzOuter + span.zStep;
20734 fdrInner = fdrOuter + span.redStep;
20735 fdgInner = fdgOuter + span.greenStep;
20736 fdbInner = fdbOuter + span.blueStep;
20739 fdaInner = fdaOuter + span.alphaStep;
20746 dwInner = dwOuter + span.attrStepX[FRAG_ATTRIB_WPOS][3];
20747 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20749 for (c = 0; c < 4; c++) {
20750 daInner[attr][c] = daOuter[attr][c] + span.attrStepX[attr][c];
20755 while (lines > 0) {
20758 const GLint right = ((fxRightEdge) >> 11);
20759 span.x = ((fxLeftEdge) >> 11);
20760 if (right <= span.x)
20763 span.end = right - span.x;
20770 span.green = gLeft;
20774 span.alpha = aLeft;
20782 span.attrStart[FRAG_ATTRIB_WPOS][3] = wLeft;
20783 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20785 for (c = 0; c < 4; c++) {
20786 span.attrStart[attr][c] = attrLeft[attr][c];
20795 if (span.end > 0 && span.y >= 0) {
20796 const GLint len = span.end - 1;
20799 do { GLfixed endVal = span.red + (len) * span.redStep; if (endVal < 0) { span.red -= endVal; } if (span.red < 0) { span.red = 0; } } while (0);
20800 do { GLfixed endVal = span.green + (len) * span.greenStep; if (endVal < 0) { span.green -= endVal; } if (span.green < 0) { span.green = 0; } } while (0);
20801 do { GLfixed endVal = span.blue + (len) * span.blueStep; if (endVal < 0) { span.blue -= endVal; } if (span.blue < 0) { span.blue = 0; } } while (0);
20804 do { GLfixed endVal = span.alpha + (len) * span.alphaStep; if (endVal < 0) { span.alpha -= endVal; } if (span.alpha < 0) { span.alpha = 0; } } while (0);
20807 _swrast_write_rgba_span(ctx, &span);;
20820 fxLeftEdge += fdxLeftEdge;
20821 fxRightEdge += fdxRightEdge;
20825 fError -= (1 << 11);
20826 # 846 "swrast/s_tritemp.h"
20843 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20845 for (c = 0; c < 4; c++) {
20846 attrLeft[attr][c] += daOuter[attr][c];
20875 { GLuint a; for (a = 0; a < swrast->_NumActiveAttribs; a++) { const GLuint attr = swrast->_ActiveAttribs[a];
20877 for (c = 0; c < 4; c++) {
20878 attrLeft[attr][c] += daInner[attr][c];
20890 # 860 "swrast/s_triangle.c" 2
20891 # 902 "swrast/s_triangle.c"
20892 # 1 "swrast/s_tritemp.h" 1
20893 # 111 "swrast/s_tritemp.h"
20894 static void occlusion_zless_triangle(struct gl_context *ctx, const SWvertex *v0,
20895 const SWvertex *v1,
20896 const SWvertex *v2 )
20899 const SWvertex *v0, *v1;
20911 const SWcontext *swrast = SWRAST_CONTEXT(ctx);
20913 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits;
20914 const GLint fixedToDepthShift = depthBits <= 16 ? 11 : 0;
20915 const GLfloat maxDepth = ctx->DrawBuffer->_DepthMaxF;
20918 EdgeT eMaj, eTop, eBot;
20919 GLfloat oneOverArea;
20920 const SWvertex *vMin, *vMid, *vMax;
20921 GLfloat bf = SWRAST_CONTEXT(ctx)->_BackfaceSign;
20922 const GLint snapMask = ~(((1 << 11) / (1 << 4)) - 1);
20923 GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
20929 do { (span).primitive = (0x0009); (span).interpMask = 0x0; (span).arrayMask = 0x0; (span).arrayAttribs = 0x0; (span).end = 0; (span).leftClip = 0; (span).facing = 0; (span).array = SWRAST_CONTEXT(ctx)->SpanArrays; } while (0);
20933 (void) fixedToDepthShift;
20934 # 172 "swrast/s_tritemp.h"
20936 const GLfixed fy0 = (((int) ((((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20937 const GLfixed fy1 = (((int) ((((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20938 const GLfixed fy2 = (((int) ((((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) + 0.5F) : (((v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20942 vMin = v0; vMid = v1; vMax = v2;
20943 vMin_fy = fy0; vMid_fy = fy1; vMax_fy = fy2;
20945 else if (fy2 <= fy0) {
20947 vMin = v2; vMid = v0; vMax = v1;
20948 vMin_fy = fy2; vMid_fy = fy0; vMax_fy = fy1;
20952 vMin = v0; vMid = v2; vMax = v1;
20953 vMin_fy = fy0; vMid_fy = fy2; vMax_fy = fy1;
20960 vMin = v1; vMid = v0; vMax = v2;
20961 vMin_fy = fy1; vMid_fy = fy0; vMax_fy = fy2;
20964 else if (fy2 <= fy1) {
20966 vMin = v2; vMid = v1; vMax = v0;
20967 vMin_fy = fy2; vMid_fy = fy1; vMax_fy = fy0;
20972 vMin = v1; vMid = v2; vMax = v0;
20973 vMin_fy = fy1; vMid_fy = fy2; vMax_fy = fy0;
20978 vMin_fx = (((int) ((((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20979 vMid_fx = (((int) ((((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20980 vMax_fx = (((int) ((((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) >= 0.0F) ? (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) + 0.5F) : (((vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) * ((float) (1 << 11))) - 0.5F)))) & snapMask;
20984 eMaj.v0 = vMin; eMaj.v1 = vMax;
20985 eTop.v0 = vMid; eTop.v1 = vMax;
20986 eBot.v0 = vMin; eBot.v1 = vMid;
20989 eMaj.dx = ((vMax_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
20990 eMaj.dy = ((vMax_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
20991 eTop.dx = ((vMax_fx - vMid_fx) * (1.0F / ((float) (1 << 11))));
20992 eTop.dy = ((vMax_fy - vMid_fy) * (1.0F / ((float) (1 << 11))));
20993 eBot.dx = ((vMid_fx - vMin_fx) * (1.0F / ((float) (1 << 11))));
20994 eBot.dy = ((vMid_fy - vMin_fy) * (1.0F / ((float) (1 << 11))));
20998 const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
21000 if (IS_INF_OR_NAN(area) || area == 0.0F)
21003 if (area * bf * swrast->_BackfaceCullSign < 0.0)
21006 oneOverArea = 1.0F / area;
21009 span.facing = oneOverArea * bf > 0.0F;
21014 eMaj.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
21015 eMaj.lines = (((((vMax_fy - eMaj.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
21016 if (eMaj.lines > 0) {
21017 eMaj.dxdy = eMaj.dx / eMaj.dy;
21018 eMaj.fdxdy = (((int) ((((eMaj.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eMaj.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eMaj.dxdy) * ((float) (1 << 11))) - 0.5F))));
21019 eMaj.adjy = (GLfloat) (eMaj.fsy - vMin_fy);
21020 eMaj.fx0 = vMin_fx;
21021 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy);
21027 eTop.fsy = (((vMid_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
21028 eTop.lines = (((((vMax_fy - eTop.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
21029 if (eTop.lines > 0) {
21030 eTop.dxdy = eTop.dx / eTop.dy;
21031 eTop.fdxdy = (((int) ((((eTop.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eTop.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eTop.dxdy) * ((float) (1 << 11))) - 0.5F))));
21032 eTop.adjy = (GLfloat) (eTop.fsy - vMid_fy);
21033 eTop.fx0 = vMid_fx;
21034 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy);
21037 eBot.fsy = (((vMin_fy) + (1 << 11) - 1) & (~((1 << 11) - 1)));
21038 eBot.lines = (((((vMid_fy - eBot.fsy) + (1 << 11) - 1) & (~((1 << 11) - 1)))) >> 11);
21039 if (eBot.lines > 0) {
21040 eBot.dxdy = eBot.dx / eBot.dy;
21041 eBot.fdxdy = (((int) ((((eBot.dxdy) * ((float) (1 << 11))) >= 0.0F) ? (((eBot.dxdy) * ((float) (1 << 11))) + 0.5F) : (((eBot.dxdy) * ((float) (1 << 11))) - 0.5F))));
21042 eBot.adjy = (GLfloat) (eBot.fsy - vMin_fy);
21043 eBot.fx0 = vMin_fx;
21044 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy);
21047 # 319 "swrast/s_tritemp.h"
21049 GLint scan_from_left_to_right;
21055 struct gl_renderbuffer *rb = ctx->DrawBuffer->_DepthBuffer; struct gl_query_object *q = ctx->Query.CurrentOcclusionObject; ; ; ; if (!q) { return; }
21058 scan_from_left_to_right = (oneOverArea < 0.0F);
21063 span.interpMask |= 0x02;
21065 GLfloat eMaj_dz = vMax->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
21066 GLfloat eBot_dz = vMid->attrib[FRAG_ATTRIB_WPOS][2] - vMin->attrib[FRAG_ATTRIB_WPOS][2];
21067 span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz);
21068 if (span.attrStepX[FRAG_ATTRIB_WPOS][2] > maxDepth ||
21069 span.attrStepX[FRAG_ATTRIB_WPOS][2] < -maxDepth) {
21071 span.attrStepX[FRAG_ATTRIB_WPOS][2] = 0.0;
21072 span.attrStepY[FRAG_ATTRIB_WPOS][2] = 0.0;
21075 span.attrStepY[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj.dx * eBot_dz - eMaj_dz * eBot.dx);
21077 if (depthBits <= 16)
21078 span.zStep = (((int) ((((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))));
21080 span.zStep = (GLint) span.attrStepX[FRAG_ATTRIB_WPOS][2];
21082 # 488 "swrast/s_tritemp.h"
21085 GLfixed fxLeftEdge = 0, fxRightEdge = 0;
21086 GLfixed fdxLeftEdge = 0, fdxRightEdge = 0;
21087 GLfixed fError = 0, fdError = 0;
21088 # 504 "swrast/s_tritemp.h"
21090 GLfixed fdzOuter = 0, fdzInner;
21091 # 525 "swrast/s_tritemp.h"
21092 for (subTriangle=0; subTriangle<=1; subTriangle++) {
21093 EdgeT *eLeft, *eRight;
21094 int setupLeft, setupRight;
21097 if (subTriangle==0) {
21099 if (scan_from_left_to_right) {
21102 lines = eRight->lines;
21109 lines = eLeft->lines;
21116 if (scan_from_left_to_right) {
21119 lines = eRight->lines;
21126 lines = eLeft->lines;
21134 if (setupLeft && eLeft->lines > 0) {
21135 const SWvertex *vLower = eLeft->v0;
21136 const GLfixed fsy = eLeft->fsy;
21137 const GLfixed fsx = eLeft->fsx;
21138 const GLfixed fx = (((fsx) + (1 << 11) - 1) & (~((1 << 11) - 1)));
21139 const GLfixed adjx = (GLfixed) (fx - eLeft->fx0);
21140 const GLfixed adjy = (GLfixed) eLeft->adjy;
21145 fError = fx - fsx - (1 << 11);
21146 fxLeftEdge = fsx - 1;
21147 fdxLeftEdge = eLeft->fdxdy;
21148 fdxOuter = ((fdxLeftEdge - 1) & (~((1 << 11) - 1)));
21149 fdError = fdxOuter - fdxLeftEdge + (1 << 11);
21150 idxOuter = ((fdxOuter) >> 11);
21151 dxOuter = (GLfloat) idxOuter;
21152 span.y = ((fsy) >> 11);
21159 # 611 "swrast/s_tritemp.h"
21161 GLfloat z0 = vLower->attrib[FRAG_ATTRIB_WPOS][2];
21162 if (depthBits <= 16) {
21164 GLfloat tmp = (z0 * ((float) (1 << 11))
21165 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * adjx
21166 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * adjy) + (1 << (11 -1));
21167 if (tmp < 0xffffffff / 2)
21168 zLeft = (GLfixed) tmp;
21170 zLeft = 0xffffffff / 2;
21171 fdzOuter = (((int) ((((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) >= 0.0F) ? (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) + 0.5F) : (((span.attrStepY[FRAG_ATTRIB_WPOS][2] + dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]) * ((float) (1 << 11))) - 0.5F))))
21176 zLeft = (GLuint) (z0 + span.attrStepX[FRAG_ATTRIB_WPOS][2] * ((adjx) * (1.0F / ((float) (1 << 11))))
21177 + span.attrStepY[FRAG_ATTRIB_WPOS][2] * ((adjy) * (1.0F / ((float) (1 << 11)))));
21178 fdzOuter = (GLint) (span.attrStepY[FRAG_ATTRIB_WPOS][2] +
21179 dxOuter * span.attrStepX[FRAG_ATTRIB_WPOS][2]);
21187 # 722 "swrast/s_tritemp.h"
21191 if (setupRight && eRight->lines>0) {
21192 fxRightEdge = eRight->fsx - 1;
21193 fdxRightEdge = eRight->fdxdy;
21199 # 743 "swrast/s_tritemp.h"
21200 fdzInner = fdzOuter + span.zStep;
21201 # 767 "swrast/s_tritemp.h"
21202 while (lines > 0) {
21205 const GLint right = ((fxRightEdge) >> 11);
21206 span.x = ((fxLeftEdge) >> 11);
21207 if (right <= span.x)
21210 span.end = right - span.x;
21214 # 807 "swrast/s_tritemp.h"
21215 if (span.end > 0 && span.y >= 0) {
21216 const GLint len = span.end - 1;
21218 # 818 "swrast/s_tritemp.h"
21220 if (rb->Format == MESA_FORMAT_Z16) { GLuint i; const GLushort *zRow = (const GLushort *) rb->GetPointer(ctx, rb, span.x, span.y); for (i = 0; i < span.end; i++) { GLuint z = ((span.z) >> fixedToDepthShift); if (z < zRow[i]) { q->Result++; } span.z += span.zStep; } } else { GLuint i; const GLuint *zRow = (const GLuint *) rb->GetPointer(ctx, rb, span.x, span.y); for (i = 0; i < span.end; i++) { if ((GLuint)span.z < zRow[i]) { q->Result++; } span.z += span.zStep; } };
21233 fxLeftEdge += fdxLeftEdge;
21234 fxRightEdge += fdxRightEdge;
21238 fError -= (1 << 11);
21239 # 846 "swrast/s_tritemp.h"
21241 # 869 "swrast/s_tritemp.h"
21252 # 901 "swrast/s_tritemp.h"
21261 # 903 "swrast/s_triangle.c" 2
21266 nodraw_triangle( struct gl_context *ctx,
21267 const SWvertex *v0,
21268 const SWvertex *v1,
21269 const SWvertex *v2 )
21271 (void) (ctx && v0 && v1 && v2);
21273 # 922 "swrast/s_triangle.c"
21275 _swrast_add_spec_terms_triangle(struct gl_context *ctx, const SWvertex *v0,
21276 const SWvertex *v1, const SWvertex *v2)
21278 SWvertex *ncv0 = (SWvertex *)v0;
21279 SWvertex *ncv1 = (SWvertex *)v1;
21280 SWvertex *ncv2 = (SWvertex *)v2;
21281 GLfloat rSum, gSum, bSum;
21282 GLchan cSave[3][4];
21285 do { (cSave[0])[0] = (ncv0->color)[0]; (cSave[0])[1] = (ncv0->color)[1]; (cSave[0])[2] = (ncv0->color)[2]; (cSave[0])[3] = (ncv0->color)[3]; } while (0);
21286 do { (cSave[1])[0] = (ncv1->color)[0]; (cSave[1])[1] = (ncv1->color)[1]; (cSave[1])[2] = (ncv1->color)[2]; (cSave[1])[3] = (ncv1->color)[3]; } while (0);
21287 do { (cSave[2])[0] = (ncv2->color)[0]; (cSave[2])[1] = (ncv2->color)[1]; (cSave[2])[2] = (ncv2->color)[2]; (cSave[2])[3] = (ncv2->color)[3]; } while (0);
21289 rSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv0->color[0])] + ncv0->attrib[FRAG_ATTRIB_COL1][0];
21290 gSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv0->color[1])] + ncv0->attrib[FRAG_ATTRIB_COL1][1];
21291 bSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv0->color[2])] + ncv0->attrib[FRAG_ATTRIB_COL1][2];
21292 do { fi_type __tmp; __tmp.f = (rSum); if (__tmp.i < 0) ncv0->color[0] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv0->color[0] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv0->color[0] = (GLubyte) __tmp.i; } } while (0);
21293 do { fi_type __tmp; __tmp.f = (gSum); if (__tmp.i < 0) ncv0->color[1] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv0->color[1] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv0->color[1] = (GLubyte) __tmp.i; } } while (0);
21294 do { fi_type __tmp; __tmp.f = (bSum); if (__tmp.i < 0) ncv0->color[2] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv0->color[2] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv0->color[2] = (GLubyte) __tmp.i; } } while (0);
21296 rSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv1->color[0])] + ncv1->attrib[FRAG_ATTRIB_COL1][0];
21297 gSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv1->color[1])] + ncv1->attrib[FRAG_ATTRIB_COL1][1];
21298 bSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv1->color[2])] + ncv1->attrib[FRAG_ATTRIB_COL1][2];
21299 do { fi_type __tmp; __tmp.f = (rSum); if (__tmp.i < 0) ncv1->color[0] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv1->color[0] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv1->color[0] = (GLubyte) __tmp.i; } } while (0);
21300 do { fi_type __tmp; __tmp.f = (gSum); if (__tmp.i < 0) ncv1->color[1] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv1->color[1] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv1->color[1] = (GLubyte) __tmp.i; } } while (0);
21301 do { fi_type __tmp; __tmp.f = (bSum); if (__tmp.i < 0) ncv1->color[2] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv1->color[2] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv1->color[2] = (GLubyte) __tmp.i; } } while (0);
21303 rSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv2->color[0])] + ncv2->attrib[FRAG_ATTRIB_COL1][0];
21304 gSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv2->color[1])] + ncv2->attrib[FRAG_ATTRIB_COL1][1];
21305 bSum = _mesa_ubyte_to_float_color_tab[(unsigned int)(ncv2->color[2])] + ncv2->attrib[FRAG_ATTRIB_COL1][2];
21306 do { fi_type __tmp; __tmp.f = (rSum); if (__tmp.i < 0) ncv2->color[0] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv2->color[0] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv2->color[0] = (GLubyte) __tmp.i; } } while (0);
21307 do { fi_type __tmp; __tmp.f = (gSum); if (__tmp.i < 0) ncv2->color[1] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv2->color[1] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv2->color[1] = (GLubyte) __tmp.i; } } while (0);
21308 do { fi_type __tmp; __tmp.f = (bSum); if (__tmp.i < 0) ncv2->color[2] = (GLubyte) 0; else if (__tmp.i >= 0x3f7f0000) ncv2->color[2] = (GLubyte) 255; else { __tmp.f = __tmp.f * (255.0F/256.0F) + 32768.0F; ncv2->color[2] = (GLubyte) __tmp.i; } } while (0);
21310 SWRAST_CONTEXT(ctx)->SpecTriangle( ctx, ncv0, ncv1, ncv2 );
21312 do { (ncv0->color)[0] = (cSave[0])[0]; (ncv0->color)[1] = (cSave[0])[1]; (ncv0->color)[2] = (cSave[0])[2]; (ncv0->color)[3] = (cSave[0])[3]; } while (0);
21313 do { (ncv1->color)[0] = (cSave[1])[0]; (ncv1->color)[1] = (cSave[1])[1]; (ncv1->color)[2] = (cSave[1])[2]; (ncv1->color)[3] = (cSave[1])[3]; } while (0);
21314 do { (ncv2->color)[0] = (cSave[2])[0]; (ncv2->color)[1] = (cSave[2])[1]; (ncv2->color)[2] = (cSave[2])[2]; (ncv2->color)[3] = (cSave[2])[3]; } while (0);
21316 # 995 "swrast/s_triangle.c"
21318 _swrast_choose_triangle( struct gl_context *ctx )
21320 SWcontext *swrast = SWRAST_CONTEXT(ctx);
21322 if (ctx->Polygon.CullFlag &&
21323 ctx->Polygon.CullFaceMode == 0x0408) {
21324 swrast->Triangle = nodraw_triangle;;
21328 if (ctx->RenderMode==0x1C00) {
21330 if (ctx->Polygon.SmoothFlag) {
21331 _swrast_set_aa_triangle_function(ctx);
21337 if (ctx->Query.CurrentOcclusionObject &&
21339 ctx->Depth.Mask == 0x0 &&
21340 ctx->Depth.Func == 0x0201 &&
21341 !ctx->Stencil._Enabled) {
21342 if (ctx->Color.ColorMask[0][0] == 0 &&
21343 ctx->Color.ColorMask[0][1] == 0 &&
21344 ctx->Color.ColorMask[0][2] == 0 &&
21345 ctx->Color.ColorMask[0][3] == 0) {
21346 swrast->Triangle = occlusion_zless_triangle;;
21355 if (ctx->Texture._EnabledCoordUnits ||
21356 ctx->FragmentProgram._Current ||
21357 ctx->ATIFragmentShader._Enabled ||
21358 _mesa_need_secondary_color(ctx) ||
21359 swrast->_FogEnabled) {
21361 const struct gl_texture_object *texObj2D;
21362 const struct gl_texture_image *texImg;
21363 GLenum minFilter, magFilter, envMode;
21365 texObj2D = ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX];
21367 texImg = texObj2D ? texObj2D->Image[0][texObj2D->BaseLevel] : ((void *)0);
21368 format = texImg ? texImg->TexFormat : MESA_FORMAT_NONE;
21369 minFilter = texObj2D ? texObj2D->Sampler.MinFilter : 0x0;
21370 magFilter = texObj2D ? texObj2D->Sampler.MagFilter : 0x0;
21371 envMode = ctx->Texture.Unit[0].EnvMode;
21374 if (ctx->Texture._EnabledCoordUnits == 0x1
21375 && !ctx->FragmentProgram._Current
21376 && !ctx->ATIFragmentShader._Enabled
21377 && ctx->Texture._EnabledUnits == 0x1
21378 && ctx->Texture.Unit[0]._ReallyEnabled == (1 << TEXTURE_2D_INDEX)
21379 && texObj2D->Sampler.WrapS == 0x2901
21380 && texObj2D->Sampler.WrapT == 0x2901
21381 && texObj2D->_Swizzle == (((0)<<0) | ((1)<<3) | ((2)<<6) | ((3)<<9))
21382 && texImg->_IsPowerOfTwo
21383 && texImg->Border == 0
21384 && texImg->Width == texImg->RowStride
21385 && (format == MESA_FORMAT_RGB888 || format == MESA_FORMAT_RGBA8888)
21386 && minFilter == magFilter
21387 && ctx->Light.Model.ColorControl == 0x81F9
21388 && !swrast->_FogEnabled
21389 && ctx->Texture.Unit[0].EnvMode != 0x8570
21390 && ctx->Texture.Unit[0].EnvMode != 0x8503) {
21391 if (ctx->Hint.PerspectiveCorrection==0x1101) {
21392 if (minFilter == 0x2600
21393 && format == MESA_FORMAT_RGB888
21394 && (envMode == 0x1E01 || envMode == 0x2101)
21395 && ((swrast->_RasterMask == (0x004 | 0x1000)
21396 && ctx->Depth.Func == 0x0201
21397 && ctx->Depth.Mask == 0x1)
21398 || swrast->_RasterMask == 0x1000)
21399 && ctx->Polygon.StippleFlag == 0x0
21400 && ctx->DrawBuffer->Visual.depthBits <= 16) {
21401 if (swrast->_RasterMask == (0x004 | 0x1000)) {
21402 swrast->Triangle = simple_z_textured_triangle;;
21405 swrast->Triangle = simple_textured_triangle;;
21412 if (format == MESA_FORMAT_RGBA8888 && !_mesa_little_endian()) {
21416 swrast->Triangle = general_triangle;;
21419 swrast->Triangle = affine_textured_triangle;;
21428 swrast->Triangle = persp_textured_triangle;;
21434 swrast->Triangle = general_triangle;;
21440 if (ctx->Light.ShadeModel==0x1D01) {
21445 swrast->Triangle = smooth_rgba_triangle;;
21453 swrast->Triangle = flat_rgba_triangle;;
21458 else if (ctx->RenderMode==0x1C01) {
21459 swrast->Triangle = _swrast_feedback_triangle;;
21463 swrast->Triangle = _swrast_select_triangle;;