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.
259 * Note that if the texture is a cube map, the <target> parameter will
260 * indicate which cube face to generate (GL_POSITIVE/NEGATIVE_X/Y/Z).
261 * texObj->BaseLevel is the level from which to generate the remaining
264 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
265 struct gl_texture_object
*texObj
);
268 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
269 * and glTexStorage to check if the dimensions of the texture image
271 * \param target any GL_PROXY_TEXTURE_x target
272 * \return GL_TRUE if the image is OK, GL_FALSE if too large
274 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
275 GLint level
, mesa_format format
,
276 GLint width
, GLint height
,
277 GLint depth
, GLint border
);
282 * \name Compressed texture functions
287 * Called by glCompressedTexImage[123]D().
289 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
290 struct gl_texture_image
*texImage
,
291 GLsizei imageSize
, const GLvoid
*data
);
294 * Called by glCompressedTexSubImage[123]D().
296 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
297 struct gl_texture_image
*texImage
,
298 GLint xoffset
, GLint yoffset
, GLint zoffset
,
299 GLsizei width
, GLint height
, GLint depth
,
301 GLsizei imageSize
, const GLvoid
*data
);
304 * Called by glGetCompressedTexImage.
306 void (*GetCompressedTexImage
)(struct gl_context
*ctx
,
307 struct gl_texture_image
*texImage
,
312 * \name Texture object / image functions
317 * Called by glBindTexture() and glBindTextures().
319 void (*BindTexture
)( struct gl_context
*ctx
, GLuint texUnit
,
320 GLenum target
, struct gl_texture_object
*tObj
);
323 * Called to allocate a new texture object. Drivers will usually
324 * allocate/return a subclass of gl_texture_object.
326 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
327 GLuint name
, GLenum target
);
329 * Called to delete/free a texture object. Drivers should free the
330 * object and any image data it contains.
332 void (*DeleteTexture
)(struct gl_context
*ctx
,
333 struct gl_texture_object
*texObj
);
335 /** Called to allocate a new texture image object. */
336 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
338 /** Called to free a texture image object returned by NewTextureImage() */
339 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
340 struct gl_texture_image
*);
342 /** Called to allocate memory for a single texture image */
343 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
344 struct gl_texture_image
*texImage
);
346 /** Free the memory for a single texture image */
347 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
348 struct gl_texture_image
*texImage
);
350 /** Map a slice of a texture image into user space.
351 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
352 * indicates the 1D array index.
353 * \param texImage the texture image
354 * \param slice the 3D image slice or array texture slice
355 * \param x, y, w, h region of interest
356 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
357 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
358 * \param mapOut returns start of mapping of region of interest
359 * \param rowStrideOut returns row stride (in bytes). In the case of a
360 * compressed texture, this is the byte stride between one row of blocks
363 void (*MapTextureImage
)(struct gl_context
*ctx
,
364 struct gl_texture_image
*texImage
,
366 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
368 GLubyte
**mapOut
, GLint
*rowStrideOut
);
370 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
371 struct gl_texture_image
*texImage
,
374 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
375 * All the gl_texture_images in the texture object will have their
376 * dimensions, format, etc. initialized already.
378 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
379 struct gl_texture_object
*texObj
,
380 GLsizei levels
, GLsizei width
,
381 GLsizei height
, GLsizei depth
);
383 /** Called as part of glTextureView to add views to origTexObj */
384 GLboolean (*TextureView
)(struct gl_context
*ctx
,
385 struct gl_texture_object
*texObj
,
386 struct gl_texture_object
*origTexObj
);
389 * Map a renderbuffer into user space.
390 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
391 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
393 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
394 struct gl_renderbuffer
*rb
,
395 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
397 GLubyte
**mapOut
, GLint
*rowStrideOut
);
399 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
400 struct gl_renderbuffer
*rb
);
403 * Optional driver entrypoint that binds a non-texture renderbuffer's
404 * contents to a texture image.
406 GLboolean (*BindRenderbufferTexImage
)(struct gl_context
*ctx
,
407 struct gl_renderbuffer
*rb
,
408 struct gl_texture_image
*texImage
);
413 * \name Vertex/fragment program functions
416 /** Bind a vertex/fragment program */
417 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
,
418 struct gl_program
*prog
);
419 /** Allocate a new program */
420 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
,
422 /** Delete a program */
423 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
425 * Notify driver that a program string (and GPU code) has been specified
426 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
427 * supported by the driver.
429 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
430 struct gl_program
*prog
);
433 * Notify driver that the sampler uniforms for the current program have
434 * changed. On some drivers, this may require shader recompiles.
436 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
437 struct gl_program
*prog
);
439 /** Query if program can be loaded onto hardware */
440 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
441 struct gl_program
*prog
);
446 * \name GLSL shader/program functions.
450 * Called when a shader program is linked.
452 * This gives drivers an opportunity to clone the IR and make their
453 * own transformations on it for the purposes of code generation.
455 GLboolean (*LinkShader
)(struct gl_context
*ctx
,
456 struct gl_shader_program
*shader
);
460 * \name State-changing functions.
462 * \note drawing functions are above.
464 * These functions are called by their corresponding OpenGL API functions.
465 * They are \e also called by the gl_PopAttrib() function!!!
466 * May add more functions like these to the device driver in the future.
469 /** Specify the alpha test function */
470 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
471 /** Set the blend color */
472 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
473 /** Set the blend equation */
474 void (*BlendEquationSeparate
)(struct gl_context
*ctx
,
475 GLenum modeRGB
, GLenum modeA
);
476 void (*BlendEquationSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
477 GLenum modeRGB
, GLenum modeA
);
478 /** Specify pixel arithmetic */
479 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
480 GLenum sfactorRGB
, GLenum dfactorRGB
,
481 GLenum sfactorA
, GLenum dfactorA
);
482 void (*BlendFuncSeparatei
)(struct gl_context
*ctx
, GLuint buffer
,
483 GLenum sfactorRGB
, GLenum dfactorRGB
,
484 GLenum sfactorA
, GLenum dfactorA
);
485 /** Specify a plane against which all geometry is clipped */
486 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*eq
);
487 /** Enable and disable writing of frame buffer color components */
488 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
489 GLboolean bmask
, GLboolean amask
);
490 void (*ColorMaskIndexed
)(struct gl_context
*ctx
, GLuint buf
, GLboolean rmask
,
491 GLboolean gmask
, GLboolean bmask
, GLboolean amask
);
492 /** Cause a material color to track the current color */
493 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
494 /** Specify whether front- or back-facing facets can be culled */
495 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
496 /** Define front- and back-facing polygons */
497 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
498 /** Specify the value used for depth buffer comparisons */
499 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
500 /** Enable or disable writing into the depth buffer */
501 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
502 /** Specify mapping of depth values from NDC to window coordinates */
503 void (*DepthRange
)(struct gl_context
*ctx
);
504 /** Specify the current buffer for writing */
505 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
506 /** Specify the buffers for writing for fragment programs*/
507 void (*DrawBuffers
)(struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
508 /** Enable or disable server-side gl capabilities */
509 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
510 /** Specify fog parameters */
511 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
512 /** Specify implementation-specific hints */
513 void (*Hint
)(struct gl_context
*ctx
, GLenum target
, GLenum mode
);
514 /** Set light source parameters.
515 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
516 * been transformed to eye-space.
518 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
519 GLenum pname
, const GLfloat
*params
);
520 /** Set the lighting model parameters */
521 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
,
522 const GLfloat
*params
);
523 /** Specify the line stipple pattern */
524 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
525 /** Specify the width of rasterized lines */
526 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
527 /** Specify a logical pixel operation for color index rendering */
528 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
529 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
530 const GLfloat
*params
);
531 /** Specify the diameter of rasterized points */
532 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
533 /** Select a polygon rasterization mode */
534 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
535 /** Set the scale and units used to calculate depth values */
536 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
);
537 /** Set the polygon stippling pattern */
538 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
539 /* Specifies the current buffer for reading */
540 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
541 /** Set rasterization mode */
542 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
543 /** Define the scissor box */
544 void (*Scissor
)(struct gl_context
*ctx
);
545 /** Select flat or smooth shading */
546 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
547 /** OpenGL 2.0 two-sided StencilFunc */
548 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
549 GLint ref
, GLuint mask
);
550 /** OpenGL 2.0 two-sided StencilMask */
551 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
552 /** OpenGL 2.0 two-sided StencilOp */
553 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
554 GLenum zfail
, GLenum zpass
);
555 /** Control the generation of texture coordinates */
556 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
557 const GLfloat
*params
);
558 /** Set texture environment parameters */
559 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
560 const GLfloat
*param
);
561 /** Set texture parameters */
562 void (*TexParameter
)(struct gl_context
*ctx
,
563 struct gl_texture_object
*texObj
,
564 GLenum pname
, const GLfloat
*params
);
565 /** Set the viewport */
566 void (*Viewport
)(struct gl_context
*ctx
);
571 * \name Vertex/pixel buffer object functions
574 struct gl_buffer_object
* (*NewBufferObject
)(struct gl_context
*ctx
,
575 GLuint buffer
, GLenum target
);
577 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
579 GLboolean (*BufferData
)(struct gl_context
*ctx
, GLenum target
,
580 GLsizeiptrARB size
, const GLvoid
*data
, GLenum usage
,
581 GLenum storageFlags
, struct gl_buffer_object
*obj
);
583 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
584 GLsizeiptrARB size
, const GLvoid
*data
,
585 struct gl_buffer_object
*obj
);
587 void (*GetBufferSubData
)( struct gl_context
*ctx
,
588 GLintptrARB offset
, GLsizeiptrARB size
,
589 GLvoid
*data
, struct gl_buffer_object
*obj
);
591 void (*ClearBufferSubData
)( struct gl_context
*ctx
,
592 GLintptr offset
, GLsizeiptr size
,
593 const GLvoid
*clearValue
,
594 GLsizeiptr clearValueSize
,
595 struct gl_buffer_object
*obj
);
597 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
598 struct gl_buffer_object
*src
,
599 struct gl_buffer_object
*dst
,
600 GLintptr readOffset
, GLintptr writeOffset
,
603 /* Returns pointer to the start of the mapped range.
604 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
606 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
607 GLsizeiptr length
, GLbitfield access
,
608 struct gl_buffer_object
*obj
,
609 gl_map_buffer_index index
);
611 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
612 GLintptr offset
, GLsizeiptr length
,
613 struct gl_buffer_object
*obj
,
614 gl_map_buffer_index index
);
616 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
617 struct gl_buffer_object
*obj
,
618 gl_map_buffer_index index
);
622 * \name Functions for GL_APPLE_object_purgeable
625 /* variations on ObjectPurgeable */
626 GLenum (*BufferObjectPurgeable
)(struct gl_context
*ctx
,
627 struct gl_buffer_object
*obj
, GLenum option
);
628 GLenum (*RenderObjectPurgeable
)(struct gl_context
*ctx
,
629 struct gl_renderbuffer
*obj
, GLenum option
);
630 GLenum (*TextureObjectPurgeable
)(struct gl_context
*ctx
,
631 struct gl_texture_object
*obj
,
634 /* variations on ObjectUnpurgeable */
635 GLenum (*BufferObjectUnpurgeable
)(struct gl_context
*ctx
,
636 struct gl_buffer_object
*obj
,
638 GLenum (*RenderObjectUnpurgeable
)(struct gl_context
*ctx
,
639 struct gl_renderbuffer
*obj
,
641 GLenum (*TextureObjectUnpurgeable
)(struct gl_context
*ctx
,
642 struct gl_texture_object
*obj
,
647 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
650 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
,
652 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
,
654 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
655 struct gl_framebuffer
*drawFb
,
656 struct gl_framebuffer
*readFb
);
657 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
658 struct gl_framebuffer
*fb
,
660 struct gl_renderbuffer
*rb
);
661 void (*RenderTexture
)(struct gl_context
*ctx
,
662 struct gl_framebuffer
*fb
,
663 struct gl_renderbuffer_attachment
*att
);
664 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
665 struct gl_renderbuffer
*rb
);
666 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
667 struct gl_framebuffer
*fb
);
669 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
670 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
671 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
672 GLbitfield mask
, GLenum filter
);
673 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
674 GLenum target
, GLsizei numAttachments
,
675 const GLenum
*attachments
);
678 * \name Query objects
681 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
682 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
683 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
684 void (*QueryCounter
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
685 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
686 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
687 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
691 * \name Performance monitors
694 struct gl_perf_monitor_object
* (*NewPerfMonitor
)(struct gl_context
*ctx
);
695 void (*DeletePerfMonitor
)(struct gl_context
*ctx
,
696 struct gl_perf_monitor_object
*m
);
697 GLboolean (*BeginPerfMonitor
)(struct gl_context
*ctx
,
698 struct gl_perf_monitor_object
*m
);
700 /** Stop an active performance monitor, discarding results. */
701 void (*ResetPerfMonitor
)(struct gl_context
*ctx
,
702 struct gl_perf_monitor_object
*m
);
703 void (*EndPerfMonitor
)(struct gl_context
*ctx
,
704 struct gl_perf_monitor_object
*m
);
705 GLboolean (*IsPerfMonitorResultAvailable
)(struct gl_context
*ctx
,
706 struct gl_perf_monitor_object
*m
);
707 void (*GetPerfMonitorResult
)(struct gl_context
*ctx
,
708 struct gl_perf_monitor_object
*m
,
711 GLint
*bytesWritten
);
716 * \name Vertex Array objects
719 struct gl_vertex_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
720 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_vertex_array_object
*);
721 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_vertex_array_object
*);
725 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
728 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
,
729 GLuint name
, GLenum type
);
730 void (*DeleteShader
)(struct gl_context
*ctx
, struct gl_shader
*shader
);
731 struct gl_shader_program
*(*NewShaderProgram
)(struct gl_context
*ctx
,
733 void (*DeleteShaderProgram
)(struct gl_context
*ctx
,
734 struct gl_shader_program
*shProg
);
735 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
740 * \name Support for multiple T&L engines
745 * Set by the driver-supplied T&L engine.
747 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
749 GLuint CurrentExecPrimitive
;
752 * Current glBegin state of an in-progress compilation. May be
753 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
756 GLuint CurrentSavePrimitive
;
759 #define FLUSH_STORED_VERTICES 0x1
760 #define FLUSH_UPDATE_CURRENT 0x2
762 * Set by the driver-supplied T&L engine whenever vertices are buffered
763 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current
764 * is not updated. A bitmask of the FLUSH_x values above.
766 * The dd_function_table::FlushVertices call below may be used to resolve
769 GLbitfield NeedFlush
;
771 /** Need to call SaveFlushVertices() upon state change? */
772 GLboolean SaveNeedFlush
;
774 /* Called prior to any of the GLvertexformat functions being
775 * called. Paired with Driver.FlushVertices().
777 void (*BeginVertices
)( struct gl_context
*ctx
);
780 * If inside glBegin()/glEnd(), it should ASSERT(0). Otherwise, if
781 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
782 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
783 * __struct gl_contextRec::Current and gl_light_attrib::Material
785 * Note that the default T&L engine never clears the
786 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
788 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
789 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
792 * Give the driver the opportunity to hook in its own vtxfmt for
793 * compiling optimized display lists. This is called on each valid
794 * glBegin() during list compilation.
796 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
799 * Notify driver that the special derived value _NeedEyeCoords has
802 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
805 * Called by glNewList().
807 * Let the T&L component know what is going on with display lists
808 * in time to make changes to dispatch tables, etc.
810 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
812 * Called by glEndList().
814 * \sa dd_function_table::NewList.
816 void (*EndList
)( struct gl_context
*ctx
);
819 * Called by glCallList(s).
821 * Notify the T&L component before and after calling a display list.
823 void (*BeginCallList
)( struct gl_context
*ctx
,
824 struct gl_display_list
*dlist
);
826 * Called by glEndCallList().
828 * \sa dd_function_table::BeginCallList.
830 void (*EndCallList
)( struct gl_context
*ctx
);
835 * \name GL_ARB_sync interfaces
838 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
839 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*,
841 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
842 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
843 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
844 GLbitfield
, GLuint64
);
845 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
846 GLbitfield
, GLuint64
);
849 /** GL_NV_conditional_render */
850 void (*BeginConditionalRender
)(struct gl_context
*ctx
,
851 struct gl_query_object
*q
,
853 void (*EndConditionalRender
)(struct gl_context
*ctx
,
854 struct gl_query_object
*q
);
857 * \name GL_OES_draw_texture interface
860 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
861 GLfloat width
, GLfloat height
);
865 * \name GL_OES_EGL_image interface
867 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
868 struct gl_texture_object
*texObj
,
869 struct gl_texture_image
*texImage
,
870 GLeglImageOES image_handle
);
871 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
872 struct gl_renderbuffer
*rb
,
876 * \name GL_EXT_transform_feedback interface
878 struct gl_transform_feedback_object
*
879 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
880 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
881 struct gl_transform_feedback_object
*obj
);
882 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
883 struct gl_transform_feedback_object
*obj
);
884 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
885 struct gl_transform_feedback_object
*obj
);
886 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
887 struct gl_transform_feedback_object
*obj
);
888 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
889 struct gl_transform_feedback_object
*obj
);
892 * Return the number of vertices written to a stream during the last
893 * Begin/EndTransformFeedback block.
895 GLsizei (*GetTransformFeedbackVertexCount
)(struct gl_context
*ctx
,
896 struct gl_transform_feedback_object
*obj
,
900 * \name GL_NV_texture_barrier interface
902 void (*TextureBarrier
)(struct gl_context
*ctx
);
905 * \name GL_ARB_sampler_objects
907 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
909 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
910 struct gl_sampler_object
*samp
);
913 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
914 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
916 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
919 * \name GL_ARB_texture_multisample
921 void (*GetSamplePosition
)(struct gl_context
*ctx
,
922 struct gl_framebuffer
*fb
,
927 * \name NV_vdpau_interop interface
929 void (*VDPAUMapSurface
)(struct gl_context
*ctx
, GLenum target
,
930 GLenum access
, GLboolean output
,
931 struct gl_texture_object
*texObj
,
932 struct gl_texture_image
*texImage
,
933 const GLvoid
*vdpSurface
, GLuint index
);
934 void (*VDPAUUnmapSurface
)(struct gl_context
*ctx
, GLenum target
,
935 GLenum access
, GLboolean output
,
936 struct gl_texture_object
*texObj
,
937 struct gl_texture_image
*texImage
,
938 const GLvoid
*vdpSurface
, GLuint index
);
941 * Query reset status for GL_ARB_robustness
943 * Per \c glGetGraphicsResetStatusARB, this function should return a
944 * non-zero value once after a reset. If a reset is non-atomic, the
945 * non-zero status should be returned for the duration of the reset.
947 GLenum (*GetGraphicsResetStatus
)(struct gl_context
*ctx
);
950 * \name GL_ARB_shader_image_load_store interface.
953 void (*BindImageTexture
)(struct gl_context
*ctx
,
954 struct gl_image_unit
*unit
,
955 struct gl_texture_object
*texObj
,
956 GLint level
, GLboolean layered
, GLint layer
,
957 GLenum access
, GLenum format
);
959 void (*MemoryBarrier
)(struct gl_context
*ctx
, GLbitfield barriers
);
965 * Per-vertex functions.
967 * These are the functions which can appear between glBegin and glEnd.
968 * Depending on whether we're inside or outside a glBegin/End pair
969 * and whether we're in immediate mode or building a display list, these
970 * functions behave differently. This structure allows us to switch
971 * between those modes more easily.
973 * Generally, these pointers point to functions in the VBO module.
976 void (GLAPIENTRYP ArrayElement
)( GLint
);
977 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
978 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
979 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
980 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
981 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
982 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
983 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
984 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
985 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
986 void (GLAPIENTRYP EvalPoint1
)( GLint
);
987 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
988 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
989 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
990 void (GLAPIENTRYP Indexf
)( GLfloat
);
991 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
992 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
993 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
994 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
995 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
996 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
997 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
998 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
999 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1000 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
1001 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
1002 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
1003 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
1004 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
1005 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
1006 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
1007 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
1008 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
1009 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
1010 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1011 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1012 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1013 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1014 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1015 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1016 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1017 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1018 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1019 void (GLAPIENTRYP CallList
)( GLuint
);
1020 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1021 void (GLAPIENTRYP Begin
)( GLenum
);
1022 void (GLAPIENTRYP End
)( void );
1023 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1024 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
1025 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1026 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1027 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1028 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1029 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1030 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1031 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1032 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1033 /* GL_ARB_vertex_program */
1034 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1035 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1036 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1037 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1038 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1039 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1040 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1041 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1043 /* GL_EXT_gpu_shader4 / GL 3.0 */
1044 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1045 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1046 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1047 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1048 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1049 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1050 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1052 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1053 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1054 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1055 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1056 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1057 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1058 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1060 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1061 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1062 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1064 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1065 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1067 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1068 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1070 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1071 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1073 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1074 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1076 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1077 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1079 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1080 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1082 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1083 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1084 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1085 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1086 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1087 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1088 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1089 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1091 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1092 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1094 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1095 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1097 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1098 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1100 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1101 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1103 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1104 GLboolean normalized
, GLuint value
);
1105 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1106 GLboolean normalized
, GLuint value
);
1107 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1108 GLboolean normalized
, GLuint value
);
1109 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1110 GLboolean normalized
, GLuint value
);
1111 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1112 GLboolean normalized
,
1113 const GLuint
*value
);
1114 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1115 GLboolean normalized
,
1116 const GLuint
*value
);
1117 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1118 GLboolean normalized
,
1119 const GLuint
*value
);
1120 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1121 GLboolean normalized
,
1122 const GLuint
*value
);
1126 #endif /* DD_INCLUDED */