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_bitmap_atlas
;
39 struct gl_buffer_object
;
41 struct gl_display_list
;
42 struct gl_framebuffer
;
44 struct gl_pixelstore_attrib
;
46 struct gl_renderbuffer
;
47 struct gl_renderbuffer_attachment
;
49 struct gl_shader_program
;
50 struct gl_texture_image
;
51 struct gl_texture_object
;
52 struct gl_memory_info
;
54 /* GL_ARB_vertex_buffer_object */
55 /* Modifies GL_MAP_UNSYNCHRONIZED_BIT to allow driver to fail (return
56 * NULL) if buffer is unavailable for immediate mapping.
58 * Does GL_MAP_INVALIDATE_RANGE_BIT do this? It seems so, but it
59 * would require more book-keeping in the driver than seems necessary
62 * Does GL_MAP_INVALDIATE_BUFFER_BIT do this? Not really -- we don't
63 * want to provoke the driver to throw away the old storage, we will
64 * respect the contents of already referenced data.
66 #define MESA_MAP_NOWAIT_BIT 0x4000
70 * Device driver function table.
71 * Core Mesa uses these function pointers to call into device drivers.
72 * Most of these functions directly correspond to OpenGL state commands.
73 * Core Mesa will call these functions after error checking has been done
74 * so that the drivers don't have to worry about error testing.
76 * Vertex transformation/clipping/lighting is patched into the T&L module.
77 * Rasterization functions are patched into the swrast module.
79 * Note: when new functions are added here, the drivers/common/driverfuncs.c
80 * file should be updated too!!!
82 struct dd_function_table
{
84 * Return a string as needed by glGetString().
85 * Only the GL_RENDERER query must be implemented. Otherwise, NULL can be
88 const GLubyte
* (*GetString
)( struct gl_context
*ctx
, GLenum name
);
91 * Notify the driver after Mesa has made some internal state changes.
93 * This is in addition to any state change callbacks Mesa may already have
96 void (*UpdateState
)( struct gl_context
*ctx
, GLbitfield new_state
);
99 * This is called whenever glFinish() is called.
101 void (*Finish
)( struct gl_context
*ctx
);
104 * This is called whenever glFlush() is called.
106 void (*Flush
)( struct gl_context
*ctx
);
109 * Clear the color/depth/stencil/accum buffer(s).
110 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
111 * renderbuffers need to be cleared.
113 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
116 * Execute glRasterPos, updating the ctx->Current.Raster fields
118 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
121 * \name Image-related functions
126 * Called by glDrawPixels().
127 * \p unpack describes how to unpack the source image data.
129 void (*DrawPixels
)( struct gl_context
*ctx
,
130 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
131 GLenum format
, GLenum type
,
132 const struct gl_pixelstore_attrib
*unpack
,
133 const GLvoid
*pixels
);
136 * Called by glReadPixels().
138 void (*ReadPixels
)( struct gl_context
*ctx
,
139 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
140 GLenum format
, GLenum type
,
141 const struct gl_pixelstore_attrib
*unpack
,
145 * Called by glCopyPixels().
147 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
148 GLsizei width
, GLsizei height
,
149 GLint dstx
, GLint dsty
, GLenum type
);
152 * Called by glBitmap().
154 void (*Bitmap
)( struct gl_context
*ctx
,
155 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
156 const struct gl_pixelstore_attrib
*unpack
,
157 const GLubyte
*bitmap
);
160 * Called by display list code for optimized glCallLists/glBitmap rendering
161 * The driver must support texture rectangles of width 1024 or more.
163 void (*DrawAtlasBitmaps
)(struct gl_context
*ctx
,
164 const struct gl_bitmap_atlas
*atlas
,
165 GLuint count
, const GLubyte
*ids
);
170 * \name Texture image functions
175 * Choose actual hardware texture format given the texture target, the
176 * user-provided source image format and type and the desired internal
177 * format. In some cases, srcFormat and srcType can be GL_NONE.
178 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
179 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
180 * Called by glTexImage(), etc.
182 mesa_format (*ChooseTextureFormat
)(struct gl_context
*ctx
,
183 GLenum target
, GLint internalFormat
,
184 GLenum srcFormat
, GLenum srcType
);
187 * Queries different driver parameters for a particular target and format.
188 * Since ARB_internalformat_query2 introduced several new query parameters
189 * over ARB_internalformat_query, having one driver hook for each parameter
190 * is no longer feasible. So this is the generic entry-point for calls
191 * to glGetInternalFormativ and glGetInternalFormati64v, after Mesa has
192 * checked errors and default values.
194 * \param ctx GL context
195 * \param target GL target enum
196 * \param internalFormat GL format enum
197 * \param pname GL enum that specifies the info to query.
198 * \param params Buffer to hold the result of the query.
200 void (*QueryInternalFormat
)(struct gl_context
*ctx
,
202 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(), glGetTextureSubImage().
236 void (*GetTexSubImage
)(struct gl_context
*ctx
,
237 GLint xoffset
, GLint yoffset
, GLint zoffset
,
238 GLsizei width
, GLsizei height
, GLsizei depth
,
239 GLenum format
, GLenum type
, GLvoid
*pixels
,
240 struct gl_texture_image
*texImage
);
243 * Called by glClearTex[Sub]Image
245 * Clears a rectangular region of the image to a given value. The
246 * clearValue argument is either NULL or points to a single texel to use as
247 * the clear value in the same internal format as the texture image. If it
248 * is NULL then the texture should be cleared to zeroes.
250 void (*ClearTexSubImage
)(struct gl_context
*ctx
,
251 struct gl_texture_image
*texImage
,
252 GLint xoffset
, GLint yoffset
, GLint zoffset
,
253 GLsizei width
, GLsizei height
, GLsizei depth
,
254 const GLvoid
*clearValue
);
257 * Called by glCopyTex[Sub]Image[123]D().
259 * This function should copy a rectangular region in the rb to a single
260 * destination slice, specified by @slice. In the case of 1D array
261 * textures (where one GL call can potentially affect multiple destination
262 * slices), core mesa takes care of calling this function multiple times,
263 * once for each scanline to be copied.
265 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
266 struct gl_texture_image
*texImage
,
267 GLint xoffset
, GLint yoffset
, GLint slice
,
268 struct gl_renderbuffer
*rb
,
270 GLsizei width
, GLsizei height
);
272 * Called by glCopyImageSubData().
274 * This function should copy one 2-D slice from src_teximage or
275 * src_renderbuffer to dst_teximage or dst_renderbuffer. Either the
276 * teximage or renderbuffer pointer will be non-null to indicate which
277 * is the real src/dst.
279 * If one of the textures is 3-D or is a 1-D or 2-D array
280 * texture, this function will be called multiple times: once for each
281 * slice. If one of the textures is a cube map, this function will be
282 * called once for each face to be copied.
284 void (*CopyImageSubData
)(struct gl_context
*ctx
,
285 struct gl_texture_image
*src_teximage
,
286 struct gl_renderbuffer
*src_renderbuffer
,
287 int src_x
, int src_y
, int src_z
,
288 struct gl_texture_image
*dst_teximage
,
289 struct gl_renderbuffer
*dst_renderbuffer
,
290 int dst_x
, int dst_y
, int dst_z
,
291 int src_width
, int src_height
);
294 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
295 * Note that if the texture is a cube map, the <target> parameter will
296 * indicate which cube face to generate (GL_POSITIVE/NEGATIVE_X/Y/Z).
297 * texObj->BaseLevel is the level from which to generate the remaining
300 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
301 struct gl_texture_object
*texObj
);
304 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
305 * and glTexStorage to check if the dimensions of the texture image
307 * \param target any GL_PROXY_TEXTURE_x target
308 * \return GL_TRUE if the image is OK, GL_FALSE if too large
310 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
311 GLint level
, mesa_format format
,
312 GLint width
, GLint height
,
313 GLint depth
, GLint border
);
318 * \name Compressed texture functions
323 * Called by glCompressedTexImage[123]D().
325 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
326 struct gl_texture_image
*texImage
,
327 GLsizei imageSize
, const GLvoid
*data
);
330 * Called by glCompressedTexSubImage[123]D().
332 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
333 struct gl_texture_image
*texImage
,
334 GLint xoffset
, GLint yoffset
, GLint zoffset
,
335 GLsizei width
, GLsizei height
, GLsizei depth
,
337 GLsizei imageSize
, const GLvoid
*data
);
340 * Called by glGetCompressedTexImage.
342 void (*GetCompressedTexSubImage
)(struct gl_context
*ctx
,
343 struct gl_texture_image
*texImage
,
344 GLint xoffset
, GLint yoffset
,
345 GLint zoffset
, GLsizei width
,
346 GLsizei height
, GLsizei depth
,
351 * \name Texture object / image functions
356 * Called by glBindTexture() and glBindTextures().
358 void (*BindTexture
)( struct gl_context
*ctx
, GLuint texUnit
,
359 GLenum target
, struct gl_texture_object
*tObj
);
362 * Called to allocate a new texture object. Drivers will usually
363 * allocate/return a subclass of gl_texture_object.
365 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
366 GLuint name
, GLenum target
);
368 * Called to delete/free a texture object. Drivers should free the
369 * object and any image data it contains.
371 void (*DeleteTexture
)(struct gl_context
*ctx
,
372 struct gl_texture_object
*texObj
);
374 /** Called to allocate a new texture image object. */
375 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
377 /** Called to free a texture image object returned by NewTextureImage() */
378 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
379 struct gl_texture_image
*);
381 /** Called to allocate memory for a single texture image */
382 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
383 struct gl_texture_image
*texImage
);
385 /** Free the memory for a single texture image */
386 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
387 struct gl_texture_image
*texImage
);
389 /** Map a slice of a texture image into user space.
390 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
391 * indicates the 1D array index.
392 * \param texImage the texture image
393 * \param slice the 3D image slice or array texture slice
394 * \param x, y, w, h region of interest
395 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
396 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
397 * \param mapOut returns start of mapping of region of interest
398 * \param rowStrideOut returns row stride (in bytes). In the case of a
399 * compressed texture, this is the byte stride between one row of blocks
402 void (*MapTextureImage
)(struct gl_context
*ctx
,
403 struct gl_texture_image
*texImage
,
405 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
407 GLubyte
**mapOut
, GLint
*rowStrideOut
);
409 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
410 struct gl_texture_image
*texImage
,
413 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
414 * All the gl_texture_images in the texture object will have their
415 * dimensions, format, etc. initialized already.
417 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
418 struct gl_texture_object
*texObj
,
419 GLsizei levels
, GLsizei width
,
420 GLsizei height
, GLsizei depth
);
422 /** Called as part of glTextureView to add views to origTexObj */
423 GLboolean (*TextureView
)(struct gl_context
*ctx
,
424 struct gl_texture_object
*texObj
,
425 struct gl_texture_object
*origTexObj
);
427 /** Sets the given buffer object as the texture's storage. The given
428 * texture must have target GL_TEXTURE_1D, GL_TEXTURE_2D,
429 * GL_TEXTURE_RECTANGLE, and GL_TEXTURE_2D_ARRAY; have only a single
430 * mipmap level; be immutable; and must not have any assigned storage.
431 * The format and dimensions of the gl_texture_object will already be
434 * This function is used by the meta PBO texture upload path.
436 bool (*SetTextureStorageForBufferObject
)(struct gl_context
*ctx
,
437 struct gl_texture_object
*texObj
,
438 struct gl_buffer_object
*bufferObj
,
439 uint32_t buffer_offset
,
444 * Map a renderbuffer into user space.
445 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
446 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
448 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
449 struct gl_renderbuffer
*rb
,
450 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
452 GLubyte
**mapOut
, GLint
*rowStrideOut
);
454 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
455 struct gl_renderbuffer
*rb
);
458 * Optional driver entrypoint that binds a non-texture renderbuffer's
459 * contents to a texture image.
461 GLboolean (*BindRenderbufferTexImage
)(struct gl_context
*ctx
,
462 struct gl_renderbuffer
*rb
,
463 struct gl_texture_image
*texImage
);
468 * \name Vertex/fragment program functions
471 /** Bind a vertex/fragment program */
472 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
,
473 struct gl_program
*prog
);
474 /** Allocate a new program */
475 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
,
477 /** Delete a program */
478 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
480 * Allocate a program to associate with the new ATI fragment shader (optional)
482 struct gl_program
* (*NewATIfs
)(struct gl_context
*ctx
,
483 struct ati_fragment_shader
*curProg
);
485 * Notify driver that a program string (and GPU code) has been specified
486 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
487 * supported by the driver.
489 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
490 struct gl_program
*prog
);
493 * Notify driver that the sampler uniforms for the current program have
494 * changed. On some drivers, this may require shader recompiles.
496 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
497 struct gl_program
*prog
);
499 /** Query if program can be loaded onto hardware */
500 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
501 struct gl_program
*prog
);
506 * \name GLSL shader/program functions.
510 * Called when a shader program is linked.
512 * This gives drivers an opportunity to clone the IR and make their
513 * own transformations on it for the purposes of code generation.
515 GLboolean (*LinkShader
)(struct gl_context
*ctx
,
516 struct gl_shader_program
*shader
);
520 * \name State-changing functions.
522 * \note drawing functions are above.
524 * These functions are called by their corresponding OpenGL API functions.
525 * They are \e also called by the gl_PopAttrib() function!!!
526 * May add more functions like these to the device driver in the future.
529 /** Specify the alpha test function */
530 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
531 /** Set the blend color */
532 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
533 /** Set the blend equation */
534 void (*BlendEquationSeparate
)(struct gl_context
*ctx
,
535 GLenum modeRGB
, GLenum modeA
);
536 /** Specify pixel arithmetic */
537 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
538 GLenum sfactorRGB
, GLenum dfactorRGB
,
539 GLenum sfactorA
, GLenum dfactorA
);
540 /** Specify a plane against which all geometry is clipped */
541 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*eq
);
542 /** Enable and disable writing of frame buffer color components */
543 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
544 GLboolean bmask
, GLboolean amask
);
545 /** Cause a material color to track the current color */
546 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
547 /** Specify whether front- or back-facing facets can be culled */
548 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
549 /** Define front- and back-facing polygons */
550 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
551 /** Specify the value used for depth buffer comparisons */
552 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
553 /** Enable or disable writing into the depth buffer */
554 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
555 /** Specify mapping of depth values from NDC to window coordinates */
556 void (*DepthRange
)(struct gl_context
*ctx
);
557 /** Specify the current buffer for writing */
558 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
559 /** Specify the buffers for writing for fragment programs*/
560 void (*DrawBuffers
)(struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
561 /** Enable or disable server-side gl capabilities */
562 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
563 /** Specify fog parameters */
564 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
565 /** Set light source parameters.
566 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
567 * been transformed to eye-space.
569 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
570 GLenum pname
, const GLfloat
*params
);
571 /** Set the lighting model parameters */
572 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
,
573 const GLfloat
*params
);
574 /** Specify the line stipple pattern */
575 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
576 /** Specify the width of rasterized lines */
577 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
578 /** Specify a logical pixel operation for color index rendering */
579 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
580 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
581 const GLfloat
*params
);
582 /** Specify the diameter of rasterized points */
583 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
584 /** Select a polygon rasterization mode */
585 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
586 /** Set the scale and units used to calculate depth values */
587 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
, GLfloat clamp
);
588 /** Set the polygon stippling pattern */
589 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
590 /* Specifies the current buffer for reading */
591 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
592 /** Set rasterization mode */
593 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
594 /** Define the scissor box */
595 void (*Scissor
)(struct gl_context
*ctx
);
596 /** Select flat or smooth shading */
597 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
598 /** OpenGL 2.0 two-sided StencilFunc */
599 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
600 GLint ref
, GLuint mask
);
601 /** OpenGL 2.0 two-sided StencilMask */
602 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
603 /** OpenGL 2.0 two-sided StencilOp */
604 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
605 GLenum zfail
, GLenum zpass
);
606 /** Control the generation of texture coordinates */
607 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
608 const GLfloat
*params
);
609 /** Set texture environment parameters */
610 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
611 const GLfloat
*param
);
612 /** Set texture parameters */
613 void (*TexParameter
)(struct gl_context
*ctx
,
614 struct gl_texture_object
*texObj
,
615 GLenum pname
, const GLfloat
*params
);
616 /** Set the viewport */
617 void (*Viewport
)(struct gl_context
*ctx
);
622 * \name Vertex/pixel buffer object functions
625 struct gl_buffer_object
* (*NewBufferObject
)(struct gl_context
*ctx
,
628 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
630 GLboolean (*BufferData
)(struct gl_context
*ctx
, GLenum target
,
631 GLsizeiptrARB size
, const GLvoid
*data
, GLenum usage
,
632 GLenum storageFlags
, struct gl_buffer_object
*obj
);
634 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
635 GLsizeiptrARB size
, const GLvoid
*data
,
636 struct gl_buffer_object
*obj
);
638 void (*GetBufferSubData
)( struct gl_context
*ctx
,
639 GLintptrARB offset
, GLsizeiptrARB size
,
640 GLvoid
*data
, struct gl_buffer_object
*obj
);
642 void (*ClearBufferSubData
)( struct gl_context
*ctx
,
643 GLintptr offset
, GLsizeiptr size
,
644 const GLvoid
*clearValue
,
645 GLsizeiptr clearValueSize
,
646 struct gl_buffer_object
*obj
);
648 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
649 struct gl_buffer_object
*src
,
650 struct gl_buffer_object
*dst
,
651 GLintptr readOffset
, GLintptr writeOffset
,
654 void (*InvalidateBufferSubData
)( struct gl_context
*ctx
,
655 struct gl_buffer_object
*obj
,
659 /* Returns pointer to the start of the mapped range.
660 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
662 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
663 GLsizeiptr length
, GLbitfield access
,
664 struct gl_buffer_object
*obj
,
665 gl_map_buffer_index index
);
667 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
668 GLintptr offset
, GLsizeiptr length
,
669 struct gl_buffer_object
*obj
,
670 gl_map_buffer_index index
);
672 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
673 struct gl_buffer_object
*obj
,
674 gl_map_buffer_index index
);
678 * \name Functions for GL_APPLE_object_purgeable
681 /* variations on ObjectPurgeable */
682 GLenum (*BufferObjectPurgeable
)(struct gl_context
*ctx
,
683 struct gl_buffer_object
*obj
, GLenum option
);
684 GLenum (*RenderObjectPurgeable
)(struct gl_context
*ctx
,
685 struct gl_renderbuffer
*obj
, GLenum option
);
686 GLenum (*TextureObjectPurgeable
)(struct gl_context
*ctx
,
687 struct gl_texture_object
*obj
,
690 /* variations on ObjectUnpurgeable */
691 GLenum (*BufferObjectUnpurgeable
)(struct gl_context
*ctx
,
692 struct gl_buffer_object
*obj
,
694 GLenum (*RenderObjectUnpurgeable
)(struct gl_context
*ctx
,
695 struct gl_renderbuffer
*obj
,
697 GLenum (*TextureObjectUnpurgeable
)(struct gl_context
*ctx
,
698 struct gl_texture_object
*obj
,
703 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
706 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
,
708 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
,
710 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
711 struct gl_framebuffer
*drawFb
,
712 struct gl_framebuffer
*readFb
);
713 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
714 struct gl_framebuffer
*fb
,
716 struct gl_renderbuffer
*rb
);
717 void (*RenderTexture
)(struct gl_context
*ctx
,
718 struct gl_framebuffer
*fb
,
719 struct gl_renderbuffer_attachment
*att
);
720 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
721 struct gl_renderbuffer
*rb
);
722 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
723 struct gl_framebuffer
*fb
);
725 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
726 struct gl_framebuffer
*readFb
,
727 struct gl_framebuffer
*drawFb
,
728 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
729 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
730 GLbitfield mask
, GLenum filter
);
731 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
732 GLenum target
, GLsizei numAttachments
,
733 const GLenum
*attachments
);
736 * \name Query objects
739 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
740 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
741 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
742 void (*QueryCounter
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
743 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
744 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
745 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
747 * \pname the value requested to be written (GL_QUERY_RESULT, etc)
748 * \ptype the type of the value requested to be written:
749 * GL_UNSIGNED_INT, GL_UNSIGNED_INT64_ARB,
750 * GL_INT, GL_INT64_ARB
752 void (*StoreQueryResult
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
753 struct gl_buffer_object
*buf
, intptr_t offset
,
754 GLenum pname
, GLenum ptype
);
758 * \name Performance monitors
761 void (*InitPerfMonitorGroups
)(struct gl_context
*ctx
);
762 struct gl_perf_monitor_object
* (*NewPerfMonitor
)(struct gl_context
*ctx
);
763 void (*DeletePerfMonitor
)(struct gl_context
*ctx
,
764 struct gl_perf_monitor_object
*m
);
765 GLboolean (*BeginPerfMonitor
)(struct gl_context
*ctx
,
766 struct gl_perf_monitor_object
*m
);
768 /** Stop an active performance monitor, discarding results. */
769 void (*ResetPerfMonitor
)(struct gl_context
*ctx
,
770 struct gl_perf_monitor_object
*m
);
771 void (*EndPerfMonitor
)(struct gl_context
*ctx
,
772 struct gl_perf_monitor_object
*m
);
773 GLboolean (*IsPerfMonitorResultAvailable
)(struct gl_context
*ctx
,
774 struct gl_perf_monitor_object
*m
);
775 void (*GetPerfMonitorResult
)(struct gl_context
*ctx
,
776 struct gl_perf_monitor_object
*m
,
779 GLint
*bytesWritten
);
783 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
786 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
,
787 GLuint name
, gl_shader_stage stage
);
788 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
792 * \name GREMEDY debug/marker functions
795 void (*EmitStringMarker
)(struct gl_context
*ctx
, const GLchar
*string
, GLsizei len
);
799 * \name Support for multiple T&L engines
804 * Set by the driver-supplied T&L engine.
806 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
808 GLuint CurrentExecPrimitive
;
811 * Current glBegin state of an in-progress compilation. May be
812 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
815 GLuint CurrentSavePrimitive
;
818 #define FLUSH_STORED_VERTICES 0x1
819 #define FLUSH_UPDATE_CURRENT 0x2
821 * Set by the driver-supplied T&L engine whenever vertices are buffered
822 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current
823 * is not updated. A bitmask of the FLUSH_x values above.
825 * The dd_function_table::FlushVertices call below may be used to resolve
828 GLbitfield NeedFlush
;
830 /** Need to call vbo_save_SaveFlushVertices() upon state change? */
831 GLboolean SaveNeedFlush
;
834 * Notify driver that the special derived value _NeedEyeCoords has
837 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
842 * \name GL_ARB_sync interfaces
845 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
846 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*,
848 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
849 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
850 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
851 GLbitfield
, GLuint64
);
852 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
853 GLbitfield
, GLuint64
);
856 /** GL_NV_conditional_render */
857 void (*BeginConditionalRender
)(struct gl_context
*ctx
,
858 struct gl_query_object
*q
,
860 void (*EndConditionalRender
)(struct gl_context
*ctx
,
861 struct gl_query_object
*q
);
864 * \name GL_OES_draw_texture interface
867 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
868 GLfloat width
, GLfloat height
);
872 * \name GL_OES_EGL_image interface
874 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
875 struct gl_texture_object
*texObj
,
876 struct gl_texture_image
*texImage
,
877 GLeglImageOES image_handle
);
878 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
879 struct gl_renderbuffer
*rb
,
883 * \name GL_EXT_transform_feedback interface
885 struct gl_transform_feedback_object
*
886 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
887 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
888 struct gl_transform_feedback_object
*obj
);
889 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
890 struct gl_transform_feedback_object
*obj
);
891 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
892 struct gl_transform_feedback_object
*obj
);
893 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
894 struct gl_transform_feedback_object
*obj
);
895 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
896 struct gl_transform_feedback_object
*obj
);
899 * Return the number of vertices written to a stream during the last
900 * Begin/EndTransformFeedback block.
902 GLsizei (*GetTransformFeedbackVertexCount
)(struct gl_context
*ctx
,
903 struct gl_transform_feedback_object
*obj
,
907 * \name GL_NV_texture_barrier interface
909 void (*TextureBarrier
)(struct gl_context
*ctx
);
912 * \name GL_ARB_sampler_objects
914 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
918 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
919 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
921 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
924 * \name GL_ARB_texture_multisample
926 void (*GetSamplePosition
)(struct gl_context
*ctx
,
927 struct gl_framebuffer
*fb
,
932 * \name NV_vdpau_interop interface
934 void (*VDPAUMapSurface
)(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
);
939 void (*VDPAUUnmapSurface
)(struct gl_context
*ctx
, GLenum target
,
940 GLenum access
, GLboolean output
,
941 struct gl_texture_object
*texObj
,
942 struct gl_texture_image
*texImage
,
943 const GLvoid
*vdpSurface
, GLuint index
);
946 * Query reset status for GL_ARB_robustness
948 * Per \c glGetGraphicsResetStatusARB, this function should return a
949 * non-zero value once after a reset. If a reset is non-atomic, the
950 * non-zero status should be returned for the duration of the reset.
952 GLenum (*GetGraphicsResetStatus
)(struct gl_context
*ctx
);
955 * \name GL_ARB_shader_image_load_store interface.
958 void (*MemoryBarrier
)(struct gl_context
*ctx
, GLbitfield barriers
);
962 * \name GL_ARB_compute_shader interface
965 void (*DispatchCompute
)(struct gl_context
*ctx
, const GLuint
*num_groups
);
966 void (*DispatchComputeIndirect
)(struct gl_context
*ctx
, GLintptr indirect
);
970 * Query information about memory. Device memory is e.g. VRAM. Staging
971 * memory is e.g. GART. All sizes are in kilobytes.
973 void (*QueryMemoryInfo
)(struct gl_context
*ctx
,
974 struct gl_memory_info
*info
);
979 * Per-vertex functions.
981 * These are the functions which can appear between glBegin and glEnd.
982 * Depending on whether we're inside or outside a glBegin/End pair
983 * and whether we're in immediate mode or building a display list, these
984 * functions behave differently. This structure allows us to switch
985 * between those modes more easily.
987 * Generally, these pointers point to functions in the VBO module.
990 void (GLAPIENTRYP ArrayElement
)( GLint
);
991 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
992 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
993 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
994 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
995 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
996 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
997 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
998 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
999 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
1000 void (GLAPIENTRYP EvalPoint1
)( GLint
);
1001 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
1002 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
1003 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
1004 void (GLAPIENTRYP Indexf
)( GLfloat
);
1005 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
1006 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
1007 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
1008 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
1009 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
1010 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
1011 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
1012 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
1013 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1014 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
1015 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
1016 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
1017 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
1018 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
1019 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
1020 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
1021 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
1022 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
1023 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
1024 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1025 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1026 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1027 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1028 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1029 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1030 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1031 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1032 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1033 void (GLAPIENTRYP CallList
)( GLuint
);
1034 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1035 void (GLAPIENTRYP Begin
)( GLenum
);
1036 void (GLAPIENTRYP End
)( void );
1037 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1038 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
1039 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1040 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1041 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1042 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1043 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1044 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1045 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1046 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1047 /* GL_ARB_vertex_program */
1048 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1049 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1050 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1051 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1052 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1053 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1054 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1055 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1057 /* GL_EXT_gpu_shader4 / GL 3.0 */
1058 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1059 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1060 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1061 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1062 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1063 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1064 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1066 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1067 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1068 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1069 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1070 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1071 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1072 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1074 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1075 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1076 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1078 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1079 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1081 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1082 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1084 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1085 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1087 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1088 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1090 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1091 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1093 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1094 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1096 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1097 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1098 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1099 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1100 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1101 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1102 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1103 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1105 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1106 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1108 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1109 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1111 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1112 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1114 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1115 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1117 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1118 GLboolean normalized
, GLuint value
);
1119 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1120 GLboolean normalized
, GLuint value
);
1121 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1122 GLboolean normalized
, GLuint value
);
1123 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1124 GLboolean normalized
, GLuint value
);
1125 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1126 GLboolean normalized
,
1127 const GLuint
*value
);
1128 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1129 GLboolean normalized
,
1130 const GLuint
*value
);
1131 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1132 GLboolean normalized
,
1133 const GLuint
*value
);
1134 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1135 GLboolean normalized
,
1136 const GLuint
*value
);
1138 /* GL_ARB_vertex_attrib_64bit / GL 4.1 */
1139 void (GLAPIENTRYP VertexAttribL1d
)( GLuint index
, GLdouble x
);
1140 void (GLAPIENTRYP VertexAttribL2d
)( GLuint index
, GLdouble x
, GLdouble y
);
1141 void (GLAPIENTRYP VertexAttribL3d
)( GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
);
1142 void (GLAPIENTRYP VertexAttribL4d
)( GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
1145 void (GLAPIENTRYP VertexAttribL1dv
)( GLuint index
, const GLdouble
*v
);
1146 void (GLAPIENTRYP VertexAttribL2dv
)( GLuint index
, const GLdouble
*v
);
1147 void (GLAPIENTRYP VertexAttribL3dv
)( GLuint index
, const GLdouble
*v
);
1148 void (GLAPIENTRYP VertexAttribL4dv
)( GLuint index
, const GLdouble
*v
);
1153 #endif /* DD_INCLUDED */