changed a warning string
[mesa.git] / src / mesa / main / teximage.h
1 /* $Id: teximage.h,v 1.3 1999/11/11 01:22:28 brianp Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.3
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 #ifndef TEXIMAGE_H
29 #define TEXIMAGE_H
30
31
32 #include "types.h"
33
34
35 /*** Internal functions ***/
36
37
38 extern struct gl_texture_image *
39 gl_alloc_texture_image( void );
40
41
42 extern void
43 gl_free_texture_image( struct gl_texture_image *teximage );
44
45
46
47 /*** API entry point functions ***/
48
49
50 extern void
51 _mesa_TexImage1D( GLenum target, GLint level, GLint internalformat,
52 GLsizei width, GLint border,
53 GLenum format, GLenum type, const GLvoid *pixels );
54
55
56 extern void
57 _mesa_TexImage2D( GLenum target, GLint level, GLint internalformat,
58 GLsizei width, GLsizei height, GLint border,
59 GLenum format, GLenum type, const GLvoid *pixels );
60
61
62 extern void
63 _mesa_TexImage3D( GLenum target, GLint level, GLint internalformat,
64 GLsizei width, GLsizei height, GLsizei depth, GLint border,
65 GLenum format, GLenum type, const GLvoid *pixels );
66
67
68 extern void
69 _mesa_GetTexImage( GLenum target, GLint level,
70 GLenum format, GLenum type, GLvoid *pixels );
71
72
73 extern void
74 _mesa_TexSubImage1D( GLenum target, GLint level, GLint xoffset,
75 GLsizei width,
76 GLenum format, GLenum type,
77 const GLvoid *pixels );
78
79
80 extern void
81 _mesa_TexSubImage2D( GLenum target, GLint level,
82 GLint xoffset, GLint yoffset,
83 GLsizei width, GLsizei height,
84 GLenum format, GLenum type,
85 const GLvoid *pixels );
86
87
88 extern void
89 _mesa_TexSubImage3D( GLenum target, GLint level,
90 GLint xoffset, GLint yoffset, GLint zoffset,
91 GLsizei width, GLsizei height, GLsizei depth,
92 GLenum format, GLenum type,
93 const GLvoid *pixels );
94
95
96 extern void
97 _mesa_CopyTexImage1D( GLenum target, GLint level, GLenum internalformat,
98 GLint x, GLint y, GLsizei width, GLint border );
99
100
101 extern void
102 _mesa_CopyTexImage2D( GLenum target, GLint level,
103 GLenum internalformat, GLint x, GLint y,
104 GLsizei width, GLsizei height, GLint border );
105
106
107 extern void
108 _mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
109 GLint x, GLint y, GLsizei width );
110
111
112 extern void
113 _mesa_CopyTexSubImage2D( GLenum target, GLint level,
114 GLint xoffset, GLint yoffset,
115 GLint x, GLint y, GLsizei width, GLsizei height );
116
117
118 extern void
119 _mesa_CopyTexSubImage3D( GLenum target, GLint level,
120 GLint xoffset, GLint yoffset, GLint zoffset,
121 GLint x, GLint y, GLsizei width, GLsizei height );
122
123 #endif
124