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 GLuint (*ChooseTextureFormat
)( struct gl_context
*ctx
, GLint internalFormat
,
198 GLenum srcFormat
, GLenum srcType
);
201 * Called by glTexImage1D(). Simply copy the source texture data into the
202 * destination texture memory. The gl_texture_image fields, etc. will be
204 * The parameters are the same as glTexImage1D(), plus:
205 * \param packing describes how to unpack the source data.
206 * \param texObj is the target texture object.
207 * \param texImage is the target texture image.
209 void (*TexImage1D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
210 GLint internalFormat
,
211 GLint width
, GLint border
,
212 GLenum format
, GLenum type
, const GLvoid
*pixels
,
213 const struct gl_pixelstore_attrib
*packing
,
214 struct gl_texture_object
*texObj
,
215 struct gl_texture_image
*texImage
);
218 * Called by glTexImage2D().
220 * \sa dd_function_table::TexImage1D.
222 void (*TexImage2D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
223 GLint internalFormat
,
224 GLint width
, GLint height
, GLint border
,
225 GLenum format
, GLenum type
, const GLvoid
*pixels
,
226 const struct gl_pixelstore_attrib
*packing
,
227 struct gl_texture_object
*texObj
,
228 struct gl_texture_image
*texImage
);
231 * Called by glTexImage3D().
233 * \sa dd_function_table::TexImage1D.
235 void (*TexImage3D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
236 GLint internalFormat
,
237 GLint width
, GLint height
, GLint depth
, GLint border
,
238 GLenum format
, GLenum type
, const GLvoid
*pixels
,
239 const struct gl_pixelstore_attrib
*packing
,
240 struct gl_texture_object
*texObj
,
241 struct gl_texture_image
*texImage
);
244 * Called by glTexSubImage1D(). Replace a subset of the target texture
245 * with new texel data.
246 * \sa dd_function_table::TexImage1D.
248 void (*TexSubImage1D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
249 GLint xoffset
, GLsizei width
,
250 GLenum format
, GLenum type
,
251 const GLvoid
*pixels
,
252 const struct gl_pixelstore_attrib
*packing
,
253 struct gl_texture_object
*texObj
,
254 struct gl_texture_image
*texImage
);
257 * Called by glTexSubImage2D().
259 * \sa dd_function_table::TexSubImage1D.
261 void (*TexSubImage2D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
262 GLint xoffset
, GLint yoffset
,
263 GLsizei width
, GLsizei height
,
264 GLenum format
, GLenum type
,
265 const GLvoid
*pixels
,
266 const struct gl_pixelstore_attrib
*packing
,
267 struct gl_texture_object
*texObj
,
268 struct gl_texture_image
*texImage
);
271 * Called by glTexSubImage3D().
273 * \sa dd_function_table::TexSubImage1D.
275 void (*TexSubImage3D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
276 GLint xoffset
, GLint yoffset
, GLint zoffset
,
277 GLsizei width
, GLsizei height
, GLint depth
,
278 GLenum format
, GLenum type
,
279 const GLvoid
*pixels
,
280 const struct gl_pixelstore_attrib
*packing
,
281 struct gl_texture_object
*texObj
,
282 struct gl_texture_image
*texImage
);
285 * Called by glGetTexImage().
287 void (*GetTexImage
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
288 GLenum format
, GLenum type
, GLvoid
*pixels
,
289 struct gl_texture_object
*texObj
,
290 struct gl_texture_image
*texImage
);
293 * Called by glCopyTexImage1D().
295 * Drivers should use a fallback routine from texstore.c if needed.
297 void (*CopyTexImage1D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
298 GLenum internalFormat
, GLint x
, GLint y
,
299 GLsizei width
, GLint border
);
302 * Called by glCopyTexImage2D().
304 * Drivers should use a fallback routine from texstore.c if needed.
306 void (*CopyTexImage2D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
307 GLenum internalFormat
, GLint x
, GLint y
,
308 GLsizei width
, GLsizei height
, GLint border
);
311 * Called by glCopyTexSubImage1D().
313 * Drivers should use a fallback routine from texstore.c if needed.
315 void (*CopyTexSubImage1D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
317 GLint x
, GLint y
, GLsizei width
);
319 * Called by glCopyTexSubImage2D().
321 * Drivers should use a fallback routine from texstore.c if needed.
323 void (*CopyTexSubImage2D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
324 GLint xoffset
, GLint yoffset
,
326 GLsizei width
, GLsizei height
);
328 * Called by glCopyTexSubImage3D().
330 * Drivers should use a fallback routine from texstore.c if needed.
332 void (*CopyTexSubImage3D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
333 GLint xoffset
, GLint yoffset
, GLint zoffset
,
335 GLsizei width
, GLsizei height
);
338 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
340 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
341 struct gl_texture_object
*texObj
);
344 * Called by glTexImage[123]D when user specifies a proxy texture
347 * \return GL_TRUE if the proxy test passes, or GL_FALSE if the test fails.
349 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
350 GLint level
, GLint internalFormat
,
351 GLenum format
, GLenum type
,
352 GLint width
, GLint height
,
353 GLint depth
, GLint border
);
358 * \name Compressed texture functions
363 * Called by glCompressedTexImage1D().
365 * \param target user specified.
366 * \param format user specified.
367 * \param type user specified.
368 * \param pixels user specified.
369 * \param packing indicates the image packing of pixels.
370 * \param texObj is the target texture object.
371 * \param texImage is the target texture image. It will have the texture \p
372 * width, \p height, \p depth, \p border and \p internalFormat information.
374 * \a retainInternalCopy is returned by this function and indicates whether
375 * core Mesa should keep an internal copy of the texture image.
377 void (*CompressedTexImage1D
)( struct gl_context
*ctx
, GLenum target
,
378 GLint level
, GLint internalFormat
,
379 GLsizei width
, GLint border
,
380 GLsizei imageSize
, const GLvoid
*data
,
381 struct gl_texture_object
*texObj
,
382 struct gl_texture_image
*texImage
);
384 * Called by glCompressedTexImage2D().
386 * \sa dd_function_table::CompressedTexImage1D.
388 void (*CompressedTexImage2D
)( struct gl_context
*ctx
, GLenum target
,
389 GLint level
, GLint internalFormat
,
390 GLsizei width
, GLsizei height
, GLint border
,
391 GLsizei imageSize
, const GLvoid
*data
,
392 struct gl_texture_object
*texObj
,
393 struct gl_texture_image
*texImage
);
395 * Called by glCompressedTexImage3D().
397 * \sa dd_function_table::CompressedTexImage3D.
399 void (*CompressedTexImage3D
)( struct gl_context
*ctx
, GLenum target
,
400 GLint level
, GLint internalFormat
,
401 GLsizei width
, GLsizei height
, GLsizei depth
,
403 GLsizei imageSize
, const GLvoid
*data
,
404 struct gl_texture_object
*texObj
,
405 struct gl_texture_image
*texImage
);
408 * Called by glCompressedTexSubImage1D().
410 * \param target user specified.
411 * \param level user specified.
412 * \param xoffset user specified.
413 * \param yoffset user specified.
414 * \param zoffset user specified.
415 * \param width user specified.
416 * \param height user specified.
417 * \param depth user specified.
418 * \param imageSize user specified.
419 * \param data user specified.
420 * \param texObj is the target texture object.
421 * \param texImage is the target texture image. It will have the texture \p
422 * width, \p height, \p depth, \p border and \p internalFormat information.
424 void (*CompressedTexSubImage1D
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
425 GLint xoffset
, GLsizei width
,
427 GLsizei imageSize
, const GLvoid
*data
,
428 struct gl_texture_object
*texObj
,
429 struct gl_texture_image
*texImage
);
431 * Called by glCompressedTexSubImage2D().
433 * \sa dd_function_table::CompressedTexImage3D.
435 void (*CompressedTexSubImage2D
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
436 GLint xoffset
, GLint yoffset
,
437 GLsizei width
, GLint height
,
439 GLsizei imageSize
, const GLvoid
*data
,
440 struct gl_texture_object
*texObj
,
441 struct gl_texture_image
*texImage
);
443 * Called by glCompressedTexSubImage3D().
445 * \sa dd_function_table::CompressedTexImage3D.
447 void (*CompressedTexSubImage3D
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
448 GLint xoffset
, GLint yoffset
, GLint zoffset
,
449 GLsizei width
, GLint height
, GLint depth
,
451 GLsizei imageSize
, const GLvoid
*data
,
452 struct gl_texture_object
*texObj
,
453 struct gl_texture_image
*texImage
);
457 * Called by glGetCompressedTexImage.
459 void (*GetCompressedTexImage
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
461 struct gl_texture_object
*texObj
,
462 struct gl_texture_image
*texImage
);
467 * \name Texture object functions
472 * Called by glBindTexture().
474 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
475 struct gl_texture_object
*tObj
);
478 * Called to allocate a new texture object.
479 * A new gl_texture_object should be returned. The driver should
480 * attach to it any device-specific info it needs.
482 struct gl_texture_object
* (*NewTextureObject
)( struct gl_context
*ctx
, GLuint name
,
485 * Called when a texture object is about to be deallocated.
487 * Driver should delete the gl_texture_object object and anything
490 void (*DeleteTexture
)( struct gl_context
*ctx
, struct gl_texture_object
*tObj
);
493 * Called to allocate a new texture image object.
495 struct gl_texture_image
* (*NewTextureImage
)( struct gl_context
*ctx
);
498 * Called to free tImage->Data.
500 void (*FreeTexImageData
)( struct gl_context
*ctx
, struct gl_texture_image
*tImage
);
502 /** Map texture image data into user space */
503 void (*MapTexture
)( struct gl_context
*ctx
, struct gl_texture_object
*tObj
);
504 /** Unmap texture images from user space */
505 void (*UnmapTexture
)( struct gl_context
*ctx
, struct gl_texture_object
*tObj
);
508 * Note: no context argument. This function doesn't initially look
509 * like it belongs here, except that the driver is the only entity
510 * that knows for sure how the texture memory is allocated - via
511 * the above callbacks. There is then an argument that the driver
512 * knows what memcpy paths might be fast. Typically this is invoked with
514 * to -- a pointer into texture memory allocated by NewTextureImage() above.
515 * from -- a pointer into client memory or a mesa temporary.
516 * sz -- nr bytes to copy.
518 void* (*TextureMemCpy
)( void *to
, const void *from
, size_t sz
);
521 * Called by glAreTextureResident().
523 GLboolean (*IsTextureResident
)( struct gl_context
*ctx
,
524 struct gl_texture_object
*t
);
527 * Called when the texture's color lookup table is changed.
529 * If \p tObj is NULL then the shared texture palette
530 * gl_texture_object::Palette is to be updated.
532 void (*UpdateTexturePalette
)( struct gl_context
*ctx
,
533 struct gl_texture_object
*tObj
);
538 * \name Imaging functionality
541 void (*CopyColorTable
)( struct gl_context
*ctx
,
542 GLenum target
, GLenum internalformat
,
543 GLint x
, GLint y
, GLsizei width
);
545 void (*CopyColorSubTable
)( struct gl_context
*ctx
,
546 GLenum target
, GLsizei start
,
547 GLint x
, GLint y
, GLsizei width
);
552 * \name Vertex/fragment program functions
555 /** Bind a vertex/fragment program */
556 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
, struct gl_program
*prog
);
557 /** Allocate a new program */
558 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
, GLuint id
);
559 /** Delete a program */
560 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
562 * Notify driver that a program string (and GPU code) has been specified
563 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
564 * supported by the driver.
566 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
567 struct gl_program
*prog
);
569 /** Query if program can be loaded onto hardware */
570 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
571 struct gl_program
*prog
);
576 * \name GLSL shader/program functions.
580 * Called when a shader program is linked.
582 * This gives drivers an opportunity to clone the IR and make their
583 * own transformations on it for the purposes of code generation.
585 GLboolean (*LinkShader
)(struct gl_context
*ctx
, struct gl_shader_program
*shader
);
589 * \name State-changing functions.
591 * \note drawing functions are above.
593 * These functions are called by their corresponding OpenGL API functions.
594 * They are \e also called by the gl_PopAttrib() function!!!
595 * May add more functions like these to the device driver in the future.
598 /** Specify the alpha test function */
599 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
600 /** Set the blend color */
601 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
602 /** Set the blend equation */
603 void (*BlendEquationSeparate
)(struct gl_context
*ctx
, GLenum modeRGB
, GLenum modeA
);
604 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
605 GLenum modeRGB
, GLenum modeA
);
606 /** Specify pixel arithmetic */
607 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
608 GLenum sfactorRGB
, GLenum dfactorRGB
,
609 GLenum sfactorA
, GLenum dfactorA
);
610 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
611 GLenum sfactorRGB
, GLenum dfactorRGB
,
612 GLenum sfactorA
, GLenum dfactorA
);
613 /** Specify clear values for the color buffers */
614 void (*ClearColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
615 /** Specify the clear value for the depth buffer */
616 void (*ClearDepth
)(struct gl_context
*ctx
, GLclampd d
);
617 /** Specify the clear value for the stencil buffer */
618 void (*ClearStencil
)(struct gl_context
*ctx
, GLint s
);
619 /** Specify a plane against which all geometry is clipped */
620 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*equation
);
621 /** Enable and disable writing of frame buffer color components */
622 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
623 GLboolean bmask
, GLboolean amask
);
624 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
625 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
626 /** Cause a material color to track the current color */
627 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
628 /** Specify whether front- or back-facing facets can be culled */
629 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
630 /** Define front- and back-facing polygons */
631 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
632 /** Specify the value used for depth buffer comparisons */
633 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
634 /** Enable or disable writing into the depth buffer */
635 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
636 /** Specify mapping of depth values from NDC to window coordinates */
637 void (*DepthRange
)(struct gl_context
*ctx
, GLclampd nearval
, GLclampd farval
);
638 /** Specify the current buffer for writing */
639 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
640 /** Specify the buffers for writing for fragment programs*/
641 void (*DrawBuffers
)( struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
642 /** Enable or disable server-side gl capabilities */
643 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
644 /** Specify fog parameters */
645 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
646 /** Specify implementation-specific hints */
647 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
648 /** Set light source parameters.
649 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
650 * been transformed to eye-space.
652 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
653 GLenum pname
, const GLfloat
*params
);
654 /** Set the lighting model parameters */
655 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
656 /** Specify the line stipple pattern */
657 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
658 /** Specify the width of rasterized lines */
659 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
660 /** Specify a logical pixel operation for color index rendering */
661 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
662 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
663 const GLfloat
*params
);
664 /** Specify the diameter of rasterized points */
665 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
666 /** Select a polygon rasterization mode */
667 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
668 /** Set the scale and units used to calculate depth values */
669 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
670 /** Set the polygon stippling pattern */
671 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
672 /* Specifies the current buffer for reading */
673 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
674 /** Set rasterization mode */
675 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
676 /** Define the scissor box */
677 void (*Scissor
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
678 /** Select flat or smooth shading */
679 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
680 /** OpenGL 2.0 two-sided StencilFunc */
681 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
682 GLint ref
, GLuint mask
);
683 /** OpenGL 2.0 two-sided StencilMask */
684 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
685 /** OpenGL 2.0 two-sided StencilOp */
686 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
687 GLenum zfail
, GLenum zpass
);
688 /** Control the generation of texture coordinates */
689 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
690 const GLfloat
*params
);
691 /** Set texture environment parameters */
692 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
693 const GLfloat
*param
);
694 /** Set texture parameters */
695 void (*TexParameter
)(struct gl_context
*ctx
, GLenum target
,
696 struct gl_texture_object
*texObj
,
697 GLenum pname
, const GLfloat
*params
);
698 /** Set the viewport */
699 void (*Viewport
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
704 * \name Vertex/pixel buffer object functions
707 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
708 struct gl_buffer_object
*obj
);
710 struct gl_buffer_object
* (*NewBufferObject
)( struct gl_context
*ctx
, GLuint buffer
,
713 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
715 GLboolean (*BufferData
)( struct gl_context
*ctx
, GLenum target
, GLsizeiptrARB size
,
716 const GLvoid
*data
, GLenum usage
,
717 struct gl_buffer_object
*obj
);
719 void (*BufferSubData
)( struct gl_context
*ctx
, GLenum target
, GLintptrARB offset
,
720 GLsizeiptrARB size
, const GLvoid
*data
,
721 struct gl_buffer_object
*obj
);
723 void (*GetBufferSubData
)( struct gl_context
*ctx
, GLenum target
,
724 GLintptrARB offset
, GLsizeiptrARB size
,
725 GLvoid
*data
, struct gl_buffer_object
*obj
);
727 void * (*MapBuffer
)( struct gl_context
*ctx
, GLenum target
, GLenum access
,
728 struct gl_buffer_object
*obj
);
730 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
731 struct gl_buffer_object
*src
,
732 struct gl_buffer_object
*dst
,
733 GLintptr readOffset
, GLintptr writeOffset
,
736 /* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
738 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLenum target
, GLintptr offset
,
739 GLsizeiptr length
, GLbitfield access
,
740 struct gl_buffer_object
*obj
);
742 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
, GLenum target
,
743 GLintptr offset
, GLsizeiptr length
,
744 struct gl_buffer_object
*obj
);
746 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
, GLenum target
,
747 struct gl_buffer_object
*obj
);
751 * \name Functions for GL_APPLE_object_purgeable
754 /* variations on ObjectPurgeable */
755 GLenum (*BufferObjectPurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
756 GLenum (*RenderObjectPurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
757 GLenum (*TextureObjectPurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
759 /* variations on ObjectUnpurgeable */
760 GLenum (*BufferObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
761 GLenum (*RenderObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
762 GLenum (*TextureObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
766 * \name Functions for GL_EXT_framebuffer_{object,blit}.
769 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
, GLuint name
);
770 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
, GLuint name
);
771 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
772 struct gl_framebuffer
*drawFb
,
773 struct gl_framebuffer
*readFb
);
774 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
775 struct gl_framebuffer
*fb
,
777 struct gl_renderbuffer
*rb
);
778 void (*RenderTexture
)(struct gl_context
*ctx
,
779 struct gl_framebuffer
*fb
,
780 struct gl_renderbuffer_attachment
*att
);
781 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
782 struct gl_renderbuffer_attachment
*att
);
783 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
784 struct gl_framebuffer
*fb
);
786 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
787 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
788 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
789 GLbitfield mask
, GLenum filter
);
792 * \name Query objects
795 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
796 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
797 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
798 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
799 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
800 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
805 * \name Vertex Array objects
808 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
809 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
810 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
814 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
817 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
, GLuint name
, GLenum type
);
818 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
819 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
, GLuint name
);
820 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
821 struct gl_shader_program
*shProg
);
822 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
827 * \name Support for multiple T&L engines
832 * Bitmask of state changes that require the current T&L module to be
833 * validated, using ValidateTnlModule() below.
838 * Validate the current T&L module.
840 * This is called directly after UpdateState() when a state change that has
841 * occurred matches the dd_function_table::NeedValidate bitmask above. This
842 * ensures all computed values are up to date, thus allowing the driver to
843 * decide if the current T&L module needs to be swapped out.
845 * This must be non-NULL if a driver installs a custom T&L module and sets
846 * the dd_function_table::NeedValidate bitmask, but may be NULL otherwise.
848 void (*ValidateTnlModule
)( struct gl_context
*ctx
, GLuint new_state
);
851 * Set by the driver-supplied T&L engine.
853 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
855 GLuint CurrentExecPrimitive
;
858 * Current state of an in-progress compilation.
860 * May take on any of the additional values PRIM_OUTSIDE_BEGIN_END,
861 * PRIM_INSIDE_UNKNOWN_PRIM or PRIM_UNKNOWN defined above.
863 GLuint CurrentSavePrimitive
;
866 #define FLUSH_STORED_VERTICES 0x1
867 #define FLUSH_UPDATE_CURRENT 0x2
869 * Set by the driver-supplied T&L engine whenever vertices are buffered
870 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current is not
873 * The dd_function_table::FlushVertices call below may be used to resolve
877 GLuint SaveNeedFlush
;
880 /* Called prior to any of the GLvertexformat functions being
881 * called. Paired with Driver.FlushVertices().
883 void (*BeginVertices
)( struct gl_context
*ctx
);
886 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
887 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
888 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
889 * __struct gl_contextRec::Current and gl_light_attrib::Material
891 * Note that the default T&L engine never clears the
892 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
894 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
895 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
898 * Give the driver the opportunity to hook in its own vtxfmt for
899 * compiling optimized display lists. This is called on each valid
900 * glBegin() during list compilation.
902 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
905 * Notify driver that the special derived value _NeedEyeCoords has
908 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
911 * Called by glNewList().
913 * Let the T&L component know what is going on with display lists
914 * in time to make changes to dispatch tables, etc.
916 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
918 * Called by glEndList().
920 * \sa dd_function_table::NewList.
922 void (*EndList
)( struct gl_context
*ctx
);
925 * Called by glCallList(s).
927 * Notify the T&L component before and after calling a display list.
929 void (*BeginCallList
)( struct gl_context
*ctx
,
930 struct gl_display_list
*dlist
);
932 * Called by glEndCallList().
934 * \sa dd_function_table::BeginCallList.
936 void (*EndCallList
)( struct gl_context
*ctx
);
940 * \name GL_ARB_sync interfaces
943 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
944 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*, GLenum
, GLbitfield
);
945 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
946 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
947 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
948 GLbitfield
, GLuint64
);
949 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
950 GLbitfield
, GLuint64
);
953 /** GL_NV_conditional_render */
954 void (*BeginConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
956 void (*EndConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
959 * \name GL_OES_draw_texture interface
962 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
963 GLfloat width
, GLfloat height
);
967 * \name GL_OES_EGL_image interface
969 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
970 struct gl_texture_object
*texObj
,
971 struct gl_texture_image
*texImage
,
972 GLeglImageOES image_handle
);
973 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
974 struct gl_renderbuffer
*rb
,
978 * \name GL_EXT_transform_feedback interface
980 struct gl_transform_feedback_object
*
981 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
982 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
983 struct gl_transform_feedback_object
*obj
);
984 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
985 struct gl_transform_feedback_object
*obj
);
986 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
987 struct gl_transform_feedback_object
*obj
);
988 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
989 struct gl_transform_feedback_object
*obj
);
990 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
991 struct gl_transform_feedback_object
*obj
);
992 void (*DrawTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
993 struct gl_transform_feedback_object
*obj
);
996 * \name GL_NV_texture_barrier interface
998 void (*TextureBarrier
)(struct gl_context
*ctx
);
1001 * \name GL_ARB_sampler_objects
1003 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
1005 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
1006 struct gl_sampler_object
*samp
);
1011 * Transform/Clip/Lighting interface
1013 * Drivers present a reduced set of the functions possible in
1014 * glBegin()/glEnd() objects. Core mesa provides translation stubs for the
1015 * remaining functions to map down to these entry points.
1017 * These are the initial values to be installed into dispatch by
1018 * mesa. If the T&L driver wants to modify the dispatch table
1019 * while installed, it must do so itself. It would be possible for
1020 * the vertexformat to install its own initial values for these
1021 * functions, but this way there is an obvious list of what is
1022 * expected of the driver.
1024 * If the driver wants to hook in entry points other than those
1025 * listed, it must restore them to their original values in
1026 * the disable() callback, below.
1033 void (GLAPIENTRYP ArrayElement
)( GLint
);
1034 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
1035 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
1036 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1037 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
1038 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
1039 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
1040 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
1041 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
1042 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
1043 void (GLAPIENTRYP EvalPoint1
)( GLint
);
1044 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
1045 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
1046 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
1047 void (GLAPIENTRYP Indexf
)( GLfloat
);
1048 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
1049 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
1050 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
1051 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
1052 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
1053 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
1054 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
1055 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
1056 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1057 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
1058 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
1059 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
1060 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
1061 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
1062 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
1063 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
1064 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
1065 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
1066 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
1067 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1068 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1069 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1070 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1071 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1072 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1073 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1074 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1075 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1076 void (GLAPIENTRYP CallList
)( GLuint
);
1077 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1078 void (GLAPIENTRYP Begin
)( GLenum
);
1079 void (GLAPIENTRYP End
)( void );
1080 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1081 /* GL_NV_vertex_program */
1082 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1083 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1084 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1085 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1086 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1087 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1088 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1089 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1090 /* GL_ARB_vertex_program */
1091 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1092 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1093 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1094 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1095 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1096 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1097 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1098 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1100 /* GL_EXT_gpu_shader4 / GL 3.0 */
1101 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1102 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1103 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1104 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1105 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1106 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1107 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1109 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1110 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1111 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1112 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1113 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1114 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1115 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1119 void (GLAPIENTRYP Rectf
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1125 void (GLAPIENTRYP DrawArrays
)( GLenum mode
, GLint start
, GLsizei count
);
1126 void (GLAPIENTRYP DrawElements
)( GLenum mode
, GLsizei count
, GLenum type
,
1127 const GLvoid
*indices
);
1128 void (GLAPIENTRYP DrawRangeElements
)( GLenum mode
, GLuint start
,
1129 GLuint end
, GLsizei count
,
1130 GLenum type
, const GLvoid
*indices
);
1131 void (GLAPIENTRYP MultiDrawElementsEXT
)( GLenum mode
, const GLsizei
*count
,
1133 const GLvoid
**indices
,
1135 void (GLAPIENTRYP DrawElementsBaseVertex
)( GLenum mode
, GLsizei count
,
1137 const GLvoid
*indices
,
1139 void (GLAPIENTRYP DrawRangeElementsBaseVertex
)( GLenum mode
, GLuint start
,
1140 GLuint end
, GLsizei count
,
1142 const GLvoid
*indices
,
1144 void (GLAPIENTRYP MultiDrawElementsBaseVertex
)( GLenum mode
,
1145 const GLsizei
*count
,
1147 const GLvoid
**indices
,
1149 const GLint
*basevertex
);
1150 void (GLAPIENTRYP DrawArraysInstanced
)(GLenum mode
, GLint first
,
1151 GLsizei count
, GLsizei primcount
);
1152 void (GLAPIENTRYP DrawElementsInstanced
)(GLenum mode
, GLsizei count
,
1153 GLenum type
, const GLvoid
*indices
,
1155 void (GLAPIENTRYP DrawElementsInstancedBaseVertex
)(GLenum mode
, GLsizei count
,
1156 GLenum type
, const GLvoid
*indices
,
1157 GLsizei primcount
, GLint basevertex
);
1163 * If you don't support eval, fallback to the default vertex format
1164 * on receiving an eval call and use the pipeline mechanism to
1165 * provide partial T&L acceleration.
1167 * Mesa will provide a set of helper functions to do eval within
1168 * accelerated vertex formats, eventually...
1171 void (GLAPIENTRYP EvalMesh1
)( GLenum mode
, GLint i1
, GLint i2
);
1172 void (GLAPIENTRYP EvalMesh2
)( GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
);
1178 #endif /* DD_INCLUDED */