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
;
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 * Resize the given framebuffer to the given size.
97 * XXX OBSOLETE: this function will be removed in the future.
99 void (*ResizeBuffers
)( struct gl_context
*ctx
, struct gl_framebuffer
*fb
,
100 GLuint width
, GLuint height
);
103 * This is called whenever glFinish() is called.
105 void (*Finish
)( struct gl_context
*ctx
);
108 * This is called whenever glFlush() is called.
110 void (*Flush
)( struct gl_context
*ctx
);
113 * Clear the color/depth/stencil/accum buffer(s).
114 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
115 * renderbuffers need to be cleared.
117 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
120 * Execute glAccum command.
122 void (*Accum
)( struct gl_context
*ctx
, GLenum op
, GLfloat value
);
126 * Execute glRasterPos, updating the ctx->Current.Raster fields
128 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
131 * \name Image-related functions
136 * Called by glDrawPixels().
137 * \p unpack describes how to unpack the source image data.
139 void (*DrawPixels
)( struct gl_context
*ctx
,
140 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
141 GLenum format
, GLenum type
,
142 const struct gl_pixelstore_attrib
*unpack
,
143 const GLvoid
*pixels
);
146 * Called by glReadPixels().
148 void (*ReadPixels
)( struct gl_context
*ctx
,
149 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
150 GLenum format
, GLenum type
,
151 const struct gl_pixelstore_attrib
*unpack
,
155 * Called by glCopyPixels().
157 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
158 GLsizei width
, GLsizei height
,
159 GLint dstx
, GLint dsty
, GLenum type
);
162 * Called by glBitmap().
164 void (*Bitmap
)( struct gl_context
*ctx
,
165 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
166 const struct gl_pixelstore_attrib
*unpack
,
167 const GLubyte
*bitmap
);
172 * \name Texture image functions
177 * Choose actual hardware texture format given the texture target, the
178 * user-provided source image format and type and the desired internal
179 * format. In some cases, srcFormat and srcType can be GL_NONE.
180 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
181 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
182 * Called by glTexImage(), etc.
184 gl_format (*ChooseTextureFormat
)( struct gl_context
*ctx
,
185 GLenum target
, GLint internalFormat
,
186 GLenum srcFormat
, GLenum srcType
);
189 * Determine sample counts support for a particular target and format
191 * \param ctx GL context
192 * \param target GL target enum
193 * \param internalFormat GL format enum
194 * \param samples Buffer to hold the returned sample counts.
195 * Drivers \b must \b not return more than 16 counts.
198 * The number of sample counts actually written to \c samples. If
199 * \c internaFormat is not renderable, zero is returned.
201 size_t (*QuerySamplesForFormat
)(struct gl_context
*ctx
,
203 GLenum internalFormat
,
207 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
208 * Allocate texture memory and copy the user's image to the buffer.
209 * The gl_texture_image fields, etc. will be fully initialized.
210 * The parameters are the same as glTexImage3D(), plus:
211 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
212 * \param packing describes how to unpack the source data.
213 * \param texImage is the destination texture image.
215 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
216 struct gl_texture_image
*texImage
,
217 GLenum format
, GLenum type
, const GLvoid
*pixels
,
218 const struct gl_pixelstore_attrib
*packing
);
221 * Called by glTexSubImage[123]D().
222 * Replace a subset of the target texture with new texel data.
224 void (*TexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
225 struct gl_texture_image
*texImage
,
226 GLint xoffset
, GLint yoffset
, GLint zoffset
,
227 GLsizei width
, GLsizei height
, GLint depth
,
228 GLenum format
, GLenum type
,
229 const GLvoid
*pixels
,
230 const struct gl_pixelstore_attrib
*packing
);
234 * Called by glGetTexImage().
236 void (*GetTexImage
)( struct gl_context
*ctx
,
237 GLenum format
, GLenum type
, GLvoid
*pixels
,
238 struct gl_texture_image
*texImage
);
241 * Called by glCopyTex[Sub]Image[123]D().
243 * This function should copy a rectangular region in the rb to a single
244 * destination slice, specified by @slice. In the case of 1D array
245 * textures (where one GL call can potentially affect multiple destination
246 * slices), core mesa takes care of calling this function multiple times,
247 * once for each scanline to be copied.
249 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
250 struct gl_texture_image
*texImage
,
251 GLint xoffset
, GLint yoffset
, GLint slice
,
252 struct gl_renderbuffer
*rb
,
254 GLsizei width
, GLsizei height
);
257 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
259 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
260 struct gl_texture_object
*texObj
);
263 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
264 * and glTexStorage to check if the dimensions of the texture image
266 * \param target any GL_PROXY_TEXTURE_x target
267 * \return GL_TRUE if the image is OK, GL_FALSE if too large
269 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
270 GLint level
, gl_format format
,
271 GLint width
, GLint height
,
272 GLint depth
, GLint border
);
277 * \name Compressed texture functions
282 * Called by glCompressedTexImage[123]D().
284 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
285 struct gl_texture_image
*texImage
,
286 GLsizei imageSize
, const GLvoid
*data
);
289 * Called by glCompressedTexSubImage[123]D().
291 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
292 struct gl_texture_image
*texImage
,
293 GLint xoffset
, GLint yoffset
, GLint zoffset
,
294 GLsizei width
, GLint height
, GLint depth
,
296 GLsizei imageSize
, const GLvoid
*data
);
299 * Called by glGetCompressedTexImage.
301 void (*GetCompressedTexImage
)(struct gl_context
*ctx
,
302 struct gl_texture_image
*texImage
,
307 * \name Texture object / image functions
312 * Called by glBindTexture().
314 void (*BindTexture
)( struct gl_context
*ctx
, GLenum target
,
315 struct gl_texture_object
*tObj
);
318 * Called to allocate a new texture object. Drivers will usually
319 * allocate/return a subclass of gl_texture_object.
321 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
322 GLuint name
, GLenum target
);
324 * Called to delete/free a texture object. Drivers should free the
325 * object and any image data it contains.
327 void (*DeleteTexture
)(struct gl_context
*ctx
,
328 struct gl_texture_object
*texObj
);
330 /** Called to allocate a new texture image object. */
331 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
333 /** Called to free a texture image object returned by NewTextureImage() */
334 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
335 struct gl_texture_image
*);
337 /** Called to allocate memory for a single texture image */
338 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
339 struct gl_texture_image
*texImage
);
341 /** Free the memory for a single texture image */
342 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
343 struct gl_texture_image
*texImage
);
345 /** Map a slice of a texture image into user space.
346 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
347 * indicates the 1D array index.
348 * \param texImage the texture image
349 * \param slice the 3D image slice or array texture slice
350 * \param x, y, w, h region of interest
351 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
352 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
353 * \param mapOut returns start of mapping of region of interest
354 * \param rowStrideOut returns row stride (in bytes). In the case of a
355 * compressed texture, this is the byte stride between one row of blocks
358 void (*MapTextureImage
)(struct gl_context
*ctx
,
359 struct gl_texture_image
*texImage
,
361 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
363 GLubyte
**mapOut
, GLint
*rowStrideOut
);
365 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
366 struct gl_texture_image
*texImage
,
369 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
370 * All the gl_texture_images in the texture object will have their
371 * dimensions, format, etc. initialized already.
373 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
374 struct gl_texture_object
*texObj
,
375 GLsizei levels
, GLsizei width
,
376 GLsizei height
, GLsizei depth
);
378 /** Called as part of glTextureView to add views to origTexObj */
379 GLboolean (*TextureView
)(struct gl_context
*ctx
,
380 struct gl_texture_object
*texObj
,
381 struct gl_texture_object
*origTexObj
);
384 * Map a renderbuffer into user space.
385 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
386 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
388 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
389 struct gl_renderbuffer
*rb
,
390 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
392 GLubyte
**mapOut
, GLint
*rowStrideOut
);
394 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
395 struct gl_renderbuffer
*rb
);
401 * \name Vertex/fragment program functions
404 /** Bind a vertex/fragment program */
405 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
, struct gl_program
*prog
);
406 /** Allocate a new program */
407 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
, GLuint id
);
408 /** Delete a program */
409 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
411 * Notify driver that a program string (and GPU code) has been specified
412 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
413 * supported by the driver.
415 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
416 struct gl_program
*prog
);
419 * Notify driver that the sampler uniforms for the current program have
420 * changed. On some drivers, this may require shader recompiles.
422 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
423 struct gl_program
*prog
);
425 /** Query if program can be loaded onto hardware */
426 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
427 struct gl_program
*prog
);
432 * \name GLSL shader/program functions.
436 * Called when a shader program is linked.
438 * This gives drivers an opportunity to clone the IR and make their
439 * own transformations on it for the purposes of code generation.
441 GLboolean (*LinkShader
)(struct gl_context
*ctx
, struct gl_shader_program
*shader
);
445 * \name State-changing functions.
447 * \note drawing functions are above.
449 * These functions are called by their corresponding OpenGL API functions.
450 * They are \e also called by the gl_PopAttrib() function!!!
451 * May add more functions like these to the device driver in the future.
454 /** Specify the alpha test function */
455 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
456 /** Set the blend color */
457 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
458 /** Set the blend equation */
459 void (*BlendEquationSeparate
)(struct gl_context
*ctx
, GLenum modeRGB
, GLenum modeA
);
460 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
461 GLenum modeRGB
, GLenum modeA
);
462 /** Specify pixel arithmetic */
463 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
464 GLenum sfactorRGB
, GLenum dfactorRGB
,
465 GLenum sfactorA
, GLenum dfactorA
);
466 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
467 GLenum sfactorRGB
, GLenum dfactorRGB
,
468 GLenum sfactorA
, GLenum dfactorA
);
469 /** Specify a plane against which all geometry is clipped */
470 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*equation
);
471 /** Enable and disable writing of frame buffer color components */
472 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
473 GLboolean bmask
, GLboolean amask
);
474 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
475 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
476 /** Cause a material color to track the current color */
477 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
478 /** Specify whether front- or back-facing facets can be culled */
479 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
480 /** Define front- and back-facing polygons */
481 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
482 /** Specify the value used for depth buffer comparisons */
483 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
484 /** Enable or disable writing into the depth buffer */
485 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
486 /** Specify mapping of depth values from NDC to window coordinates */
487 void (*DepthRange
)(struct gl_context
*ctx
, GLclampd nearval
, GLclampd farval
);
488 /** Specify the current buffer for writing */
489 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
490 /** Specify the buffers for writing for fragment programs*/
491 void (*DrawBuffers
)( struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
492 /** Enable or disable server-side gl capabilities */
493 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
494 /** Specify fog parameters */
495 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
496 /** Specify implementation-specific hints */
497 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
498 /** Set light source parameters.
499 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
500 * been transformed to eye-space.
502 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
503 GLenum pname
, const GLfloat
*params
);
504 /** Set the lighting model parameters */
505 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
506 /** Specify the line stipple pattern */
507 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
508 /** Specify the width of rasterized lines */
509 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
510 /** Specify a logical pixel operation for color index rendering */
511 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
512 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
513 const GLfloat
*params
);
514 /** Specify the diameter of rasterized points */
515 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
516 /** Select a polygon rasterization mode */
517 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
518 /** Set the scale and units used to calculate depth values */
519 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
520 /** Set the polygon stippling pattern */
521 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
522 /* Specifies the current buffer for reading */
523 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
524 /** Set rasterization mode */
525 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
526 /** Define the scissor box */
527 void (*Scissor
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
528 /** Select flat or smooth shading */
529 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
530 /** OpenGL 2.0 two-sided StencilFunc */
531 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
532 GLint ref
, GLuint mask
);
533 /** OpenGL 2.0 two-sided StencilMask */
534 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
535 /** OpenGL 2.0 two-sided StencilOp */
536 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
537 GLenum zfail
, GLenum zpass
);
538 /** Control the generation of texture coordinates */
539 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
540 const GLfloat
*params
);
541 /** Set texture environment parameters */
542 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
543 const GLfloat
*param
);
544 /** Set texture parameters */
545 void (*TexParameter
)(struct gl_context
*ctx
, GLenum target
,
546 struct gl_texture_object
*texObj
,
547 GLenum pname
, const GLfloat
*params
);
548 /** Set the viewport */
549 void (*Viewport
)(struct gl_context
*ctx
, GLint x
, GLint y
, GLsizei w
, GLsizei h
);
554 * \name Vertex/pixel buffer object functions
557 void (*BindBuffer
)( struct gl_context
*ctx
, GLenum target
,
558 struct gl_buffer_object
*obj
);
560 struct gl_buffer_object
* (*NewBufferObject
)( struct gl_context
*ctx
, GLuint buffer
,
563 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
565 GLboolean (*BufferData
)( struct gl_context
*ctx
, GLenum target
, GLsizeiptrARB size
,
566 const GLvoid
*data
, GLenum usage
,
567 struct gl_buffer_object
*obj
);
569 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
570 GLsizeiptrARB size
, const GLvoid
*data
,
571 struct gl_buffer_object
*obj
);
573 void (*GetBufferSubData
)( struct gl_context
*ctx
,
574 GLintptrARB offset
, GLsizeiptrARB size
,
575 GLvoid
*data
, struct gl_buffer_object
*obj
);
577 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
578 struct gl_buffer_object
*src
,
579 struct gl_buffer_object
*dst
,
580 GLintptr readOffset
, GLintptr writeOffset
,
583 /* Returns pointer to the start of the mapped range.
584 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
586 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
587 GLsizeiptr length
, GLbitfield access
,
588 struct gl_buffer_object
*obj
);
590 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
591 GLintptr offset
, GLsizeiptr length
,
592 struct gl_buffer_object
*obj
);
594 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
595 struct gl_buffer_object
*obj
);
599 * \name Functions for GL_APPLE_object_purgeable
602 /* variations on ObjectPurgeable */
603 GLenum (*BufferObjectPurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
604 GLenum (*RenderObjectPurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
605 GLenum (*TextureObjectPurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
607 /* variations on ObjectUnpurgeable */
608 GLenum (*BufferObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
, GLenum option
);
609 GLenum (*RenderObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_renderbuffer
*obj
, GLenum option
);
610 GLenum (*TextureObjectUnpurgeable
)( struct gl_context
*ctx
, struct gl_texture_object
*obj
, GLenum option
);
614 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
617 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
, GLuint name
);
618 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
, GLuint name
);
619 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
620 struct gl_framebuffer
*drawFb
,
621 struct gl_framebuffer
*readFb
);
622 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
623 struct gl_framebuffer
*fb
,
625 struct gl_renderbuffer
*rb
);
626 void (*RenderTexture
)(struct gl_context
*ctx
,
627 struct gl_framebuffer
*fb
,
628 struct gl_renderbuffer_attachment
*att
);
629 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
630 struct gl_renderbuffer
*rb
);
631 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
632 struct gl_framebuffer
*fb
);
634 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
635 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
636 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
637 GLbitfield mask
, GLenum filter
);
638 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
639 GLenum target
, GLsizei numAttachments
, const GLenum
*attachments
);
642 * \name Query objects
645 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
646 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
647 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
648 void (*QueryCounter
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
649 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
650 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
651 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
655 * \name Performance monitors
658 struct gl_perf_monitor_object
* (*NewPerfMonitor
)(struct gl_context
*ctx
);
659 void (*DeletePerfMonitor
)(struct gl_context
*ctx
,
660 struct gl_perf_monitor_object
*m
);
661 GLboolean (*BeginPerfMonitor
)(struct gl_context
*ctx
,
662 struct gl_perf_monitor_object
*m
);
664 /** Stop an active performance monitor, discarding results. */
665 void (*ResetPerfMonitor
)(struct gl_context
*ctx
,
666 struct gl_perf_monitor_object
*m
);
667 void (*EndPerfMonitor
)(struct gl_context
*ctx
,
668 struct gl_perf_monitor_object
*m
);
669 GLboolean (*IsPerfMonitorResultAvailable
)(struct gl_context
*ctx
,
670 struct gl_perf_monitor_object
*m
);
671 void (*GetPerfMonitorResult
)(struct gl_context
*ctx
,
672 struct gl_perf_monitor_object
*m
,
675 GLint
*bytesWritten
);
680 * \name Vertex Array objects
683 struct gl_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
684 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
685 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_array_object
*obj
);
689 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
692 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
, GLuint name
, GLenum type
);
693 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
694 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
, GLuint name
);
695 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
696 struct gl_shader_program
*shProg
);
697 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
702 * \name Support for multiple T&L engines
707 * Set by the driver-supplied T&L engine.
709 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
711 GLuint CurrentExecPrimitive
;
714 * Current glBegin state of an in-progress compilation. May be
715 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
718 GLuint CurrentSavePrimitive
;
721 #define FLUSH_STORED_VERTICES 0x1
722 #define FLUSH_UPDATE_CURRENT 0x2
724 * Set by the driver-supplied T&L engine whenever vertices are buffered
725 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current
726 * is not updated. A bitmask of the FLUSH_x values above.
728 * The dd_function_table::FlushVertices call below may be used to resolve
731 GLbitfield NeedFlush
;
733 /** Need to call SaveFlushVertices() upon state change? */
734 GLboolean SaveNeedFlush
;
736 /* Called prior to any of the GLvertexformat functions being
737 * called. Paired with Driver.FlushVertices().
739 void (*BeginVertices
)( struct gl_context
*ctx
);
742 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
743 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
744 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
745 * __struct gl_contextRec::Current and gl_light_attrib::Material
747 * Note that the default T&L engine never clears the
748 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
750 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
751 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
754 * Give the driver the opportunity to hook in its own vtxfmt for
755 * compiling optimized display lists. This is called on each valid
756 * glBegin() during list compilation.
758 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
761 * Notify driver that the special derived value _NeedEyeCoords has
764 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
767 * Called by glNewList().
769 * Let the T&L component know what is going on with display lists
770 * in time to make changes to dispatch tables, etc.
772 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
774 * Called by glEndList().
776 * \sa dd_function_table::NewList.
778 void (*EndList
)( struct gl_context
*ctx
);
781 * Called by glCallList(s).
783 * Notify the T&L component before and after calling a display list.
785 void (*BeginCallList
)( struct gl_context
*ctx
,
786 struct gl_display_list
*dlist
);
788 * Called by glEndCallList().
790 * \sa dd_function_table::BeginCallList.
792 void (*EndCallList
)( struct gl_context
*ctx
);
797 * \name GL_ARB_sync interfaces
800 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
801 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*, GLenum
, GLbitfield
);
802 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
803 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
804 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
805 GLbitfield
, GLuint64
);
806 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
807 GLbitfield
, GLuint64
);
810 /** GL_NV_conditional_render */
811 void (*BeginConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
813 void (*EndConditionalRender
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
816 * \name GL_OES_draw_texture interface
819 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
820 GLfloat width
, GLfloat height
);
824 * \name GL_OES_EGL_image interface
826 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
827 struct gl_texture_object
*texObj
,
828 struct gl_texture_image
*texImage
,
829 GLeglImageOES image_handle
);
830 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
831 struct gl_renderbuffer
*rb
,
835 * \name GL_EXT_transform_feedback interface
837 struct gl_transform_feedback_object
*
838 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
839 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
840 struct gl_transform_feedback_object
*obj
);
841 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
842 struct gl_transform_feedback_object
*obj
);
843 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
844 struct gl_transform_feedback_object
*obj
);
845 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
846 struct gl_transform_feedback_object
*obj
);
847 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
848 struct gl_transform_feedback_object
*obj
);
851 * Return the number of vertices written to a stream during the last
852 * Begin/EndTransformFeedback block.
854 GLsizei (*GetTransformFeedbackVertexCount
)(struct gl_context
*ctx
,
855 struct gl_transform_feedback_object
*obj
,
859 * \name GL_NV_texture_barrier interface
861 void (*TextureBarrier
)(struct gl_context
*ctx
);
864 * \name GL_ARB_sampler_objects
866 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
868 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
869 struct gl_sampler_object
*samp
);
872 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
873 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
875 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
878 * \name GL_ARB_texture_multisample
880 void (*GetSamplePosition
)(struct gl_context
*ctx
,
881 struct gl_framebuffer
*fb
,
886 * \name NV_vdpau_interop interface
888 void (*VDPAUMapSurface
)(struct gl_context
*ctx
, GLenum target
,
889 GLenum access
, GLboolean output
,
890 struct gl_texture_object
*texObj
,
891 struct gl_texture_image
*texImage
,
892 const GLvoid
*vdpSurface
, GLuint index
);
893 void (*VDPAUUnmapSurface
)(struct gl_context
*ctx
, GLenum target
,
894 GLenum access
, GLboolean output
,
895 struct gl_texture_object
*texObj
,
896 struct gl_texture_image
*texImage
,
897 const GLvoid
*vdpSurface
, GLuint index
);
900 * Query reset status for GL_ARB_robustness
902 * Per \c glGetGraphicsResetStatusARB, this function should return a
903 * non-zero value once after a reset. If a reset is non-atomic, the
904 * non-zero status should be returned for the duration of the reset.
906 GLenum (*GetGraphicsResetStatus
)(struct gl_context
*ctx
);
911 * Per-vertex functions.
913 * These are the functions which can appear between glBegin and glEnd.
914 * Depending on whether we're inside or outside a glBegin/End pair
915 * and whether we're in immediate mode or building a display list, these
916 * functions behave differently. This structure allows us to switch
917 * between those modes more easily.
919 * Generally, these pointers point to functions in the VBO module.
922 void (GLAPIENTRYP ArrayElement
)( GLint
);
923 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
924 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
925 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
926 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
927 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
928 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
929 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
930 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
931 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
932 void (GLAPIENTRYP EvalPoint1
)( GLint
);
933 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
934 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
935 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
936 void (GLAPIENTRYP Indexf
)( GLfloat
);
937 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
938 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
939 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
940 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
941 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
942 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
943 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
944 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
945 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
946 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
947 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
948 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
949 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
950 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
951 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
952 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
953 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
954 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
955 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
956 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
957 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
958 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
959 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
960 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
961 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
962 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
963 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
964 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
965 void (GLAPIENTRYP CallList
)( GLuint
);
966 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
967 void (GLAPIENTRYP Begin
)( GLenum
);
968 void (GLAPIENTRYP End
)( void );
969 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
970 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
971 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
972 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
973 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
974 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
975 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
976 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
977 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
978 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
979 /* GL_ARB_vertex_program */
980 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
981 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
982 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
983 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
984 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
985 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
986 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
987 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
989 /* GL_EXT_gpu_shader4 / GL 3.0 */
990 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
991 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
992 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
993 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
994 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
995 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
996 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
998 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
999 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1000 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1001 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1002 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1003 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1004 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1006 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1007 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1008 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1010 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1011 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1013 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1014 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1016 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1017 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1019 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1020 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1022 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1023 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1025 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1026 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1028 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1029 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1030 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1031 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1032 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1033 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1034 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1035 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1037 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1038 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1040 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1041 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1043 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1044 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1046 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1047 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1049 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1050 GLboolean normalized
, GLuint value
);
1051 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1052 GLboolean normalized
, GLuint value
);
1053 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1054 GLboolean normalized
, GLuint value
);
1055 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1056 GLboolean normalized
, GLuint value
);
1057 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1058 GLboolean normalized
,
1059 const GLuint
*value
);
1060 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1061 GLboolean normalized
,
1062 const GLuint
*value
);
1063 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1064 GLboolean normalized
,
1065 const GLuint
*value
);
1066 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1067 GLboolean normalized
,
1068 const GLuint
*value
);
1072 #endif /* DD_INCLUDED */