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 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 texImage is the destination texture image.
208 void (*TexImage1D
)(struct gl_context
*ctx
,
209 struct gl_texture_image
*texImage
,
210 GLint internalFormat
,
211 GLint width
, GLint border
,
212 GLenum format
, GLenum type
, const GLvoid
*pixels
,
213 const struct gl_pixelstore_attrib
*packing
);
216 * Called by glTexImage2D().
218 * \sa dd_function_table::TexImage1D.
220 void (*TexImage2D
)(struct gl_context
*ctx
,
221 struct gl_texture_image
*texImage
,
222 GLint internalFormat
,
223 GLint width
, GLint height
, GLint border
,
224 GLenum format
, GLenum type
, const GLvoid
*pixels
,
225 const struct gl_pixelstore_attrib
*packing
);
228 * Called by glTexImage3D().
230 * \sa dd_function_table::TexImage1D.
232 void (*TexImage3D
)(struct gl_context
*ctx
,
233 struct gl_texture_image
*texImage
,
234 GLint internalFormat
,
235 GLint width
, GLint height
, GLint depth
, GLint border
,
236 GLenum format
, GLenum type
, const GLvoid
*pixels
,
237 const struct gl_pixelstore_attrib
*packing
);
240 * Called by glTexSubImage1D(). Replace a subset of the target texture
241 * with new texel data.
242 * \sa dd_function_table::TexImage1D.
244 void (*TexSubImage1D
)(struct gl_context
*ctx
,
245 struct gl_texture_image
*texImage
,
246 GLint xoffset
, GLsizei width
,
247 GLenum format
, GLenum type
,
248 const GLvoid
*pixels
,
249 const struct gl_pixelstore_attrib
*packing
);
252 * Called by glTexSubImage2D().
254 * \sa dd_function_table::TexSubImage1D.
256 void (*TexSubImage2D
)(struct gl_context
*ctx
,
257 struct gl_texture_image
*texImage
,
258 GLint xoffset
, GLint yoffset
,
259 GLsizei width
, GLsizei height
,
260 GLenum format
, GLenum type
,
261 const GLvoid
*pixels
,
262 const struct gl_pixelstore_attrib
*packing
);
265 * Called by glTexSubImage3D().
267 * \sa dd_function_table::TexSubImage1D.
269 void (*TexSubImage3D
)(struct gl_context
*ctx
,
270 struct gl_texture_image
*texImage
,
271 GLint xoffset
, GLint yoffset
, GLint zoffset
,
272 GLsizei width
, GLsizei height
, GLint depth
,
273 GLenum format
, GLenum type
,
274 const GLvoid
*pixels
,
275 const struct gl_pixelstore_attrib
*packing
);
279 * Called by glGetTexImage().
281 void (*GetTexImage
)( struct gl_context
*ctx
,
282 GLenum format
, GLenum type
, GLvoid
*pixels
,
283 struct gl_texture_image
*texImage
);
286 * Called by glCopyTexSubImage1D().
288 * Drivers should use a fallback routine from texstore.c if needed.
290 void (*CopyTexSubImage1D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
292 GLint x
, GLint y
, GLsizei width
);
294 * Called by glCopyTexSubImage2D().
296 * Drivers should use a fallback routine from texstore.c if needed.
298 void (*CopyTexSubImage2D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
299 GLint xoffset
, GLint yoffset
,
301 GLsizei width
, GLsizei height
);
303 * Called by glCopyTexSubImage3D().
305 * Drivers should use a fallback routine from texstore.c if needed.
307 void (*CopyTexSubImage3D
)( struct gl_context
*ctx
, GLenum target
, GLint level
,
308 GLint xoffset
, GLint yoffset
, GLint zoffset
,
310 GLsizei width
, GLsizei height
);
313 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
315 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
316 struct gl_texture_object
*texObj
);
319 * Called by glTexImage[123]D when user specifies a proxy texture
322 * \return GL_TRUE if the proxy test passes, or GL_FALSE if the test fails.
324 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
325 GLint level
, GLint internalFormat
,
326 GLenum format
, GLenum type
,
327 GLint width
, GLint height
,
328 GLint depth
, GLint border
);
333 * \name Compressed texture functions
338 * Called by glCompressedTexImage1D().
340 * \param target user specified.
341 * \param format user specified.
342 * \param type user specified.
343 * \param pixels user specified.
344 * \param packing indicates the image packing of pixels.
345 * \param texObj is the target texture object.
346 * \param texImage is the target texture image. It will have the texture \p
347 * width, \p height, \p depth, \p border and \p internalFormat information.
349 * \a retainInternalCopy is returned by this function and indicates whether
350 * core Mesa should keep an internal copy of the texture image.
352 void (*CompressedTexImage1D
)( struct gl_context
*ctx
, GLenum target
,
353 GLint level
, GLint internalFormat
,
354 GLsizei width
, GLint border
,
355 GLsizei imageSize
, const GLvoid
*data
,
356 struct gl_texture_object
*texObj
,
357 struct gl_texture_image
*texImage
);
359 * Called by glCompressedTexImage2D().
361 * \sa dd_function_table::CompressedTexImage1D.
363 void (*CompressedTexImage2D
)( struct gl_context
*ctx
, GLenum target
,
364 GLint level
, GLint internalFormat
,
365 GLsizei width
, GLsizei height
, GLint border
,
366 GLsizei imageSize
, const GLvoid
*data
,
367 struct gl_texture_object
*texObj
,
368 struct gl_texture_image
*texImage
);
370 * Called by glCompressedTexImage3D().
372 * \sa dd_function_table::CompressedTexImage3D.
374 void (*CompressedTexImage3D
)( struct gl_context
*ctx
, GLenum target
,
375 GLint level
, GLint internalFormat
,
376 GLsizei width
, GLsizei height
, GLsizei depth
,
378 GLsizei imageSize
, const GLvoid
*data
,
379 struct gl_texture_object
*texObj
,
380 struct gl_texture_image
*texImage
);
383 * Called by glCompressedTexSubImage1D().
385 * \param target user specified.
386 * \param level user specified.
387 * \param xoffset user specified.
388 * \param yoffset user specified.
389 * \param zoffset user specified.
390 * \param width user specified.
391 * \param height user specified.
392 * \param depth user specified.
393 * \param imageSize user specified.
394 * \param data user specified.
395 * \param texObj is the target texture object.
396 * \param texImage is the target texture image. It will have the texture \p
397 * width, \p height, \p depth, \p border and \p internalFormat information.
399 void (*CompressedTexSubImage1D
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
400 GLint xoffset
, GLsizei width
,
402 GLsizei imageSize
, const GLvoid
*data
,
403 struct gl_texture_object
*texObj
,
404 struct gl_texture_image
*texImage
);
406 * Called by glCompressedTexSubImage2D().
408 * \sa dd_function_table::CompressedTexImage3D.
410 void (*CompressedTexSubImage2D
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
411 GLint xoffset
, GLint yoffset
,
412 GLsizei width
, GLint height
,
414 GLsizei imageSize
, const GLvoid
*data
,
415 struct gl_texture_object
*texObj
,
416 struct gl_texture_image
*texImage
);
418 * Called by glCompressedTexSubImage3D().
420 * \sa dd_function_table::CompressedTexImage3D.
422 void (*CompressedTexSubImage3D
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
423 GLint xoffset
, GLint yoffset
, GLint zoffset
,
424 GLsizei width
, GLint height
, GLint depth
,
426 GLsizei imageSize
, const GLvoid
*data
,
427 struct gl_texture_object
*texObj
,
428 struct gl_texture_image
*texImage
);
432 * Called by glGetCompressedTexImage.
434 void (*GetCompressedTexImage
)(struct gl_context
*ctx
, GLenum target
, GLint level
,
436 struct gl_texture_object
*texObj
,
437 struct gl_texture_image
*texImage
);
442 * \name Texture object functions
447 * Called by glBindTexture().
449 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
450 struct gl_texture_object
*tObj
);
453 * Called to allocate a new texture object.
454 * A new gl_texture_object should be returned. The driver should
455 * attach to it any device-specific info it needs.
457 struct gl_texture_object
* (*NewTextureObject
)( struct gl_context
*ctx
, GLuint name
,
460 * Called when a texture object is about to be deallocated.
462 * Driver should delete the gl_texture_object object and anything
465 void (*DeleteTexture
)( struct gl_context
*ctx
, struct gl_texture_object
*tObj
);
468 * Called to allocate a new texture image object.
470 struct gl_texture_image
* (*NewTextureImage
)( struct gl_context
*ctx
);
472 /** Called to free a texture image object returned by NewTextureImage() */
473 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
474 struct gl_texture_image
*);
476 /** Called to allocate memory for a single texture image */
477 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
478 struct gl_texture_image
*texImage
,
479 gl_format format
, GLsizei width
,
480 GLsizei height
, GLsizei depth
);
483 * Called to free tImage->Data.
485 void (*FreeTextureImageBuffer
)( struct gl_context
*ctx
, struct gl_texture_image
*tImage
);
487 /** Map a slice of a texture image into user space.
488 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
489 * indicates the 1D array index.
490 * \param texImage the texture image
491 * \param slice the 3D image slice or array texture slice
492 * \param x, y, w, h region of interest
493 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT
494 * \param mapOut returns start of mapping of region of interest
495 * \param rowStrideOut returns row stride (in bytes)
497 void (*MapTextureImage
)(struct gl_context
*ctx
,
498 struct gl_texture_image
*texImage
,
500 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
502 GLubyte
**mapOut
, GLint
*rowStrideOut
);
504 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
505 struct gl_texture_image
*texImage
,
508 /** Map texture image data into user space */
509 void (*MapTexture
)( struct gl_context
*ctx
, struct gl_texture_object
*tObj
);
510 /** Unmap texture images from user space */
511 void (*UnmapTexture
)( struct gl_context
*ctx
, struct gl_texture_object
*tObj
);
513 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
514 * All the gl_texture_images in the texture object will have their
515 * dimensions, format, etc. initialized already.
517 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
518 struct gl_texture_object
*texObj
,
519 GLsizei levels
, GLsizei width
,
520 GLsizei height
, GLsizei depth
);
522 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
523 struct gl_renderbuffer
*rb
,
524 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
526 GLubyte
**mapOut
, GLint
*rowStrideOut
);
528 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
529 struct gl_renderbuffer
*rb
);
535 * \name Vertex/fragment program functions
538 /** Bind a vertex/fragment program */
539 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
, struct gl_program
*prog
);
540 /** Allocate a new program */
541 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
, GLuint id
);
542 /** Delete a program */
543 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
545 * Notify driver that a program string (and GPU code) has been specified
546 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
547 * supported by the driver.
549 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
550 struct gl_program
*prog
);
552 /** Query if program can be loaded onto hardware */
553 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
554 struct gl_program
*prog
);
559 * \name GLSL shader/program functions.
563 * Called when a shader program is linked.
565 * This gives drivers an opportunity to clone the IR and make their
566 * own transformations on it for the purposes of code generation.
568 GLboolean (*LinkShader
)(struct gl_context
*ctx
, struct gl_shader_program
*shader
);
572 * \name State-changing functions.
574 * \note drawing functions are above.
576 * These functions are called by their corresponding OpenGL API functions.
577 * They are \e also called by the gl_PopAttrib() function!!!
578 * May add more functions like these to the device driver in the future.
581 /** Specify the alpha test function */
582 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
583 /** Set the blend color */
584 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
585 /** Set the blend equation */
586 void (*BlendEquationSeparate
)(struct gl_context
*ctx
, GLenum modeRGB
, GLenum modeA
);
587 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
588 GLenum modeRGB
, GLenum modeA
);
589 /** Specify pixel arithmetic */
590 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
591 GLenum sfactorRGB
, GLenum dfactorRGB
,
592 GLenum sfactorA
, GLenum dfactorA
);
593 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
594 GLenum sfactorRGB
, GLenum dfactorRGB
,
595 GLenum sfactorA
, GLenum dfactorA
);
596 /** Specify clear values for the color buffers */
597 void (*ClearColor
)(struct gl_context
*ctx
,
598 const union gl_color_union color
);
599 /** Specify the clear value for the depth buffer */
600 void (*ClearDepth
)(struct gl_context
*ctx
, GLclampd d
);
601 /** Specify the clear value for the stencil buffer */
602 void (*ClearStencil
)(struct gl_context
*ctx
, GLint s
);
603 /** Specify a plane against which all geometry is clipped */
604 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*equation
);
605 /** Enable and disable writing of frame buffer color components */
606 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
607 GLboolean bmask
, GLboolean amask
);
608 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
609 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
610 /** Cause a material color to track the current color */
611 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
612 /** Specify whether front- or back-facing facets can be culled */
613 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
614 /** Define front- and back-facing polygons */
615 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
616 /** Specify the value used for depth buffer comparisons */
617 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
618 /** Enable or disable writing into the depth buffer */
619 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
620 /** Specify mapping of depth values from NDC to window coordinates */
621 void (*DepthRange
)(struct gl_context
*ctx
, GLclampd nearval
, GLclampd farval
);
622 /** Specify the current buffer for writing */
623 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
624 /** Specify the buffers for writing for fragment programs*/
625 void (*DrawBuffers
)( struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
626 /** Enable or disable server-side gl capabilities */
627 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
628 /** Specify fog parameters */
629 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
630 /** Specify implementation-specific hints */
631 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
632 /** Set light source parameters.
633 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
634 * been transformed to eye-space.
636 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
637 GLenum pname
, const GLfloat
*params
);
638 /** Set the lighting model parameters */
639 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
640 /** Specify the line stipple pattern */
641 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
642 /** Specify the width of rasterized lines */
643 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
644 /** Specify a logical pixel operation for color index rendering */
645 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
646 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
647 const GLfloat
*params
);
648 /** Specify the diameter of rasterized points */
649 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
650 /** Select a polygon rasterization mode */
651 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
652 /** Set the scale and units used to calculate depth values */
653 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
654 /** Set the polygon stippling pattern */
655 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
656 /* Specifies the current buffer for reading */
657 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
658 /** Set rasterization mode */
659 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
660 /** Define the scissor box */
661 void (*Scissor
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
662 /** Select flat or smooth shading */
663 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
664 /** OpenGL 2.0 two-sided StencilFunc */
665 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
666 GLint ref
, GLuint mask
);
667 /** OpenGL 2.0 two-sided StencilMask */
668 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
669 /** OpenGL 2.0 two-sided StencilOp */
670 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
671 GLenum zfail
, GLenum zpass
);
672 /** Control the generation of texture coordinates */
673 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
674 const GLfloat
*params
);
675 /** Set texture environment parameters */
676 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
677 const GLfloat
*param
);
678 /** Set texture parameters */
679 void (*TexParameter
)(struct gl_context
*ctx
, GLenum target
,
680 struct gl_texture_object
*texObj
,
681 GLenum pname
, const GLfloat
*params
);
682 /** Set the viewport */
683 void (*Viewport
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
688 * \name Vertex/pixel buffer object functions
691 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
692 struct gl_buffer_object
*obj
);
694 struct gl_buffer_object
* (*NewBufferObject
)( struct gl_context
*ctx
, GLuint buffer
,
697 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
699 GLboolean (*BufferData
)( struct gl_context
*ctx
, GLenum target
, GLsizeiptrARB size
,
700 const GLvoid
*data
, GLenum usage
,
701 struct gl_buffer_object
*obj
);
703 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
704 GLsizeiptrARB size
, const GLvoid
*data
,
705 struct gl_buffer_object
*obj
);
707 void (*GetBufferSubData
)( struct gl_context
*ctx
,
708 GLintptrARB offset
, GLsizeiptrARB size
,
709 GLvoid
*data
, struct gl_buffer_object
*obj
);
711 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
712 struct gl_buffer_object
*src
,
713 struct gl_buffer_object
*dst
,
714 GLintptr readOffset
, GLintptr writeOffset
,
717 /* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
719 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
720 GLsizeiptr length
, GLbitfield access
,
721 struct gl_buffer_object
*obj
);
723 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
724 GLintptr offset
, GLsizeiptr length
,
725 struct gl_buffer_object
*obj
);
727 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
728 struct gl_buffer_object
*obj
);
732 * \name Functions for GL_APPLE_object_purgeable
735 /* variations on ObjectPurgeable */
736 GLenum (*BufferObjectPurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
737 GLenum (*RenderObjectPurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
738 GLenum (*TextureObjectPurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
740 /* variations on ObjectUnpurgeable */
741 GLenum (*BufferObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
742 GLenum (*RenderObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
743 GLenum (*TextureObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
747 * \name Functions for GL_EXT_framebuffer_{object,blit}.
750 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
, GLuint name
);
751 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
, GLuint name
);
752 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
753 struct gl_framebuffer
*drawFb
,
754 struct gl_framebuffer
*readFb
);
755 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
756 struct gl_framebuffer
*fb
,
758 struct gl_renderbuffer
*rb
);
759 void (*RenderTexture
)(struct gl_context
*ctx
,
760 struct gl_framebuffer
*fb
,
761 struct gl_renderbuffer_attachment
*att
);
762 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
763 struct gl_renderbuffer_attachment
*att
);
764 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
765 struct gl_framebuffer
*fb
);
767 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
768 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
769 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
770 GLbitfield mask
, GLenum filter
);
773 * \name Query objects
776 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
777 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
778 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
779 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
780 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
781 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
786 * \name Vertex Array objects
789 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
790 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
791 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
795 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
798 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
, GLuint name
, GLenum type
);
799 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
800 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
, GLuint name
);
801 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
802 struct gl_shader_program
*shProg
);
803 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
808 * \name Support for multiple T&L engines
813 * Set by the driver-supplied T&L engine.
815 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
817 GLuint CurrentExecPrimitive
;
820 * Current state of an in-progress compilation.
822 * May take on any of the additional values PRIM_OUTSIDE_BEGIN_END,
823 * PRIM_INSIDE_UNKNOWN_PRIM or PRIM_UNKNOWN defined above.
825 GLuint CurrentSavePrimitive
;
828 #define FLUSH_STORED_VERTICES 0x1
829 #define FLUSH_UPDATE_CURRENT 0x2
831 * Set by the driver-supplied T&L engine whenever vertices are buffered
832 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current is not
835 * The dd_function_table::FlushVertices call below may be used to resolve
839 GLuint SaveNeedFlush
;
842 /* Called prior to any of the GLvertexformat functions being
843 * called. Paired with Driver.FlushVertices().
845 void (*BeginVertices
)( struct gl_context
*ctx
);
848 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
849 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
850 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
851 * __struct gl_contextRec::Current and gl_light_attrib::Material
853 * Note that the default T&L engine never clears the
854 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
856 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
857 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
860 * \brief Hook for drivers to prepare for a glBegin/glEnd block
862 * This hook is called in vbo_exec_Begin() before any action, including
863 * state updates, occurs.
865 void (*PrepareExecBegin
)( struct gl_context
*ctx
);
868 * Give the driver the opportunity to hook in its own vtxfmt for
869 * compiling optimized display lists. This is called on each valid
870 * glBegin() during list compilation.
872 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
875 * Notify driver that the special derived value _NeedEyeCoords has
878 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
881 * Called by glNewList().
883 * Let the T&L component know what is going on with display lists
884 * in time to make changes to dispatch tables, etc.
886 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
888 * Called by glEndList().
890 * \sa dd_function_table::NewList.
892 void (*EndList
)( struct gl_context
*ctx
);
895 * Called by glCallList(s).
897 * Notify the T&L component before and after calling a display list.
899 void (*BeginCallList
)( struct gl_context
*ctx
,
900 struct gl_display_list
*dlist
);
902 * Called by glEndCallList().
904 * \sa dd_function_table::BeginCallList.
906 void (*EndCallList
)( struct gl_context
*ctx
);
911 * \name GL_ARB_sync interfaces
914 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
915 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*, GLenum
, GLbitfield
);
916 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
917 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
918 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
919 GLbitfield
, GLuint64
);
920 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
921 GLbitfield
, GLuint64
);
924 /** GL_NV_conditional_render */
925 void (*BeginConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
927 void (*EndConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
930 * \name GL_OES_draw_texture interface
933 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
934 GLfloat width
, GLfloat height
);
938 * \name GL_OES_EGL_image interface
940 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
941 struct gl_texture_object
*texObj
,
942 struct gl_texture_image
*texImage
,
943 GLeglImageOES image_handle
);
944 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
945 struct gl_renderbuffer
*rb
,
949 * \name GL_EXT_transform_feedback interface
951 struct gl_transform_feedback_object
*
952 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
953 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
954 struct gl_transform_feedback_object
*obj
);
955 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
956 struct gl_transform_feedback_object
*obj
);
957 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
958 struct gl_transform_feedback_object
*obj
);
959 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
960 struct gl_transform_feedback_object
*obj
);
961 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
962 struct gl_transform_feedback_object
*obj
);
965 * \name GL_NV_texture_barrier interface
967 void (*TextureBarrier
)(struct gl_context
*ctx
);
970 * \name GL_ARB_sampler_objects
972 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
974 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
975 struct gl_sampler_object
*samp
);
980 * Transform/Clip/Lighting interface
982 * Drivers present a reduced set of the functions possible in
983 * glBegin()/glEnd() objects. Core mesa provides translation stubs for the
984 * remaining functions to map down to these entry points.
986 * These are the initial values to be installed into dispatch by
987 * mesa. If the T&L driver wants to modify the dispatch table
988 * while installed, it must do so itself. It would be possible for
989 * the vertexformat to install its own initial values for these
990 * functions, but this way there is an obvious list of what is
991 * expected of the driver.
993 * If the driver wants to hook in entry points other than those
994 * listed, it must restore them to their original values in
995 * the disable() callback, below.
1002 void (GLAPIENTRYP ArrayElement
)( GLint
);
1003 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
1004 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
1005 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1006 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
1007 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
1008 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
1009 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
1010 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
1011 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
1012 void (GLAPIENTRYP EvalPoint1
)( GLint
);
1013 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
1014 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
1015 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
1016 void (GLAPIENTRYP Indexf
)( GLfloat
);
1017 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
1018 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
1019 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
1020 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
1021 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
1022 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
1023 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
1024 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
1025 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1026 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
1027 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
1028 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
1029 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
1030 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
1031 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
1032 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
1033 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
1034 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
1035 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
1036 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1037 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1038 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1039 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1040 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1041 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1042 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1043 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1044 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1045 void (GLAPIENTRYP CallList
)( GLuint
);
1046 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1047 void (GLAPIENTRYP Begin
)( GLenum
);
1048 void (GLAPIENTRYP End
)( void );
1049 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1050 /* GL_NV_vertex_program */
1051 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1052 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1053 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1054 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1055 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1056 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1057 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1058 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1059 /* GL_ARB_vertex_program */
1060 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1061 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1062 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1063 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1064 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1065 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1066 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1067 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1069 /* GL_EXT_gpu_shader4 / GL 3.0 */
1070 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1071 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1072 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1073 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1074 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1075 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1076 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1078 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1079 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1080 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1081 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1082 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1083 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1084 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1086 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1087 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1088 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1090 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1091 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1093 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1094 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1096 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1097 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1099 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1100 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1102 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1103 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1105 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1106 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1108 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1109 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1110 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1111 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1112 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1113 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1114 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1115 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1117 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1118 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1120 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1121 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1123 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1124 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1126 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1127 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1129 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1130 GLboolean normalized
, GLuint value
);
1131 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1132 GLboolean normalized
, GLuint value
);
1133 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1134 GLboolean normalized
, GLuint value
);
1135 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1136 GLboolean normalized
, GLuint value
);
1137 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1138 GLboolean normalized
,
1139 const GLuint
*value
);
1140 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1141 GLboolean normalized
,
1142 const GLuint
*value
);
1143 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1144 GLboolean normalized
,
1145 const GLuint
*value
);
1146 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1147 GLboolean normalized
,
1148 const GLuint
*value
);
1152 void (GLAPIENTRYP Rectf
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1158 void (GLAPIENTRYP DrawArrays
)( GLenum mode
, GLint start
, GLsizei count
);
1159 void (GLAPIENTRYP DrawElements
)( GLenum mode
, GLsizei count
, GLenum type
,
1160 const GLvoid
*indices
);
1161 void (GLAPIENTRYP DrawRangeElements
)( GLenum mode
, GLuint start
,
1162 GLuint end
, GLsizei count
,
1163 GLenum type
, const GLvoid
*indices
);
1164 void (GLAPIENTRYP MultiDrawElementsEXT
)( GLenum mode
, const GLsizei
*count
,
1166 const GLvoid
**indices
,
1168 void (GLAPIENTRYP DrawElementsBaseVertex
)( GLenum mode
, GLsizei count
,
1170 const GLvoid
*indices
,
1172 void (GLAPIENTRYP DrawRangeElementsBaseVertex
)( GLenum mode
, GLuint start
,
1173 GLuint end
, GLsizei count
,
1175 const GLvoid
*indices
,
1177 void (GLAPIENTRYP MultiDrawElementsBaseVertex
)( GLenum mode
,
1178 const GLsizei
*count
,
1180 const GLvoid
**indices
,
1182 const GLint
*basevertex
);
1183 void (GLAPIENTRYP DrawArraysInstanced
)(GLenum mode
, GLint first
,
1184 GLsizei count
, GLsizei primcount
);
1185 void (GLAPIENTRYP DrawElementsInstanced
)(GLenum mode
, GLsizei count
,
1186 GLenum type
, const GLvoid
*indices
,
1188 void (GLAPIENTRYP DrawElementsInstancedBaseVertex
)(GLenum mode
, GLsizei count
,
1189 GLenum type
, const GLvoid
*indices
,
1190 GLsizei primcount
, GLint basevertex
);
1191 void (GLAPIENTRYP DrawTransformFeedback
)(GLenum mode
, GLuint name
);
1197 * If you don't support eval, fallback to the default vertex format
1198 * on receiving an eval call and use the pipeline mechanism to
1199 * provide partial T&L acceleration.
1201 * Mesa will provide a set of helper functions to do eval within
1202 * accelerated vertex formats, eventually...
1205 void (GLAPIENTRYP EvalMesh1
)( GLenum mode
, GLint i1
, GLint i2
);
1206 void (GLAPIENTRYP EvalMesh2
)( GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
);
1212 #endif /* DD_INCLUDED */