3 * Device driver interfaces.
7 * Mesa 3-D graphics library
9 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 * 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
;
43 struct gl_pixelstore_attrib
;
45 struct gl_renderbuffer
;
46 struct gl_renderbuffer_attachment
;
48 struct gl_shader_program
;
49 struct gl_texture_image
;
50 struct gl_texture_object
;
52 /* GL_ARB_vertex_buffer_object */
53 /* Modifies GL_MAP_UNSYNCHRONIZED_BIT to allow driver to fail (return
54 * NULL) if buffer is unavailable for immediate mapping.
56 * Does GL_MAP_INVALIDATE_RANGE_BIT do this? It seems so, but it
57 * would require more book-keeping in the driver than seems necessary
60 * Does GL_MAP_INVALDIATE_BUFFER_BIT do this? Not really -- we don't
61 * want to provoke the driver to throw away the old storage, we will
62 * respect the contents of already referenced data.
64 #define MESA_MAP_NOWAIT_BIT 0x0040
68 * Device driver function table.
69 * Core Mesa uses these function pointers to call into device drivers.
70 * Most of these functions directly correspond to OpenGL state commands.
71 * Core Mesa will call these functions after error checking has been done
72 * so that the drivers don't have to worry about error testing.
74 * Vertex transformation/clipping/lighting is patched into the T&L module.
75 * Rasterization functions are patched into the swrast module.
77 * Note: when new functions are added here, the drivers/common/driverfuncs.c
78 * file should be updated too!!!
80 struct dd_function_table
{
82 * Return a string as needed by glGetString().
83 * Only the GL_RENDERER query must be implemented. Otherwise, NULL can be
86 const GLubyte
* (*GetString
)( struct gl_context
*ctx
, GLenum name
);
89 * Notify the driver after Mesa has made some internal state changes.
91 * This is in addition to any state change callbacks Mesa may already have
94 void (*UpdateState
)( struct gl_context
*ctx
, GLbitfield new_state
);
97 * Resize the given framebuffer to the given size.
98 * XXX OBSOLETE: this function will be removed in the future.
100 void (*ResizeBuffers
)( struct gl_context
*ctx
, struct gl_framebuffer
*fb
,
101 GLuint width
, GLuint height
);
104 * This is called whenever glFinish() is called.
106 void (*Finish
)( struct gl_context
*ctx
);
109 * This is called whenever glFlush() is called.
111 void (*Flush
)( struct gl_context
*ctx
);
114 * Clear the color/depth/stencil/accum buffer(s).
115 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
116 * renderbuffers need to be cleared.
118 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
121 * Execute glAccum command.
123 void (*Accum
)( struct gl_context
*ctx
, GLenum op
, GLfloat value
);
127 * Execute glRasterPos, updating the ctx->Current.Raster fields
129 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
132 * \name Image-related functions
137 * Called by glDrawPixels().
138 * \p unpack describes how to unpack the source image data.
140 void (*DrawPixels
)( struct gl_context
*ctx
,
141 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
142 GLenum format
, GLenum type
,
143 const struct gl_pixelstore_attrib
*unpack
,
144 const GLvoid
*pixels
);
147 * Called by glReadPixels().
149 void (*ReadPixels
)( struct gl_context
*ctx
,
150 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
151 GLenum format
, GLenum type
,
152 const struct gl_pixelstore_attrib
*unpack
,
156 * Called by glCopyPixels().
158 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
159 GLsizei width
, GLsizei height
,
160 GLint dstx
, GLint dsty
, GLenum type
);
163 * Called by glBitmap().
165 void (*Bitmap
)( struct gl_context
*ctx
,
166 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
167 const struct gl_pixelstore_attrib
*unpack
,
168 const GLubyte
*bitmap
);
173 * \name Texture image functions
178 * Choose actual hardware texture format given the texture target, the
179 * user-provided source image format and type and the desired internal
180 * format. In some cases, srcFormat and srcType can be GL_NONE.
181 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
182 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
183 * Called by glTexImage(), etc.
185 mesa_format (*ChooseTextureFormat
)(struct gl_context
*ctx
,
186 GLenum target
, GLint internalFormat
,
187 GLenum srcFormat
, GLenum srcType
);
190 * Determine sample counts support for a particular target and format
192 * \param ctx GL context
193 * \param target GL target enum
194 * \param internalFormat GL format enum
195 * \param samples Buffer to hold the returned sample counts.
196 * Drivers \b must \b not return more than 16 counts.
199 * The number of sample counts actually written to \c samples. If
200 * \c internaFormat is not renderable, zero is returned.
202 size_t (*QuerySamplesForFormat
)(struct gl_context
*ctx
,
204 GLenum internalFormat
,
208 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
209 * Allocate texture memory and copy the user's image to the buffer.
210 * The gl_texture_image fields, etc. will be fully initialized.
211 * The parameters are the same as glTexImage3D(), plus:
212 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
213 * \param packing describes how to unpack the source data.
214 * \param texImage is the destination texture image.
216 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
217 struct gl_texture_image
*texImage
,
218 GLenum format
, GLenum type
, const GLvoid
*pixels
,
219 const struct gl_pixelstore_attrib
*packing
);
222 * Called by glTexSubImage[123]D().
223 * Replace a subset of the target texture with new texel data.
225 void (*TexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
226 struct gl_texture_image
*texImage
,
227 GLint xoffset
, GLint yoffset
, GLint zoffset
,
228 GLsizei width
, GLsizei height
, GLint depth
,
229 GLenum format
, GLenum type
,
230 const GLvoid
*pixels
,
231 const struct gl_pixelstore_attrib
*packing
);
235 * Called by glGetTexImage().
237 void (*GetTexImage
)( struct gl_context
*ctx
,
238 GLenum format
, GLenum type
, GLvoid
*pixels
,
239 struct gl_texture_image
*texImage
);
242 * Called by glCopyTex[Sub]Image[123]D().
244 * This function should copy a rectangular region in the rb to a single
245 * destination slice, specified by @slice. In the case of 1D array
246 * textures (where one GL call can potentially affect multiple destination
247 * slices), core mesa takes care of calling this function multiple times,
248 * once for each scanline to be copied.
250 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
251 struct gl_texture_image
*texImage
,
252 GLint xoffset
, GLint yoffset
, GLint slice
,
253 struct gl_renderbuffer
*rb
,
255 GLsizei width
, GLsizei height
);
258 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
260 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
261 struct gl_texture_object
*texObj
);
264 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
265 * and glTexStorage to check if the dimensions of the texture image
267 * \param target any GL_PROXY_TEXTURE_x target
268 * \return GL_TRUE if the image is OK, GL_FALSE if too large
270 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
271 GLint level
, mesa_format format
,
272 GLint width
, GLint height
,
273 GLint depth
, GLint border
);
278 * \name Compressed texture functions
283 * Called by glCompressedTexImage[123]D().
285 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
286 struct gl_texture_image
*texImage
,
287 GLsizei imageSize
, const GLvoid
*data
);
290 * Called by glCompressedTexSubImage[123]D().
292 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
293 struct gl_texture_image
*texImage
,
294 GLint xoffset
, GLint yoffset
, GLint zoffset
,
295 GLsizei width
, GLint height
, GLint depth
,
297 GLsizei imageSize
, const GLvoid
*data
);
300 * Called by glGetCompressedTexImage.
302 void (*GetCompressedTexImage
)(struct gl_context
*ctx
,
303 struct gl_texture_image
*texImage
,
308 * \name Texture object / image functions
313 * Called by glBindTexture().
315 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
316 struct gl_texture_object
*tObj
);
319 * Called to allocate a new texture object. Drivers will usually
320 * allocate/return a subclass of gl_texture_object.
322 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
323 GLuint name
, GLenum target
);
325 * Called to delete/free a texture object. Drivers should free the
326 * object and any image data it contains.
328 void (*DeleteTexture
)(struct gl_context
*ctx
,
329 struct gl_texture_object
*texObj
);
331 /** Called to allocate a new texture image object. */
332 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
334 /** Called to free a texture image object returned by NewTextureImage() */
335 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
336 struct gl_texture_image
*);
338 /** Called to allocate memory for a single texture image */
339 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
340 struct gl_texture_image
*texImage
);
342 /** Free the memory for a single texture image */
343 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
344 struct gl_texture_image
*texImage
);
346 /** Map a slice of a texture image into user space.
347 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
348 * indicates the 1D array index.
349 * \param texImage the texture image
350 * \param slice the 3D image slice or array texture slice
351 * \param x, y, w, h region of interest
352 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
353 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
354 * \param mapOut returns start of mapping of region of interest
355 * \param rowStrideOut returns row stride (in bytes). In the case of a
356 * compressed texture, this is the byte stride between one row of blocks
359 void (*MapTextureImage
)(struct gl_context
*ctx
,
360 struct gl_texture_image
*texImage
,
362 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
364 GLubyte
**mapOut
, GLint
*rowStrideOut
);
366 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
367 struct gl_texture_image
*texImage
,
370 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
371 * All the gl_texture_images in the texture object will have their
372 * dimensions, format, etc. initialized already.
374 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
375 struct gl_texture_object
*texObj
,
376 GLsizei levels
, GLsizei width
,
377 GLsizei height
, GLsizei depth
);
379 /** Called as part of glTextureView to add views to origTexObj */
380 GLboolean (*TextureView
)(struct gl_context
*ctx
,
381 struct gl_texture_object
*texObj
,
382 struct gl_texture_object
*origTexObj
);
385 * Map a renderbuffer into user space.
386 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
387 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
389 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
390 struct gl_renderbuffer
*rb
,
391 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
393 GLubyte
**mapOut
, GLint
*rowStrideOut
);
395 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
396 struct gl_renderbuffer
*rb
);
402 * \name Vertex/fragment program functions
405 /** Bind a vertex/fragment program */
406 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
,
407 struct gl_program
*prog
);
408 /** Allocate a new program */
409 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
,
411 /** Delete a program */
412 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
414 * Notify driver that a program string (and GPU code) has been specified
415 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
416 * supported by the driver.
418 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
419 struct gl_program
*prog
);
422 * Notify driver that the sampler uniforms for the current program have
423 * changed. On some drivers, this may require shader recompiles.
425 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
426 struct gl_program
*prog
);
428 /** Query if program can be loaded onto hardware */
429 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
430 struct gl_program
*prog
);
435 * \name GLSL shader/program functions.
439 * Called when a shader program is linked.
441 * This gives drivers an opportunity to clone the IR and make their
442 * own transformations on it for the purposes of code generation.
444 GLboolean (*LinkShader
)(struct gl_context
*ctx
,
445 struct gl_shader_program
*shader
);
449 * \name State-changing functions.
451 * \note drawing functions are above.
453 * These functions are called by their corresponding OpenGL API functions.
454 * They are \e also called by the gl_PopAttrib() function!!!
455 * May add more functions like these to the device driver in the future.
458 /** Specify the alpha test function */
459 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
460 /** Set the blend color */
461 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
462 /** Set the blend equation */
463 void (*BlendEquationSeparate
)(struct gl_context
*ctx
,
464 GLenum modeRGB
, GLenum modeA
);
465 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
466 GLenum modeRGB
, GLenum modeA
);
467 /** Specify pixel arithmetic */
468 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
469 GLenum sfactorRGB
, GLenum dfactorRGB
,
470 GLenum sfactorA
, GLenum dfactorA
);
471 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
472 GLenum sfactorRGB
, GLenum dfactorRGB
,
473 GLenum sfactorA
, GLenum dfactorA
);
474 /** Specify a plane against which all geometry is clipped */
475 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*eq
);
476 /** Enable and disable writing of frame buffer color components */
477 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
478 GLboolean bmask
, GLboolean amask
);
479 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
480 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
481 /** Cause a material color to track the current color */
482 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
483 /** Specify whether front- or back-facing facets can be culled */
484 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
485 /** Define front- and back-facing polygons */
486 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
487 /** Specify the value used for depth buffer comparisons */
488 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
489 /** Enable or disable writing into the depth buffer */
490 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
491 /** Specify mapping of depth values from NDC to window coordinates */
492 void (*DepthRange
)(struct gl_context
*ctx
);
493 /** Specify the current buffer for writing */
494 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
495 /** Specify the buffers for writing for fragment programs*/
496 void (*DrawBuffers
)(struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
497 /** Enable or disable server-side gl capabilities */
498 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
499 /** Specify fog parameters */
500 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
501 /** Specify implementation-specific hints */
502 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
503 /** Set light source parameters.
504 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
505 * been transformed to eye-space.
507 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
508 GLenum pname
, const GLfloat
*params
);
509 /** Set the lighting model parameters */
510 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
,
511 const GLfloat
*params
);
512 /** Specify the line stipple pattern */
513 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
514 /** Specify the width of rasterized lines */
515 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
516 /** Specify a logical pixel operation for color index rendering */
517 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
518 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
519 const GLfloat
*params
);
520 /** Specify the diameter of rasterized points */
521 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
522 /** Select a polygon rasterization mode */
523 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
524 /** Set the scale and units used to calculate depth values */
525 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
526 /** Set the polygon stippling pattern */
527 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
528 /* Specifies the current buffer for reading */
529 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
530 /** Set rasterization mode */
531 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
532 /** Define the scissor box */
533 void (*Scissor
)(struct gl_context
*ctx
);
534 /** Select flat or smooth shading */
535 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
536 /** OpenGL 2.0 two-sided StencilFunc */
537 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
538 GLint ref
, GLuint mask
);
539 /** OpenGL 2.0 two-sided StencilMask */
540 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
541 /** OpenGL 2.0 two-sided StencilOp */
542 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
543 GLenum zfail
, GLenum zpass
);
544 /** Control the generation of texture coordinates */
545 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
546 const GLfloat
*params
);
547 /** Set texture environment parameters */
548 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
549 const GLfloat
*param
);
550 /** Set texture parameters */
551 void (*TexParameter
)(struct gl_context
*ctx
,
552 struct gl_texture_object
*texObj
,
553 GLenum pname
, const GLfloat
*params
);
554 /** Set the viewport */
555 void (*Viewport
)(struct gl_context
*ctx
);
560 * \name Vertex/pixel buffer object functions
563 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
564 struct gl_buffer_object
*obj
);
566 struct gl_buffer_object
* (*NewBufferObject
)(struct gl_context
*ctx
,
567 GLuint buffer
, GLenum target
);
569 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
571 GLboolean (*BufferData
)(struct gl_context
*ctx
, GLenum target
,
572 GLsizeiptrARB size
, const GLvoid
*data
, GLenum usage
,
573 struct gl_buffer_object
*obj
);
575 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
576 GLsizeiptrARB size
, const GLvoid
*data
,
577 struct gl_buffer_object
*obj
);
579 void (*GetBufferSubData
)( struct gl_context
*ctx
,
580 GLintptrARB offset
, GLsizeiptrARB size
,
581 GLvoid
*data
, struct gl_buffer_object
*obj
);
583 void (*ClearBufferSubData
)( struct gl_context
*ctx
,
584 GLintptr offset
, GLsizeiptr size
,
585 const GLvoid
*clearValue
,
586 GLsizeiptr clearValueSize
,
587 struct gl_buffer_object
*obj
);
589 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
590 struct gl_buffer_object
*src
,
591 struct gl_buffer_object
*dst
,
592 GLintptr readOffset
, GLintptr writeOffset
,
595 /* Returns pointer to the start of the mapped range.
596 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
598 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
599 GLsizeiptr length
, GLbitfield access
,
600 struct gl_buffer_object
*obj
);
602 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
603 GLintptr offset
, GLsizeiptr length
,
604 struct gl_buffer_object
*obj
);
606 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
607 struct gl_buffer_object
*obj
);
611 * \name Functions for GL_APPLE_object_purgeable
614 /* variations on ObjectPurgeable */
615 GLenum (*BufferObjectPurgeable
)(struct gl_context
*ctx
,
616 struct gl_buffer_object
*obj
, GLenum option
);
617 GLenum (*RenderObjectPurgeable
)(struct gl_context
*ctx
,
618 struct gl_renderbuffer
*obj
, GLenum option
);
619 GLenum (*TextureObjectPurgeable
)(struct gl_context
*ctx
,
620 struct gl_texture_object
*obj
,
623 /* variations on ObjectUnpurgeable */
624 GLenum (*BufferObjectUnpurgeable
)(struct gl_context
*ctx
,
625 struct gl_buffer_object
*obj
,
627 GLenum (*RenderObjectUnpurgeable
)(struct gl_context
*ctx
,
628 struct gl_renderbuffer
*obj
,
630 GLenum (*TextureObjectUnpurgeable
)(struct gl_context
*ctx
,
631 struct gl_texture_object
*obj
,
636 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
639 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
,
641 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
,
643 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
644 struct gl_framebuffer
*drawFb
,
645 struct gl_framebuffer
*readFb
);
646 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
647 struct gl_framebuffer
*fb
,
649 struct gl_renderbuffer
*rb
);
650 void (*RenderTexture
)(struct gl_context
*ctx
,
651 struct gl_framebuffer
*fb
,
652 struct gl_renderbuffer_attachment
*att
);
653 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
654 struct gl_renderbuffer
*rb
);
655 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
656 struct gl_framebuffer
*fb
);
658 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
659 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
660 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
661 GLbitfield mask
, GLenum filter
);
662 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
663 GLenum target
, GLsizei numAttachments
,
664 const GLenum
*attachments
);
667 * \name Query objects
670 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
671 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
672 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
673 void (*QueryCounter
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
674 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
675 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
676 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
680 * \name Performance monitors
683 struct gl_perf_monitor_object
* (*NewPerfMonitor
)(struct gl_context
*ctx
);
684 void (*DeletePerfMonitor
)(struct gl_context
*ctx
,
685 struct gl_perf_monitor_object
*m
);
686 GLboolean (*BeginPerfMonitor
)(struct gl_context
*ctx
,
687 struct gl_perf_monitor_object
*m
);
689 /** Stop an active performance monitor, discarding results. */
690 void (*ResetPerfMonitor
)(struct gl_context
*ctx
,
691 struct gl_perf_monitor_object
*m
);
692 void (*EndPerfMonitor
)(struct gl_context
*ctx
,
693 struct gl_perf_monitor_object
*m
);
694 GLboolean (*IsPerfMonitorResultAvailable
)(struct gl_context
*ctx
,
695 struct gl_perf_monitor_object
*m
);
696 void (*GetPerfMonitorResult
)(struct gl_context
*ctx
,
697 struct gl_perf_monitor_object
*m
,
700 GLint
*bytesWritten
);
705 * \name Vertex Array objects
708 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
709 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*);
710 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*);
714 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
717 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
,
718 GLuint name
, GLenum type
);
719 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
720 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
,
722 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
723 struct gl_shader_program
*shProg
);
724 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
729 * \name Support for multiple T&L engines
734 * Set by the driver-supplied T&L engine.
736 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
738 GLuint CurrentExecPrimitive
;
741 * Current glBegin state of an in-progress compilation. May be
742 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
745 GLuint CurrentSavePrimitive
;
748 #define FLUSH_STORED_VERTICES 0x1
749 #define FLUSH_UPDATE_CURRENT 0x2
751 * Set by the driver-supplied T&L engine whenever vertices are buffered
752 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current
753 * is not updated. A bitmask of the FLUSH_x values above.
755 * The dd_function_table::FlushVertices call below may be used to resolve
758 GLbitfield NeedFlush
;
760 /** Need to call SaveFlushVertices() upon state change? */
761 GLboolean SaveNeedFlush
;
763 /* Called prior to any of the GLvertexformat functions being
764 * called. Paired with Driver.FlushVertices().
766 void (*BeginVertices
)( struct gl_context
*ctx
);
769 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
770 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
771 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
772 * __struct gl_contextRec::Current and gl_light_attrib::Material
774 * Note that the default T&L engine never clears the
775 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
777 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
778 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
781 * Give the driver the opportunity to hook in its own vtxfmt for
782 * compiling optimized display lists. This is called on each valid
783 * glBegin() during list compilation.
785 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
788 * Notify driver that the special derived value _NeedEyeCoords has
791 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
794 * Called by glNewList().
796 * Let the T&L component know what is going on with display lists
797 * in time to make changes to dispatch tables, etc.
799 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
801 * Called by glEndList().
803 * \sa dd_function_table::NewList.
805 void (*EndList
)( struct gl_context
*ctx
);
808 * Called by glCallList(s).
810 * Notify the T&L component before and after calling a display list.
812 void (*BeginCallList
)( struct gl_context
*ctx
,
813 struct gl_display_list
*dlist
);
815 * Called by glEndCallList().
817 * \sa dd_function_table::BeginCallList.
819 void (*EndCallList
)( struct gl_context
*ctx
);
824 * \name GL_ARB_sync interfaces
827 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
828 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*,
830 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
831 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
832 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
833 GLbitfield
, GLuint64
);
834 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
835 GLbitfield
, GLuint64
);
838 /** GL_NV_conditional_render */
839 void (*BeginConditionalRender
)(struct gl_context
*ctx
,
840 struct gl_query_object
*q
,
842 void (*EndConditionalRender
)(struct gl_context
*ctx
,
843 struct gl_query_object
*q
);
846 * \name GL_OES_draw_texture interface
849 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
850 GLfloat width
, GLfloat height
);
854 * \name GL_OES_EGL_image interface
856 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
857 struct gl_texture_object
*texObj
,
858 struct gl_texture_image
*texImage
,
859 GLeglImageOES image_handle
);
860 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
861 struct gl_renderbuffer
*rb
,
865 * \name GL_EXT_transform_feedback interface
867 struct gl_transform_feedback_object
*
868 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
869 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
870 struct gl_transform_feedback_object
*obj
);
871 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
872 struct gl_transform_feedback_object
*obj
);
873 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
874 struct gl_transform_feedback_object
*obj
);
875 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
876 struct gl_transform_feedback_object
*obj
);
877 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
878 struct gl_transform_feedback_object
*obj
);
881 * Return the number of vertices written to a stream during the last
882 * Begin/EndTransformFeedback block.
884 GLsizei (*GetTransformFeedbackVertexCount
)(struct gl_context
*ctx
,
885 struct gl_transform_feedback_object
*obj
,
889 * \name GL_NV_texture_barrier interface
891 void (*TextureBarrier
)(struct gl_context
*ctx
);
894 * \name GL_ARB_sampler_objects
896 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
898 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
899 struct gl_sampler_object
*samp
);
902 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
903 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
905 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
908 * \name GL_ARB_texture_multisample
910 void (*GetSamplePosition
)(struct gl_context
*ctx
,
911 struct gl_framebuffer
*fb
,
916 * \name NV_vdpau_interop interface
918 void (*VDPAUMapSurface
)(struct gl_context
*ctx
, GLenum target
,
919 GLenum access
, GLboolean output
,
920 struct gl_texture_object
*texObj
,
921 struct gl_texture_image
*texImage
,
922 const GLvoid
*vdpSurface
, GLuint index
);
923 void (*VDPAUUnmapSurface
)(struct gl_context
*ctx
, GLenum target
,
924 GLenum access
, GLboolean output
,
925 struct gl_texture_object
*texObj
,
926 struct gl_texture_image
*texImage
,
927 const GLvoid
*vdpSurface
, GLuint index
);
930 * Query reset status for GL_ARB_robustness
932 * Per \c glGetGraphicsResetStatusARB, this function should return a
933 * non-zero value once after a reset. If a reset is non-atomic, the
934 * non-zero status should be returned for the duration of the reset.
936 GLenum (*GetGraphicsResetStatus
)(struct gl_context
*ctx
);
939 * \name GL_ARB_shader_image_load_store interface.
942 void (*BindImageTexture
)(struct gl_context
*ctx
,
943 struct gl_image_unit
*unit
,
944 struct gl_texture_object
*texObj
,
945 GLint level
, GLboolean layered
, GLint layer
,
946 GLenum access
, GLenum format
);
948 void (*MemoryBarrier
)(struct gl_context
*ctx
, GLbitfield barriers
);
954 * Per-vertex functions.
956 * These are the functions which can appear between glBegin and glEnd.
957 * Depending on whether we're inside or outside a glBegin/End pair
958 * and whether we're in immediate mode or building a display list, these
959 * functions behave differently. This structure allows us to switch
960 * between those modes more easily.
962 * Generally, these pointers point to functions in the VBO module.
965 void (GLAPIENTRYP ArrayElement
)( GLint
);
966 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
967 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
968 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
969 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
970 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
971 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
972 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
973 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
974 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
975 void (GLAPIENTRYP EvalPoint1
)( GLint
);
976 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
977 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
978 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
979 void (GLAPIENTRYP Indexf
)( GLfloat
);
980 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
981 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
982 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
983 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
984 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
985 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
986 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
987 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
988 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
989 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
990 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
991 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
992 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
993 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
994 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
995 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
996 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
997 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
998 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
999 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1000 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1001 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1002 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1003 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1004 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1005 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1006 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1007 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1008 void (GLAPIENTRYP CallList
)( GLuint
);
1009 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1010 void (GLAPIENTRYP Begin
)( GLenum
);
1011 void (GLAPIENTRYP End
)( void );
1012 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1013 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
1014 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1015 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1016 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1017 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1018 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1019 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1020 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1021 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1022 /* GL_ARB_vertex_program */
1023 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1024 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1025 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1026 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1027 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1028 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1029 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1030 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1032 /* GL_EXT_gpu_shader4 / GL 3.0 */
1033 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1034 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1035 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1036 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1037 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1038 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1039 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1041 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1042 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1043 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1044 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1045 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1046 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1047 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1049 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1050 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1051 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1053 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1054 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1056 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1057 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1059 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1060 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1062 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1063 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1065 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1066 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1068 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1069 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1071 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1072 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1073 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1074 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1075 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1076 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1077 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1078 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1080 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1081 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1083 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1084 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1086 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1087 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1089 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1090 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1092 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1093 GLboolean normalized
, GLuint value
);
1094 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1095 GLboolean normalized
, GLuint value
);
1096 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1097 GLboolean normalized
, GLuint value
);
1098 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1099 GLboolean normalized
, GLuint value
);
1100 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1101 GLboolean normalized
,
1102 const GLuint
*value
);
1103 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1104 GLboolean normalized
,
1105 const GLuint
*value
);
1106 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1107 GLboolean normalized
,
1108 const GLuint
*value
);
1109 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1110 GLboolean normalized
,
1111 const GLuint
*value
);
1115 #endif /* DD_INCLUDED */