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 * Called whenever an error is generated.
113 * __struct gl_contextRec::ErrorValue contains the error value.
115 void (*Error
)( struct gl_context
*ctx
);
118 * This is called whenever glFinish() is called.
120 void (*Finish
)( struct gl_context
*ctx
);
123 * This is called whenever glFlush() is called.
125 void (*Flush
)( struct gl_context
*ctx
);
128 * Clear the color/depth/stencil/accum buffer(s).
129 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
130 * renderbuffers need to be cleared.
132 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
135 * Execute glAccum command.
137 void (*Accum
)( struct gl_context
*ctx
, GLenum op
, GLfloat value
);
141 * Execute glRasterPos, updating the ctx->Current.Raster fields
143 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
146 * \name Image-related functions
151 * Called by glDrawPixels().
152 * \p unpack describes how to unpack the source image data.
154 void (*DrawPixels
)( struct gl_context
*ctx
,
155 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
156 GLenum format
, GLenum type
,
157 const struct gl_pixelstore_attrib
*unpack
,
158 const GLvoid
*pixels
);
161 * Called by glReadPixels().
163 void (*ReadPixels
)( struct gl_context
*ctx
,
164 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
165 GLenum format
, GLenum type
,
166 const struct gl_pixelstore_attrib
*unpack
,
170 * Called by glCopyPixels().
172 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
173 GLsizei width
, GLsizei height
,
174 GLint dstx
, GLint dsty
, GLenum type
);
177 * Called by glBitmap().
179 void (*Bitmap
)( struct gl_context
*ctx
,
180 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
181 const struct gl_pixelstore_attrib
*unpack
,
182 const GLubyte
*bitmap
);
187 * \name Texture image functions
192 * Choose actual hardware texture format given the texture target, the
193 * user-provided source image format and type and the desired internal
194 * format. In some cases, srcFormat and srcType can be GL_NONE.
195 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
196 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
197 * Called by glTexImage(), etc.
199 gl_format (*ChooseTextureFormat
)( struct gl_context
*ctx
,
200 GLenum target
, GLint internalFormat
,
201 GLenum srcFormat
, GLenum srcType
);
204 * Determine sample counts support for a particular format
206 * \param ctx GL context
207 * \param internalFormat GL format enum
208 * \param samples Buffer to hold the returned sample counts.
209 * Drivers \b must \b not return more than 16 counts.
212 * The number of sample counts actually written to \c samples. If
213 * \c internaFormat is not renderable, zero is returned.
215 size_t (*QuerySamplesForFormat
)(struct gl_context
*ctx
,
216 GLenum internalFormat
,
220 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
221 * Allocate texture memory and copy the user's image to the buffer.
222 * The gl_texture_image fields, etc. will be fully initialized.
223 * The parameters are the same as glTexImage3D(), plus:
224 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
225 * \param packing describes how to unpack the source data.
226 * \param texImage is the destination texture image.
228 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
229 struct gl_texture_image
*texImage
,
230 GLenum format
, GLenum type
, const GLvoid
*pixels
,
231 const struct gl_pixelstore_attrib
*packing
);
234 * Called by glTexSubImage[123]D().
235 * Replace a subset of the target texture with new texel data.
237 void (*TexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
238 struct gl_texture_image
*texImage
,
239 GLint xoffset
, GLint yoffset
, GLint zoffset
,
240 GLsizei width
, GLsizei height
, GLint depth
,
241 GLenum format
, GLenum type
,
242 const GLvoid
*pixels
,
243 const struct gl_pixelstore_attrib
*packing
);
247 * Called by glGetTexImage().
249 void (*GetTexImage
)( struct gl_context
*ctx
,
250 GLenum format
, GLenum type
, GLvoid
*pixels
,
251 struct gl_texture_image
*texImage
);
254 * Called by glCopyTex[Sub]Image[123]D().
256 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
257 struct gl_texture_image
*texImage
,
258 GLint xoffset
, GLint yoffset
, GLint zoffset
,
259 struct gl_renderbuffer
*rb
,
261 GLsizei width
, GLsizei height
);
264 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
266 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
267 struct gl_texture_object
*texObj
);
270 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
271 * and glTexStorage to check if the dimensions of the texture image
273 * \param target any GL_PROXY_TEXTURE_x target
274 * \return GL_TRUE if the image is OK, GL_FALSE if too large
276 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
277 GLint level
, gl_format format
,
278 GLint width
, GLint height
,
279 GLint depth
, GLint border
);
284 * \name Compressed texture functions
289 * Called by glCompressedTexImage[123]D().
291 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
292 struct gl_texture_image
*texImage
,
293 GLsizei imageSize
, const GLvoid
*data
);
296 * Called by glCompressedTexSubImage[123]D().
298 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
299 struct gl_texture_image
*texImage
,
300 GLint xoffset
, GLint yoffset
, GLint zoffset
,
301 GLsizei width
, GLint height
, GLint depth
,
303 GLsizei imageSize
, const GLvoid
*data
);
306 * Called by glGetCompressedTexImage.
308 void (*GetCompressedTexImage
)(struct gl_context
*ctx
,
309 struct gl_texture_image
*texImage
,
314 * \name Texture object / image functions
319 * Called by glBindTexture().
321 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
322 struct gl_texture_object
*tObj
);
325 * Called to allocate a new texture object. Drivers will usually
326 * allocate/return a subclass of gl_texture_object.
328 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
329 GLuint name
, GLenum target
);
331 * Called to delete/free a texture object. Drivers should free the
332 * object and any image data it contains.
334 void (*DeleteTexture
)(struct gl_context
*ctx
,
335 struct gl_texture_object
*texObj
);
337 /** Called to allocate a new texture image object. */
338 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
340 /** Called to free a texture image object returned by NewTextureImage() */
341 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
342 struct gl_texture_image
*);
344 /** Called to allocate memory for a single texture image */
345 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
346 struct gl_texture_image
*texImage
);
348 /** Free the memory for a single texture image */
349 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
350 struct gl_texture_image
*texImage
);
352 /** Map a slice of a texture image into user space.
353 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
354 * indicates the 1D array index.
355 * \param texImage the texture image
356 * \param slice the 3D image slice or array texture slice
357 * \param x, y, w, h region of interest
358 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
359 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
360 * \param mapOut returns start of mapping of region of interest
361 * \param rowStrideOut returns row stride (in bytes)
363 void (*MapTextureImage
)(struct gl_context
*ctx
,
364 struct gl_texture_image
*texImage
,
366 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
368 GLubyte
**mapOut
, GLint
*rowStrideOut
);
370 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
371 struct gl_texture_image
*texImage
,
374 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
375 * All the gl_texture_images in the texture object will have their
376 * dimensions, format, etc. initialized already.
378 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
379 struct gl_texture_object
*texObj
,
380 GLsizei levels
, GLsizei width
,
381 GLsizei height
, GLsizei depth
);
384 * Map a renderbuffer into user space.
385 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
386 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
388 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
389 struct gl_renderbuffer
*rb
,
390 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
392 GLubyte
**mapOut
, GLint
*rowStrideOut
);
394 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
395 struct gl_renderbuffer
*rb
);
401 * \name Vertex/fragment program functions
404 /** Bind a vertex/fragment program */
405 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
, struct gl_program
*prog
);
406 /** Allocate a new program */
407 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
, GLuint id
);
408 /** Delete a program */
409 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
411 * Notify driver that a program string (and GPU code) has been specified
412 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
413 * supported by the driver.
415 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
416 struct gl_program
*prog
);
419 * Notify driver that the sampler uniforms for the current program have
420 * changed. On some drivers, this may require shader recompiles.
422 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
423 struct gl_program
*prog
);
425 /** Query if program can be loaded onto hardware */
426 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
427 struct gl_program
*prog
);
432 * \name GLSL shader/program functions.
436 * Called when a shader program is linked.
438 * This gives drivers an opportunity to clone the IR and make their
439 * own transformations on it for the purposes of code generation.
441 GLboolean (*LinkShader
)(struct gl_context
*ctx
, struct gl_shader_program
*shader
);
445 * \name State-changing functions.
447 * \note drawing functions are above.
449 * These functions are called by their corresponding OpenGL API functions.
450 * They are \e also called by the gl_PopAttrib() function!!!
451 * May add more functions like these to the device driver in the future.
454 /** Specify the alpha test function */
455 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
456 /** Set the blend color */
457 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
458 /** Set the blend equation */
459 void (*BlendEquationSeparate
)(struct gl_context
*ctx
, GLenum modeRGB
, GLenum modeA
);
460 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
461 GLenum modeRGB
, GLenum modeA
);
462 /** Specify pixel arithmetic */
463 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
464 GLenum sfactorRGB
, GLenum dfactorRGB
,
465 GLenum sfactorA
, GLenum dfactorA
);
466 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
467 GLenum sfactorRGB
, GLenum dfactorRGB
,
468 GLenum sfactorA
, GLenum dfactorA
);
469 /** Specify a plane against which all geometry is clipped */
470 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*equation
);
471 /** Enable and disable writing of frame buffer color components */
472 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
473 GLboolean bmask
, GLboolean amask
);
474 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
475 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
476 /** Cause a material color to track the current color */
477 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
478 /** Specify whether front- or back-facing facets can be culled */
479 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
480 /** Define front- and back-facing polygons */
481 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
482 /** Specify the value used for depth buffer comparisons */
483 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
484 /** Enable or disable writing into the depth buffer */
485 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
486 /** Specify mapping of depth values from NDC to window coordinates */
487 void (*DepthRange
)(struct gl_context
*ctx
, GLclampd nearval
, GLclampd farval
);
488 /** Specify the current buffer for writing */
489 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
490 /** Specify the buffers for writing for fragment programs*/
491 void (*DrawBuffers
)( struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
492 /** Enable or disable server-side gl capabilities */
493 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
494 /** Specify fog parameters */
495 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
496 /** Specify implementation-specific hints */
497 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
498 /** Set light source parameters.
499 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
500 * been transformed to eye-space.
502 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
503 GLenum pname
, const GLfloat
*params
);
504 /** Set the lighting model parameters */
505 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
506 /** Specify the line stipple pattern */
507 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
508 /** Specify the width of rasterized lines */
509 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
510 /** Specify a logical pixel operation for color index rendering */
511 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
512 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
513 const GLfloat
*params
);
514 /** Specify the diameter of rasterized points */
515 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
516 /** Select a polygon rasterization mode */
517 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
518 /** Set the scale and units used to calculate depth values */
519 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
520 /** Set the polygon stippling pattern */
521 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
522 /* Specifies the current buffer for reading */
523 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
524 /** Set rasterization mode */
525 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
526 /** Define the scissor box */
527 void (*Scissor
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
528 /** Select flat or smooth shading */
529 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
530 /** OpenGL 2.0 two-sided StencilFunc */
531 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
532 GLint ref
, GLuint mask
);
533 /** OpenGL 2.0 two-sided StencilMask */
534 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
535 /** OpenGL 2.0 two-sided StencilOp */
536 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
537 GLenum zfail
, GLenum zpass
);
538 /** Control the generation of texture coordinates */
539 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
540 const GLfloat
*params
);
541 /** Set texture environment parameters */
542 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
543 const GLfloat
*param
);
544 /** Set texture parameters */
545 void (*TexParameter
)(struct gl_context
*ctx
, GLenum target
,
546 struct gl_texture_object
*texObj
,
547 GLenum pname
, const GLfloat
*params
);
548 /** Set the viewport */
549 void (*Viewport
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
554 * \name Vertex/pixel buffer object functions
557 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
558 struct gl_buffer_object
*obj
);
560 struct gl_buffer_object
* (*NewBufferObject
)( struct gl_context
*ctx
, GLuint buffer
,
563 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
565 GLboolean (*BufferData
)( struct gl_context
*ctx
, GLenum target
, GLsizeiptrARB size
,
566 const GLvoid
*data
, GLenum usage
,
567 struct gl_buffer_object
*obj
);
569 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
570 GLsizeiptrARB size
, const GLvoid
*data
,
571 struct gl_buffer_object
*obj
);
573 void (*GetBufferSubData
)( struct gl_context
*ctx
,
574 GLintptrARB offset
, GLsizeiptrARB size
,
575 GLvoid
*data
, struct gl_buffer_object
*obj
);
577 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
578 struct gl_buffer_object
*src
,
579 struct gl_buffer_object
*dst
,
580 GLintptr readOffset
, GLintptr writeOffset
,
583 /* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
585 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
586 GLsizeiptr length
, GLbitfield access
,
587 struct gl_buffer_object
*obj
);
589 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
590 GLintptr offset
, GLsizeiptr length
,
591 struct gl_buffer_object
*obj
);
593 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
594 struct gl_buffer_object
*obj
);
598 * \name Functions for GL_APPLE_object_purgeable
601 /* variations on ObjectPurgeable */
602 GLenum (*BufferObjectPurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
603 GLenum (*RenderObjectPurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
604 GLenum (*TextureObjectPurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
606 /* variations on ObjectUnpurgeable */
607 GLenum (*BufferObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
608 GLenum (*RenderObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
609 GLenum (*TextureObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
613 * \name Functions for GL_EXT_framebuffer_{object,blit}.
616 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
, GLuint name
);
617 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
, GLuint name
);
618 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
619 struct gl_framebuffer
*drawFb
,
620 struct gl_framebuffer
*readFb
);
621 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
622 struct gl_framebuffer
*fb
,
624 struct gl_renderbuffer
*rb
);
625 void (*RenderTexture
)(struct gl_context
*ctx
,
626 struct gl_framebuffer
*fb
,
627 struct gl_renderbuffer_attachment
*att
);
628 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
629 struct gl_renderbuffer_attachment
*att
);
630 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
631 struct gl_framebuffer
*fb
);
633 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
634 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
635 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
636 GLbitfield mask
, GLenum filter
);
639 * \name Query objects
642 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
643 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
644 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
645 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
646 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
647 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
652 * \name Vertex Array objects
655 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
656 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
657 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
661 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
664 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
, GLuint name
, GLenum type
);
665 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
666 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
, GLuint name
);
667 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
668 struct gl_shader_program
*shProg
);
669 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
674 * \name Support for multiple T&L engines
679 * Set by the driver-supplied T&L engine.
681 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
683 GLuint CurrentExecPrimitive
;
686 * Current state of an in-progress compilation.
688 * May take on any of the additional values PRIM_OUTSIDE_BEGIN_END,
689 * PRIM_INSIDE_UNKNOWN_PRIM or PRIM_UNKNOWN defined above.
691 GLuint CurrentSavePrimitive
;
694 #define FLUSH_STORED_VERTICES 0x1
695 #define FLUSH_UPDATE_CURRENT 0x2
697 * Set by the driver-supplied T&L engine whenever vertices are buffered
698 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current is not
701 * The dd_function_table::FlushVertices call below may be used to resolve
705 GLuint SaveNeedFlush
;
708 /* Called prior to any of the GLvertexformat functions being
709 * called. Paired with Driver.FlushVertices().
711 void (*BeginVertices
)( struct gl_context
*ctx
);
714 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
715 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
716 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
717 * __struct gl_contextRec::Current and gl_light_attrib::Material
719 * Note that the default T&L engine never clears the
720 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
722 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
723 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
726 * Give the driver the opportunity to hook in its own vtxfmt for
727 * compiling optimized display lists. This is called on each valid
728 * glBegin() during list compilation.
730 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
733 * Notify driver that the special derived value _NeedEyeCoords has
736 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
739 * Called by glNewList().
741 * Let the T&L component know what is going on with display lists
742 * in time to make changes to dispatch tables, etc.
744 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
746 * Called by glEndList().
748 * \sa dd_function_table::NewList.
750 void (*EndList
)( struct gl_context
*ctx
);
753 * Called by glCallList(s).
755 * Notify the T&L component before and after calling a display list.
757 void (*BeginCallList
)( struct gl_context
*ctx
,
758 struct gl_display_list
*dlist
);
760 * Called by glEndCallList().
762 * \sa dd_function_table::BeginCallList.
764 void (*EndCallList
)( struct gl_context
*ctx
);
769 * \name GL_ARB_sync interfaces
772 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
773 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*, GLenum
, GLbitfield
);
774 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
775 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
776 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
777 GLbitfield
, GLuint64
);
778 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
779 GLbitfield
, GLuint64
);
782 /** GL_NV_conditional_render */
783 void (*BeginConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
785 void (*EndConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
788 * \name GL_OES_draw_texture interface
791 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
792 GLfloat width
, GLfloat height
);
796 * \name GL_OES_EGL_image interface
798 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
799 struct gl_texture_object
*texObj
,
800 struct gl_texture_image
*texImage
,
801 GLeglImageOES image_handle
);
802 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
803 struct gl_renderbuffer
*rb
,
807 * \name GL_EXT_transform_feedback interface
809 struct gl_transform_feedback_object
*
810 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
811 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
812 struct gl_transform_feedback_object
*obj
);
813 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
814 struct gl_transform_feedback_object
*obj
);
815 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
816 struct gl_transform_feedback_object
*obj
);
817 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
818 struct gl_transform_feedback_object
*obj
);
819 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
820 struct gl_transform_feedback_object
*obj
);
823 * \name GL_NV_texture_barrier interface
825 void (*TextureBarrier
)(struct gl_context
*ctx
);
828 * \name GL_ARB_sampler_objects
830 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
832 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
833 struct gl_sampler_object
*samp
);
836 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
837 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
839 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
844 * Transform/Clip/Lighting interface
846 * Drivers present a reduced set of the functions possible in
847 * glBegin()/glEnd() objects. Core mesa provides translation stubs for the
848 * remaining functions to map down to these entry points.
850 * These are the initial values to be installed into dispatch by
851 * mesa. If the T&L driver wants to modify the dispatch table
852 * while installed, it must do so itself. It would be possible for
853 * the vertexformat to install its own initial values for these
854 * functions, but this way there is an obvious list of what is
855 * expected of the driver.
857 * If the driver wants to hook in entry points other than those
858 * listed, it must restore them to their original values in
859 * the disable() callback, below.
866 void (GLAPIENTRYP ArrayElement
)( GLint
);
867 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
868 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
869 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
870 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
871 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
872 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
873 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
874 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
875 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
876 void (GLAPIENTRYP EvalPoint1
)( GLint
);
877 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
878 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
879 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
880 void (GLAPIENTRYP Indexf
)( GLfloat
);
881 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
882 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
883 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
884 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
885 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
886 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
887 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
888 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
889 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
890 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
891 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
892 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
893 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
894 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
895 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
896 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
897 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
898 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
899 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
900 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
901 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
902 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
903 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
904 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
905 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
906 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
907 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
908 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
909 void (GLAPIENTRYP CallList
)( GLuint
);
910 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
911 void (GLAPIENTRYP Begin
)( GLenum
);
912 void (GLAPIENTRYP End
)( void );
913 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
914 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
915 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
916 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
917 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
918 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
919 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
920 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
921 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
922 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
923 /* GL_ARB_vertex_program */
924 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
925 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
926 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
927 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
928 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
929 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
930 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
931 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
933 /* GL_EXT_gpu_shader4 / GL 3.0 */
934 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
935 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
936 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
937 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
938 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
939 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
940 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
942 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
943 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
944 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
945 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
946 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
947 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
948 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
950 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
951 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
952 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
954 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
955 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
957 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
958 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
960 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
961 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
963 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
964 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
966 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
967 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
969 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
970 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
972 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
973 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
974 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
975 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
976 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
977 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
978 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
979 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
981 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
982 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
984 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
985 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
987 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
988 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
990 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
991 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
993 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
994 GLboolean normalized
, GLuint value
);
995 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
996 GLboolean normalized
, GLuint value
);
997 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
998 GLboolean normalized
, GLuint value
);
999 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1000 GLboolean normalized
, GLuint value
);
1001 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1002 GLboolean normalized
,
1003 const GLuint
*value
);
1004 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1005 GLboolean normalized
,
1006 const GLuint
*value
);
1007 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1008 GLboolean normalized
,
1009 const GLuint
*value
);
1010 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1011 GLboolean normalized
,
1012 const GLuint
*value
);
1016 void (GLAPIENTRYP Rectf
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1022 void (GLAPIENTRYP DrawArrays
)( GLenum mode
, GLint start
, GLsizei count
);
1023 void (GLAPIENTRYP DrawElements
)( GLenum mode
, GLsizei count
, GLenum type
,
1024 const GLvoid
*indices
);
1025 void (GLAPIENTRYP DrawRangeElements
)( GLenum mode
, GLuint start
,
1026 GLuint end
, GLsizei count
,
1027 GLenum type
, const GLvoid
*indices
);
1028 void (GLAPIENTRYP MultiDrawElementsEXT
)( GLenum mode
, const GLsizei
*count
,
1030 const GLvoid
**indices
,
1032 void (GLAPIENTRYP DrawElementsBaseVertex
)( GLenum mode
, GLsizei count
,
1034 const GLvoid
*indices
,
1036 void (GLAPIENTRYP DrawRangeElementsBaseVertex
)( GLenum mode
, GLuint start
,
1037 GLuint end
, GLsizei count
,
1039 const GLvoid
*indices
,
1041 void (GLAPIENTRYP MultiDrawElementsBaseVertex
)( GLenum mode
,
1042 const GLsizei
*count
,
1044 const GLvoid
* const *indices
,
1046 const GLint
*basevertex
);
1047 void (GLAPIENTRYP DrawArraysInstanced
)(GLenum mode
, GLint first
,
1048 GLsizei count
, GLsizei primcount
);
1049 void (GLAPIENTRYP DrawArraysInstancedBaseInstance
)(GLenum mode
, GLint first
,
1050 GLsizei count
, GLsizei primcount
,
1051 GLuint baseinstance
);
1052 void (GLAPIENTRYP DrawElementsInstanced
)(GLenum mode
, GLsizei count
,
1053 GLenum type
, const GLvoid
*indices
,
1055 void (GLAPIENTRYP DrawElementsInstancedBaseInstance
)(GLenum mode
, GLsizei count
,
1056 GLenum type
, const GLvoid
*indices
,
1057 GLsizei primcount
, GLuint baseinstance
);
1058 void (GLAPIENTRYP DrawElementsInstancedBaseVertex
)(GLenum mode
, GLsizei count
,
1059 GLenum type
, const GLvoid
*indices
,
1060 GLsizei primcount
, GLint basevertex
);
1061 void (GLAPIENTRYP DrawElementsInstancedBaseVertexBaseInstance
)(GLenum mode
, GLsizei count
,
1062 GLenum type
, const GLvoid
*indices
,
1063 GLsizei primcount
, GLint basevertex
,
1064 GLuint baseinstance
);
1065 void (GLAPIENTRYP DrawTransformFeedback
)(GLenum mode
, GLuint name
);
1066 void (GLAPIENTRYP DrawTransformFeedbackStream
)(GLenum mode
, GLuint name
,
1068 void (GLAPIENTRYP DrawTransformFeedbackInstanced
)(GLenum mode
, GLuint name
,
1070 void (GLAPIENTRYP DrawTransformFeedbackStreamInstanced
)(GLenum mode
,
1079 * If you don't support eval, fallback to the default vertex format
1080 * on receiving an eval call and use the pipeline mechanism to
1081 * provide partial T&L acceleration.
1083 * Mesa will provide a set of helper functions to do eval within
1084 * accelerated vertex formats, eventually...
1087 void (GLAPIENTRYP EvalMesh1
)( GLenum mode
, GLint i1
, GLint i2
);
1088 void (GLAPIENTRYP EvalMesh2
)( GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
);
1094 #endif /* DD_INCLUDED */