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
;
51 struct gl_memory_info
;
53 /* GL_ARB_vertex_buffer_object */
54 /* Modifies GL_MAP_UNSYNCHRONIZED_BIT to allow driver to fail (return
55 * NULL) if buffer is unavailable for immediate mapping.
57 * Does GL_MAP_INVALIDATE_RANGE_BIT do this? It seems so, but it
58 * would require more book-keeping in the driver than seems necessary
61 * Does GL_MAP_INVALDIATE_BUFFER_BIT do this? Not really -- we don't
62 * want to provoke the driver to throw away the old storage, we will
63 * respect the contents of already referenced data.
65 #define MESA_MAP_NOWAIT_BIT 0x0040
69 * Device driver function table.
70 * Core Mesa uses these function pointers to call into device drivers.
71 * Most of these functions directly correspond to OpenGL state commands.
72 * Core Mesa will call these functions after error checking has been done
73 * so that the drivers don't have to worry about error testing.
75 * Vertex transformation/clipping/lighting is patched into the T&L module.
76 * Rasterization functions are patched into the swrast module.
78 * Note: when new functions are added here, the drivers/common/driverfuncs.c
79 * file should be updated too!!!
81 struct dd_function_table
{
83 * Return a string as needed by glGetString().
84 * Only the GL_RENDERER query must be implemented. Otherwise, NULL can be
87 const GLubyte
* (*GetString
)( struct gl_context
*ctx
, GLenum name
);
90 * Notify the driver after Mesa has made some internal state changes.
92 * This is in addition to any state change callbacks Mesa may already have
95 void (*UpdateState
)( struct gl_context
*ctx
, GLbitfield new_state
);
98 * This is called whenever glFinish() is called.
100 void (*Finish
)( struct gl_context
*ctx
);
103 * This is called whenever glFlush() is called.
105 void (*Flush
)( struct gl_context
*ctx
);
108 * Clear the color/depth/stencil/accum buffer(s).
109 * \param buffers a bitmask of BUFFER_BIT_* flags indicating which
110 * renderbuffers need to be cleared.
112 void (*Clear
)( struct gl_context
*ctx
, GLbitfield buffers
);
115 * Execute glRasterPos, updating the ctx->Current.Raster fields
117 void (*RasterPos
)( struct gl_context
*ctx
, const GLfloat v
[4] );
120 * \name Image-related functions
125 * Called by glDrawPixels().
126 * \p unpack describes how to unpack the source image data.
128 void (*DrawPixels
)( struct gl_context
*ctx
,
129 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
130 GLenum format
, GLenum type
,
131 const struct gl_pixelstore_attrib
*unpack
,
132 const GLvoid
*pixels
);
135 * Called by glReadPixels().
137 void (*ReadPixels
)( struct gl_context
*ctx
,
138 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
139 GLenum format
, GLenum type
,
140 const struct gl_pixelstore_attrib
*unpack
,
144 * Called by glCopyPixels().
146 void (*CopyPixels
)( struct gl_context
*ctx
, GLint srcx
, GLint srcy
,
147 GLsizei width
, GLsizei height
,
148 GLint dstx
, GLint dsty
, GLenum type
);
151 * Called by glBitmap().
153 void (*Bitmap
)( struct gl_context
*ctx
,
154 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
155 const struct gl_pixelstore_attrib
*unpack
,
156 const GLubyte
*bitmap
);
161 * \name Texture image functions
166 * Choose actual hardware texture format given the texture target, the
167 * user-provided source image format and type and the desired internal
168 * format. In some cases, srcFormat and srcType can be GL_NONE.
169 * Note: target may be GL_TEXTURE_CUBE_MAP, but never
170 * GL_TEXTURE_CUBE_MAP_[POSITIVE/NEGATIVE]_[XYZ].
171 * Called by glTexImage(), etc.
173 mesa_format (*ChooseTextureFormat
)(struct gl_context
*ctx
,
174 GLenum target
, GLint internalFormat
,
175 GLenum srcFormat
, GLenum srcType
);
178 * Determine sample counts support for a particular target and format
180 * \param ctx GL context
181 * \param target GL target enum
182 * \param internalFormat GL format enum
183 * \param samples Buffer to hold the returned sample counts.
184 * Drivers \b must \b not return more than 16 counts.
187 * The number of sample counts actually written to \c samples. If
188 * \c internaFormat is not renderable, zero is returned.
190 size_t (*QuerySamplesForFormat
)(struct gl_context
*ctx
,
192 GLenum internalFormat
,
196 * Called by glTexImage[123]D() and glCopyTexImage[12]D()
197 * Allocate texture memory and copy the user's image to the buffer.
198 * The gl_texture_image fields, etc. will be fully initialized.
199 * The parameters are the same as glTexImage3D(), plus:
200 * \param dims 1, 2, or 3 indicating glTexImage1/2/3D()
201 * \param packing describes how to unpack the source data.
202 * \param texImage is the destination texture image.
204 void (*TexImage
)(struct gl_context
*ctx
, GLuint dims
,
205 struct gl_texture_image
*texImage
,
206 GLenum format
, GLenum type
, const GLvoid
*pixels
,
207 const struct gl_pixelstore_attrib
*packing
);
210 * Called by glTexSubImage[123]D().
211 * Replace a subset of the target texture with new texel data.
213 void (*TexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
214 struct gl_texture_image
*texImage
,
215 GLint xoffset
, GLint yoffset
, GLint zoffset
,
216 GLsizei width
, GLsizei height
, GLint depth
,
217 GLenum format
, GLenum type
,
218 const GLvoid
*pixels
,
219 const struct gl_pixelstore_attrib
*packing
);
223 * Called by glGetTexImage(), glGetTextureSubImage().
225 void (*GetTexSubImage
)(struct gl_context
*ctx
,
226 GLint xoffset
, GLint yoffset
, GLint zoffset
,
227 GLsizei width
, GLsizei height
, GLsizei depth
,
228 GLenum format
, GLenum type
, GLvoid
*pixels
,
229 struct gl_texture_image
*texImage
);
232 * Called by glClearTex[Sub]Image
234 * Clears a rectangular region of the image to a given value. The
235 * clearValue argument is either NULL or points to a single texel to use as
236 * the clear value in the same internal format as the texture image. If it
237 * is NULL then the texture should be cleared to zeroes.
239 void (*ClearTexSubImage
)(struct gl_context
*ctx
,
240 struct gl_texture_image
*texImage
,
241 GLint xoffset
, GLint yoffset
, GLint zoffset
,
242 GLsizei width
, GLsizei height
, GLsizei depth
,
243 const GLvoid
*clearValue
);
246 * Called by glCopyTex[Sub]Image[123]D().
248 * This function should copy a rectangular region in the rb to a single
249 * destination slice, specified by @slice. In the case of 1D array
250 * textures (where one GL call can potentially affect multiple destination
251 * slices), core mesa takes care of calling this function multiple times,
252 * once for each scanline to be copied.
254 void (*CopyTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
255 struct gl_texture_image
*texImage
,
256 GLint xoffset
, GLint yoffset
, GLint slice
,
257 struct gl_renderbuffer
*rb
,
259 GLsizei width
, GLsizei height
);
261 * Called by glCopyImageSubData().
263 * This function should copy one 2-D slice from src_teximage or
264 * src_renderbuffer to dst_teximage or dst_renderbuffer. Either the
265 * teximage or renderbuffer pointer will be non-null to indicate which
266 * is the real src/dst.
268 * If one of the textures is 3-D or is a 1-D or 2-D array
269 * texture, this function will be called multiple times: once for each
270 * slice. If one of the textures is a cube map, this function will be
271 * called once for each face to be copied.
273 void (*CopyImageSubData
)(struct gl_context
*ctx
,
274 struct gl_texture_image
*src_teximage
,
275 struct gl_renderbuffer
*src_renderbuffer
,
276 int src_x
, int src_y
, int src_z
,
277 struct gl_texture_image
*dst_teximage
,
278 struct gl_renderbuffer
*dst_renderbuffer
,
279 int dst_x
, int dst_y
, int dst_z
,
280 int src_width
, int src_height
);
283 * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
284 * Note that if the texture is a cube map, the <target> parameter will
285 * indicate which cube face to generate (GL_POSITIVE/NEGATIVE_X/Y/Z).
286 * texObj->BaseLevel is the level from which to generate the remaining
289 void (*GenerateMipmap
)(struct gl_context
*ctx
, GLenum target
,
290 struct gl_texture_object
*texObj
);
293 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
294 * and glTexStorage to check if the dimensions of the texture image
296 * \param target any GL_PROXY_TEXTURE_x target
297 * \return GL_TRUE if the image is OK, GL_FALSE if too large
299 GLboolean (*TestProxyTexImage
)(struct gl_context
*ctx
, GLenum target
,
300 GLint level
, mesa_format format
,
301 GLint width
, GLint height
,
302 GLint depth
, GLint border
);
307 * \name Compressed texture functions
312 * Called by glCompressedTexImage[123]D().
314 void (*CompressedTexImage
)(struct gl_context
*ctx
, GLuint dims
,
315 struct gl_texture_image
*texImage
,
316 GLsizei imageSize
, const GLvoid
*data
);
319 * Called by glCompressedTexSubImage[123]D().
321 void (*CompressedTexSubImage
)(struct gl_context
*ctx
, GLuint dims
,
322 struct gl_texture_image
*texImage
,
323 GLint xoffset
, GLint yoffset
, GLint zoffset
,
324 GLsizei width
, GLsizei height
, GLsizei depth
,
326 GLsizei imageSize
, const GLvoid
*data
);
329 * Called by glGetCompressedTexImage.
331 void (*GetCompressedTexSubImage
)(struct gl_context
*ctx
,
332 struct gl_texture_image
*texImage
,
333 GLint xoffset
, GLint yoffset
,
334 GLint zoffset
, GLsizei width
,
335 GLsizei height
, GLsizei depth
,
340 * \name Texture object / image functions
345 * Called by glBindTexture() and glBindTextures().
347 void (*BindTexture
)( struct gl_context
*ctx
, GLuint texUnit
,
348 GLenum target
, struct gl_texture_object
*tObj
);
351 * Called to allocate a new texture object. Drivers will usually
352 * allocate/return a subclass of gl_texture_object.
354 struct gl_texture_object
* (*NewTextureObject
)(struct gl_context
*ctx
,
355 GLuint name
, GLenum target
);
357 * Called to delete/free a texture object. Drivers should free the
358 * object and any image data it contains.
360 void (*DeleteTexture
)(struct gl_context
*ctx
,
361 struct gl_texture_object
*texObj
);
363 /** Called to allocate a new texture image object. */
364 struct gl_texture_image
* (*NewTextureImage
)(struct gl_context
*ctx
);
366 /** Called to free a texture image object returned by NewTextureImage() */
367 void (*DeleteTextureImage
)(struct gl_context
*ctx
,
368 struct gl_texture_image
*);
370 /** Called to allocate memory for a single texture image */
371 GLboolean (*AllocTextureImageBuffer
)(struct gl_context
*ctx
,
372 struct gl_texture_image
*texImage
);
374 /** Free the memory for a single texture image */
375 void (*FreeTextureImageBuffer
)(struct gl_context
*ctx
,
376 struct gl_texture_image
*texImage
);
378 /** Map a slice of a texture image into user space.
379 * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
380 * indicates the 1D array index.
381 * \param texImage the texture image
382 * \param slice the 3D image slice or array texture slice
383 * \param x, y, w, h region of interest
384 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
385 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
386 * \param mapOut returns start of mapping of region of interest
387 * \param rowStrideOut returns row stride (in bytes). In the case of a
388 * compressed texture, this is the byte stride between one row of blocks
391 void (*MapTextureImage
)(struct gl_context
*ctx
,
392 struct gl_texture_image
*texImage
,
394 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
396 GLubyte
**mapOut
, GLint
*rowStrideOut
);
398 void (*UnmapTextureImage
)(struct gl_context
*ctx
,
399 struct gl_texture_image
*texImage
,
402 /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
403 * All the gl_texture_images in the texture object will have their
404 * dimensions, format, etc. initialized already.
406 GLboolean (*AllocTextureStorage
)(struct gl_context
*ctx
,
407 struct gl_texture_object
*texObj
,
408 GLsizei levels
, GLsizei width
,
409 GLsizei height
, GLsizei depth
);
411 /** Called as part of glTextureView to add views to origTexObj */
412 GLboolean (*TextureView
)(struct gl_context
*ctx
,
413 struct gl_texture_object
*texObj
,
414 struct gl_texture_object
*origTexObj
);
416 /** Sets the given buffer object as the texture's storage. The given
417 * texture must have target GL_TEXTURE_1D, GL_TEXTURE_2D,
418 * GL_TEXTURE_RECTANGLE, and GL_TEXTURE_2D_ARRAY; have only a single
419 * mipmap level; be immutable; and must not have any assigned storage.
420 * The format and dimensions of the gl_texture_object will already be
423 * This function is used by the meta PBO texture upload path.
425 bool (*SetTextureStorageForBufferObject
)(struct gl_context
*ctx
,
426 struct gl_texture_object
*texObj
,
427 struct gl_buffer_object
*bufferObj
,
428 uint32_t buffer_offset
,
433 * Map a renderbuffer into user space.
434 * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
435 * GL_MAP_INVALIDATE_RANGE_BIT (if writing)
437 void (*MapRenderbuffer
)(struct gl_context
*ctx
,
438 struct gl_renderbuffer
*rb
,
439 GLuint x
, GLuint y
, GLuint w
, GLuint h
,
441 GLubyte
**mapOut
, GLint
*rowStrideOut
);
443 void (*UnmapRenderbuffer
)(struct gl_context
*ctx
,
444 struct gl_renderbuffer
*rb
);
447 * Optional driver entrypoint that binds a non-texture renderbuffer's
448 * contents to a texture image.
450 GLboolean (*BindRenderbufferTexImage
)(struct gl_context
*ctx
,
451 struct gl_renderbuffer
*rb
,
452 struct gl_texture_image
*texImage
);
457 * \name Vertex/fragment program functions
460 /** Bind a vertex/fragment program */
461 void (*BindProgram
)(struct gl_context
*ctx
, GLenum target
,
462 struct gl_program
*prog
);
463 /** Allocate a new program */
464 struct gl_program
* (*NewProgram
)(struct gl_context
*ctx
, GLenum target
,
466 /** Delete a program */
467 void (*DeleteProgram
)(struct gl_context
*ctx
, struct gl_program
*prog
);
469 * Notify driver that a program string (and GPU code) has been specified
470 * or modified. Return GL_TRUE or GL_FALSE to indicate if the program is
471 * supported by the driver.
473 GLboolean (*ProgramStringNotify
)(struct gl_context
*ctx
, GLenum target
,
474 struct gl_program
*prog
);
477 * Notify driver that the sampler uniforms for the current program have
478 * changed. On some drivers, this may require shader recompiles.
480 void (*SamplerUniformChange
)(struct gl_context
*ctx
, GLenum target
,
481 struct gl_program
*prog
);
483 /** Query if program can be loaded onto hardware */
484 GLboolean (*IsProgramNative
)(struct gl_context
*ctx
, GLenum target
,
485 struct gl_program
*prog
);
490 * \name GLSL shader/program functions.
494 * Called when a shader program is linked.
496 * This gives drivers an opportunity to clone the IR and make their
497 * own transformations on it for the purposes of code generation.
499 GLboolean (*LinkShader
)(struct gl_context
*ctx
,
500 struct gl_shader_program
*shader
);
504 * \name State-changing functions.
506 * \note drawing functions are above.
508 * These functions are called by their corresponding OpenGL API functions.
509 * They are \e also called by the gl_PopAttrib() function!!!
510 * May add more functions like these to the device driver in the future.
513 /** Specify the alpha test function */
514 void (*AlphaFunc
)(struct gl_context
*ctx
, GLenum func
, GLfloat ref
);
515 /** Set the blend color */
516 void (*BlendColor
)(struct gl_context
*ctx
, const GLfloat color
[4]);
517 /** Set the blend equation */
518 void (*BlendEquationSeparate
)(struct gl_context
*ctx
,
519 GLenum modeRGB
, GLenum modeA
);
520 /** Specify pixel arithmetic */
521 void (*BlendFuncSeparate
)(struct gl_context
*ctx
,
522 GLenum sfactorRGB
, GLenum dfactorRGB
,
523 GLenum sfactorA
, GLenum dfactorA
);
524 /** Specify a plane against which all geometry is clipped */
525 void (*ClipPlane
)(struct gl_context
*ctx
, GLenum plane
, const GLfloat
*eq
);
526 /** Enable and disable writing of frame buffer color components */
527 void (*ColorMask
)(struct gl_context
*ctx
, GLboolean rmask
, GLboolean gmask
,
528 GLboolean bmask
, GLboolean amask
);
529 /** Cause a material color to track the current color */
530 void (*ColorMaterial
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
531 /** Specify whether front- or back-facing facets can be culled */
532 void (*CullFace
)(struct gl_context
*ctx
, GLenum mode
);
533 /** Define front- and back-facing polygons */
534 void (*FrontFace
)(struct gl_context
*ctx
, GLenum mode
);
535 /** Specify the value used for depth buffer comparisons */
536 void (*DepthFunc
)(struct gl_context
*ctx
, GLenum func
);
537 /** Enable or disable writing into the depth buffer */
538 void (*DepthMask
)(struct gl_context
*ctx
, GLboolean flag
);
539 /** Specify mapping of depth values from NDC to window coordinates */
540 void (*DepthRange
)(struct gl_context
*ctx
);
541 /** Specify the current buffer for writing */
542 void (*DrawBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
543 /** Specify the buffers for writing for fragment programs*/
544 void (*DrawBuffers
)(struct gl_context
*ctx
, GLsizei n
, const GLenum
*buffers
);
545 /** Enable or disable server-side gl capabilities */
546 void (*Enable
)(struct gl_context
*ctx
, GLenum cap
, GLboolean state
);
547 /** Specify fog parameters */
548 void (*Fogfv
)(struct gl_context
*ctx
, GLenum pname
, const GLfloat
*params
);
549 /** Set light source parameters.
550 * Note: for GL_POSITION and GL_SPOT_DIRECTION, params will have already
551 * been transformed to eye-space.
553 void (*Lightfv
)(struct gl_context
*ctx
, GLenum light
,
554 GLenum pname
, const GLfloat
*params
);
555 /** Set the lighting model parameters */
556 void (*LightModelfv
)(struct gl_context
*ctx
, GLenum pname
,
557 const GLfloat
*params
);
558 /** Specify the line stipple pattern */
559 void (*LineStipple
)(struct gl_context
*ctx
, GLint factor
, GLushort pattern
);
560 /** Specify the width of rasterized lines */
561 void (*LineWidth
)(struct gl_context
*ctx
, GLfloat width
);
562 /** Specify a logical pixel operation for color index rendering */
563 void (*LogicOpcode
)(struct gl_context
*ctx
, GLenum opcode
);
564 void (*PointParameterfv
)(struct gl_context
*ctx
, GLenum pname
,
565 const GLfloat
*params
);
566 /** Specify the diameter of rasterized points */
567 void (*PointSize
)(struct gl_context
*ctx
, GLfloat size
);
568 /** Select a polygon rasterization mode */
569 void (*PolygonMode
)(struct gl_context
*ctx
, GLenum face
, GLenum mode
);
570 /** Set the scale and units used to calculate depth values */
571 void (*PolygonOffset
)(struct gl_context
*ctx
, GLfloat factor
, GLfloat units
, GLfloat clamp
);
572 /** Set the polygon stippling pattern */
573 void (*PolygonStipple
)(struct gl_context
*ctx
, const GLubyte
*mask
);
574 /* Specifies the current buffer for reading */
575 void (*ReadBuffer
)( struct gl_context
*ctx
, GLenum buffer
);
576 /** Set rasterization mode */
577 void (*RenderMode
)(struct gl_context
*ctx
, GLenum mode
);
578 /** Define the scissor box */
579 void (*Scissor
)(struct gl_context
*ctx
);
580 /** Select flat or smooth shading */
581 void (*ShadeModel
)(struct gl_context
*ctx
, GLenum mode
);
582 /** OpenGL 2.0 two-sided StencilFunc */
583 void (*StencilFuncSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum func
,
584 GLint ref
, GLuint mask
);
585 /** OpenGL 2.0 two-sided StencilMask */
586 void (*StencilMaskSeparate
)(struct gl_context
*ctx
, GLenum face
, GLuint mask
);
587 /** OpenGL 2.0 two-sided StencilOp */
588 void (*StencilOpSeparate
)(struct gl_context
*ctx
, GLenum face
, GLenum fail
,
589 GLenum zfail
, GLenum zpass
);
590 /** Control the generation of texture coordinates */
591 void (*TexGen
)(struct gl_context
*ctx
, GLenum coord
, GLenum pname
,
592 const GLfloat
*params
);
593 /** Set texture environment parameters */
594 void (*TexEnv
)(struct gl_context
*ctx
, GLenum target
, GLenum pname
,
595 const GLfloat
*param
);
596 /** Set texture parameters */
597 void (*TexParameter
)(struct gl_context
*ctx
,
598 struct gl_texture_object
*texObj
,
599 GLenum pname
, const GLfloat
*params
);
600 /** Set the viewport */
601 void (*Viewport
)(struct gl_context
*ctx
);
606 * \name Vertex/pixel buffer object functions
609 struct gl_buffer_object
* (*NewBufferObject
)(struct gl_context
*ctx
,
612 void (*DeleteBuffer
)( struct gl_context
*ctx
, struct gl_buffer_object
*obj
);
614 GLboolean (*BufferData
)(struct gl_context
*ctx
, GLenum target
,
615 GLsizeiptrARB size
, const GLvoid
*data
, GLenum usage
,
616 GLenum storageFlags
, struct gl_buffer_object
*obj
);
618 void (*BufferSubData
)( struct gl_context
*ctx
, GLintptrARB offset
,
619 GLsizeiptrARB size
, const GLvoid
*data
,
620 struct gl_buffer_object
*obj
);
622 void (*GetBufferSubData
)( struct gl_context
*ctx
,
623 GLintptrARB offset
, GLsizeiptrARB size
,
624 GLvoid
*data
, struct gl_buffer_object
*obj
);
626 void (*ClearBufferSubData
)( struct gl_context
*ctx
,
627 GLintptr offset
, GLsizeiptr size
,
628 const GLvoid
*clearValue
,
629 GLsizeiptr clearValueSize
,
630 struct gl_buffer_object
*obj
);
632 void (*CopyBufferSubData
)( struct gl_context
*ctx
,
633 struct gl_buffer_object
*src
,
634 struct gl_buffer_object
*dst
,
635 GLintptr readOffset
, GLintptr writeOffset
,
638 void (*InvalidateBufferSubData
)( struct gl_context
*ctx
,
639 struct gl_buffer_object
*obj
,
643 /* Returns pointer to the start of the mapped range.
644 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
646 void * (*MapBufferRange
)( struct gl_context
*ctx
, GLintptr offset
,
647 GLsizeiptr length
, GLbitfield access
,
648 struct gl_buffer_object
*obj
,
649 gl_map_buffer_index index
);
651 void (*FlushMappedBufferRange
)(struct gl_context
*ctx
,
652 GLintptr offset
, GLsizeiptr length
,
653 struct gl_buffer_object
*obj
,
654 gl_map_buffer_index index
);
656 GLboolean (*UnmapBuffer
)( struct gl_context
*ctx
,
657 struct gl_buffer_object
*obj
,
658 gl_map_buffer_index index
);
662 * \name Functions for GL_APPLE_object_purgeable
665 /* variations on ObjectPurgeable */
666 GLenum (*BufferObjectPurgeable
)(struct gl_context
*ctx
,
667 struct gl_buffer_object
*obj
, GLenum option
);
668 GLenum (*RenderObjectPurgeable
)(struct gl_context
*ctx
,
669 struct gl_renderbuffer
*obj
, GLenum option
);
670 GLenum (*TextureObjectPurgeable
)(struct gl_context
*ctx
,
671 struct gl_texture_object
*obj
,
674 /* variations on ObjectUnpurgeable */
675 GLenum (*BufferObjectUnpurgeable
)(struct gl_context
*ctx
,
676 struct gl_buffer_object
*obj
,
678 GLenum (*RenderObjectUnpurgeable
)(struct gl_context
*ctx
,
679 struct gl_renderbuffer
*obj
,
681 GLenum (*TextureObjectUnpurgeable
)(struct gl_context
*ctx
,
682 struct gl_texture_object
*obj
,
687 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
690 struct gl_framebuffer
* (*NewFramebuffer
)(struct gl_context
*ctx
,
692 struct gl_renderbuffer
* (*NewRenderbuffer
)(struct gl_context
*ctx
,
694 void (*BindFramebuffer
)(struct gl_context
*ctx
, GLenum target
,
695 struct gl_framebuffer
*drawFb
,
696 struct gl_framebuffer
*readFb
);
697 void (*FramebufferRenderbuffer
)(struct gl_context
*ctx
,
698 struct gl_framebuffer
*fb
,
700 struct gl_renderbuffer
*rb
);
701 void (*RenderTexture
)(struct gl_context
*ctx
,
702 struct gl_framebuffer
*fb
,
703 struct gl_renderbuffer_attachment
*att
);
704 void (*FinishRenderTexture
)(struct gl_context
*ctx
,
705 struct gl_renderbuffer
*rb
);
706 void (*ValidateFramebuffer
)(struct gl_context
*ctx
,
707 struct gl_framebuffer
*fb
);
709 void (*BlitFramebuffer
)(struct gl_context
*ctx
,
710 struct gl_framebuffer
*readFb
,
711 struct gl_framebuffer
*drawFb
,
712 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
713 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
714 GLbitfield mask
, GLenum filter
);
715 void (*DiscardFramebuffer
)(struct gl_context
*ctx
,
716 GLenum target
, GLsizei numAttachments
,
717 const GLenum
*attachments
);
720 * \name Query objects
723 struct gl_query_object
* (*NewQueryObject
)(struct gl_context
*ctx
, GLuint id
);
724 void (*DeleteQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
725 void (*BeginQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
726 void (*QueryCounter
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
727 void (*EndQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
728 void (*CheckQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
729 void (*WaitQuery
)(struct gl_context
*ctx
, struct gl_query_object
*q
);
731 * \pname the value requested to be written (GL_QUERY_RESULT, etc)
732 * \ptype the type of the value requested to be written:
733 * GL_UNSIGNED_INT, GL_UNSIGNED_INT64_ARB,
734 * GL_INT, GL_INT64_ARB
736 void (*StoreQueryResult
)(struct gl_context
*ctx
, struct gl_query_object
*q
,
737 struct gl_buffer_object
*buf
, intptr_t offset
,
738 GLenum pname
, GLenum ptype
);
742 * \name Performance monitors
745 void (*InitPerfMonitorGroups
)(struct gl_context
*ctx
);
746 struct gl_perf_monitor_object
* (*NewPerfMonitor
)(struct gl_context
*ctx
);
747 void (*DeletePerfMonitor
)(struct gl_context
*ctx
,
748 struct gl_perf_monitor_object
*m
);
749 GLboolean (*BeginPerfMonitor
)(struct gl_context
*ctx
,
750 struct gl_perf_monitor_object
*m
);
752 /** Stop an active performance monitor, discarding results. */
753 void (*ResetPerfMonitor
)(struct gl_context
*ctx
,
754 struct gl_perf_monitor_object
*m
);
755 void (*EndPerfMonitor
)(struct gl_context
*ctx
,
756 struct gl_perf_monitor_object
*m
);
757 GLboolean (*IsPerfMonitorResultAvailable
)(struct gl_context
*ctx
,
758 struct gl_perf_monitor_object
*m
);
759 void (*GetPerfMonitorResult
)(struct gl_context
*ctx
,
760 struct gl_perf_monitor_object
*m
,
763 GLint
*bytesWritten
);
767 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
770 struct gl_shader
*(*NewShader
)(struct gl_context
*ctx
,
771 GLuint name
, GLenum type
);
772 void (*UseProgram
)(struct gl_context
*ctx
, struct gl_shader_program
*shProg
);
776 * \name GREMEDY debug/marker functions
779 void (*EmitStringMarker
)(struct gl_context
*ctx
, const GLchar
*string
, GLsizei len
);
783 * \name Support for multiple T&L engines
788 * Set by the driver-supplied T&L engine.
790 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
792 GLuint CurrentExecPrimitive
;
795 * Current glBegin state of an in-progress compilation. May be
796 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
799 GLuint CurrentSavePrimitive
;
802 #define FLUSH_STORED_VERTICES 0x1
803 #define FLUSH_UPDATE_CURRENT 0x2
805 * Set by the driver-supplied T&L engine whenever vertices are buffered
806 * between glBegin()/glEnd() objects or __struct gl_contextRec::Current
807 * is not updated. A bitmask of the FLUSH_x values above.
809 * The dd_function_table::FlushVertices call below may be used to resolve
812 GLbitfield NeedFlush
;
814 /** Need to call vbo_save_SaveFlushVertices() upon state change? */
815 GLboolean SaveNeedFlush
;
818 * Notify driver that the special derived value _NeedEyeCoords has
821 void (*LightingSpaceChange
)( struct gl_context
*ctx
);
826 * \name GL_ARB_sync interfaces
829 struct gl_sync_object
* (*NewSyncObject
)(struct gl_context
*, GLenum
);
830 void (*FenceSync
)(struct gl_context
*, struct gl_sync_object
*,
832 void (*DeleteSyncObject
)(struct gl_context
*, struct gl_sync_object
*);
833 void (*CheckSync
)(struct gl_context
*, struct gl_sync_object
*);
834 void (*ClientWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
835 GLbitfield
, GLuint64
);
836 void (*ServerWaitSync
)(struct gl_context
*, struct gl_sync_object
*,
837 GLbitfield
, GLuint64
);
840 /** GL_NV_conditional_render */
841 void (*BeginConditionalRender
)(struct gl_context
*ctx
,
842 struct gl_query_object
*q
,
844 void (*EndConditionalRender
)(struct gl_context
*ctx
,
845 struct gl_query_object
*q
);
848 * \name GL_OES_draw_texture interface
851 void (*DrawTex
)(struct gl_context
*ctx
, GLfloat x
, GLfloat y
, GLfloat z
,
852 GLfloat width
, GLfloat height
);
856 * \name GL_OES_EGL_image interface
858 void (*EGLImageTargetTexture2D
)(struct gl_context
*ctx
, GLenum target
,
859 struct gl_texture_object
*texObj
,
860 struct gl_texture_image
*texImage
,
861 GLeglImageOES image_handle
);
862 void (*EGLImageTargetRenderbufferStorage
)(struct gl_context
*ctx
,
863 struct gl_renderbuffer
*rb
,
867 * \name GL_EXT_transform_feedback interface
869 struct gl_transform_feedback_object
*
870 (*NewTransformFeedback
)(struct gl_context
*ctx
, GLuint name
);
871 void (*DeleteTransformFeedback
)(struct gl_context
*ctx
,
872 struct gl_transform_feedback_object
*obj
);
873 void (*BeginTransformFeedback
)(struct gl_context
*ctx
, GLenum mode
,
874 struct gl_transform_feedback_object
*obj
);
875 void (*EndTransformFeedback
)(struct gl_context
*ctx
,
876 struct gl_transform_feedback_object
*obj
);
877 void (*PauseTransformFeedback
)(struct gl_context
*ctx
,
878 struct gl_transform_feedback_object
*obj
);
879 void (*ResumeTransformFeedback
)(struct gl_context
*ctx
,
880 struct gl_transform_feedback_object
*obj
);
883 * Return the number of vertices written to a stream during the last
884 * Begin/EndTransformFeedback block.
886 GLsizei (*GetTransformFeedbackVertexCount
)(struct gl_context
*ctx
,
887 struct gl_transform_feedback_object
*obj
,
891 * \name GL_NV_texture_barrier interface
893 void (*TextureBarrier
)(struct gl_context
*ctx
);
896 * \name GL_ARB_sampler_objects
898 struct gl_sampler_object
* (*NewSamplerObject
)(struct gl_context
*ctx
,
902 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
903 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
905 uint64_t (*GetTimestamp
)(struct gl_context
*ctx
);
908 * \name GL_ARB_texture_multisample
910 void (*GetSamplePosition
)(struct gl_context
*ctx
,
911 struct gl_framebuffer
*fb
,
916 * \name NV_vdpau_interop interface
918 void (*VDPAUMapSurface
)(struct gl_context
*ctx
, GLenum target
,
919 GLenum access
, GLboolean output
,
920 struct gl_texture_object
*texObj
,
921 struct gl_texture_image
*texImage
,
922 const GLvoid
*vdpSurface
, GLuint index
);
923 void (*VDPAUUnmapSurface
)(struct gl_context
*ctx
, GLenum target
,
924 GLenum access
, GLboolean output
,
925 struct gl_texture_object
*texObj
,
926 struct gl_texture_image
*texImage
,
927 const GLvoid
*vdpSurface
, GLuint index
);
930 * Query reset status for GL_ARB_robustness
932 * Per \c glGetGraphicsResetStatusARB, this function should return a
933 * non-zero value once after a reset. If a reset is non-atomic, the
934 * non-zero status should be returned for the duration of the reset.
936 GLenum (*GetGraphicsResetStatus
)(struct gl_context
*ctx
);
939 * \name GL_ARB_shader_image_load_store interface.
942 void (*MemoryBarrier
)(struct gl_context
*ctx
, GLbitfield barriers
);
946 * \name GL_ARB_compute_shader interface
949 void (*DispatchCompute
)(struct gl_context
*ctx
, const GLuint
*num_groups
);
950 void (*DispatchComputeIndirect
)(struct gl_context
*ctx
, GLintptr indirect
);
954 * Query information about memory. Device memory is e.g. VRAM. Staging
955 * memory is e.g. GART. All sizes are in kilobytes.
957 void (*QueryMemoryInfo
)(struct gl_context
*ctx
,
958 struct gl_memory_info
*info
);
963 * Per-vertex functions.
965 * These are the functions which can appear between glBegin and glEnd.
966 * Depending on whether we're inside or outside a glBegin/End pair
967 * and whether we're in immediate mode or building a display list, these
968 * functions behave differently. This structure allows us to switch
969 * between those modes more easily.
971 * Generally, these pointers point to functions in the VBO module.
974 void (GLAPIENTRYP ArrayElement
)( GLint
);
975 void (GLAPIENTRYP Color3f
)( GLfloat
, GLfloat
, GLfloat
);
976 void (GLAPIENTRYP Color3fv
)( const GLfloat
* );
977 void (GLAPIENTRYP Color4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
978 void (GLAPIENTRYP Color4fv
)( const GLfloat
* );
979 void (GLAPIENTRYP EdgeFlag
)( GLboolean
);
980 void (GLAPIENTRYP EvalCoord1f
)( GLfloat
);
981 void (GLAPIENTRYP EvalCoord1fv
)( const GLfloat
* );
982 void (GLAPIENTRYP EvalCoord2f
)( GLfloat
, GLfloat
);
983 void (GLAPIENTRYP EvalCoord2fv
)( const GLfloat
* );
984 void (GLAPIENTRYP EvalPoint1
)( GLint
);
985 void (GLAPIENTRYP EvalPoint2
)( GLint
, GLint
);
986 void (GLAPIENTRYP FogCoordfEXT
)( GLfloat
);
987 void (GLAPIENTRYP FogCoordfvEXT
)( const GLfloat
* );
988 void (GLAPIENTRYP Indexf
)( GLfloat
);
989 void (GLAPIENTRYP Indexfv
)( const GLfloat
* );
990 void (GLAPIENTRYP Materialfv
)( GLenum face
, GLenum pname
, const GLfloat
* );
991 void (GLAPIENTRYP MultiTexCoord1fARB
)( GLenum
, GLfloat
);
992 void (GLAPIENTRYP MultiTexCoord1fvARB
)( GLenum
, const GLfloat
* );
993 void (GLAPIENTRYP MultiTexCoord2fARB
)( GLenum
, GLfloat
, GLfloat
);
994 void (GLAPIENTRYP MultiTexCoord2fvARB
)( GLenum
, const GLfloat
* );
995 void (GLAPIENTRYP MultiTexCoord3fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
);
996 void (GLAPIENTRYP MultiTexCoord3fvARB
)( GLenum
, const GLfloat
* );
997 void (GLAPIENTRYP MultiTexCoord4fARB
)( GLenum
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
998 void (GLAPIENTRYP MultiTexCoord4fvARB
)( GLenum
, const GLfloat
* );
999 void (GLAPIENTRYP Normal3f
)( GLfloat
, GLfloat
, GLfloat
);
1000 void (GLAPIENTRYP Normal3fv
)( const GLfloat
* );
1001 void (GLAPIENTRYP SecondaryColor3fEXT
)( GLfloat
, GLfloat
, GLfloat
);
1002 void (GLAPIENTRYP SecondaryColor3fvEXT
)( const GLfloat
* );
1003 void (GLAPIENTRYP TexCoord1f
)( GLfloat
);
1004 void (GLAPIENTRYP TexCoord1fv
)( const GLfloat
* );
1005 void (GLAPIENTRYP TexCoord2f
)( GLfloat
, GLfloat
);
1006 void (GLAPIENTRYP TexCoord2fv
)( const GLfloat
* );
1007 void (GLAPIENTRYP TexCoord3f
)( GLfloat
, GLfloat
, GLfloat
);
1008 void (GLAPIENTRYP TexCoord3fv
)( const GLfloat
* );
1009 void (GLAPIENTRYP TexCoord4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1010 void (GLAPIENTRYP TexCoord4fv
)( const GLfloat
* );
1011 void (GLAPIENTRYP Vertex2f
)( GLfloat
, GLfloat
);
1012 void (GLAPIENTRYP Vertex2fv
)( const GLfloat
* );
1013 void (GLAPIENTRYP Vertex3f
)( GLfloat
, GLfloat
, GLfloat
);
1014 void (GLAPIENTRYP Vertex3fv
)( const GLfloat
* );
1015 void (GLAPIENTRYP Vertex4f
)( GLfloat
, GLfloat
, GLfloat
, GLfloat
);
1016 void (GLAPIENTRYP Vertex4fv
)( const GLfloat
* );
1017 void (GLAPIENTRYP CallList
)( GLuint
);
1018 void (GLAPIENTRYP CallLists
)( GLsizei
, GLenum
, const GLvoid
* );
1019 void (GLAPIENTRYP Begin
)( GLenum
);
1020 void (GLAPIENTRYP End
)( void );
1021 void (GLAPIENTRYP PrimitiveRestartNV
)( void );
1022 /* Originally for GL_NV_vertex_program, now used only dlist.c and friends */
1023 void (GLAPIENTRYP VertexAttrib1fNV
)( GLuint index
, GLfloat x
);
1024 void (GLAPIENTRYP VertexAttrib1fvNV
)( GLuint index
, const GLfloat
*v
);
1025 void (GLAPIENTRYP VertexAttrib2fNV
)( GLuint index
, GLfloat x
, GLfloat y
);
1026 void (GLAPIENTRYP VertexAttrib2fvNV
)( GLuint index
, const GLfloat
*v
);
1027 void (GLAPIENTRYP VertexAttrib3fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1028 void (GLAPIENTRYP VertexAttrib3fvNV
)( GLuint index
, const GLfloat
*v
);
1029 void (GLAPIENTRYP VertexAttrib4fNV
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1030 void (GLAPIENTRYP VertexAttrib4fvNV
)( GLuint index
, const GLfloat
*v
);
1031 /* GL_ARB_vertex_program */
1032 void (GLAPIENTRYP VertexAttrib1fARB
)( GLuint index
, GLfloat x
);
1033 void (GLAPIENTRYP VertexAttrib1fvARB
)( GLuint index
, const GLfloat
*v
);
1034 void (GLAPIENTRYP VertexAttrib2fARB
)( GLuint index
, GLfloat x
, GLfloat y
);
1035 void (GLAPIENTRYP VertexAttrib2fvARB
)( GLuint index
, const GLfloat
*v
);
1036 void (GLAPIENTRYP VertexAttrib3fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1037 void (GLAPIENTRYP VertexAttrib3fvARB
)( GLuint index
, const GLfloat
*v
);
1038 void (GLAPIENTRYP VertexAttrib4fARB
)( GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1039 void (GLAPIENTRYP VertexAttrib4fvARB
)( GLuint index
, const GLfloat
*v
);
1041 /* GL_EXT_gpu_shader4 / GL 3.0 */
1042 void (GLAPIENTRYP VertexAttribI1i
)( GLuint index
, GLint x
);
1043 void (GLAPIENTRYP VertexAttribI2i
)( GLuint index
, GLint x
, GLint y
);
1044 void (GLAPIENTRYP VertexAttribI3i
)( GLuint index
, GLint x
, GLint y
, GLint z
);
1045 void (GLAPIENTRYP VertexAttribI4i
)( GLuint index
, GLint x
, GLint y
, GLint z
, GLint w
);
1046 void (GLAPIENTRYP VertexAttribI2iv
)( GLuint index
, const GLint
*v
);
1047 void (GLAPIENTRYP VertexAttribI3iv
)( GLuint index
, const GLint
*v
);
1048 void (GLAPIENTRYP VertexAttribI4iv
)( GLuint index
, const GLint
*v
);
1050 void (GLAPIENTRYP VertexAttribI1ui
)( GLuint index
, GLuint x
);
1051 void (GLAPIENTRYP VertexAttribI2ui
)( GLuint index
, GLuint x
, GLuint y
);
1052 void (GLAPIENTRYP VertexAttribI3ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
);
1053 void (GLAPIENTRYP VertexAttribI4ui
)( GLuint index
, GLuint x
, GLuint y
, GLuint z
, GLuint w
);
1054 void (GLAPIENTRYP VertexAttribI2uiv
)( GLuint index
, const GLuint
*v
);
1055 void (GLAPIENTRYP VertexAttribI3uiv
)( GLuint index
, const GLuint
*v
);
1056 void (GLAPIENTRYP VertexAttribI4uiv
)( GLuint index
, const GLuint
*v
);
1058 /* GL_ARB_vertex_type_10_10_10_2_rev / GL3.3 */
1059 void (GLAPIENTRYP VertexP2ui
)( GLenum type
, GLuint value
);
1060 void (GLAPIENTRYP VertexP2uiv
)( GLenum type
, const GLuint
*value
);
1062 void (GLAPIENTRYP VertexP3ui
)( GLenum type
, GLuint value
);
1063 void (GLAPIENTRYP VertexP3uiv
)( GLenum type
, const GLuint
*value
);
1065 void (GLAPIENTRYP VertexP4ui
)( GLenum type
, GLuint value
);
1066 void (GLAPIENTRYP VertexP4uiv
)( GLenum type
, const GLuint
*value
);
1068 void (GLAPIENTRYP TexCoordP1ui
)( GLenum type
, GLuint coords
);
1069 void (GLAPIENTRYP TexCoordP1uiv
)( GLenum type
, const GLuint
*coords
);
1071 void (GLAPIENTRYP TexCoordP2ui
)( GLenum type
, GLuint coords
);
1072 void (GLAPIENTRYP TexCoordP2uiv
)( GLenum type
, const GLuint
*coords
);
1074 void (GLAPIENTRYP TexCoordP3ui
)( GLenum type
, GLuint coords
);
1075 void (GLAPIENTRYP TexCoordP3uiv
)( GLenum type
, const GLuint
*coords
);
1077 void (GLAPIENTRYP TexCoordP4ui
)( GLenum type
, GLuint coords
);
1078 void (GLAPIENTRYP TexCoordP4uiv
)( GLenum type
, const GLuint
*coords
);
1080 void (GLAPIENTRYP MultiTexCoordP1ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1081 void (GLAPIENTRYP MultiTexCoordP1uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1082 void (GLAPIENTRYP MultiTexCoordP2ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1083 void (GLAPIENTRYP MultiTexCoordP2uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1084 void (GLAPIENTRYP MultiTexCoordP3ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1085 void (GLAPIENTRYP MultiTexCoordP3uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1086 void (GLAPIENTRYP MultiTexCoordP4ui
)( GLenum texture
, GLenum type
, GLuint coords
);
1087 void (GLAPIENTRYP MultiTexCoordP4uiv
)( GLenum texture
, GLenum type
, const GLuint
*coords
);
1089 void (GLAPIENTRYP NormalP3ui
)( GLenum type
, GLuint coords
);
1090 void (GLAPIENTRYP NormalP3uiv
)( GLenum type
, const GLuint
*coords
);
1092 void (GLAPIENTRYP ColorP3ui
)( GLenum type
, GLuint color
);
1093 void (GLAPIENTRYP ColorP3uiv
)( GLenum type
, const GLuint
*color
);
1095 void (GLAPIENTRYP ColorP4ui
)( GLenum type
, GLuint color
);
1096 void (GLAPIENTRYP ColorP4uiv
)( GLenum type
, const GLuint
*color
);
1098 void (GLAPIENTRYP SecondaryColorP3ui
)( GLenum type
, GLuint color
);
1099 void (GLAPIENTRYP SecondaryColorP3uiv
)( GLenum type
, const GLuint
*color
);
1101 void (GLAPIENTRYP VertexAttribP1ui
)( GLuint index
, GLenum type
,
1102 GLboolean normalized
, GLuint value
);
1103 void (GLAPIENTRYP VertexAttribP2ui
)( GLuint index
, GLenum type
,
1104 GLboolean normalized
, GLuint value
);
1105 void (GLAPIENTRYP VertexAttribP3ui
)( GLuint index
, GLenum type
,
1106 GLboolean normalized
, GLuint value
);
1107 void (GLAPIENTRYP VertexAttribP4ui
)( GLuint index
, GLenum type
,
1108 GLboolean normalized
, GLuint value
);
1109 void (GLAPIENTRYP VertexAttribP1uiv
)( GLuint index
, GLenum type
,
1110 GLboolean normalized
,
1111 const GLuint
*value
);
1112 void (GLAPIENTRYP VertexAttribP2uiv
)( GLuint index
, GLenum type
,
1113 GLboolean normalized
,
1114 const GLuint
*value
);
1115 void (GLAPIENTRYP VertexAttribP3uiv
)( GLuint index
, GLenum type
,
1116 GLboolean normalized
,
1117 const GLuint
*value
);
1118 void (GLAPIENTRYP VertexAttribP4uiv
)( GLuint index
, GLenum type
,
1119 GLboolean normalized
,
1120 const GLuint
*value
);
1122 /* GL_ARB_vertex_attrib_64bit / GL 4.1 */
1123 void (GLAPIENTRYP VertexAttribL1d
)( GLuint index
, GLdouble x
);
1124 void (GLAPIENTRYP VertexAttribL2d
)( GLuint index
, GLdouble x
, GLdouble y
);
1125 void (GLAPIENTRYP VertexAttribL3d
)( GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
);
1126 void (GLAPIENTRYP VertexAttribL4d
)( GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
1129 void (GLAPIENTRYP VertexAttribL1dv
)( GLuint index
, const GLdouble
*v
);
1130 void (GLAPIENTRYP VertexAttribL2dv
)( GLuint index
, const GLdouble
*v
);
1131 void (GLAPIENTRYP VertexAttribL3dv
)( GLuint index
, const GLdouble
*v
);
1132 void (GLAPIENTRYP VertexAttribL4dv
)( GLuint index
, const GLdouble
*v
);
1137 #endif /* DD_INCLUDED */