5f3dc0383a47f46290c6e66a18f45ffe813c656e
[mesa.git] / src / mesa / main / teximage.h
1 /**
2 * \file teximage.h
3 * Texture images manipulation functions.
4 */
5
6 /*
7 * Mesa 3-D graphics library
8 *
9 * Copyright (C) 1999-2005 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 TEXIMAGE_H
32 #define TEXIMAGE_H
33
34
35 #include "mtypes.h"
36 #include "formats.h"
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 /** Is the given value one of the 6 cube faces? */
43 static inline GLboolean
44 _mesa_is_cube_face(GLenum target)
45 {
46 return (target >= GL_TEXTURE_CUBE_MAP_POSITIVE_X &&
47 target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z);
48 }
49
50
51 /**
52 * Return number of faces for a texture target. This will be 6 for
53 * cube maps and 1 otherwise.
54 * NOTE: this function is not used for cube map arrays which operate
55 * more like 2D arrays than cube maps.
56 */
57 static inline GLuint
58 _mesa_num_tex_faces(GLenum target)
59 {
60 switch (target) {
61 case GL_TEXTURE_CUBE_MAP:
62 case GL_PROXY_TEXTURE_CUBE_MAP:
63 return 6;
64 default:
65 return 1;
66 }
67 }
68
69
70 /**
71 * If the target is GL_TEXTURE_CUBE_MAP, return one of the
72 * GL_TEXTURE_CUBE_MAP_POSITIVE/NEGATIVE_X/Y/Z targets corresponding to
73 * the face parameter.
74 * Else, return target as-is.
75 */
76 static inline GLenum
77 _mesa_cube_face_target(GLenum target, unsigned face)
78 {
79 if (target == GL_TEXTURE_CUBE_MAP) {
80 assert(face < 6);
81 return GL_TEXTURE_CUBE_MAP_POSITIVE_X + face;
82 }
83 else {
84 return target;
85 }
86 }
87
88
89 /**
90 * For cube map faces, return a face index in [0,5].
91 * For other targets return 0;
92 */
93 static inline GLuint
94 _mesa_tex_target_to_face(GLenum target)
95 {
96 if (_mesa_is_cube_face(target))
97 return (GLuint) target - (GLuint) GL_TEXTURE_CUBE_MAP_POSITIVE_X;
98 else
99 return 0;
100 }
101
102
103 /** Are any of the dimensions of given texture equal to zero? */
104 static inline GLboolean
105 _mesa_is_zero_size_texture(const struct gl_texture_image *texImage)
106 {
107 return (texImage->Width == 0 ||
108 texImage->Height == 0 ||
109 texImage->Depth == 0);
110 }
111
112 /** \name Internal functions */
113 /*@{*/
114
115 extern GLboolean
116 _mesa_is_proxy_texture(GLenum target);
117
118 extern bool
119 _mesa_is_array_texture(GLenum target);
120
121
122 extern void
123 _mesa_delete_texture_image( struct gl_context *ctx,
124 struct gl_texture_image *teximage );
125
126
127 extern void
128 _mesa_init_teximage_fields(struct gl_context *ctx,
129 struct gl_texture_image *img,
130 GLsizei width, GLsizei height, GLsizei depth,
131 GLint border, GLenum internalFormat,
132 mesa_format format);
133 extern void
134 _mesa_init_teximage_fields_ms(struct gl_context *ctx,
135 struct gl_texture_image *img,
136 GLsizei width, GLsizei height, GLsizei depth,
137 GLint border, GLenum internalFormat,
138 mesa_format format,
139 GLuint numSamples,
140 GLboolean fixedSampleLocations);
141
142
143 extern mesa_format
144 _mesa_choose_texture_format(struct gl_context *ctx,
145 struct gl_texture_object *texObj,
146 GLenum target, GLint level,
147 GLenum internalFormat, GLenum format, GLenum type);
148
149 extern void
150 _mesa_update_fbo_texture(struct gl_context *ctx,
151 struct gl_texture_object *texObj,
152 GLuint face, GLuint level);
153
154 extern void
155 _mesa_clear_texture_image(struct gl_context *ctx,
156 struct gl_texture_image *texImage);
157
158
159 extern struct gl_texture_image *
160 _mesa_select_tex_image(const struct gl_texture_object *texObj,
161 GLenum target, GLint level);
162
163
164 extern struct gl_texture_image *
165 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj,
166 GLenum target, GLint level);
167
168 mesa_format
169 _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat);
170
171 /**
172 * Return the base-level texture image for the given texture object.
173 */
174 static inline const struct gl_texture_image *
175 _mesa_base_tex_image(const struct gl_texture_object *texObj)
176 {
177 return texObj->Image[0][texObj->BaseLevel];
178 }
179
180
181 extern GLint
182 _mesa_max_texture_levels(const struct gl_context *ctx, GLenum target);
183
184
185 extern GLboolean
186 _mesa_test_proxy_teximage(struct gl_context *ctx, GLenum target,
187 GLuint numLevels, GLint level,
188 mesa_format format, GLuint numSamples,
189 GLint width, GLint height, GLint depth);
190
191 extern GLboolean
192 _mesa_target_can_be_compressed(const struct gl_context *ctx, GLenum target,
193 GLenum intFormat, GLenum *error);
194
195 extern GLint
196 _mesa_get_texture_dimensions(GLenum target);
197
198 extern GLboolean
199 _mesa_tex_target_is_layered(GLenum target);
200
201 extern GLuint
202 _mesa_get_texture_layers(const struct gl_texture_object *texObj, GLint level);
203
204 extern GLsizei
205 _mesa_get_tex_max_num_levels(GLenum target, GLsizei width, GLsizei height,
206 GLsizei depth);
207
208 extern GLboolean
209 _mesa_legal_texture_dimensions(struct gl_context *ctx, GLenum target,
210 GLint level, GLint width, GLint height,
211 GLint depth, GLint border);
212
213 extern mesa_format
214 _mesa_validate_texbuffer_format(const struct gl_context *ctx,
215 GLenum internalFormat);
216
217
218 bool
219 _mesa_legal_texture_base_format_for_target(struct gl_context *ctx,
220 GLenum target,
221 GLenum internalFormat);
222
223 bool
224 _mesa_format_no_online_compression(GLenum format);
225
226 GLboolean
227 _mesa_is_renderable_texture_format(const struct gl_context *ctx,
228 GLenum internalformat);
229
230 extern void
231 _mesa_texture_sub_image(struct gl_context *ctx, GLuint dims,
232 struct gl_texture_object *texObj,
233 struct gl_texture_image *texImage,
234 GLenum target, GLint level,
235 GLint xoffset, GLint yoffset, GLint zoffset,
236 GLsizei width, GLsizei height, GLsizei depth,
237 GLenum format, GLenum type, const GLvoid *pixels,
238 bool dsa);
239
240 extern void
241 _mesa_texture_storage_ms_memory(struct gl_context *ctx, GLuint dims,
242 struct gl_texture_object *texObj,
243 struct gl_memory_object *memObj,
244 GLenum target, GLsizei samples,
245 GLenum internalFormat, GLsizei width,
246 GLsizei height, GLsizei depth,
247 GLboolean fixedSampleLocations,
248 GLuint64 offset, const char* func);
249
250 bool
251 _mesa_is_cube_map_texture(GLenum target);
252
253 /*@}*/
254
255
256 /** \name API entry point functions */
257 /*@{*/
258
259 extern void GLAPIENTRY
260 _mesa_TexImage1D( GLenum target, GLint level, GLint internalformat,
261 GLsizei width, GLint border,
262 GLenum format, GLenum type, const GLvoid *pixels );
263
264 extern void GLAPIENTRY
265 _mesa_TextureImage1DEXT( GLuint texture, GLenum target, GLint level,
266 GLint internalformat, GLsizei width, GLint border,
267 GLenum format, GLenum type, const GLvoid *pixels );
268
269 extern void GLAPIENTRY
270 _mesa_TexImage2D( GLenum target, GLint level, GLint internalformat,
271 GLsizei width, GLsizei height, GLint border,
272 GLenum format, GLenum type, const GLvoid *pixels );
273
274 extern void GLAPIENTRY
275 _mesa_TextureImage2DEXT( GLuint texture, GLenum target, GLint level,
276 GLint internalformat, GLsizei width, GLsizei height,
277 GLint border, GLenum format, GLenum type,
278 const GLvoid *pixels );
279
280 extern void GLAPIENTRY
281 _mesa_TexImage3D( GLenum target, GLint level, GLint internalformat,
282 GLsizei width, GLsizei height, GLsizei depth, GLint border,
283 GLenum format, GLenum type, const GLvoid *pixels );
284
285 extern void GLAPIENTRY
286 _mesa_TextureImage3DEXT( GLuint texture, GLenum target, GLint level,
287 GLint internalformat, GLsizei width, GLsizei height,
288 GLsizei depth, GLint border, GLenum format,
289 GLenum type, const GLvoid *pixels );
290
291 extern void GLAPIENTRY
292 _mesa_TexImage3DEXT( GLenum target, GLint level, GLenum internalformat,
293 GLsizei width, GLsizei height, GLsizei depth,
294 GLint border, GLenum format, GLenum type,
295 const GLvoid *pixels );
296
297 extern void GLAPIENTRY
298 _mesa_TexImage1D_no_error(GLenum target, GLint level, GLint internalformat,
299 GLsizei width, GLint border,
300 GLenum format, GLenum type, const GLvoid *pixels);
301
302 extern void GLAPIENTRY
303 _mesa_TexImage2D_no_error(GLenum target, GLint level, GLint internalformat,
304 GLsizei width, GLsizei height, GLint border,
305 GLenum format, GLenum type, const GLvoid *pixels);
306
307 extern void GLAPIENTRY
308 _mesa_TexImage3D_no_error(GLenum target, GLint level, GLint internalformat,
309 GLsizei width, GLsizei height, GLsizei depth,
310 GLint border, GLenum format, GLenum type,
311 const GLvoid *pixels);
312
313 extern void GLAPIENTRY
314 _mesa_EGLImageTargetTexture2DOES( GLenum target, GLeglImageOES image );
315
316 void GLAPIENTRY
317 _mesa_TexSubImage1D_no_error(GLenum target, GLint level, GLint xoffset,
318 GLsizei width,
319 GLenum format, GLenum type,
320 const GLvoid *pixels);
321
322 extern void GLAPIENTRY
323 _mesa_TexSubImage1D( GLenum target, GLint level, GLint xoffset,
324 GLsizei width,
325 GLenum format, GLenum type,
326 const GLvoid *pixels );
327
328 void GLAPIENTRY
329 _mesa_TexSubImage2D_no_error(GLenum target, GLint level,
330 GLint xoffset, GLint yoffset,
331 GLsizei width, GLsizei height,
332 GLenum format, GLenum type,
333 const GLvoid *pixels);
334
335 extern void GLAPIENTRY
336 _mesa_TexSubImage2D( GLenum target, GLint level,
337 GLint xoffset, GLint yoffset,
338 GLsizei width, GLsizei height,
339 GLenum format, GLenum type,
340 const GLvoid *pixels );
341
342 void GLAPIENTRY
343 _mesa_TexSubImage3D_no_error(GLenum target, GLint level,
344 GLint xoffset, GLint yoffset, GLint zoffset,
345 GLsizei width, GLsizei height, GLsizei depth,
346 GLenum format, GLenum type,
347 const GLvoid *pixels);
348
349 extern void GLAPIENTRY
350 _mesa_TexSubImage3D( GLenum target, GLint level,
351 GLint xoffset, GLint yoffset, GLint zoffset,
352 GLsizei width, GLsizei height, GLsizei depth,
353 GLenum format, GLenum type,
354 const GLvoid *pixels );
355
356 void GLAPIENTRY
357 _mesa_TextureSubImage1D_no_error(GLuint texture, GLint level, GLint xoffset,
358 GLsizei width, GLenum format, GLenum type,
359 const GLvoid *pixels);
360
361 extern void GLAPIENTRY
362 _mesa_TextureSubImage1D(GLuint texture, GLint level, GLint xoffset,
363 GLsizei width,
364 GLenum format, GLenum type,
365 const GLvoid *pixels);
366
367 extern void GLAPIENTRY
368 _mesa_TextureSubImage1DEXT(GLuint texture, GLenum target, GLint level,
369 GLint xoffset, GLsizei width,
370 GLenum format, GLenum type,
371 const GLvoid *pixels);
372
373 void GLAPIENTRY
374 _mesa_TextureSubImage2DEXT(GLuint texture, GLenum target, GLint level,
375 GLint xoffset, GLint yoffset, GLsizei width,
376 GLsizei height, GLenum format, GLenum type,
377 const GLvoid *pixels);
378
379 void GLAPIENTRY
380 _mesa_TextureSubImage2D_no_error(GLuint texture, GLint level, GLint xoffset,
381 GLint yoffset, GLsizei width, GLsizei height,
382 GLenum format, GLenum type,
383 const GLvoid *pixels);
384
385 extern void GLAPIENTRY
386 _mesa_TextureSubImage2D(GLuint texture, GLint level,
387 GLint xoffset, GLint yoffset,
388 GLsizei width, GLsizei height,
389 GLenum format, GLenum type,
390 const GLvoid *pixels);
391
392 void GLAPIENTRY
393 _mesa_TextureSubImage3D_no_error(GLuint texture, GLint level, GLint xoffset,
394 GLint yoffset, GLint zoffset, GLsizei width,
395 GLsizei height, GLsizei depth, GLenum format,
396 GLenum type, const GLvoid *pixels);
397
398 extern void GLAPIENTRY
399 _mesa_TextureSubImage3D(GLuint texture, GLint level,
400 GLint xoffset, GLint yoffset, GLint zoffset,
401 GLsizei width, GLsizei height, GLsizei depth,
402 GLenum format, GLenum type,
403 const GLvoid *pixels);
404
405 extern void GLAPIENTRY
406 _mesa_TextureSubImage3DEXT(GLuint texture, GLenum target,
407 GLint level, GLint xoffset, GLint yoffset,
408 GLint zoffset, GLsizei width, GLsizei height,
409 GLsizei depth, GLenum format, GLenum type,
410 const GLvoid *pixels);
411
412 extern void GLAPIENTRY
413 _mesa_CopyTexImage1D(GLenum target, GLint level, GLenum internalformat,
414 GLint x, GLint y, GLsizei width, GLint border);
415
416
417 extern void GLAPIENTRY
418 _mesa_CopyTexImage2D( GLenum target, GLint level,
419 GLenum internalformat, GLint x, GLint y,
420 GLsizei width, GLsizei height, GLint border );
421
422 extern void GLAPIENTRY
423 _mesa_CopyTextureImage1DEXT( GLuint texture, GLenum target, GLint level,
424 GLenum internalformat, GLint x, GLint y,
425 GLsizei width, GLint border);
426
427 extern void GLAPIENTRY
428 _mesa_CopyTextureImage2DEXT( GLuint texture, GLenum target, GLint level,
429 GLenum internalformat, GLint x, GLint y,
430 GLsizei width, GLsizei height, GLint border );
431
432 extern void GLAPIENTRY
433 _mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalformat,
434 GLint x, GLint y, GLsizei width, GLint border);
435
436
437 extern void GLAPIENTRY
438 _mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalformat,
439 GLint x, GLint y, GLsizei width, GLsizei height,
440 GLint border );
441
442
443 extern void GLAPIENTRY
444 _mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
445 GLint x, GLint y, GLsizei width );
446
447
448 extern void GLAPIENTRY
449 _mesa_CopyTexSubImage2D( GLenum target, GLint level,
450 GLint xoffset, GLint yoffset,
451 GLint x, GLint y, GLsizei width, GLsizei height );
452
453
454 extern void GLAPIENTRY
455 _mesa_CopyTexSubImage3D( GLenum target, GLint level,
456 GLint xoffset, GLint yoffset, GLint zoffset,
457 GLint x, GLint y, GLsizei width, GLsizei height );
458
459 extern void GLAPIENTRY
460 _mesa_CopyTextureSubImage1D(GLuint texture, GLint level,
461 GLint xoffset, GLint x, GLint y, GLsizei width);
462
463 extern void GLAPIENTRY
464 _mesa_CopyTextureSubImage1DEXT(GLuint texture, GLenum target,
465 GLint level, GLint xoffset, GLint x, GLint y,
466 GLsizei width);
467
468 extern void GLAPIENTRY
469 _mesa_CopyTextureSubImage2D(GLuint texture, GLint level,
470 GLint xoffset, GLint yoffset,
471 GLint x, GLint y,
472 GLsizei width, GLsizei height);
473
474 extern void GLAPIENTRY
475 _mesa_CopyTextureSubImage2DEXT(GLuint texture, GLenum target, GLint level,
476 GLint xoffset, GLint yoffset,
477 GLint x, GLint y,
478 GLsizei width, GLsizei height);
479
480 extern void GLAPIENTRY
481 _mesa_CopyTextureSubImage3D(GLuint texture, GLint level,
482 GLint xoffset, GLint yoffset, GLint zoffset,
483 GLint x, GLint y,
484 GLsizei width, GLsizei height);
485
486 extern void GLAPIENTRY
487 _mesa_CopyTextureSubImage3DEXT(GLuint texture, GLenum target, GLint level,
488 GLint xoffset, GLint yoffset, GLint zoffset,
489 GLint x, GLint y,
490 GLsizei width, GLsizei height);
491
492 extern void GLAPIENTRY
493 _mesa_CopyTexSubImage1D_no_error(GLenum target, GLint level, GLint xoffset,
494 GLint x, GLint y, GLsizei width );
495
496 extern void GLAPIENTRY
497 _mesa_CopyTexSubImage2D_no_error(GLenum target, GLint level, GLint xoffset,
498 GLint yoffset, GLint x, GLint y, GLsizei width,
499 GLsizei height);
500
501 extern void GLAPIENTRY
502 _mesa_CopyTexSubImage3D_no_error(GLenum target, GLint level, GLint xoffset,
503 GLint yoffset, GLint zoffset, GLint x, GLint y,
504 GLsizei width, GLsizei height);
505
506 extern void GLAPIENTRY
507 _mesa_CopyTextureSubImage1D_no_error(GLuint texture, GLint level, GLint xoffset,
508 GLint x, GLint y, GLsizei width);
509
510 extern void GLAPIENTRY
511 _mesa_CopyTextureSubImage2D_no_error(GLuint texture, GLint level, GLint xoffset,
512 GLint yoffset, GLint x, GLint y,
513 GLsizei width, GLsizei height);
514
515 extern void GLAPIENTRY
516 _mesa_CopyTextureSubImage3D_no_error(GLuint texture, GLint level, GLint xoffset,
517 GLint yoffset, GLint zoffset, GLint x,
518 GLint y, GLsizei width, GLsizei height);
519
520 extern void GLAPIENTRY
521 _mesa_ClearTexSubImage( GLuint texture, GLint level,
522 GLint xoffset, GLint yoffset, GLint zoffset,
523 GLsizei width, GLsizei height, GLsizei depth,
524 GLenum format, GLenum type, const void *data );
525
526 extern void GLAPIENTRY
527 _mesa_ClearTexImage( GLuint texture, GLint level,
528 GLenum format, GLenum type, const void *data );
529
530 extern void GLAPIENTRY
531 _mesa_CompressedTexImage1D(GLenum target, GLint level,
532 GLenum internalformat, GLsizei width,
533 GLint border, GLsizei imageSize,
534 const GLvoid *data);
535
536 extern void GLAPIENTRY
537 _mesa_CompressedTexImage2D(GLenum target, GLint level,
538 GLenum internalformat, GLsizei width,
539 GLsizei height, GLint border, GLsizei imageSize,
540 const GLvoid *data);
541
542 extern void GLAPIENTRY
543 _mesa_CompressedTexImage3D(GLenum target, GLint level,
544 GLenum internalformat, GLsizei width,
545 GLsizei height, GLsizei depth, GLint border,
546 GLsizei imageSize, const GLvoid *data);
547
548 extern void GLAPIENTRY
549 _mesa_CompressedTexImage1D_no_error(GLenum target, GLint level,
550 GLenum internalformat, GLsizei width,
551 GLint border, GLsizei imageSize,
552 const GLvoid *data);
553
554 extern void GLAPIENTRY
555 _mesa_CompressedTexImage2D_no_error(GLenum target, GLint level,
556 GLenum internalformat, GLsizei width,
557 GLsizei height, GLint border,
558 GLsizei imageSize, const GLvoid *data);
559
560 extern void GLAPIENTRY
561 _mesa_CompressedTexImage3D_no_error(GLenum target, GLint level,
562 GLenum internalformat, GLsizei width,
563 GLsizei height, GLsizei depth, GLint border,
564 GLsizei imageSize, const GLvoid *data);
565
566
567 extern void GLAPIENTRY
568 _mesa_CompressedTexSubImage1D_no_error(GLenum target, GLint level,
569 GLint xoffset, GLsizei width,
570 GLenum format, GLsizei imageSize,
571 const GLvoid *data);
572 extern void GLAPIENTRY
573 _mesa_CompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset,
574 GLsizei width, GLenum format,
575 GLsizei imageSize, const GLvoid *data);
576
577 extern void GLAPIENTRY
578 _mesa_CompressedTextureSubImage1D_no_error(GLuint texture, GLint level,
579 GLint xoffset, GLsizei width,
580 GLenum format, GLsizei imageSize,
581 const GLvoid *data);
582 extern void GLAPIENTRY
583 _mesa_CompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset,
584 GLsizei width, GLenum format,
585 GLsizei imageSize, const GLvoid *data);
586
587 void GLAPIENTRY
588 _mesa_CompressedTextureSubImage2DEXT(GLuint texture, GLenum target,
589 GLint level, GLint xoffset,
590 GLint yoffset, GLsizei width,
591 GLsizei height, GLenum format,
592 GLsizei imageSize, const GLvoid *data);
593
594 extern void GLAPIENTRY
595 _mesa_CompressedTexSubImage2D_no_error(GLenum target, GLint level,
596 GLint xoffset, GLint yoffset,
597 GLsizei width, GLsizei height,
598 GLenum format, GLsizei imageSize,
599 const GLvoid *data);
600 extern void GLAPIENTRY
601 _mesa_CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset,
602 GLint yoffset, GLsizei width, GLsizei height,
603 GLenum format, GLsizei imageSize,
604 const GLvoid *data);
605
606 extern void GLAPIENTRY
607 _mesa_CompressedTextureSubImage2D_no_error(GLuint texture, GLint level,
608 GLint xoffset, GLint yoffset,
609 GLsizei width, GLsizei height,
610 GLenum format, GLsizei imageSize,
611 const GLvoid *data);
612 extern void GLAPIENTRY
613 _mesa_CompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset,
614 GLint yoffset,
615 GLsizei width, GLsizei height,
616 GLenum format, GLsizei imageSize,
617 const GLvoid *data);
618
619 extern void GLAPIENTRY
620 _mesa_CompressedTexSubImage3D_no_error(GLenum target, GLint level,
621 GLint xoffset, GLint yoffset,
622 GLint zoffset, GLsizei width,
623 GLsizei height, GLsizei depth,
624 GLenum format, GLsizei imageSize,
625 const GLvoid *data);
626 extern void GLAPIENTRY
627 _mesa_CompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset,
628 GLint yoffset, GLint zoffset, GLsizei width,
629 GLsizei height, GLsizei depth, GLenum format,
630 GLsizei imageSize, const GLvoid *data);
631
632 extern void GLAPIENTRY
633 _mesa_CompressedTextureSubImage3D_no_error(GLuint texture, GLint level,
634 GLint xoffset, GLint yoffset,
635 GLint zoffset, GLsizei width,
636 GLsizei height, GLsizei depth,
637 GLenum format, GLsizei imageSize,
638 const GLvoid *data);
639 extern void GLAPIENTRY
640 _mesa_CompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset,
641 GLint yoffset, GLint zoffset,
642 GLsizei width, GLsizei height,
643 GLsizei depth,
644 GLenum format, GLsizei imageSize,
645 const GLvoid *data);
646
647 extern void GLAPIENTRY
648 _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer);
649
650 extern void GLAPIENTRY
651 _mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer,
652 GLintptr offset, GLsizeiptr size);
653
654 extern void GLAPIENTRY
655 _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer);
656
657 extern void GLAPIENTRY
658 _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer,
659 GLintptr offset, GLsizeiptr size);
660
661
662 extern void GLAPIENTRY
663 _mesa_TexImage2DMultisample(GLenum target, GLsizei samples,
664 GLenum internalformat, GLsizei width,
665 GLsizei height, GLboolean fixedsamplelocations);
666
667 extern void GLAPIENTRY
668 _mesa_TexImage3DMultisample(GLenum target, GLsizei samples,
669 GLenum internalformat, GLsizei width,
670 GLsizei height, GLsizei depth,
671 GLboolean fixedsamplelocations);
672
673 extern void GLAPIENTRY
674 _mesa_TexStorage2DMultisample(GLenum target, GLsizei samples,
675 GLenum internalformat, GLsizei width,
676 GLsizei height, GLboolean fixedsamplelocations);
677
678 extern void GLAPIENTRY
679 _mesa_TexStorage3DMultisample(GLenum target, GLsizei samples,
680 GLenum internalformat, GLsizei width,
681 GLsizei height, GLsizei depth,
682 GLboolean fixedsamplelocations);
683
684 void GLAPIENTRY
685 _mesa_TextureStorage2DMultisample(GLuint texture, GLsizei samples,
686 GLenum internalformat, GLsizei width,
687 GLsizei height,
688 GLboolean fixedsamplelocations);
689
690 void GLAPIENTRY
691 _mesa_TextureStorage3DMultisample(GLuint texture, GLsizei samples,
692 GLenum internalformat, GLsizei width,
693 GLsizei height, GLsizei depth,
694 GLboolean fixedsamplelocations);
695 /*@}*/
696
697 #ifdef __cplusplus
698 }
699 #endif
700
701 #endif