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 user-provided source
193 * image format and type and the desired internal format. In some
194 * cases, srcFormat and srcType can be GL_NONE.
195 * Called by glTexImage(), etc.
197 gl_format (*ChooseTextureFormat
)( struct gl_context
*ctx
, GLint internalFormat
,
198 GLenum srcFormat
, GLenum srcType
);
201 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
202 * Allocate texture memory and copy the user's image to the buffer.
203 * The gl_texture_image fields, etc. will be fully initialized.
204 * The parameters are the same as glTexImage3D(), plus:
205 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
206 * \param packing describes how to unpack the source data.
207 * \param texImage is the destination texture image.
209 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
210 struct gl_texture_image
*texImage
,
211 GLint internalFormat
,
212 GLint width
, GLint height
, GLint depth
, GLint border
,
213 GLenum format
, GLenum type
, const GLvoid
*pixels
,
214 const struct gl_pixelstore_attrib
*packing
);
218 * Called by glTexSubImage1D(). Replace a subset of the target texture
219 * with new texel data.
220 * \sa dd_function_table::TexImage1D.
222 void (*TexSubImage1D
)(struct gl_context
*ctx
,
223 struct gl_texture_image
*texImage
,
224 GLint xoffset
, GLsizei width
,
225 GLenum format
, GLenum type
,
226 const GLvoid
*pixels
,
227 const struct gl_pixelstore_attrib
*packing
);
230 * Called by glTexSubImage2D().
232 * \sa dd_function_table::TexSubImage1D.
234 void (*TexSubImage2D
)(struct gl_context
*ctx
,
235 struct gl_texture_image
*texImage
,
236 GLint xoffset
, GLint yoffset
,
237 GLsizei width
, GLsizei height
,
238 GLenum format
, GLenum type
,
239 const GLvoid
*pixels
,
240 const struct gl_pixelstore_attrib
*packing
);
243 * Called by glTexSubImage3D().
245 * \sa dd_function_table::TexSubImage1D.
247 void (*TexSubImage3D
)(struct gl_context
*ctx
,
248 struct gl_texture_image
*texImage
,
249 GLint xoffset
, GLint yoffset
, GLint zoffset
,
250 GLsizei width
, GLsizei height
, GLint depth
,
251 GLenum format
, GLenum type
,
252 const GLvoid
*pixels
,
253 const struct gl_pixelstore_attrib
*packing
);
257 * Called by glGetTexImage().
259 void (*GetTexImage
)( struct gl_context
*ctx
,
260 GLenum format
, GLenum type
, GLvoid
*pixels
,
261 struct gl_texture_image
*texImage
);
264 * Called by glCopyTexSubImage1D() and glCopyTexImage1D().
266 void (*CopyTexSubImage1D
)(struct gl_context
*ctx
,
267 struct gl_texture_image
*texImage
,
269 struct gl_renderbuffer
*rb
,
270 GLint x
, GLint y
, GLsizei width
);
273 * Called by glCopyTexSubImage2D() and glCopyTexImage2D().
275 void (*CopyTexSubImage2D
)(struct gl_context
*ctx
,
276 struct gl_texture_image
*texImage
,
277 GLint xoffset
, GLint yoffset
,
278 struct gl_renderbuffer
*rb
,
280 GLsizei width
, GLsizei height
);
283 * Called by glCopyTexSubImage3D() and glCopyTexImage3D().
285 void (*CopyTexSubImage3D
)(struct gl_context
*ctx
,
286 struct gl_texture_image
*texImage
,
287 GLint xoffset
, GLint yoffset
, GLint zoffset
,
288 struct gl_renderbuffer
*rb
,
290 GLsizei width
, GLsizei height
);
293 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
295 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
296 struct gl_texture_object
*texObj
);
299 * Called by glTexImage[123]D when user specifies a proxy texture
302 * \return GL_TRUE if the proxy test passes, or GL_FALSE if the test fails.
304 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
305 GLint level
, GLint internalFormat
,
306 GLenum format
, GLenum type
,
307 GLint width
, GLint height
,
308 GLint depth
, GLint border
);
313 * \name Compressed texture functions
318 * Called by glCompressedTexImage1D().
319 * The parameters are the same as for glCompressedTexImage1D(), plus a
320 * pointer to the destination texure image.
322 void (*CompressedTexImage1D
)(struct gl_context
*ctx
,
323 struct gl_texture_image
*texImage
,
324 GLint internalFormat
,
325 GLsizei width
, GLint border
,
326 GLsizei imageSize
, const GLvoid
*data
);
328 * Called by glCompressedTexImage2D().
330 * \sa dd_function_table::CompressedTexImage1D.
332 void (*CompressedTexImage2D
)(struct gl_context
*ctx
,
333 struct gl_texture_image
*texImage
,
334 GLint internalFormat
,
335 GLsizei width
, GLsizei height
, GLint border
,
336 GLsizei imageSize
, const GLvoid
*data
);
339 * Called by glCompressedTexImage3D().
341 * \sa dd_function_table::CompressedTexImage3D.
343 void (*CompressedTexImage3D
)(struct gl_context
*ctx
,
344 struct gl_texture_image
*texImage
,
345 GLint internalFormat
,
346 GLsizei width
, GLsizei height
, GLsizei depth
,
348 GLsizei imageSize
, const GLvoid
*data
);
351 * Called by glCompressedTexSubImage1D().
353 void (*CompressedTexSubImage1D
)(struct gl_context
*ctx
,
354 struct gl_texture_image
*texImage
,
355 GLint xoffset
, GLsizei width
,
357 GLsizei imageSize
, const GLvoid
*data
);
360 * Called by glCompressedTexSubImage2D().
362 void (*CompressedTexSubImage2D
)(struct gl_context
*ctx
,
363 struct gl_texture_image
*texImage
,
364 GLint xoffset
, GLint yoffset
,
365 GLsizei width
, GLint height
,
367 GLsizei imageSize
, const GLvoid
*data
);
370 * Called by glCompressedTexSubImage3D().
372 void (*CompressedTexSubImage3D
)(struct gl_context
*ctx
,
373 struct gl_texture_image
*texImage
,
374 GLint xoffset
, GLint yoffset
, GLint zoffset
,
375 GLsizei width
, GLint height
, GLint depth
,
377 GLsizei imageSize
, const GLvoid
*data
);
380 * Called by glGetCompressedTexImage.
382 void (*GetCompressedTexImage
)(struct gl_context
*ctx
,
383 struct gl_texture_image
*texImage
,
388 * \name Texture object / image functions
393 * Called by glBindTexture().
395 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
396 struct gl_texture_object
*tObj
);
399 * Called to allocate a new texture object. Drivers will usually
400 * allocate/return a subclass of gl_texture_object.
402 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
403 GLuint name
, GLenum target
);
405 * Called to delete/free a texture object. Drivers should free the
406 * object and any image data it contains.
408 void (*DeleteTexture
)(struct gl_context
*ctx
,
409 struct gl_texture_object
*texObj
);
411 /** Called to allocate a new texture image object. */
412 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
414 /** Called to free a texture image object returned by NewTextureImage() */
415 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
416 struct gl_texture_image
*);
418 /** Called to allocate memory for a single texture image */
419 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
420 struct gl_texture_image
*texImage
,
421 gl_format format
, GLsizei width
,
422 GLsizei height
, GLsizei depth
);
424 /** Free the memory for a single texture image */
425 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
426 struct gl_texture_image
*texImage
);
428 /** Map a slice of a texture image into user space.
429 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
430 * indicates the 1D array index.
431 * \param texImage the texture image
432 * \param slice the 3D image slice or array texture slice
433 * \param x, y, w, h region of interest
434 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
435 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
436 * \param mapOut returns start of mapping of region of interest
437 * \param rowStrideOut returns row stride (in bytes)
439 void (*MapTextureImage
)(struct gl_context
*ctx
,
440 struct gl_texture_image
*texImage
,
442 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
444 GLubyte
**mapOut
, GLint
*rowStrideOut
);
446 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
447 struct gl_texture_image
*texImage
,
450 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
451 * All the gl_texture_images in the texture object will have their
452 * dimensions, format, etc. initialized already.
454 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
455 struct gl_texture_object
*texObj
,
456 GLsizei levels
, GLsizei width
,
457 GLsizei height
, GLsizei depth
);
460 * Map a renderbuffer into user space.
461 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
462 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
464 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
465 struct gl_renderbuffer
*rb
,
466 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
468 GLubyte
**mapOut
, GLint
*rowStrideOut
);
470 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
471 struct gl_renderbuffer
*rb
);
477 * \name Vertex/fragment program functions
480 /** Bind a vertex/fragment program */
481 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
, struct gl_program
*prog
);
482 /** Allocate a new program */
483 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
, GLuint id
);
484 /** Delete a program */
485 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
487 * Notify driver that a program string (and GPU code) has been specified
488 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
489 * supported by the driver.
491 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
492 struct gl_program
*prog
);
494 /** Query if program can be loaded onto hardware */
495 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
496 struct gl_program
*prog
);
501 * \name GLSL shader/program functions.
505 * Called when a shader program is linked.
507 * This gives drivers an opportunity to clone the IR and make their
508 * own transformations on it for the purposes of code generation.
510 GLboolean (*LinkShader
)(struct gl_context
*ctx
, struct gl_shader_program
*shader
);
514 * \name State-changing functions.
516 * \note drawing functions are above.
518 * These functions are called by their corresponding OpenGL API functions.
519 * They are \e also called by the gl_PopAttrib() function!!!
520 * May add more functions like these to the device driver in the future.
523 /** Specify the alpha test function */
524 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
525 /** Set the blend color */
526 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
527 /** Set the blend equation */
528 void (*BlendEquationSeparate
)(struct gl_context
*ctx
, GLenum modeRGB
, GLenum modeA
);
529 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
530 GLenum modeRGB
, GLenum modeA
);
531 /** Specify pixel arithmetic */
532 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
533 GLenum sfactorRGB
, GLenum dfactorRGB
,
534 GLenum sfactorA
, GLenum dfactorA
);
535 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
536 GLenum sfactorRGB
, GLenum dfactorRGB
,
537 GLenum sfactorA
, GLenum dfactorA
);
538 /** Specify a plane against which all geometry is clipped */
539 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*equation
);
540 /** Enable and disable writing of frame buffer color components */
541 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
542 GLboolean bmask
, GLboolean amask
);
543 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
544 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
545 /** Cause a material color to track the current color */
546 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
547 /** Specify whether front- or back-facing facets can be culled */
548 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
549 /** Define front- and back-facing polygons */
550 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
551 /** Specify the value used for depth buffer comparisons */
552 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
553 /** Enable or disable writing into the depth buffer */
554 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
555 /** Specify mapping of depth values from NDC to window coordinates */
556 void (*DepthRange
)(struct gl_context
*ctx
, GLclampd nearval
, GLclampd farval
);
557 /** Specify the current buffer for writing */
558 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
559 /** Specify the buffers for writing for fragment programs*/
560 void (*DrawBuffers
)( struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
561 /** Enable or disable server-side gl capabilities */
562 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
563 /** Specify fog parameters */
564 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
565 /** Specify implementation-specific hints */
566 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
567 /** Set light source parameters.
568 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
569 * been transformed to eye-space.
571 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
572 GLenum pname
, const GLfloat
*params
);
573 /** Set the lighting model parameters */
574 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
575 /** Specify the line stipple pattern */
576 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
577 /** Specify the width of rasterized lines */
578 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
579 /** Specify a logical pixel operation for color index rendering */
580 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
581 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
582 const GLfloat
*params
);
583 /** Specify the diameter of rasterized points */
584 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
585 /** Select a polygon rasterization mode */
586 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
587 /** Set the scale and units used to calculate depth values */
588 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
589 /** Set the polygon stippling pattern */
590 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
591 /* Specifies the current buffer for reading */
592 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
593 /** Set rasterization mode */
594 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
595 /** Define the scissor box */
596 void (*Scissor
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
597 /** Select flat or smooth shading */
598 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
599 /** OpenGL 2.0 two-sided StencilFunc */
600 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
601 GLint ref
, GLuint mask
);
602 /** OpenGL 2.0 two-sided StencilMask */
603 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
604 /** OpenGL 2.0 two-sided StencilOp */
605 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
606 GLenum zfail
, GLenum zpass
);
607 /** Control the generation of texture coordinates */
608 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
609 const GLfloat
*params
);
610 /** Set texture environment parameters */
611 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
612 const GLfloat
*param
);
613 /** Set texture parameters */
614 void (*TexParameter
)(struct gl_context
*ctx
, GLenum target
,
615 struct gl_texture_object
*texObj
,
616 GLenum pname
, const GLfloat
*params
);
617 /** Set the viewport */
618 void (*Viewport
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
623 * \name Vertex/pixel buffer object functions
626 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
627 struct gl_buffer_object
*obj
);
629 struct gl_buffer_object
* (*NewBufferObject
)( struct gl_context
*ctx
, GLuint buffer
,
632 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
634 GLboolean (*BufferData
)( struct gl_context
*ctx
, GLenum target
, GLsizeiptrARB size
,
635 const GLvoid
*data
, GLenum usage
,
636 struct gl_buffer_object
*obj
);
638 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
639 GLsizeiptrARB size
, const GLvoid
*data
,
640 struct gl_buffer_object
*obj
);
642 void (*GetBufferSubData
)( struct gl_context
*ctx
,
643 GLintptrARB offset
, GLsizeiptrARB size
,
644 GLvoid
*data
, struct gl_buffer_object
*obj
);
646 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
647 struct gl_buffer_object
*src
,
648 struct gl_buffer_object
*dst
,
649 GLintptr readOffset
, GLintptr writeOffset
,
652 /* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
654 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
655 GLsizeiptr length
, GLbitfield access
,
656 struct gl_buffer_object
*obj
);
658 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
659 GLintptr offset
, GLsizeiptr length
,
660 struct gl_buffer_object
*obj
);
662 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
663 struct gl_buffer_object
*obj
);
667 * \name Functions for GL_APPLE_object_purgeable
670 /* variations on ObjectPurgeable */
671 GLenum (*BufferObjectPurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
672 GLenum (*RenderObjectPurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
673 GLenum (*TextureObjectPurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
675 /* variations on ObjectUnpurgeable */
676 GLenum (*BufferObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
677 GLenum (*RenderObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
678 GLenum (*TextureObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
682 * \name Functions for GL_EXT_framebuffer_{object,blit}.
685 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
, GLuint name
);
686 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
, GLuint name
);
687 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
688 struct gl_framebuffer
*drawFb
,
689 struct gl_framebuffer
*readFb
);
690 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
691 struct gl_framebuffer
*fb
,
693 struct gl_renderbuffer
*rb
);
694 void (*RenderTexture
)(struct gl_context
*ctx
,
695 struct gl_framebuffer
*fb
,
696 struct gl_renderbuffer_attachment
*att
);
697 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
698 struct gl_renderbuffer_attachment
*att
);
699 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
700 struct gl_framebuffer
*fb
);
702 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
703 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
704 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
705 GLbitfield mask
, GLenum filter
);
708 * \name Query objects
711 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
712 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
713 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
714 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
715 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
716 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
721 * \name Vertex Array objects
724 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
725 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
726 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
730 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
733 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
, GLuint name
, GLenum type
);
734 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
735 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
, GLuint name
);
736 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
737 struct gl_shader_program
*shProg
);
738 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
743 * \name Support for multiple T&L engines
748 * Set by the driver-supplied T&L engine.
750 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
752 GLuint CurrentExecPrimitive
;
755 * Current state of an in-progress compilation.
757 * May take on any of the additional values PRIM_OUTSIDE_BEGIN_END,
758 * PRIM_INSIDE_UNKNOWN_PRIM or PRIM_UNKNOWN defined above.
760 GLuint CurrentSavePrimitive
;
763 #define FLUSH_STORED_VERTICES 0x1
764 #define FLUSH_UPDATE_CURRENT 0x2
766 * Set by the driver-supplied T&L engine whenever vertices are buffered
767 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current is not
770 * The dd_function_table::FlushVertices call below may be used to resolve
774 GLuint SaveNeedFlush
;
777 /* Called prior to any of the GLvertexformat functions being
778 * called. Paired with Driver.FlushVertices().
780 void (*BeginVertices
)( struct gl_context
*ctx
);
783 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
784 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
785 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
786 * __struct gl_contextRec::Current and gl_light_attrib::Material
788 * Note that the default T&L engine never clears the
789 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
791 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
792 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
795 * \brief Hook for drivers to prepare for a glBegin/glEnd block
797 * This hook is called in vbo_exec_Begin() before any action, including
798 * state updates, occurs.
800 void (*PrepareExecBegin
)( struct gl_context
*ctx
);
803 * Give the driver the opportunity to hook in its own vtxfmt for
804 * compiling optimized display lists. This is called on each valid
805 * glBegin() during list compilation.
807 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
810 * Notify driver that the special derived value _NeedEyeCoords has
813 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
816 * Called by glNewList().
818 * Let the T&L component know what is going on with display lists
819 * in time to make changes to dispatch tables, etc.
821 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
823 * Called by glEndList().
825 * \sa dd_function_table::NewList.
827 void (*EndList
)( struct gl_context
*ctx
);
830 * Called by glCallList(s).
832 * Notify the T&L component before and after calling a display list.
834 void (*BeginCallList
)( struct gl_context
*ctx
,
835 struct gl_display_list
*dlist
);
837 * Called by glEndCallList().
839 * \sa dd_function_table::BeginCallList.
841 void (*EndCallList
)( struct gl_context
*ctx
);
846 * \name GL_ARB_sync interfaces
849 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
850 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*, GLenum
, GLbitfield
);
851 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
852 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
853 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
854 GLbitfield
, GLuint64
);
855 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
856 GLbitfield
, GLuint64
);
859 /** GL_NV_conditional_render */
860 void (*BeginConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
862 void (*EndConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
865 * \name GL_OES_draw_texture interface
868 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
869 GLfloat width
, GLfloat height
);
873 * \name GL_OES_EGL_image interface
875 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
876 struct gl_texture_object
*texObj
,
877 struct gl_texture_image
*texImage
,
878 GLeglImageOES image_handle
);
879 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
880 struct gl_renderbuffer
*rb
,
884 * \name GL_EXT_transform_feedback interface
886 struct gl_transform_feedback_object
*
887 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
888 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
889 struct gl_transform_feedback_object
*obj
);
890 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
891 struct gl_transform_feedback_object
*obj
);
892 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
893 struct gl_transform_feedback_object
*obj
);
894 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
895 struct gl_transform_feedback_object
*obj
);
896 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
897 struct gl_transform_feedback_object
*obj
);
900 * \name GL_NV_texture_barrier interface
902 void (*TextureBarrier
)(struct gl_context
*ctx
);
905 * \name GL_ARB_sampler_objects
907 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
909 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
910 struct gl_sampler_object
*samp
);
915 * Transform/Clip/Lighting interface
917 * Drivers present a reduced set of the functions possible in
918 * glBegin()/glEnd() objects. Core mesa provides translation stubs for the
919 * remaining functions to map down to these entry points.
921 * These are the initial values to be installed into dispatch by
922 * mesa. If the T&L driver wants to modify the dispatch table
923 * while installed, it must do so itself. It would be possible for
924 * the vertexformat to install its own initial values for these
925 * functions, but this way there is an obvious list of what is
926 * expected of the driver.
928 * If the driver wants to hook in entry points other than those
929 * listed, it must restore them to their original values in
930 * the disable() callback, below.
937 void (GLAPIENTRYP ArrayElement
)( GLint
);
938 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
939 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
940 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
941 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
942 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
943 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
944 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
945 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
946 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
947 void (GLAPIENTRYP EvalPoint1
)( GLint
);
948 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
949 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
950 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
951 void (GLAPIENTRYP Indexf
)( GLfloat
);
952 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
953 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
954 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
955 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
956 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
957 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
958 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
959 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
960 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
961 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
962 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
963 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
964 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
965 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
966 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
967 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
968 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
969 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
970 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
971 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
972 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
973 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
974 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
975 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
976 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
977 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
978 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
979 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
980 void (GLAPIENTRYP CallList
)( GLuint
);
981 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
982 void (GLAPIENTRYP Begin
)( GLenum
);
983 void (GLAPIENTRYP End
)( void );
984 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
985 /* GL_NV_vertex_program */
986 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
987 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
988 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
989 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
990 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
991 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
992 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
993 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
994 /* GL_ARB_vertex_program */
995 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
996 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
997 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
998 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
999 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1000 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1001 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1002 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1004 /* GL_EXT_gpu_shader4 / GL 3.0 */
1005 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1006 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1007 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1008 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1009 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1010 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1011 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1013 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1014 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1015 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1016 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1017 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1018 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1019 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1021 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1022 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1023 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1025 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1026 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1028 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1029 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1031 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1032 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1034 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1035 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1037 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1038 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1040 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1041 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1043 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1044 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1045 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1046 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1047 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1048 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1049 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1050 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1052 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1053 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1055 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1056 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1058 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1059 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1061 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1062 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1064 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1065 GLboolean normalized
, GLuint value
);
1066 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1067 GLboolean normalized
, GLuint value
);
1068 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1069 GLboolean normalized
, GLuint value
);
1070 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1071 GLboolean normalized
, GLuint value
);
1072 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1073 GLboolean normalized
,
1074 const GLuint
*value
);
1075 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1076 GLboolean normalized
,
1077 const GLuint
*value
);
1078 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1079 GLboolean normalized
,
1080 const GLuint
*value
);
1081 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1082 GLboolean normalized
,
1083 const GLuint
*value
);
1087 void (GLAPIENTRYP Rectf
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1093 void (GLAPIENTRYP DrawArrays
)( GLenum mode
, GLint start
, GLsizei count
);
1094 void (GLAPIENTRYP DrawElements
)( GLenum mode
, GLsizei count
, GLenum type
,
1095 const GLvoid
*indices
);
1096 void (GLAPIENTRYP DrawRangeElements
)( GLenum mode
, GLuint start
,
1097 GLuint end
, GLsizei count
,
1098 GLenum type
, const GLvoid
*indices
);
1099 void (GLAPIENTRYP MultiDrawElementsEXT
)( GLenum mode
, const GLsizei
*count
,
1101 const GLvoid
**indices
,
1103 void (GLAPIENTRYP DrawElementsBaseVertex
)( GLenum mode
, GLsizei count
,
1105 const GLvoid
*indices
,
1107 void (GLAPIENTRYP DrawRangeElementsBaseVertex
)( GLenum mode
, GLuint start
,
1108 GLuint end
, GLsizei count
,
1110 const GLvoid
*indices
,
1112 void (GLAPIENTRYP MultiDrawElementsBaseVertex
)( GLenum mode
,
1113 const GLsizei
*count
,
1115 const GLvoid
**indices
,
1117 const GLint
*basevertex
);
1118 void (GLAPIENTRYP DrawArraysInstanced
)(GLenum mode
, GLint first
,
1119 GLsizei count
, GLsizei primcount
);
1120 void (GLAPIENTRYP DrawElementsInstanced
)(GLenum mode
, GLsizei count
,
1121 GLenum type
, const GLvoid
*indices
,
1123 void (GLAPIENTRYP DrawElementsInstancedBaseVertex
)(GLenum mode
, GLsizei count
,
1124 GLenum type
, const GLvoid
*indices
,
1125 GLsizei primcount
, GLint basevertex
);
1126 void (GLAPIENTRYP DrawTransformFeedback
)(GLenum mode
, GLuint name
);
1132 * If you don't support eval, fallback to the default vertex format
1133 * on receiving an eval call and use the pipeline mechanism to
1134 * provide partial T&L acceleration.
1136 * Mesa will provide a set of helper functions to do eval within
1137 * accelerated vertex formats, eventually...
1140 void (GLAPIENTRYP EvalMesh1
)( GLenum mode
, GLint i1
, GLint i2
);
1141 void (GLAPIENTRYP EvalMesh2
)( GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
);
1147 #endif /* DD_INCLUDED */