3 * Device driver interfaces.
7 * Mesa 3-D graphics library
10 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 /* THIS FILE ONLY INCLUDED BY mtypes.h !!!!! */
38 struct gl_buffer_object
;
40 struct gl_display_list
;
41 struct gl_framebuffer
;
42 struct gl_pixelstore_attrib
;
44 struct gl_renderbuffer
;
45 struct gl_renderbuffer_attachment
;
47 struct gl_shader_program
;
48 struct gl_texture_image
;
49 struct gl_texture_object
;
51 /* GL_ARB_vertex_buffer_object */
52 /* Modifies GL_MAP_UNSYNCHRONIZED_BIT to allow driver to fail (return
53 * NULL) if buffer is unavailable for immediate mapping.
55 * Does GL_MAP_INVALIDATE_RANGE_BIT do this? It seems so, but it
56 * would require more book-keeping in the driver than seems necessary
59 * Does GL_MAP_INVALDIATE_BUFFER_BIT do this? Not really -- we don't
60 * want to provoke the driver to throw away the old storage, we will
61 * respect the contents of already referenced data.
63 #define MESA_MAP_NOWAIT_BIT 0x0040
67 * Device driver function table.
68 * Core Mesa uses these function pointers to call into device drivers.
69 * Most of these functions directly correspond to OpenGL state commands.
70 * Core Mesa will call these functions after error checking has been done
71 * so that the drivers don't have to worry about error testing.
73 * Vertex transformation/clipping/lighting is patched into the T&L module.
74 * Rasterization functions are patched into the swrast module.
76 * Note: when new functions are added here, the drivers/common/driverfuncs.c
77 * file should be updated too!!!
79 struct dd_function_table
{
81 * Return a string as needed by glGetString().
82 * Only the GL_RENDERER query must be implemented. Otherwise, NULL can be
85 const GLubyte
* (*GetString
)( struct gl_context
*ctx
, GLenum name
);
88 * Notify the driver after Mesa has made some internal state changes.
90 * This is in addition to any state change callbacks Mesa may already have
93 void (*UpdateState
)( struct gl_context
*ctx
, GLbitfield new_state
);
96 * Get the width and height of the named buffer/window.
98 * Mesa uses this to determine when the driver's window size has changed.
99 * XXX OBSOLETE: this function will be removed in the future.
101 void (*GetBufferSize
)( struct gl_framebuffer
*buffer
,
102 GLuint
*width
, GLuint
*height
);
105 * Resize the given framebuffer to the given size.
106 * XXX OBSOLETE: this function will be removed in the future.
108 void (*ResizeBuffers
)( struct gl_context
*ctx
, struct gl_framebuffer
*fb
,
109 GLuint width
, GLuint height
);
112 * This is called whenever glFinish() is called.
114 void (*Finish
)( struct gl_context
*ctx
);
117 * This is called whenever glFlush() is called.
119 void (*Flush
)( struct gl_context
*ctx
);
122 * Clear the color/depth/stencil/accum buffer(s).
123 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
124 * renderbuffers need to be cleared.
126 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
129 * Execute glAccum command.
131 void (*Accum
)( struct gl_context
*ctx
, GLenum op
, GLfloat value
);
135 * Execute glRasterPos, updating the ctx->Current.Raster fields
137 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
140 * \name Image-related functions
145 * Called by glDrawPixels().
146 * \p unpack describes how to unpack the source image data.
148 void (*DrawPixels
)( struct gl_context
*ctx
,
149 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
150 GLenum format
, GLenum type
,
151 const struct gl_pixelstore_attrib
*unpack
,
152 const GLvoid
*pixels
);
155 * Called by glReadPixels().
157 void (*ReadPixels
)( struct gl_context
*ctx
,
158 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
159 GLenum format
, GLenum type
,
160 const struct gl_pixelstore_attrib
*unpack
,
164 * Called by glCopyPixels().
166 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
167 GLsizei width
, GLsizei height
,
168 GLint dstx
, GLint dsty
, GLenum type
);
171 * Called by glBitmap().
173 void (*Bitmap
)( struct gl_context
*ctx
,
174 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
175 const struct gl_pixelstore_attrib
*unpack
,
176 const GLubyte
*bitmap
);
181 * \name Texture image functions
186 * Choose actual hardware texture format given the texture target, the
187 * user-provided source image format and type and the desired internal
188 * format. In some cases, srcFormat and srcType can be GL_NONE.
189 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
190 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
191 * Called by glTexImage(), etc.
193 gl_format (*ChooseTextureFormat
)( struct gl_context
*ctx
,
194 GLenum target
, GLint internalFormat
,
195 GLenum srcFormat
, GLenum srcType
);
198 * Determine sample counts support for a particular format
200 * \param ctx GL context
201 * \param internalFormat GL format enum
202 * \param samples Buffer to hold the returned sample counts.
203 * Drivers \b must \b not return more than 16 counts.
206 * The number of sample counts actually written to \c samples. If
207 * \c internaFormat is not renderable, zero is returned.
209 size_t (*QuerySamplesForFormat
)(struct gl_context
*ctx
,
210 GLenum internalFormat
,
214 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
215 * Allocate texture memory and copy the user's image to the buffer.
216 * The gl_texture_image fields, etc. will be fully initialized.
217 * The parameters are the same as glTexImage3D(), plus:
218 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
219 * \param packing describes how to unpack the source data.
220 * \param texImage is the destination texture image.
222 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
223 struct gl_texture_image
*texImage
,
224 GLenum format
, GLenum type
, const GLvoid
*pixels
,
225 const struct gl_pixelstore_attrib
*packing
);
228 * Called by glTexSubImage[123]D().
229 * Replace a subset of the target texture with new texel data.
231 void (*TexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
232 struct gl_texture_image
*texImage
,
233 GLint xoffset
, GLint yoffset
, GLint zoffset
,
234 GLsizei width
, GLsizei height
, GLint depth
,
235 GLenum format
, GLenum type
,
236 const GLvoid
*pixels
,
237 const struct gl_pixelstore_attrib
*packing
);
241 * Called by glGetTexImage().
243 void (*GetTexImage
)( struct gl_context
*ctx
,
244 GLenum format
, GLenum type
, GLvoid
*pixels
,
245 struct gl_texture_image
*texImage
);
248 * Called by glCopyTex[Sub]Image[123]D().
250 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
251 struct gl_texture_image
*texImage
,
252 GLint xoffset
, GLint yoffset
, GLint zoffset
,
253 struct gl_renderbuffer
*rb
,
255 GLsizei width
, GLsizei height
);
258 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
260 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
261 struct gl_texture_object
*texObj
);
264 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
265 * and glTexStorage to check if the dimensions of the texture image
267 * \param target any GL_PROXY_TEXTURE_x target
268 * \return GL_TRUE if the image is OK, GL_FALSE if too large
270 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
271 GLint level
, gl_format format
,
272 GLint width
, GLint height
,
273 GLint depth
, GLint border
);
278 * \name Compressed texture functions
283 * Called by glCompressedTexImage[123]D().
285 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
286 struct gl_texture_image
*texImage
,
287 GLsizei imageSize
, const GLvoid
*data
);
290 * Called by glCompressedTexSubImage[123]D().
292 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
293 struct gl_texture_image
*texImage
,
294 GLint xoffset
, GLint yoffset
, GLint zoffset
,
295 GLsizei width
, GLint height
, GLint depth
,
297 GLsizei imageSize
, const GLvoid
*data
);
300 * Called by glGetCompressedTexImage.
302 void (*GetCompressedTexImage
)(struct gl_context
*ctx
,
303 struct gl_texture_image
*texImage
,
308 * \name Texture object / image functions
313 * Called by glBindTexture().
315 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
316 struct gl_texture_object
*tObj
);
319 * Called to allocate a new texture object. Drivers will usually
320 * allocate/return a subclass of gl_texture_object.
322 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
323 GLuint name
, GLenum target
);
325 * Called to delete/free a texture object. Drivers should free the
326 * object and any image data it contains.
328 void (*DeleteTexture
)(struct gl_context
*ctx
,
329 struct gl_texture_object
*texObj
);
331 /** Called to allocate a new texture image object. */
332 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
334 /** Called to free a texture image object returned by NewTextureImage() */
335 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
336 struct gl_texture_image
*);
338 /** Called to allocate memory for a single texture image */
339 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
340 struct gl_texture_image
*texImage
);
342 /** Free the memory for a single texture image */
343 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
344 struct gl_texture_image
*texImage
);
346 /** Map a slice of a texture image into user space.
347 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
348 * indicates the 1D array index.
349 * \param texImage the texture image
350 * \param slice the 3D image slice or array texture slice
351 * \param x, y, w, h region of interest
352 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
353 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
354 * \param mapOut returns start of mapping of region of interest
355 * \param rowStrideOut returns row stride (in bytes)
357 void (*MapTextureImage
)(struct gl_context
*ctx
,
358 struct gl_texture_image
*texImage
,
360 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
362 GLubyte
**mapOut
, GLint
*rowStrideOut
);
364 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
365 struct gl_texture_image
*texImage
,
368 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
369 * All the gl_texture_images in the texture object will have their
370 * dimensions, format, etc. initialized already.
372 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
373 struct gl_texture_object
*texObj
,
374 GLsizei levels
, GLsizei width
,
375 GLsizei height
, GLsizei depth
);
378 * Map a renderbuffer into user space.
379 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
380 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
382 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
383 struct gl_renderbuffer
*rb
,
384 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
386 GLubyte
**mapOut
, GLint
*rowStrideOut
);
388 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
389 struct gl_renderbuffer
*rb
);
395 * \name Vertex/fragment program functions
398 /** Bind a vertex/fragment program */
399 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
, struct gl_program
*prog
);
400 /** Allocate a new program */
401 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
, GLuint id
);
402 /** Delete a program */
403 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
405 * Notify driver that a program string (and GPU code) has been specified
406 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
407 * supported by the driver.
409 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
410 struct gl_program
*prog
);
413 * Notify driver that the sampler uniforms for the current program have
414 * changed. On some drivers, this may require shader recompiles.
416 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
417 struct gl_program
*prog
);
419 /** Query if program can be loaded onto hardware */
420 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
421 struct gl_program
*prog
);
426 * \name GLSL shader/program functions.
430 * Called when a shader program is linked.
432 * This gives drivers an opportunity to clone the IR and make their
433 * own transformations on it for the purposes of code generation.
435 GLboolean (*LinkShader
)(struct gl_context
*ctx
, struct gl_shader_program
*shader
);
439 * \name State-changing functions.
441 * \note drawing functions are above.
443 * These functions are called by their corresponding OpenGL API functions.
444 * They are \e also called by the gl_PopAttrib() function!!!
445 * May add more functions like these to the device driver in the future.
448 /** Specify the alpha test function */
449 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
450 /** Set the blend color */
451 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
452 /** Set the blend equation */
453 void (*BlendEquationSeparate
)(struct gl_context
*ctx
, GLenum modeRGB
, GLenum modeA
);
454 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
455 GLenum modeRGB
, GLenum modeA
);
456 /** Specify pixel arithmetic */
457 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
458 GLenum sfactorRGB
, GLenum dfactorRGB
,
459 GLenum sfactorA
, GLenum dfactorA
);
460 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
461 GLenum sfactorRGB
, GLenum dfactorRGB
,
462 GLenum sfactorA
, GLenum dfactorA
);
463 /** Specify a plane against which all geometry is clipped */
464 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*equation
);
465 /** Enable and disable writing of frame buffer color components */
466 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
467 GLboolean bmask
, GLboolean amask
);
468 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
469 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
470 /** Cause a material color to track the current color */
471 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
472 /** Specify whether front- or back-facing facets can be culled */
473 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
474 /** Define front- and back-facing polygons */
475 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
476 /** Specify the value used for depth buffer comparisons */
477 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
478 /** Enable or disable writing into the depth buffer */
479 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
480 /** Specify mapping of depth values from NDC to window coordinates */
481 void (*DepthRange
)(struct gl_context
*ctx
, GLclampd nearval
, GLclampd farval
);
482 /** Specify the current buffer for writing */
483 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
484 /** Specify the buffers for writing for fragment programs*/
485 void (*DrawBuffers
)( struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
486 /** Enable or disable server-side gl capabilities */
487 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
488 /** Specify fog parameters */
489 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
490 /** Specify implementation-specific hints */
491 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
492 /** Set light source parameters.
493 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
494 * been transformed to eye-space.
496 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
497 GLenum pname
, const GLfloat
*params
);
498 /** Set the lighting model parameters */
499 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
500 /** Specify the line stipple pattern */
501 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
502 /** Specify the width of rasterized lines */
503 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
504 /** Specify a logical pixel operation for color index rendering */
505 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
506 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
507 const GLfloat
*params
);
508 /** Specify the diameter of rasterized points */
509 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
510 /** Select a polygon rasterization mode */
511 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
512 /** Set the scale and units used to calculate depth values */
513 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
514 /** Set the polygon stippling pattern */
515 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
516 /* Specifies the current buffer for reading */
517 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
518 /** Set rasterization mode */
519 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
520 /** Define the scissor box */
521 void (*Scissor
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
522 /** Select flat or smooth shading */
523 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
524 /** OpenGL 2.0 two-sided StencilFunc */
525 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
526 GLint ref
, GLuint mask
);
527 /** OpenGL 2.0 two-sided StencilMask */
528 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
529 /** OpenGL 2.0 two-sided StencilOp */
530 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
531 GLenum zfail
, GLenum zpass
);
532 /** Control the generation of texture coordinates */
533 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
534 const GLfloat
*params
);
535 /** Set texture environment parameters */
536 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
537 const GLfloat
*param
);
538 /** Set texture parameters */
539 void (*TexParameter
)(struct gl_context
*ctx
, GLenum target
,
540 struct gl_texture_object
*texObj
,
541 GLenum pname
, const GLfloat
*params
);
542 /** Set the viewport */
543 void (*Viewport
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
548 * \name Vertex/pixel buffer object functions
551 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
552 struct gl_buffer_object
*obj
);
554 struct gl_buffer_object
* (*NewBufferObject
)( struct gl_context
*ctx
, GLuint buffer
,
557 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
559 GLboolean (*BufferData
)( struct gl_context
*ctx
, GLenum target
, GLsizeiptrARB size
,
560 const GLvoid
*data
, GLenum usage
,
561 struct gl_buffer_object
*obj
);
563 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
564 GLsizeiptrARB size
, const GLvoid
*data
,
565 struct gl_buffer_object
*obj
);
567 void (*GetBufferSubData
)( struct gl_context
*ctx
,
568 GLintptrARB offset
, GLsizeiptrARB size
,
569 GLvoid
*data
, struct gl_buffer_object
*obj
);
571 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
572 struct gl_buffer_object
*src
,
573 struct gl_buffer_object
*dst
,
574 GLintptr readOffset
, GLintptr writeOffset
,
577 /* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
579 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
580 GLsizeiptr length
, GLbitfield access
,
581 struct gl_buffer_object
*obj
);
583 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
584 GLintptr offset
, GLsizeiptr length
,
585 struct gl_buffer_object
*obj
);
587 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
588 struct gl_buffer_object
*obj
);
592 * \name Functions for GL_APPLE_object_purgeable
595 /* variations on ObjectPurgeable */
596 GLenum (*BufferObjectPurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
597 GLenum (*RenderObjectPurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
598 GLenum (*TextureObjectPurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
600 /* variations on ObjectUnpurgeable */
601 GLenum (*BufferObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
602 GLenum (*RenderObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
603 GLenum (*TextureObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
607 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
610 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
, GLuint name
);
611 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
, GLuint name
);
612 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
613 struct gl_framebuffer
*drawFb
,
614 struct gl_framebuffer
*readFb
);
615 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
616 struct gl_framebuffer
*fb
,
618 struct gl_renderbuffer
*rb
);
619 void (*RenderTexture
)(struct gl_context
*ctx
,
620 struct gl_framebuffer
*fb
,
621 struct gl_renderbuffer_attachment
*att
);
622 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
623 struct gl_renderbuffer_attachment
*att
);
624 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
625 struct gl_framebuffer
*fb
);
627 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
628 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
629 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
630 GLbitfield mask
, GLenum filter
);
631 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
632 GLenum target
, GLsizei numAttachments
, const GLenum
*attachments
);
635 * \name Query objects
638 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
639 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
640 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
641 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
642 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
643 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
648 * \name Vertex Array objects
651 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
652 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
653 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
657 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
660 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
, GLuint name
, GLenum type
);
661 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
662 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
, GLuint name
);
663 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
664 struct gl_shader_program
*shProg
);
665 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
670 * \name Support for multiple T&L engines
675 * Set by the driver-supplied T&L engine.
677 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
679 GLuint CurrentExecPrimitive
;
682 * Current state of an in-progress compilation.
684 * May take on any of the additional values PRIM_OUTSIDE_BEGIN_END,
685 * PRIM_INSIDE_UNKNOWN_PRIM or PRIM_UNKNOWN defined above.
687 GLuint CurrentSavePrimitive
;
690 #define FLUSH_STORED_VERTICES 0x1
691 #define FLUSH_UPDATE_CURRENT 0x2
693 * Set by the driver-supplied T&L engine whenever vertices are buffered
694 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current is not
697 * The dd_function_table::FlushVertices call below may be used to resolve
701 GLuint SaveNeedFlush
;
704 /* Called prior to any of the GLvertexformat functions being
705 * called. Paired with Driver.FlushVertices().
707 void (*BeginVertices
)( struct gl_context
*ctx
);
710 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
711 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
712 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
713 * __struct gl_contextRec::Current and gl_light_attrib::Material
715 * Note that the default T&L engine never clears the
716 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
718 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
719 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
722 * Give the driver the opportunity to hook in its own vtxfmt for
723 * compiling optimized display lists. This is called on each valid
724 * glBegin() during list compilation.
726 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
729 * Notify driver that the special derived value _NeedEyeCoords has
732 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
735 * Called by glNewList().
737 * Let the T&L component know what is going on with display lists
738 * in time to make changes to dispatch tables, etc.
740 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
742 * Called by glEndList().
744 * \sa dd_function_table::NewList.
746 void (*EndList
)( struct gl_context
*ctx
);
749 * Called by glCallList(s).
751 * Notify the T&L component before and after calling a display list.
753 void (*BeginCallList
)( struct gl_context
*ctx
,
754 struct gl_display_list
*dlist
);
756 * Called by glEndCallList().
758 * \sa dd_function_table::BeginCallList.
760 void (*EndCallList
)( struct gl_context
*ctx
);
765 * \name GL_ARB_sync interfaces
768 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
769 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*, GLenum
, GLbitfield
);
770 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
771 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
772 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
773 GLbitfield
, GLuint64
);
774 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
775 GLbitfield
, GLuint64
);
778 /** GL_NV_conditional_render */
779 void (*BeginConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
781 void (*EndConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
784 * \name GL_OES_draw_texture interface
787 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
788 GLfloat width
, GLfloat height
);
792 * \name GL_OES_EGL_image interface
794 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
795 struct gl_texture_object
*texObj
,
796 struct gl_texture_image
*texImage
,
797 GLeglImageOES image_handle
);
798 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
799 struct gl_renderbuffer
*rb
,
803 * \name GL_EXT_transform_feedback interface
805 struct gl_transform_feedback_object
*
806 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
807 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
808 struct gl_transform_feedback_object
*obj
);
809 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
810 struct gl_transform_feedback_object
*obj
);
811 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
812 struct gl_transform_feedback_object
*obj
);
813 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
814 struct gl_transform_feedback_object
*obj
);
815 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
816 struct gl_transform_feedback_object
*obj
);
819 * \name GL_NV_texture_barrier interface
821 void (*TextureBarrier
)(struct gl_context
*ctx
);
824 * \name GL_ARB_sampler_objects
826 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
828 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
829 struct gl_sampler_object
*samp
);
832 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
833 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
835 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
840 * Transform/Clip/Lighting interface
842 * Drivers present a reduced set of the functions possible in
843 * glBegin()/glEnd() objects. Core mesa provides translation stubs for the
844 * remaining functions to map down to these entry points.
846 * These are the initial values to be installed into dispatch by
847 * mesa. If the T&L driver wants to modify the dispatch table
848 * while installed, it must do so itself. It would be possible for
849 * the vertexformat to install its own initial values for these
850 * functions, but this way there is an obvious list of what is
851 * expected of the driver.
853 * If the driver wants to hook in entry points other than those
854 * listed, it must restore them to their original values in
855 * the disable() callback, below.
862 void (GLAPIENTRYP ArrayElement
)( GLint
);
863 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
864 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
865 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
866 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
867 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
868 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
869 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
870 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
871 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
872 void (GLAPIENTRYP EvalPoint1
)( GLint
);
873 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
874 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
875 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
876 void (GLAPIENTRYP Indexf
)( GLfloat
);
877 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
878 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
879 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
880 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
881 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
882 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
883 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
884 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
885 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
886 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
887 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
888 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
889 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
890 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
891 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
892 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
893 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
894 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
895 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
896 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
897 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
898 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
899 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
900 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
901 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
902 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
903 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
904 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
905 void (GLAPIENTRYP CallList
)( GLuint
);
906 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
907 void (GLAPIENTRYP Begin
)( GLenum
);
908 void (GLAPIENTRYP End
)( void );
909 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
910 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
911 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
912 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
913 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
914 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
915 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
916 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
917 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
918 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
919 /* GL_ARB_vertex_program */
920 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
921 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
922 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
923 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
924 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
925 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
926 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
927 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
929 /* GL_EXT_gpu_shader4 / GL 3.0 */
930 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
931 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
932 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
933 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
934 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
935 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
936 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
938 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
939 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
940 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
941 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
942 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
943 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
944 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
946 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
947 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
948 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
950 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
951 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
953 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
954 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
956 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
957 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
959 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
960 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
962 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
963 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
965 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
966 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
968 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
969 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
970 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
971 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
972 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
973 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
974 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
975 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
977 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
978 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
980 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
981 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
983 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
984 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
986 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
987 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
989 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
990 GLboolean normalized
, GLuint value
);
991 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
992 GLboolean normalized
, GLuint value
);
993 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
994 GLboolean normalized
, GLuint value
);
995 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
996 GLboolean normalized
, GLuint value
);
997 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
998 GLboolean normalized
,
999 const GLuint
*value
);
1000 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1001 GLboolean normalized
,
1002 const GLuint
*value
);
1003 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1004 GLboolean normalized
,
1005 const GLuint
*value
);
1006 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1007 GLboolean normalized
,
1008 const GLuint
*value
);
1012 void (GLAPIENTRYP Rectf
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1018 void (GLAPIENTRYP DrawArrays
)( GLenum mode
, GLint start
, GLsizei count
);
1019 void (GLAPIENTRYP DrawElements
)( GLenum mode
, GLsizei count
, GLenum type
,
1020 const GLvoid
*indices
);
1021 void (GLAPIENTRYP DrawRangeElements
)( GLenum mode
, GLuint start
,
1022 GLuint end
, GLsizei count
,
1023 GLenum type
, const GLvoid
*indices
);
1024 void (GLAPIENTRYP MultiDrawElementsEXT
)( GLenum mode
, const GLsizei
*count
,
1026 const GLvoid
**indices
,
1028 void (GLAPIENTRYP DrawElementsBaseVertex
)( GLenum mode
, GLsizei count
,
1030 const GLvoid
*indices
,
1032 void (GLAPIENTRYP DrawRangeElementsBaseVertex
)( GLenum mode
, GLuint start
,
1033 GLuint end
, GLsizei count
,
1035 const GLvoid
*indices
,
1037 void (GLAPIENTRYP MultiDrawElementsBaseVertex
)( GLenum mode
,
1038 const GLsizei
*count
,
1040 const GLvoid
* const *indices
,
1042 const GLint
*basevertex
);
1043 void (GLAPIENTRYP DrawArraysInstanced
)(GLenum mode
, GLint first
,
1044 GLsizei count
, GLsizei primcount
);
1045 void (GLAPIENTRYP DrawArraysInstancedBaseInstance
)(GLenum mode
, GLint first
,
1046 GLsizei count
, GLsizei primcount
,
1047 GLuint baseinstance
);
1048 void (GLAPIENTRYP DrawElementsInstanced
)(GLenum mode
, GLsizei count
,
1049 GLenum type
, const GLvoid
*indices
,
1051 void (GLAPIENTRYP DrawElementsInstancedBaseInstance
)(GLenum mode
, GLsizei count
,
1052 GLenum type
, const GLvoid
*indices
,
1053 GLsizei primcount
, GLuint baseinstance
);
1054 void (GLAPIENTRYP DrawElementsInstancedBaseVertex
)(GLenum mode
, GLsizei count
,
1055 GLenum type
, const GLvoid
*indices
,
1056 GLsizei primcount
, GLint basevertex
);
1057 void (GLAPIENTRYP DrawElementsInstancedBaseVertexBaseInstance
)(GLenum mode
, GLsizei count
,
1058 GLenum type
, const GLvoid
*indices
,
1059 GLsizei primcount
, GLint basevertex
,
1060 GLuint baseinstance
);
1061 void (GLAPIENTRYP DrawTransformFeedback
)(GLenum mode
, GLuint name
);
1062 void (GLAPIENTRYP DrawTransformFeedbackStream
)(GLenum mode
, GLuint name
,
1064 void (GLAPIENTRYP DrawTransformFeedbackInstanced
)(GLenum mode
, GLuint name
,
1066 void (GLAPIENTRYP DrawTransformFeedbackStreamInstanced
)(GLenum mode
,
1075 * If you don't support eval, fallback to the default vertex format
1076 * on receiving an eval call and use the pipeline mechanism to
1077 * provide partial T&L acceleration.
1079 * Mesa will provide a set of helper functions to do eval within
1080 * accelerated vertex formats, eventually...
1083 void (GLAPIENTRYP EvalMesh1
)( GLenum mode
, GLint i1
, GLint i2
);
1084 void (GLAPIENTRYP EvalMesh2
)( GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
);
1090 #endif /* DD_INCLUDED */