mesa: move GL_ARB_debug_output code into new debug_output.c file
[mesa.git] / src / mesa / main / dd.h
1 /**
2 * \file dd.h
3 * Device driver interfaces.
4 */
5
6 /*
7 * Mesa 3-D graphics library
8 *
9 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
10 *
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:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
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.
28 */
29
30
31 #ifndef DD_INCLUDED
32 #define DD_INCLUDED
33
34 /* THIS FILE ONLY INCLUDED BY mtypes.h !!!!! */
35
36 #include "glheader.h"
37
38 struct gl_buffer_object;
39 struct gl_context;
40 struct gl_display_list;
41 struct gl_framebuffer;
42 struct gl_image_unit;
43 struct gl_pixelstore_attrib;
44 struct gl_program;
45 struct gl_renderbuffer;
46 struct gl_renderbuffer_attachment;
47 struct gl_shader;
48 struct gl_shader_program;
49 struct gl_texture_image;
50 struct gl_texture_object;
51 struct gl_memory_info;
52
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.
56 *
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
59 * at this point.
60 *
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.
64 */
65 #define MESA_MAP_NOWAIT_BIT 0x0040
66
67
68 /**
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.
74 *
75 * Vertex transformation/clipping/lighting is patched into the T&L module.
76 * Rasterization functions are patched into the swrast module.
77 *
78 * Note: when new functions are added here, the drivers/common/driverfuncs.c
79 * file should be updated too!!!
80 */
81 struct dd_function_table {
82 /**
83 * Return a string as needed by glGetString().
84 * Only the GL_RENDERER query must be implemented. Otherwise, NULL can be
85 * returned.
86 */
87 const GLubyte * (*GetString)( struct gl_context *ctx, GLenum name );
88
89 /**
90 * Notify the driver after Mesa has made some internal state changes.
91 *
92 * This is in addition to any state change callbacks Mesa may already have
93 * made.
94 */
95 void (*UpdateState)( struct gl_context *ctx, GLbitfield new_state );
96
97 /**
98 * This is called whenever glFinish() is called.
99 */
100 void (*Finish)( struct gl_context *ctx );
101
102 /**
103 * This is called whenever glFlush() is called.
104 */
105 void (*Flush)( struct gl_context *ctx );
106
107 /**
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.
111 */
112 void (*Clear)( struct gl_context *ctx, GLbitfield buffers );
113
114 /**
115 * Execute glRasterPos, updating the ctx->Current.Raster fields
116 */
117 void (*RasterPos)( struct gl_context *ctx, const GLfloat v[4] );
118
119 /**
120 * \name Image-related functions
121 */
122 /*@{*/
123
124 /**
125 * Called by glDrawPixels().
126 * \p unpack describes how to unpack the source image data.
127 */
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 );
133
134 /**
135 * Called by glReadPixels().
136 */
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,
141 GLvoid *dest );
142
143 /**
144 * Called by glCopyPixels().
145 */
146 void (*CopyPixels)( struct gl_context *ctx, GLint srcx, GLint srcy,
147 GLsizei width, GLsizei height,
148 GLint dstx, GLint dsty, GLenum type );
149
150 /**
151 * Called by glBitmap().
152 */
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 );
157 /*@}*/
158
159
160 /**
161 * \name Texture image functions
162 */
163 /*@{*/
164
165 /**
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.
172 */
173 mesa_format (*ChooseTextureFormat)(struct gl_context *ctx,
174 GLenum target, GLint internalFormat,
175 GLenum srcFormat, GLenum srcType );
176
177 /**
178 * Determine sample counts support for a particular target and format
179 *
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.
185 *
186 * \returns
187 * The number of sample counts actually written to \c samples. If
188 * \c internaFormat is not renderable, zero is returned.
189 */
190 size_t (*QuerySamplesForFormat)(struct gl_context *ctx,
191 GLenum target,
192 GLenum internalFormat,
193 int samples[16]);
194
195 /**
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.
203 */
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);
208
209 /**
210 * Called by glTexSubImage[123]D().
211 * Replace a subset of the target texture with new texel data.
212 */
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);
220
221
222 /**
223 * Called by glGetTexImage(), glGetTextureSubImage().
224 */
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);
230
231 /**
232 * Called by glClearTex[Sub]Image
233 *
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.
238 */
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);
244
245 /**
246 * Called by glCopyTex[Sub]Image[123]D().
247 *
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.
253 */
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,
258 GLint x, GLint y,
259 GLsizei width, GLsizei height);
260 /**
261 * Called by glCopyImageSubData().
262 *
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.
267 *
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.
272 */
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);
281
282 /**
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
287 * mipmap levels.
288 */
289 void (*GenerateMipmap)(struct gl_context *ctx, GLenum target,
290 struct gl_texture_object *texObj);
291
292 /**
293 * Called by glTexImage, glCompressedTexImage, glCopyTexImage
294 * and glTexStorage to check if the dimensions of the texture image
295 * are too large.
296 * \param target any GL_PROXY_TEXTURE_x target
297 * \return GL_TRUE if the image is OK, GL_FALSE if too large
298 */
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);
303 /*@}*/
304
305
306 /**
307 * \name Compressed texture functions
308 */
309 /*@{*/
310
311 /**
312 * Called by glCompressedTexImage[123]D().
313 */
314 void (*CompressedTexImage)(struct gl_context *ctx, GLuint dims,
315 struct gl_texture_image *texImage,
316 GLsizei imageSize, const GLvoid *data);
317
318 /**
319 * Called by glCompressedTexSubImage[123]D().
320 */
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,
325 GLenum format,
326 GLsizei imageSize, const GLvoid *data);
327
328 /**
329 * Called by glGetCompressedTexImage.
330 */
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,
336 GLvoid *data);
337 /*@}*/
338
339 /**
340 * \name Texture object / image functions
341 */
342 /*@{*/
343
344 /**
345 * Called by glBindTexture() and glBindTextures().
346 */
347 void (*BindTexture)( struct gl_context *ctx, GLuint texUnit,
348 GLenum target, struct gl_texture_object *tObj );
349
350 /**
351 * Called to allocate a new texture object. Drivers will usually
352 * allocate/return a subclass of gl_texture_object.
353 */
354 struct gl_texture_object * (*NewTextureObject)(struct gl_context *ctx,
355 GLuint name, GLenum target);
356 /**
357 * Called to delete/free a texture object. Drivers should free the
358 * object and any image data it contains.
359 */
360 void (*DeleteTexture)(struct gl_context *ctx,
361 struct gl_texture_object *texObj);
362
363 /** Called to allocate a new texture image object. */
364 struct gl_texture_image * (*NewTextureImage)(struct gl_context *ctx);
365
366 /** Called to free a texture image object returned by NewTextureImage() */
367 void (*DeleteTextureImage)(struct gl_context *ctx,
368 struct gl_texture_image *);
369
370 /** Called to allocate memory for a single texture image */
371 GLboolean (*AllocTextureImageBuffer)(struct gl_context *ctx,
372 struct gl_texture_image *texImage);
373
374 /** Free the memory for a single texture image */
375 void (*FreeTextureImageBuffer)(struct gl_context *ctx,
376 struct gl_texture_image *texImage);
377
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
389 * and another.
390 */
391 void (*MapTextureImage)(struct gl_context *ctx,
392 struct gl_texture_image *texImage,
393 GLuint slice,
394 GLuint x, GLuint y, GLuint w, GLuint h,
395 GLbitfield mode,
396 GLubyte **mapOut, GLint *rowStrideOut);
397
398 void (*UnmapTextureImage)(struct gl_context *ctx,
399 struct gl_texture_image *texImage,
400 GLuint slice);
401
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.
405 */
406 GLboolean (*AllocTextureStorage)(struct gl_context *ctx,
407 struct gl_texture_object *texObj,
408 GLsizei levels, GLsizei width,
409 GLsizei height, GLsizei depth);
410
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);
415
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
421 * initialized.
422 *
423 * This function is used by the meta PBO texture upload path.
424 */
425 bool (*SetTextureStorageForBufferObject)(struct gl_context *ctx,
426 struct gl_texture_object *texObj,
427 struct gl_buffer_object *bufferObj,
428 uint32_t buffer_offset,
429 uint32_t row_stride,
430 bool read_only);
431
432 /**
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)
436 */
437 void (*MapRenderbuffer)(struct gl_context *ctx,
438 struct gl_renderbuffer *rb,
439 GLuint x, GLuint y, GLuint w, GLuint h,
440 GLbitfield mode,
441 GLubyte **mapOut, GLint *rowStrideOut);
442
443 void (*UnmapRenderbuffer)(struct gl_context *ctx,
444 struct gl_renderbuffer *rb);
445
446 /**
447 * Optional driver entrypoint that binds a non-texture renderbuffer's
448 * contents to a texture image.
449 */
450 GLboolean (*BindRenderbufferTexImage)(struct gl_context *ctx,
451 struct gl_renderbuffer *rb,
452 struct gl_texture_image *texImage);
453 /*@}*/
454
455
456 /**
457 * \name Vertex/fragment program functions
458 */
459 /*@{*/
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,
465 GLuint id);
466 /** Delete a program */
467 void (*DeleteProgram)(struct gl_context *ctx, struct gl_program *prog);
468 /**
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.
472 */
473 GLboolean (*ProgramStringNotify)(struct gl_context *ctx, GLenum target,
474 struct gl_program *prog);
475
476 /**
477 * Notify driver that the sampler uniforms for the current program have
478 * changed. On some drivers, this may require shader recompiles.
479 */
480 void (*SamplerUniformChange)(struct gl_context *ctx, GLenum target,
481 struct gl_program *prog);
482
483 /** Query if program can be loaded onto hardware */
484 GLboolean (*IsProgramNative)(struct gl_context *ctx, GLenum target,
485 struct gl_program *prog);
486
487 /*@}*/
488
489 /**
490 * \name GLSL shader/program functions.
491 */
492 /*@{*/
493 /**
494 * Called when a shader program is linked.
495 *
496 * This gives drivers an opportunity to clone the IR and make their
497 * own transformations on it for the purposes of code generation.
498 */
499 GLboolean (*LinkShader)(struct gl_context *ctx,
500 struct gl_shader_program *shader);
501 /*@}*/
502
503 /**
504 * \name State-changing functions.
505 *
506 * \note drawing functions are above.
507 *
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.
511 */
512 /*@{*/
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.
552 */
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);
602 /*@}*/
603
604
605 /**
606 * \name Vertex/pixel buffer object functions
607 */
608 /*@{*/
609 struct gl_buffer_object * (*NewBufferObject)(struct gl_context *ctx,
610 GLuint buffer);
611
612 void (*DeleteBuffer)( struct gl_context *ctx, struct gl_buffer_object *obj );
613
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);
617
618 void (*BufferSubData)( struct gl_context *ctx, GLintptrARB offset,
619 GLsizeiptrARB size, const GLvoid *data,
620 struct gl_buffer_object *obj );
621
622 void (*GetBufferSubData)( struct gl_context *ctx,
623 GLintptrARB offset, GLsizeiptrARB size,
624 GLvoid *data, struct gl_buffer_object *obj );
625
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 );
631
632 void (*CopyBufferSubData)( struct gl_context *ctx,
633 struct gl_buffer_object *src,
634 struct gl_buffer_object *dst,
635 GLintptr readOffset, GLintptr writeOffset,
636 GLsizeiptr size );
637
638 void (*InvalidateBufferSubData)( struct gl_context *ctx,
639 struct gl_buffer_object *obj,
640 GLintptr offset,
641 GLsizeiptr length );
642
643 /* Returns pointer to the start of the mapped range.
644 * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
645 */
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);
650
651 void (*FlushMappedBufferRange)(struct gl_context *ctx,
652 GLintptr offset, GLsizeiptr length,
653 struct gl_buffer_object *obj,
654 gl_map_buffer_index index);
655
656 GLboolean (*UnmapBuffer)( struct gl_context *ctx,
657 struct gl_buffer_object *obj,
658 gl_map_buffer_index index);
659 /*@}*/
660
661 /**
662 * \name Functions for GL_APPLE_object_purgeable
663 */
664 /*@{*/
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,
672 GLenum option);
673
674 /* variations on ObjectUnpurgeable */
675 GLenum (*BufferObjectUnpurgeable)(struct gl_context *ctx,
676 struct gl_buffer_object *obj,
677 GLenum option);
678 GLenum (*RenderObjectUnpurgeable)(struct gl_context *ctx,
679 struct gl_renderbuffer *obj,
680 GLenum option);
681 GLenum (*TextureObjectUnpurgeable)(struct gl_context *ctx,
682 struct gl_texture_object *obj,
683 GLenum option);
684 /*@}*/
685
686 /**
687 * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
688 */
689 /*@{*/
690 struct gl_framebuffer * (*NewFramebuffer)(struct gl_context *ctx,
691 GLuint name);
692 struct gl_renderbuffer * (*NewRenderbuffer)(struct gl_context *ctx,
693 GLuint name);
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,
699 GLenum attachment,
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);
708 /*@}*/
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);
718
719 /**
720 * \name Query objects
721 */
722 /*@{*/
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);
730 /*
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
735 */
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);
739 /*@}*/
740
741 /**
742 * \name Performance monitors
743 */
744 /*@{*/
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);
751
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,
761 GLsizei dataSize,
762 GLuint *data,
763 GLint *bytesWritten);
764 /*@}*/
765
766 /**
767 * \name GLSL-related functions (ARB extensions and OpenGL 2.x)
768 */
769 /*@{*/
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);
773 /*@}*/
774
775 /**
776 * \name GREMEDY debug/marker functions
777 */
778 /*@{*/
779 void (*EmitStringMarker)(struct gl_context *ctx, const GLchar *string, GLsizei len);
780 /*@}*/
781
782 /**
783 * \name Support for multiple T&L engines
784 */
785 /*@{*/
786
787 /**
788 * Set by the driver-supplied T&L engine.
789 *
790 * Set to PRIM_OUTSIDE_BEGIN_END when outside glBegin()/glEnd().
791 */
792 GLuint CurrentExecPrimitive;
793
794 /**
795 * Current glBegin state of an in-progress compilation. May be
796 * GL_POINTS, GL_TRIANGLE_STRIP, etc. or PRIM_OUTSIDE_BEGIN_END
797 * or PRIM_UNKNOWN.
798 */
799 GLuint CurrentSavePrimitive;
800
801
802 #define FLUSH_STORED_VERTICES 0x1
803 #define FLUSH_UPDATE_CURRENT 0x2
804 /**
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.
808 *
809 * The dd_function_table::FlushVertices call below may be used to resolve
810 * these conditions.
811 */
812 GLbitfield NeedFlush;
813
814 /** Need to call vbo_save_SaveFlushVertices() upon state change? */
815 GLboolean SaveNeedFlush;
816
817 /**
818 * Notify driver that the special derived value _NeedEyeCoords has
819 * changed.
820 */
821 void (*LightingSpaceChange)( struct gl_context *ctx );
822
823 /**@}*/
824
825 /**
826 * \name GL_ARB_sync interfaces
827 */
828 /*@{*/
829 struct gl_sync_object * (*NewSyncObject)(struct gl_context *, GLenum);
830 void (*FenceSync)(struct gl_context *, struct gl_sync_object *,
831 GLenum, GLbitfield);
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);
838 /*@}*/
839
840 /** GL_NV_conditional_render */
841 void (*BeginConditionalRender)(struct gl_context *ctx,
842 struct gl_query_object *q,
843 GLenum mode);
844 void (*EndConditionalRender)(struct gl_context *ctx,
845 struct gl_query_object *q);
846
847 /**
848 * \name GL_OES_draw_texture interface
849 */
850 /*@{*/
851 void (*DrawTex)(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
852 GLfloat width, GLfloat height);
853 /*@}*/
854
855 /**
856 * \name GL_OES_EGL_image interface
857 */
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,
864 void *image_handle);
865
866 /**
867 * \name GL_EXT_transform_feedback interface
868 */
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);
881
882 /**
883 * Return the number of vertices written to a stream during the last
884 * Begin/EndTransformFeedback block.
885 */
886 GLsizei (*GetTransformFeedbackVertexCount)(struct gl_context *ctx,
887 struct gl_transform_feedback_object *obj,
888 GLuint stream);
889
890 /**
891 * \name GL_NV_texture_barrier interface
892 */
893 void (*TextureBarrier)(struct gl_context *ctx);
894
895 /**
896 * \name GL_ARB_sampler_objects
897 */
898 struct gl_sampler_object * (*NewSamplerObject)(struct gl_context *ctx,
899 GLuint name);
900
901 /**
902 * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query.
903 * This should be equivalent to glGetInteger64v(GL_TIMESTAMP);
904 */
905 uint64_t (*GetTimestamp)(struct gl_context *ctx);
906
907 /**
908 * \name GL_ARB_texture_multisample
909 */
910 void (*GetSamplePosition)(struct gl_context *ctx,
911 struct gl_framebuffer *fb,
912 GLuint index,
913 GLfloat *outValue);
914
915 /**
916 * \name NV_vdpau_interop interface
917 */
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);
928
929 /**
930 * Query reset status for GL_ARB_robustness
931 *
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.
935 */
936 GLenum (*GetGraphicsResetStatus)(struct gl_context *ctx);
937
938 /**
939 * \name GL_ARB_shader_image_load_store interface.
940 */
941 /** @{ */
942 void (*MemoryBarrier)(struct gl_context *ctx, GLbitfield barriers);
943 /** @} */
944
945 /**
946 * \name GL_ARB_compute_shader interface
947 */
948 /*@{*/
949 void (*DispatchCompute)(struct gl_context *ctx, const GLuint *num_groups);
950 void (*DispatchComputeIndirect)(struct gl_context *ctx, GLintptr indirect);
951 /*@}*/
952
953 /**
954 * Query information about memory. Device memory is e.g. VRAM. Staging
955 * memory is e.g. GART. All sizes are in kilobytes.
956 */
957 void (*QueryMemoryInfo)(struct gl_context *ctx,
958 struct gl_memory_info *info);
959 };
960
961
962 /**
963 * Per-vertex functions.
964 *
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.
970 *
971 * Generally, these pointers point to functions in the VBO module.
972 */
973 typedef struct {
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 );
1040
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);
1049
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);
1057
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);
1061
1062 void (GLAPIENTRYP VertexP3ui)( GLenum type, GLuint value );
1063 void (GLAPIENTRYP VertexP3uiv)( GLenum type, const GLuint *value);
1064
1065 void (GLAPIENTRYP VertexP4ui)( GLenum type, GLuint value );
1066 void (GLAPIENTRYP VertexP4uiv)( GLenum type, const GLuint *value);
1067
1068 void (GLAPIENTRYP TexCoordP1ui)( GLenum type, GLuint coords );
1069 void (GLAPIENTRYP TexCoordP1uiv)( GLenum type, const GLuint *coords );
1070
1071 void (GLAPIENTRYP TexCoordP2ui)( GLenum type, GLuint coords );
1072 void (GLAPIENTRYP TexCoordP2uiv)( GLenum type, const GLuint *coords );
1073
1074 void (GLAPIENTRYP TexCoordP3ui)( GLenum type, GLuint coords );
1075 void (GLAPIENTRYP TexCoordP3uiv)( GLenum type, const GLuint *coords );
1076
1077 void (GLAPIENTRYP TexCoordP4ui)( GLenum type, GLuint coords );
1078 void (GLAPIENTRYP TexCoordP4uiv)( GLenum type, const GLuint *coords );
1079
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 );
1088
1089 void (GLAPIENTRYP NormalP3ui)( GLenum type, GLuint coords );
1090 void (GLAPIENTRYP NormalP3uiv)( GLenum type, const GLuint *coords );
1091
1092 void (GLAPIENTRYP ColorP3ui)( GLenum type, GLuint color );
1093 void (GLAPIENTRYP ColorP3uiv)( GLenum type, const GLuint *color );
1094
1095 void (GLAPIENTRYP ColorP4ui)( GLenum type, GLuint color );
1096 void (GLAPIENTRYP ColorP4uiv)( GLenum type, const GLuint *color );
1097
1098 void (GLAPIENTRYP SecondaryColorP3ui)( GLenum type, GLuint color );
1099 void (GLAPIENTRYP SecondaryColorP3uiv)( GLenum type, const GLuint *color );
1100
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);
1121
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);
1127
1128
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);
1133
1134 } GLvertexformat;
1135
1136
1137 #endif /* DD_INCLUDED */