b14acdf7597fc863a7eeef31e8ea898f4076e861
[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_MultiTexImage1DEXT( GLenum texture, GLenum target, GLint level,
271 GLint internalformat, GLsizei width, GLint border,
272 GLenum format, GLenum type, const GLvoid *pixels );
273
274 extern void GLAPIENTRY
275 _mesa_TexImage2D( GLenum target, GLint level, GLint internalformat,
276 GLsizei width, GLsizei height, GLint border,
277 GLenum format, GLenum type, const GLvoid *pixels );
278
279 extern void GLAPIENTRY
280 _mesa_TextureImage2DEXT( GLuint texture, GLenum target, GLint level,
281 GLint internalformat, GLsizei width, GLsizei height,
282 GLint border, GLenum format, GLenum type,
283 const GLvoid *pixels );
284
285 extern void GLAPIENTRY
286 _mesa_MultiTexImage2DEXT(GLenum texture, GLenum target, GLint level,
287 GLint internalFormat, GLsizei width, GLsizei height,
288 GLint border, GLenum format, GLenum type,
289 const GLvoid *pixels );
290
291 extern void GLAPIENTRY
292 _mesa_TexImage3D( GLenum target, GLint level, GLint internalformat,
293 GLsizei width, GLsizei height, GLsizei depth, GLint border,
294 GLenum format, GLenum type, const GLvoid *pixels );
295
296 extern void GLAPIENTRY
297 _mesa_TextureImage3DEXT( GLuint texture, GLenum target, GLint level,
298 GLint internalformat, GLsizei width, GLsizei height,
299 GLsizei depth, GLint border, GLenum format,
300 GLenum type, const GLvoid *pixels );
301
302 extern void GLAPIENTRY
303 _mesa_TexImage3DEXT( GLenum target, GLint level, GLenum internalformat,
304 GLsizei width, GLsizei height, GLsizei depth,
305 GLint border, GLenum format, GLenum type,
306 const GLvoid *pixels );
307
308 extern void GLAPIENTRY
309 _mesa_MultiTexImage3DEXT(GLenum texture, GLenum target, GLint level,
310 GLint internalFormat, GLsizei width, GLsizei height,
311 GLsizei depth, GLint border, GLenum format, GLenum type,
312 const GLvoid *pixels );
313
314 extern void GLAPIENTRY
315 _mesa_TexImage1D_no_error(GLenum target, GLint level, GLint internalformat,
316 GLsizei width, GLint border,
317 GLenum format, GLenum type, const GLvoid *pixels);
318
319 extern void GLAPIENTRY
320 _mesa_TexImage2D_no_error(GLenum target, GLint level, GLint internalformat,
321 GLsizei width, GLsizei height, GLint border,
322 GLenum format, GLenum type, const GLvoid *pixels);
323
324 extern void GLAPIENTRY
325 _mesa_TexImage3D_no_error(GLenum target, GLint level, GLint internalformat,
326 GLsizei width, GLsizei height, GLsizei depth,
327 GLint border, GLenum format, GLenum type,
328 const GLvoid *pixels);
329
330 extern void GLAPIENTRY
331 _mesa_EGLImageTargetTexture2DOES( GLenum target, GLeglImageOES image );
332
333 void GLAPIENTRY
334 _mesa_TexSubImage1D_no_error(GLenum target, GLint level, GLint xoffset,
335 GLsizei width,
336 GLenum format, GLenum type,
337 const GLvoid *pixels);
338
339 extern void GLAPIENTRY
340 _mesa_TexSubImage1D( GLenum target, GLint level, GLint xoffset,
341 GLsizei width,
342 GLenum format, GLenum type,
343 const GLvoid *pixels );
344
345 void GLAPIENTRY
346 _mesa_TexSubImage2D_no_error(GLenum target, GLint level,
347 GLint xoffset, GLint yoffset,
348 GLsizei width, GLsizei height,
349 GLenum format, GLenum type,
350 const GLvoid *pixels);
351
352 extern void GLAPIENTRY
353 _mesa_TexSubImage2D( GLenum target, GLint level,
354 GLint xoffset, GLint yoffset,
355 GLsizei width, GLsizei height,
356 GLenum format, GLenum type,
357 const GLvoid *pixels );
358
359 void GLAPIENTRY
360 _mesa_TexSubImage3D_no_error(GLenum target, GLint level,
361 GLint xoffset, GLint yoffset, GLint zoffset,
362 GLsizei width, GLsizei height, GLsizei depth,
363 GLenum format, GLenum type,
364 const GLvoid *pixels);
365
366 extern void GLAPIENTRY
367 _mesa_TexSubImage3D( GLenum target, GLint level,
368 GLint xoffset, GLint yoffset, GLint zoffset,
369 GLsizei width, GLsizei height, GLsizei depth,
370 GLenum format, GLenum type,
371 const GLvoid *pixels );
372
373 void GLAPIENTRY
374 _mesa_TextureSubImage1D_no_error(GLuint texture, GLint level, GLint xoffset,
375 GLsizei width, GLenum format, GLenum type,
376 const GLvoid *pixels);
377
378 extern void GLAPIENTRY
379 _mesa_TextureSubImage1D(GLuint texture, GLint level, GLint xoffset,
380 GLsizei width,
381 GLenum format, GLenum type,
382 const GLvoid *pixels);
383
384 extern void GLAPIENTRY
385 _mesa_TextureSubImage1DEXT(GLuint texture, GLenum target, GLint level,
386 GLint xoffset, GLsizei width,
387 GLenum format, GLenum type,
388 const GLvoid *pixels);
389
390 extern void GLAPIENTRY
391 _mesa_MultiTexSubImage1DEXT(GLenum texunit, GLenum target, GLint level,
392 GLint xoffset, GLsizei width,
393 GLenum format, GLenum type,
394 const GLvoid *pixels);
395
396 void GLAPIENTRY
397 _mesa_TextureSubImage2DEXT(GLuint texture, GLenum target, GLint level,
398 GLint xoffset, GLint yoffset, GLsizei width,
399 GLsizei height, GLenum format, GLenum type,
400 const GLvoid *pixels);
401
402 extern void GLAPIENTRY
403 _mesa_MultiTexSubImage2DEXT(GLenum texunit, GLenum target, GLint level,
404 GLint xoffset, GLint yoffset, GLsizei width,
405 GLsizei height, GLenum format, GLenum type,
406 const GLvoid *pixels);
407
408 void GLAPIENTRY
409 _mesa_TextureSubImage2D_no_error(GLuint texture, GLint level, GLint xoffset,
410 GLint yoffset, GLsizei width, GLsizei height,
411 GLenum format, GLenum type,
412 const GLvoid *pixels);
413
414 extern void GLAPIENTRY
415 _mesa_TextureSubImage2D(GLuint texture, GLint level,
416 GLint xoffset, GLint yoffset,
417 GLsizei width, GLsizei height,
418 GLenum format, GLenum type,
419 const GLvoid *pixels);
420
421 void GLAPIENTRY
422 _mesa_TextureSubImage3D_no_error(GLuint texture, GLint level, GLint xoffset,
423 GLint yoffset, GLint zoffset, GLsizei width,
424 GLsizei height, GLsizei depth, GLenum format,
425 GLenum type, const GLvoid *pixels);
426
427 extern void GLAPIENTRY
428 _mesa_TextureSubImage3D(GLuint texture, GLint level,
429 GLint xoffset, GLint yoffset, GLint zoffset,
430 GLsizei width, GLsizei height, GLsizei depth,
431 GLenum format, GLenum type,
432 const GLvoid *pixels);
433
434 extern void GLAPIENTRY
435 _mesa_TextureSubImage3DEXT(GLuint texture, GLenum target,
436 GLint level, GLint xoffset, GLint yoffset,
437 GLint zoffset, GLsizei width, GLsizei height,
438 GLsizei depth, GLenum format, GLenum type,
439 const GLvoid *pixels);
440
441 extern void GLAPIENTRY
442 _mesa_MultiTexSubImage3DEXT(GLenum texunit, GLenum target,
443 GLint level, GLint xoffset, GLint yoffset,
444 GLint zoffset, GLsizei width, GLsizei height,
445 GLsizei depth, GLenum format, GLenum type,
446 const GLvoid *pixels);
447
448 extern void GLAPIENTRY
449 _mesa_CopyTexImage1D(GLenum target, GLint level, GLenum internalformat,
450 GLint x, GLint y, GLsizei width, GLint border);
451
452 extern void GLAPIENTRY
453 _mesa_CopyMultiTexImage1DEXT(GLenum texunit, GLenum target, GLint level,
454 GLenum internalformat, GLint x, GLint y,
455 GLsizei width, GLint border);
456
457 extern void GLAPIENTRY
458 _mesa_CopyTexImage2D( GLenum target, GLint level,
459 GLenum internalformat, GLint x, GLint y,
460 GLsizei width, GLsizei height, GLint border );
461
462 extern void GLAPIENTRY
463 _mesa_CopyMultiTexImage2DEXT(GLenum texunit, GLenum target, GLint level,
464 GLenum internalformat, GLint x, GLint y,
465 GLsizei width, GLsizei hright, GLint border);
466
467 extern void GLAPIENTRY
468 _mesa_CopyTextureImage1DEXT( GLuint texture, GLenum target, GLint level,
469 GLenum internalformat, GLint x, GLint y,
470 GLsizei width, GLint border);
471
472 extern void GLAPIENTRY
473 _mesa_CopyTextureImage2DEXT( GLuint texture, GLenum target, GLint level,
474 GLenum internalformat, GLint x, GLint y,
475 GLsizei width, GLsizei height, GLint border );
476
477 extern void GLAPIENTRY
478 _mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalformat,
479 GLint x, GLint y, GLsizei width, GLint border);
480
481
482 extern void GLAPIENTRY
483 _mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalformat,
484 GLint x, GLint y, GLsizei width, GLsizei height,
485 GLint border );
486
487
488 extern void GLAPIENTRY
489 _mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
490 GLint x, GLint y, GLsizei width );
491
492
493 extern void GLAPIENTRY
494 _mesa_CopyTexSubImage2D( GLenum target, GLint level,
495 GLint xoffset, GLint yoffset,
496 GLint x, GLint y, GLsizei width, GLsizei height );
497
498
499 extern void GLAPIENTRY
500 _mesa_CopyTexSubImage3D( GLenum target, GLint level,
501 GLint xoffset, GLint yoffset, GLint zoffset,
502 GLint x, GLint y, GLsizei width, GLsizei height );
503
504 extern void GLAPIENTRY
505 _mesa_CopyTextureSubImage1D(GLuint texture, GLint level,
506 GLint xoffset, GLint x, GLint y, GLsizei width);
507
508 extern void GLAPIENTRY
509 _mesa_CopyTextureSubImage1DEXT(GLuint texture, GLenum target,
510 GLint level, GLint xoffset, GLint x, GLint y,
511 GLsizei width);
512
513 extern void GLAPIENTRY
514 _mesa_CopyMultiTexSubImage1DEXT(GLenum texunit, GLenum target,
515 GLint level, GLint xoffset, GLint x, GLint y,
516 GLsizei width);
517
518 extern void GLAPIENTRY
519 _mesa_CopyTextureSubImage2D(GLuint texture, GLint level,
520 GLint xoffset, GLint yoffset,
521 GLint x, GLint y,
522 GLsizei width, GLsizei height);
523
524 extern void GLAPIENTRY
525 _mesa_CopyTextureSubImage2DEXT(GLuint texture, GLenum target, GLint level,
526 GLint xoffset, GLint yoffset,
527 GLint x, GLint y,
528 GLsizei width, GLsizei height);
529
530 extern void GLAPIENTRY
531 _mesa_CopyMultiTexSubImage2DEXT(GLenum texunit, GLenum target, GLint level,
532 GLint xoffset, GLint yoffset,
533 GLint x, GLint y,
534 GLsizei width, GLsizei height);
535
536 extern void GLAPIENTRY
537 _mesa_CopyTextureSubImage3D(GLuint texture, GLint level,
538 GLint xoffset, GLint yoffset, GLint zoffset,
539 GLint x, GLint y,
540 GLsizei width, GLsizei height);
541
542 extern void GLAPIENTRY
543 _mesa_CopyTextureSubImage3DEXT(GLuint texture, GLenum target, GLint level,
544 GLint xoffset, GLint yoffset, GLint zoffset,
545 GLint x, GLint y,
546 GLsizei width, GLsizei height);
547
548 extern void GLAPIENTRY
549 _mesa_CopyMultiTexSubImage3DEXT(GLenum texunit, GLenum target, GLint level,
550 GLint xoffset, GLint yoffset, GLint zoffset,
551 GLint x, GLint y,
552 GLsizei width, GLsizei height);
553
554 extern void GLAPIENTRY
555 _mesa_CopyTexSubImage1D_no_error(GLenum target, GLint level, GLint xoffset,
556 GLint x, GLint y, GLsizei width );
557
558 extern void GLAPIENTRY
559 _mesa_CopyTexSubImage2D_no_error(GLenum target, GLint level, GLint xoffset,
560 GLint yoffset, GLint x, GLint y, GLsizei width,
561 GLsizei height);
562
563 extern void GLAPIENTRY
564 _mesa_CopyTexSubImage3D_no_error(GLenum target, GLint level, GLint xoffset,
565 GLint yoffset, GLint zoffset, GLint x, GLint y,
566 GLsizei width, GLsizei height);
567
568 extern void GLAPIENTRY
569 _mesa_CopyTextureSubImage1D_no_error(GLuint texture, GLint level, GLint xoffset,
570 GLint x, GLint y, GLsizei width);
571
572 extern void GLAPIENTRY
573 _mesa_CopyTextureSubImage2D_no_error(GLuint texture, GLint level, GLint xoffset,
574 GLint yoffset, GLint x, GLint y,
575 GLsizei width, GLsizei height);
576
577 extern void GLAPIENTRY
578 _mesa_CopyTextureSubImage3D_no_error(GLuint texture, GLint level, GLint xoffset,
579 GLint yoffset, GLint zoffset, GLint x,
580 GLint y, GLsizei width, GLsizei height);
581
582 extern void GLAPIENTRY
583 _mesa_ClearTexSubImage( GLuint texture, GLint level,
584 GLint xoffset, GLint yoffset, GLint zoffset,
585 GLsizei width, GLsizei height, GLsizei depth,
586 GLenum format, GLenum type, const void *data );
587
588 extern void GLAPIENTRY
589 _mesa_ClearTexImage( GLuint texture, GLint level,
590 GLenum format, GLenum type, const void *data );
591
592 extern void GLAPIENTRY
593 _mesa_CompressedTexImage1D(GLenum target, GLint level,
594 GLenum internalformat, GLsizei width,
595 GLint border, GLsizei imageSize,
596 const GLvoid *data);
597
598 extern void GLAPIENTRY
599 _mesa_CompressedTextureImage1DEXT(GLuint texture, GLenum target, GLint level,
600 GLenum internalFormat, GLsizei width,
601 GLint border, GLsizei imageSize,
602 const GLvoid *pixels);
603
604 extern void GLAPIENTRY
605 _mesa_CompressedMultiTexImage1DEXT(GLenum texunit, GLenum target, GLint level,
606 GLenum internalFormat, GLsizei width,
607 GLint border, GLsizei imageSize,
608 const GLvoid *pixels);
609
610 extern void GLAPIENTRY
611 _mesa_CompressedTexImage2D(GLenum target, GLint level,
612 GLenum internalformat, GLsizei width,
613 GLsizei height, GLint border, GLsizei imageSize,
614 const GLvoid *data);
615
616 extern void GLAPIENTRY
617 _mesa_CompressedTextureImage2DEXT(GLuint texture, GLenum target, GLint level,
618 GLenum internalFormat, GLsizei width,
619 GLsizei height, GLint border, GLsizei imageSize,
620 const GLvoid *pixels);
621
622 extern void GLAPIENTRY
623 _mesa_CompressedMultiTexImage2DEXT(GLenum texunit, GLenum target, GLint level,
624 GLenum internalFormat, GLsizei width,
625 GLsizei height, GLint border, GLsizei imageSize,
626 const GLvoid *pixels);
627
628 extern void GLAPIENTRY
629 _mesa_CompressedTexImage3D(GLenum target, GLint level,
630 GLenum internalformat, GLsizei width,
631 GLsizei height, GLsizei depth, GLint border,
632 GLsizei imageSize, const GLvoid *data);
633
634 extern void GLAPIENTRY
635 _mesa_CompressedTextureImage3DEXT(GLuint texture, GLenum target, GLint level,
636 GLenum internalFormat, GLsizei width,
637 GLsizei height, GLsizei depth, GLint border,
638 GLsizei imageSize, const GLvoid *pixels);
639
640 extern void GLAPIENTRY
641 _mesa_CompressedMultiTexImage3DEXT(GLenum texunit, GLenum target, GLint level,
642 GLenum internalFormat, GLsizei width,
643 GLsizei height, GLsizei depth, GLint border,
644 GLsizei imageSize, const GLvoid *pixels);
645
646
647 extern void GLAPIENTRY
648 _mesa_CompressedTexImage1D_no_error(GLenum target, GLint level,
649 GLenum internalformat, GLsizei width,
650 GLint border, GLsizei imageSize,
651 const GLvoid *data);
652
653 extern void GLAPIENTRY
654 _mesa_CompressedTexImage2D_no_error(GLenum target, GLint level,
655 GLenum internalformat, GLsizei width,
656 GLsizei height, GLint border,
657 GLsizei imageSize, const GLvoid *data);
658
659 extern void GLAPIENTRY
660 _mesa_CompressedTexImage3D_no_error(GLenum target, GLint level,
661 GLenum internalformat, GLsizei width,
662 GLsizei height, GLsizei depth, GLint border,
663 GLsizei imageSize, const GLvoid *data);
664
665
666 extern void GLAPIENTRY
667 _mesa_CompressedTexSubImage1D_no_error(GLenum target, GLint level,
668 GLint xoffset, GLsizei width,
669 GLenum format, GLsizei imageSize,
670 const GLvoid *data);
671 extern void GLAPIENTRY
672 _mesa_CompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset,
673 GLsizei width, GLenum format,
674 GLsizei imageSize, const GLvoid *data);
675
676 extern void GLAPIENTRY
677 _mesa_CompressedTextureSubImage1D_no_error(GLuint texture, GLint level,
678 GLint xoffset, GLsizei width,
679 GLenum format, GLsizei imageSize,
680 const GLvoid *data);
681 extern void GLAPIENTRY
682 _mesa_CompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset,
683 GLsizei width, GLenum format,
684 GLsizei imageSize, const GLvoid *data);
685
686 extern void GLAPIENTRY
687 _mesa_CompressedTextureSubImage1DEXT(GLuint texture, GLenum target, GLint level,
688 GLint xoffset, GLsizei width, GLenum format,
689 GLsizei imageSize, const GLvoid *data);
690
691 extern void GLAPIENTRY
692 _mesa_CompressedMultiTexSubImage1DEXT(GLenum texunit, GLenum target, GLint level,
693 GLint xoffset, GLsizei width, GLenum format,
694 GLsizei imageSize, const GLvoid *data);
695
696
697 void GLAPIENTRY
698 _mesa_CompressedTextureSubImage2DEXT(GLuint texture, GLenum target,
699 GLint level, GLint xoffset,
700 GLint yoffset, GLsizei width,
701 GLsizei height, GLenum format,
702 GLsizei imageSize, const GLvoid *data);
703
704 extern void GLAPIENTRY
705 _mesa_CompressedMultiTexSubImage2DEXT(GLenum texunit, GLenum target,
706 GLint level, GLint xoffset,
707 GLint yoffset, GLsizei width,
708 GLsizei height, GLenum format,
709 GLsizei imageSize, const GLvoid *data);
710
711 extern void GLAPIENTRY
712 _mesa_CompressedTextureSubImage3DEXT(GLuint texture, GLenum target,
713 GLint level, GLint xoffset,
714 GLint yoffset, GLint zoffset,
715 GLsizei width, GLsizei height, GLsizei depth,
716 GLenum format, GLsizei imageSize,
717 const GLvoid *data);
718
719 extern void GLAPIENTRY
720 _mesa_CompressedMultiTexSubImage3DEXT(GLenum texunit, GLenum target,
721 GLint level, GLint xoffset,
722 GLint yoffset, GLint zoffset,
723 GLsizei width, GLsizei height, GLsizei depth,
724 GLenum format, GLsizei imageSize,
725 const GLvoid *data);
726
727 extern void GLAPIENTRY
728 _mesa_CompressedTexSubImage2D_no_error(GLenum target, GLint level,
729 GLint xoffset, GLint yoffset,
730 GLsizei width, GLsizei height,
731 GLenum format, GLsizei imageSize,
732 const GLvoid *data);
733 extern void GLAPIENTRY
734 _mesa_CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset,
735 GLint yoffset, GLsizei width, GLsizei height,
736 GLenum format, GLsizei imageSize,
737 const GLvoid *data);
738
739 extern void GLAPIENTRY
740 _mesa_CompressedTextureSubImage2D_no_error(GLuint texture, GLint level,
741 GLint xoffset, GLint yoffset,
742 GLsizei width, GLsizei height,
743 GLenum format, GLsizei imageSize,
744 const GLvoid *data);
745 extern void GLAPIENTRY
746 _mesa_CompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset,
747 GLint yoffset,
748 GLsizei width, GLsizei height,
749 GLenum format, GLsizei imageSize,
750 const GLvoid *data);
751
752 extern void GLAPIENTRY
753 _mesa_CompressedTexSubImage3D_no_error(GLenum target, GLint level,
754 GLint xoffset, GLint yoffset,
755 GLint zoffset, GLsizei width,
756 GLsizei height, GLsizei depth,
757 GLenum format, GLsizei imageSize,
758 const GLvoid *data);
759 extern void GLAPIENTRY
760 _mesa_CompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset,
761 GLint yoffset, GLint zoffset, GLsizei width,
762 GLsizei height, GLsizei depth, GLenum format,
763 GLsizei imageSize, const GLvoid *data);
764
765 extern void GLAPIENTRY
766 _mesa_CompressedTextureSubImage3D_no_error(GLuint texture, GLint level,
767 GLint xoffset, GLint yoffset,
768 GLint zoffset, GLsizei width,
769 GLsizei height, GLsizei depth,
770 GLenum format, GLsizei imageSize,
771 const GLvoid *data);
772 extern void GLAPIENTRY
773 _mesa_CompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset,
774 GLint yoffset, GLint zoffset,
775 GLsizei width, GLsizei height,
776 GLsizei depth,
777 GLenum format, GLsizei imageSize,
778 const GLvoid *data);
779
780 extern void GLAPIENTRY
781 _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer);
782
783 extern void GLAPIENTRY
784 _mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer,
785 GLintptr offset, GLsizeiptr size);
786
787 extern void GLAPIENTRY
788 _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer);
789
790 extern void GLAPIENTRY
791 _mesa_TextureBufferEXT(GLuint texture, GLenum target, GLenum internalFormat,
792 GLuint buffer);
793
794 extern void GLAPIENTRY
795 _mesa_MultiTexBufferEXT(GLenum texunit, GLenum target, GLenum internalFormat,
796 GLuint buffer);
797
798 extern void GLAPIENTRY
799 _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer,
800 GLintptr offset, GLsizeiptr size);
801
802
803 extern void GLAPIENTRY
804 _mesa_TexImage2DMultisample(GLenum target, GLsizei samples,
805 GLenum internalformat, GLsizei width,
806 GLsizei height, GLboolean fixedsamplelocations);
807
808 extern void GLAPIENTRY
809 _mesa_TexImage3DMultisample(GLenum target, GLsizei samples,
810 GLenum internalformat, GLsizei width,
811 GLsizei height, GLsizei depth,
812 GLboolean fixedsamplelocations);
813
814 extern void GLAPIENTRY
815 _mesa_TexStorage2DMultisample(GLenum target, GLsizei samples,
816 GLenum internalformat, GLsizei width,
817 GLsizei height, GLboolean fixedsamplelocations);
818
819 extern void GLAPIENTRY
820 _mesa_TexStorage3DMultisample(GLenum target, GLsizei samples,
821 GLenum internalformat, GLsizei width,
822 GLsizei height, GLsizei depth,
823 GLboolean fixedsamplelocations);
824
825 void GLAPIENTRY
826 _mesa_TextureStorage2DMultisample(GLuint texture, GLsizei samples,
827 GLenum internalformat, GLsizei width,
828 GLsizei height,
829 GLboolean fixedsamplelocations);
830
831 void GLAPIENTRY
832 _mesa_TextureStorage3DMultisample(GLuint texture, GLsizei samples,
833 GLenum internalformat, GLsizei width,
834 GLsizei height, GLsizei depth,
835 GLboolean fixedsamplelocations);
836 /*@}*/
837
838 #ifdef __cplusplus
839 }
840 #endif
841
842 #endif