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 * This is called whenever glFinish() is called.
99 void (*Finish
)( struct gl_context
*ctx
);
102 * This is called whenever glFlush() is called.
104 void (*Flush
)( struct gl_context
*ctx
);
107 * Clear the color/depth/stencil/accum buffer(s).
108 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
109 * renderbuffers need to be cleared.
111 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
114 * Execute glRasterPos, updating the ctx->Current.Raster fields
116 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
119 * \name Image-related functions
124 * Called by glDrawPixels().
125 * \p unpack describes how to unpack the source image data.
127 void (*DrawPixels
)( struct gl_context
*ctx
,
128 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
129 GLenum format
, GLenum type
,
130 const struct gl_pixelstore_attrib
*unpack
,
131 const GLvoid
*pixels
);
134 * Called by glReadPixels().
136 void (*ReadPixels
)( struct gl_context
*ctx
,
137 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
138 GLenum format
, GLenum type
,
139 const struct gl_pixelstore_attrib
*unpack
,
143 * Called by glCopyPixels().
145 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
146 GLsizei width
, GLsizei height
,
147 GLint dstx
, GLint dsty
, GLenum type
);
150 * Called by glBitmap().
152 void (*Bitmap
)( struct gl_context
*ctx
,
153 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
154 const struct gl_pixelstore_attrib
*unpack
,
155 const GLubyte
*bitmap
);
160 * \name Texture image functions
165 * Choose actual hardware texture format given the texture target, the
166 * user-provided source image format and type and the desired internal
167 * format. In some cases, srcFormat and srcType can be GL_NONE.
168 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
169 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
170 * Called by glTexImage(), etc.
172 mesa_format (*ChooseTextureFormat
)(struct gl_context
*ctx
,
173 GLenum target
, GLint internalFormat
,
174 GLenum srcFormat
, GLenum srcType
);
177 * Determine sample counts support for a particular target and format
179 * \param ctx GL context
180 * \param target GL target enum
181 * \param internalFormat GL format enum
182 * \param samples Buffer to hold the returned sample counts.
183 * Drivers \b must \b not return more than 16 counts.
186 * The number of sample counts actually written to \c samples. If
187 * \c internaFormat is not renderable, zero is returned.
189 size_t (*QuerySamplesForFormat
)(struct gl_context
*ctx
,
191 GLenum internalFormat
,
195 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
196 * Allocate texture memory and copy the user's image to the buffer.
197 * The gl_texture_image fields, etc. will be fully initialized.
198 * The parameters are the same as glTexImage3D(), plus:
199 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
200 * \param packing describes how to unpack the source data.
201 * \param texImage is the destination texture image.
203 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
204 struct gl_texture_image
*texImage
,
205 GLenum format
, GLenum type
, const GLvoid
*pixels
,
206 const struct gl_pixelstore_attrib
*packing
);
209 * Called by glTexSubImage[123]D().
210 * Replace a subset of the target texture with new texel data.
212 void (*TexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
213 struct gl_texture_image
*texImage
,
214 GLint xoffset
, GLint yoffset
, GLint zoffset
,
215 GLsizei width
, GLsizei height
, GLint depth
,
216 GLenum format
, GLenum type
,
217 const GLvoid
*pixels
,
218 const struct gl_pixelstore_attrib
*packing
);
222 * Called by glGetTexImage(), glGetTextureSubImage().
224 void (*GetTexSubImage
)(struct gl_context
*ctx
,
225 GLint xoffset
, GLint yoffset
, GLint zoffset
,
226 GLsizei width
, GLsizei height
, GLsizei depth
,
227 GLenum format
, GLenum type
, GLvoid
*pixels
,
228 struct gl_texture_image
*texImage
);
231 * Called by glClearTex[Sub]Image
233 * Clears a rectangular region of the image to a given value. The
234 * clearValue argument is either NULL or points to a single texel to use as
235 * the clear value in the same internal format as the texture image. If it
236 * is NULL then the texture should be cleared to zeroes.
238 void (*ClearTexSubImage
)(struct gl_context
*ctx
,
239 struct gl_texture_image
*texImage
,
240 GLint xoffset
, GLint yoffset
, GLint zoffset
,
241 GLsizei width
, GLsizei height
, GLsizei depth
,
242 const GLvoid
*clearValue
);
245 * Called by glCopyTex[Sub]Image[123]D().
247 * This function should copy a rectangular region in the rb to a single
248 * destination slice, specified by @slice. In the case of 1D array
249 * textures (where one GL call can potentially affect multiple destination
250 * slices), core mesa takes care of calling this function multiple times,
251 * once for each scanline to be copied.
253 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
254 struct gl_texture_image
*texImage
,
255 GLint xoffset
, GLint yoffset
, GLint slice
,
256 struct gl_renderbuffer
*rb
,
258 GLsizei width
, GLsizei height
);
260 * Called by glCopyImageSubData().
262 * This function should copy one 2-D slice from src_teximage or
263 * src_renderbuffer to dst_teximage or dst_renderbuffer. Either the
264 * teximage or renderbuffer pointer will be non-null to indicate which
265 * is the real src/dst.
267 * If one of the textures is 3-D or is a 1-D or 2-D array
268 * texture, this function will be called multiple times: once for each
269 * slice. If one of the textures is a cube map, this function will be
270 * called once for each face to be copied.
272 void (*CopyImageSubData
)(struct gl_context
*ctx
,
273 struct gl_texture_image
*src_teximage
,
274 struct gl_renderbuffer
*src_renderbuffer
,
275 int src_x
, int src_y
, int src_z
,
276 struct gl_texture_image
*dst_teximage
,
277 struct gl_renderbuffer
*dst_renderbuffer
,
278 int dst_x
, int dst_y
, int dst_z
,
279 int src_width
, int src_height
);
282 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
283 * Note that if the texture is a cube map, the <target> parameter will
284 * indicate which cube face to generate (GL_POSITIVE/NEGATIVE_X/Y/Z).
285 * texObj->BaseLevel is the level from which to generate the remaining
288 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
289 struct gl_texture_object
*texObj
);
292 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
293 * and glTexStorage to check if the dimensions of the texture image
295 * \param target any GL_PROXY_TEXTURE_x target
296 * \return GL_TRUE if the image is OK, GL_FALSE if too large
298 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
299 GLint level
, mesa_format format
,
300 GLint width
, GLint height
,
301 GLint depth
, GLint border
);
306 * \name Compressed texture functions
311 * Called by glCompressedTexImage[123]D().
313 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
314 struct gl_texture_image
*texImage
,
315 GLsizei imageSize
, const GLvoid
*data
);
318 * Called by glCompressedTexSubImage[123]D().
320 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
321 struct gl_texture_image
*texImage
,
322 GLint xoffset
, GLint yoffset
, GLint zoffset
,
323 GLsizei width
, GLsizei height
, GLsizei depth
,
325 GLsizei imageSize
, const GLvoid
*data
);
328 * Called by glGetCompressedTexImage.
330 void (*GetCompressedTexSubImage
)(struct gl_context
*ctx
,
331 struct gl_texture_image
*texImage
,
332 GLint xoffset
, GLint yoffset
,
333 GLint zoffset
, GLsizei width
,
334 GLsizei height
, GLsizei depth
,
339 * \name Texture object / image functions
344 * Called by glBindTexture() and glBindTextures().
346 void (*BindTexture
)( struct gl_context
*ctx
, GLuint texUnit
,
347 GLenum target
, struct gl_texture_object
*tObj
);
350 * Called to allocate a new texture object. Drivers will usually
351 * allocate/return a subclass of gl_texture_object.
353 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
354 GLuint name
, GLenum target
);
356 * Called to delete/free a texture object. Drivers should free the
357 * object and any image data it contains.
359 void (*DeleteTexture
)(struct gl_context
*ctx
,
360 struct gl_texture_object
*texObj
);
362 /** Called to allocate a new texture image object. */
363 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
365 /** Called to free a texture image object returned by NewTextureImage() */
366 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
367 struct gl_texture_image
*);
369 /** Called to allocate memory for a single texture image */
370 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
371 struct gl_texture_image
*texImage
);
373 /** Free the memory for a single texture image */
374 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
375 struct gl_texture_image
*texImage
);
377 /** Map a slice of a texture image into user space.
378 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
379 * indicates the 1D array index.
380 * \param texImage the texture image
381 * \param slice the 3D image slice or array texture slice
382 * \param x, y, w, h region of interest
383 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
384 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
385 * \param mapOut returns start of mapping of region of interest
386 * \param rowStrideOut returns row stride (in bytes). In the case of a
387 * compressed texture, this is the byte stride between one row of blocks
390 void (*MapTextureImage
)(struct gl_context
*ctx
,
391 struct gl_texture_image
*texImage
,
393 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
395 GLubyte
**mapOut
, GLint
*rowStrideOut
);
397 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
398 struct gl_texture_image
*texImage
,
401 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
402 * All the gl_texture_images in the texture object will have their
403 * dimensions, format, etc. initialized already.
405 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
406 struct gl_texture_object
*texObj
,
407 GLsizei levels
, GLsizei width
,
408 GLsizei height
, GLsizei depth
);
410 /** Called as part of glTextureView to add views to origTexObj */
411 GLboolean (*TextureView
)(struct gl_context
*ctx
,
412 struct gl_texture_object
*texObj
,
413 struct gl_texture_object
*origTexObj
);
415 /** Sets the given buffer object as the texture's storage. The given
416 * texture must have target GL_TEXTURE_1D, GL_TEXTURE_2D,
417 * GL_TEXTURE_RECTANGLE, and GL_TEXTURE_2D_ARRAY; have only a single
418 * mipmap level; be immutable; and must not have any assigned storage.
419 * The format and dimensions of the gl_texture_object will already be
422 * This function is used by the meta PBO texture upload path.
424 bool (*SetTextureStorageForBufferObject
)(struct gl_context
*ctx
,
425 struct gl_texture_object
*texObj
,
426 struct gl_buffer_object
*bufferObj
,
427 uint32_t buffer_offset
,
432 * Map a renderbuffer into user space.
433 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
434 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
436 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
437 struct gl_renderbuffer
*rb
,
438 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
440 GLubyte
**mapOut
, GLint
*rowStrideOut
);
442 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
443 struct gl_renderbuffer
*rb
);
446 * Optional driver entrypoint that binds a non-texture renderbuffer's
447 * contents to a texture image.
449 GLboolean (*BindRenderbufferTexImage
)(struct gl_context
*ctx
,
450 struct gl_renderbuffer
*rb
,
451 struct gl_texture_image
*texImage
);
456 * \name Vertex/fragment program functions
459 /** Bind a vertex/fragment program */
460 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
,
461 struct gl_program
*prog
);
462 /** Allocate a new program */
463 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
,
465 /** Delete a program */
466 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
468 * Notify driver that a program string (and GPU code) has been specified
469 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
470 * supported by the driver.
472 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
473 struct gl_program
*prog
);
476 * Notify driver that the sampler uniforms for the current program have
477 * changed. On some drivers, this may require shader recompiles.
479 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
480 struct gl_program
*prog
);
482 /** Query if program can be loaded onto hardware */
483 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
484 struct gl_program
*prog
);
489 * \name GLSL shader/program functions.
493 * Called when a shader program is linked.
495 * This gives drivers an opportunity to clone the IR and make their
496 * own transformations on it for the purposes of code generation.
498 GLboolean (*LinkShader
)(struct gl_context
*ctx
,
499 struct gl_shader_program
*shader
);
503 * \name State-changing functions.
505 * \note drawing functions are above.
507 * These functions are called by their corresponding OpenGL API functions.
508 * They are \e also called by the gl_PopAttrib() function!!!
509 * May add more functions like these to the device driver in the future.
512 /** Specify the alpha test function */
513 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
514 /** Set the blend color */
515 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
516 /** Set the blend equation */
517 void (*BlendEquationSeparate
)(struct gl_context
*ctx
,
518 GLenum modeRGB
, GLenum modeA
);
519 /** Specify pixel arithmetic */
520 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
521 GLenum sfactorRGB
, GLenum dfactorRGB
,
522 GLenum sfactorA
, GLenum dfactorA
);
523 /** Specify a plane against which all geometry is clipped */
524 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*eq
);
525 /** Enable and disable writing of frame buffer color components */
526 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
527 GLboolean bmask
, GLboolean amask
);
528 /** Cause a material color to track the current color */
529 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
530 /** Specify whether front- or back-facing facets can be culled */
531 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
532 /** Define front- and back-facing polygons */
533 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
534 /** Specify the value used for depth buffer comparisons */
535 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
536 /** Enable or disable writing into the depth buffer */
537 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
538 /** Specify mapping of depth values from NDC to window coordinates */
539 void (*DepthRange
)(struct gl_context
*ctx
);
540 /** Specify the current buffer for writing */
541 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
542 /** Specify the buffers for writing for fragment programs*/
543 void (*DrawBuffers
)(struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
544 /** Enable or disable server-side gl capabilities */
545 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
546 /** Specify fog parameters */
547 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
548 /** Set light source parameters.
549 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
550 * been transformed to eye-space.
552 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
553 GLenum pname
, const GLfloat
*params
);
554 /** Set the lighting model parameters */
555 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
,
556 const GLfloat
*params
);
557 /** Specify the line stipple pattern */
558 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
559 /** Specify the width of rasterized lines */
560 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
561 /** Specify a logical pixel operation for color index rendering */
562 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
563 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
564 const GLfloat
*params
);
565 /** Specify the diameter of rasterized points */
566 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
567 /** Select a polygon rasterization mode */
568 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
569 /** Set the scale and units used to calculate depth values */
570 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
, GLfloat clamp
);
571 /** Set the polygon stippling pattern */
572 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
573 /* Specifies the current buffer for reading */
574 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
575 /** Set rasterization mode */
576 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
577 /** Define the scissor box */
578 void (*Scissor
)(struct gl_context
*ctx
);
579 /** Select flat or smooth shading */
580 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
581 /** OpenGL 2.0 two-sided StencilFunc */
582 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
583 GLint ref
, GLuint mask
);
584 /** OpenGL 2.0 two-sided StencilMask */
585 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
586 /** OpenGL 2.0 two-sided StencilOp */
587 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
588 GLenum zfail
, GLenum zpass
);
589 /** Control the generation of texture coordinates */
590 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
591 const GLfloat
*params
);
592 /** Set texture environment parameters */
593 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
594 const GLfloat
*param
);
595 /** Set texture parameters */
596 void (*TexParameter
)(struct gl_context
*ctx
,
597 struct gl_texture_object
*texObj
,
598 GLenum pname
, const GLfloat
*params
);
599 /** Set the viewport */
600 void (*Viewport
)(struct gl_context
*ctx
);
605 * \name Vertex/pixel buffer object functions
608 struct gl_buffer_object
* (*NewBufferObject
)(struct gl_context
*ctx
,
611 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
613 GLboolean (*BufferData
)(struct gl_context
*ctx
, GLenum target
,
614 GLsizeiptrARB size
, const GLvoid
*data
, GLenum usage
,
615 GLenum storageFlags
, struct gl_buffer_object
*obj
);
617 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
618 GLsizeiptrARB size
, const GLvoid
*data
,
619 struct gl_buffer_object
*obj
);
621 void (*GetBufferSubData
)( struct gl_context
*ctx
,
622 GLintptrARB offset
, GLsizeiptrARB size
,
623 GLvoid
*data
, struct gl_buffer_object
*obj
);
625 void (*ClearBufferSubData
)( struct gl_context
*ctx
,
626 GLintptr offset
, GLsizeiptr size
,
627 const GLvoid
*clearValue
,
628 GLsizeiptr clearValueSize
,
629 struct gl_buffer_object
*obj
);
631 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
632 struct gl_buffer_object
*src
,
633 struct gl_buffer_object
*dst
,
634 GLintptr readOffset
, GLintptr writeOffset
,
637 /* Returns pointer to the start of the mapped range.
638 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
640 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
641 GLsizeiptr length
, GLbitfield access
,
642 struct gl_buffer_object
*obj
,
643 gl_map_buffer_index index
);
645 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
646 GLintptr offset
, GLsizeiptr length
,
647 struct gl_buffer_object
*obj
,
648 gl_map_buffer_index index
);
650 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
651 struct gl_buffer_object
*obj
,
652 gl_map_buffer_index index
);
656 * \name Functions for GL_APPLE_object_purgeable
659 /* variations on ObjectPurgeable */
660 GLenum (*BufferObjectPurgeable
)(struct gl_context
*ctx
,
661 struct gl_buffer_object
*obj
, GLenum option
);
662 GLenum (*RenderObjectPurgeable
)(struct gl_context
*ctx
,
663 struct gl_renderbuffer
*obj
, GLenum option
);
664 GLenum (*TextureObjectPurgeable
)(struct gl_context
*ctx
,
665 struct gl_texture_object
*obj
,
668 /* variations on ObjectUnpurgeable */
669 GLenum (*BufferObjectUnpurgeable
)(struct gl_context
*ctx
,
670 struct gl_buffer_object
*obj
,
672 GLenum (*RenderObjectUnpurgeable
)(struct gl_context
*ctx
,
673 struct gl_renderbuffer
*obj
,
675 GLenum (*TextureObjectUnpurgeable
)(struct gl_context
*ctx
,
676 struct gl_texture_object
*obj
,
681 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
684 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
,
686 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
,
688 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
689 struct gl_framebuffer
*drawFb
,
690 struct gl_framebuffer
*readFb
);
691 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
692 struct gl_framebuffer
*fb
,
694 struct gl_renderbuffer
*rb
);
695 void (*RenderTexture
)(struct gl_context
*ctx
,
696 struct gl_framebuffer
*fb
,
697 struct gl_renderbuffer_attachment
*att
);
698 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
699 struct gl_renderbuffer
*rb
);
700 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
701 struct gl_framebuffer
*fb
);
703 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
704 struct gl_framebuffer
*readFb
,
705 struct gl_framebuffer
*drawFb
,
706 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
707 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
708 GLbitfield mask
, GLenum filter
);
709 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
710 GLenum target
, GLsizei numAttachments
,
711 const GLenum
*attachments
);
714 * \name Query objects
717 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
718 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
719 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
720 void (*QueryCounter
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
721 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
722 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
723 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
727 * \name Performance monitors
730 struct gl_perf_monitor_object
* (*NewPerfMonitor
)(struct gl_context
*ctx
);
731 void (*DeletePerfMonitor
)(struct gl_context
*ctx
,
732 struct gl_perf_monitor_object
*m
);
733 GLboolean (*BeginPerfMonitor
)(struct gl_context
*ctx
,
734 struct gl_perf_monitor_object
*m
);
736 /** Stop an active performance monitor, discarding results. */
737 void (*ResetPerfMonitor
)(struct gl_context
*ctx
,
738 struct gl_perf_monitor_object
*m
);
739 void (*EndPerfMonitor
)(struct gl_context
*ctx
,
740 struct gl_perf_monitor_object
*m
);
741 GLboolean (*IsPerfMonitorResultAvailable
)(struct gl_context
*ctx
,
742 struct gl_perf_monitor_object
*m
);
743 void (*GetPerfMonitorResult
)(struct gl_context
*ctx
,
744 struct gl_perf_monitor_object
*m
,
747 GLint
*bytesWritten
);
752 * \name Vertex Array objects
755 struct gl_vertex_array_object
* (*NewArrayObject
)(struct gl_context
*ctx
, GLuint id
);
756 void (*DeleteArrayObject
)(struct gl_context
*ctx
, struct gl_vertex_array_object
*);
757 void (*BindArrayObject
)(struct gl_context
*ctx
, struct gl_vertex_array_object
*);
761 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
764 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
,
765 GLuint name
, GLenum type
);
766 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
771 * \name Support for multiple T&L engines
776 * Set by the driver-supplied T&L engine.
778 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
780 GLuint CurrentExecPrimitive
;
783 * Current glBegin state of an in-progress compilation. May be
784 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
787 GLuint CurrentSavePrimitive
;
790 #define FLUSH_STORED_VERTICES 0x1
791 #define FLUSH_UPDATE_CURRENT 0x2
793 * Set by the driver-supplied T&L engine whenever vertices are buffered
794 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current
795 * is not updated. A bitmask of the FLUSH_x values above.
797 * The dd_function_table::FlushVertices call below may be used to resolve
800 GLbitfield NeedFlush
;
802 /** Need to call SaveFlushVertices() upon state change? */
803 GLboolean SaveNeedFlush
;
805 /* Called prior to any of the GLvertexformat functions being
806 * called. Paired with Driver.FlushVertices().
808 void (*BeginVertices
)( struct gl_context
*ctx
);
811 * If inside glBegin()/glEnd(), it should assert(0). Otherwise, if
812 * FLUSH_STORED_VERTICES bit in \p flags is set flushes any buffered
813 * vertices, if FLUSH_UPDATE_CURRENT bit is set updates
814 * __struct gl_contextRec::Current and gl_light_attrib::Material
816 * Note that the default T&L engine never clears the
817 * FLUSH_UPDATE_CURRENT bit, even after performing the update.
819 void (*FlushVertices
)( struct gl_context
*ctx
, GLuint flags
);
820 void (*SaveFlushVertices
)( struct gl_context
*ctx
);
823 * Give the driver the opportunity to hook in its own vtxfmt for
824 * compiling optimized display lists. This is called on each valid
825 * glBegin() during list compilation.
827 GLboolean (*NotifySaveBegin
)( struct gl_context
*ctx
, GLenum mode
);
830 * Notify driver that the special derived value _NeedEyeCoords has
833 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
836 * Called by glNewList().
838 * Let the T&L component know what is going on with display lists
839 * in time to make changes to dispatch tables, etc.
841 void (*NewList
)( struct gl_context
*ctx
, GLuint list
, GLenum mode
);
843 * Called by glEndList().
845 * \sa dd_function_table::NewList.
847 void (*EndList
)( struct gl_context
*ctx
);
850 * Called by glCallList(s).
852 * Notify the T&L component before and after calling a display list.
854 void (*BeginCallList
)( struct gl_context
*ctx
,
855 struct gl_display_list
*dlist
);
857 * Called by glEndCallList().
859 * \sa dd_function_table::BeginCallList.
861 void (*EndCallList
)( struct gl_context
*ctx
);
866 * \name GL_ARB_sync interfaces
869 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
870 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*,
872 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
873 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
874 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
875 GLbitfield
, GLuint64
);
876 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
877 GLbitfield
, GLuint64
);
880 /** GL_NV_conditional_render */
881 void (*BeginConditionalRender
)(struct gl_context
*ctx
,
882 struct gl_query_object
*q
,
884 void (*EndConditionalRender
)(struct gl_context
*ctx
,
885 struct gl_query_object
*q
);
888 * \name GL_OES_draw_texture interface
891 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
892 GLfloat width
, GLfloat height
);
896 * \name GL_OES_EGL_image interface
898 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
899 struct gl_texture_object
*texObj
,
900 struct gl_texture_image
*texImage
,
901 GLeglImageOES image_handle
);
902 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
903 struct gl_renderbuffer
*rb
,
907 * \name GL_EXT_transform_feedback interface
909 struct gl_transform_feedback_object
*
910 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
911 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
912 struct gl_transform_feedback_object
*obj
);
913 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
914 struct gl_transform_feedback_object
*obj
);
915 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
916 struct gl_transform_feedback_object
*obj
);
917 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
918 struct gl_transform_feedback_object
*obj
);
919 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
920 struct gl_transform_feedback_object
*obj
);
923 * Return the number of vertices written to a stream during the last
924 * Begin/EndTransformFeedback block.
926 GLsizei (*GetTransformFeedbackVertexCount
)(struct gl_context
*ctx
,
927 struct gl_transform_feedback_object
*obj
,
931 * \name GL_NV_texture_barrier interface
933 void (*TextureBarrier
)(struct gl_context
*ctx
);
936 * \name GL_ARB_sampler_objects
938 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
940 void (*DeleteSamplerObject
)(struct gl_context
*ctx
,
941 struct gl_sampler_object
*samp
);
944 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
945 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
947 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
950 * \name GL_ARB_texture_multisample
952 void (*GetSamplePosition
)(struct gl_context
*ctx
,
953 struct gl_framebuffer
*fb
,
958 * \name NV_vdpau_interop interface
960 void (*VDPAUMapSurface
)(struct gl_context
*ctx
, GLenum target
,
961 GLenum access
, GLboolean output
,
962 struct gl_texture_object
*texObj
,
963 struct gl_texture_image
*texImage
,
964 const GLvoid
*vdpSurface
, GLuint index
);
965 void (*VDPAUUnmapSurface
)(struct gl_context
*ctx
, GLenum target
,
966 GLenum access
, GLboolean output
,
967 struct gl_texture_object
*texObj
,
968 struct gl_texture_image
*texImage
,
969 const GLvoid
*vdpSurface
, GLuint index
);
972 * Query reset status for GL_ARB_robustness
974 * Per \c glGetGraphicsResetStatusARB, this function should return a
975 * non-zero value once after a reset. If a reset is non-atomic, the
976 * non-zero status should be returned for the duration of the reset.
978 GLenum (*GetGraphicsResetStatus
)(struct gl_context
*ctx
);
981 * \name GL_ARB_shader_image_load_store interface.
984 void (*BindImageTexture
)(struct gl_context
*ctx
,
985 struct gl_image_unit
*unit
,
986 struct gl_texture_object
*texObj
,
987 GLint level
, GLboolean layered
, GLint layer
,
988 GLenum access
, GLenum format
);
990 void (*MemoryBarrier
)(struct gl_context
*ctx
, GLbitfield barriers
);
994 * \name GL_ARB_compute_shader interface
997 void (*DispatchCompute
)(struct gl_context
*ctx
, const GLuint
*num_groups
);
998 void (*DispatchComputeIndirect
)(struct gl_context
*ctx
, GLintptr indirect
);
1004 * Per-vertex functions.
1006 * These are the functions which can appear between glBegin and glEnd.
1007 * Depending on whether we're inside or outside a glBegin/End pair
1008 * and whether we're in immediate mode or building a display list, these
1009 * functions behave differently. This structure allows us to switch
1010 * between those modes more easily.
1012 * Generally, these pointers point to functions in the VBO module.
1015 void (GLAPIENTRYP ArrayElement
)( GLint
);
1016 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
1017 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
1018 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1019 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
1020 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
1021 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
1022 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
1023 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
1024 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
1025 void (GLAPIENTRYP EvalPoint1
)( GLint
);
1026 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
1027 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
1028 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
1029 void (GLAPIENTRYP Indexf
)( GLfloat
);
1030 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
1031 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
1032 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
1033 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
1034 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
1035 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
1036 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
1037 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
1038 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1039 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
1040 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
1041 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
1042 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
1043 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
1044 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
1045 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
1046 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
1047 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
1048 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
1049 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1050 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1051 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1052 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1053 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1054 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1055 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1056 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1057 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1058 void (GLAPIENTRYP CallList
)( GLuint
);
1059 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1060 void (GLAPIENTRYP Begin
)( GLenum
);
1061 void (GLAPIENTRYP End
)( void );
1062 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1063 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
1064 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1065 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1066 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1067 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1068 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1069 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1070 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1071 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1072 /* GL_ARB_vertex_program */
1073 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1074 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1075 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1076 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1077 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1078 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1079 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1080 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1082 /* GL_EXT_gpu_shader4 / GL 3.0 */
1083 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1084 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1085 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1086 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1087 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1088 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1089 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1091 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1092 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1093 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1094 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1095 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1096 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1097 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1099 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1100 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1101 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1103 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1104 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1106 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1107 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1109 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1110 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1112 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1113 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1115 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1116 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1118 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1119 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1121 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1122 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1123 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1124 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1125 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1126 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1127 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1128 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1130 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1131 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1133 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1134 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1136 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1137 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1139 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1140 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1142 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1143 GLboolean normalized
, GLuint value
);
1144 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1145 GLboolean normalized
, GLuint value
);
1146 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1147 GLboolean normalized
, GLuint value
);
1148 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1149 GLboolean normalized
, GLuint value
);
1150 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1151 GLboolean normalized
,
1152 const GLuint
*value
);
1153 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1154 GLboolean normalized
,
1155 const GLuint
*value
);
1156 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1157 GLboolean normalized
,
1158 const GLuint
*value
);
1159 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1160 GLboolean normalized
,
1161 const GLuint
*value
);
1163 /* GL_ARB_vertex_attrib_64bit / GL 4.1 */
1164 void (GLAPIENTRYP VertexAttribL1d
)( GLuint index
, GLdouble x
);
1165 void (GLAPIENTRYP VertexAttribL2d
)( GLuint index
, GLdouble x
, GLdouble y
);
1166 void (GLAPIENTRYP VertexAttribL3d
)( GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
);
1167 void (GLAPIENTRYP VertexAttribL4d
)( GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
1170 void (GLAPIENTRYP VertexAttribL1dv
)( GLuint index
, const GLdouble
*v
);
1171 void (GLAPIENTRYP VertexAttribL2dv
)( GLuint index
, const GLdouble
*v
);
1172 void (GLAPIENTRYP VertexAttribL3dv
)( GLuint index
, const GLdouble
*v
);
1173 void (GLAPIENTRYP VertexAttribL4dv
)( GLuint index
, const GLdouble
*v
);
1178 #endif /* DD_INCLUDED */