Debian Codegraph @

debian/external_deps/fetk/sg/src/gl/teximage.h

raw
1 /* $Id: teximage.h,v 1.2 2000/10/27 15:21:40 mholst Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 2.2
6 * Copyright (C) 1995-1997 Brian Paul
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #ifndef TEXIMAGE_H
24 #define TEXIMAGE_H
25
26
27 #include "types.h"
28
29
30 /*** Internal functions ***/
31
32
33 extern struct gl_texture_image *gl_alloc_texture_image( void );
34
35
36 extern void gl_free_texture_image( struct gl_texture_image *teximage );
37
38
39 extern struct gl_image *
40 gl_unpack_texsubimage( GLcontext *ctx, GLint width, GLint height,
41 GLenum format, GLenum type, const GLvoid *pixels );
42
43
44 extern struct gl_image *
45 gl_unpack_texsubimage3D( GLcontext *ctx, GLint width, GLint height,GLint depth,
46 GLenum format, GLenum type, const GLvoid *pixels );
47
48
49 extern struct gl_texture_image *
50 gl_unpack_texture( GLcontext *ctx,
51 GLint dimensions,
52 GLenum target,
53 GLint level,
54 GLint internalformat,
55 GLsizei width, GLsizei height,
56 GLint border,
57 GLenum format, GLenum type,
58 const GLvoid *pixels );
59
60 extern struct gl_texture_image *
61 gl_unpack_texture3D( GLcontext *ctx,
62 GLint dimensions,
63 GLenum target,
64 GLint level,
65 GLint internalformat,
66 GLsizei width, GLsizei height, GLsizei depth,
67 GLint border,
68 GLenum format, GLenum type,
69 const GLvoid *pixels );
70
71
72 extern void gl_tex_image_1D( GLcontext *ctx,
73 GLenum target, GLint level, GLint internalformat,
74 GLsizei width, GLint border, GLenum format,
75 GLenum type, const GLvoid *pixels );
76
77
78 extern void gl_tex_image_2D( GLcontext *ctx,
79 GLenum target, GLint level, GLint internalformat,
80 GLsizei width, GLint height, GLint border,
81 GLenum format, GLenum type,
82 const GLvoid *pixels );
83
84 extern void gl_tex_image_3D( GLcontext *ctx,
85 GLenum target, GLint level, GLint internalformat,
86 GLsizei width, GLint height, GLint depth,
87 GLint border,
88 GLenum format, GLenum type,
89 const GLvoid *pixels );
90
91
92 /*** API entry points ***/
93
94
95 extern void gl_TexImage1D( GLcontext *ctx,
96 GLenum target, GLint level, GLint internalformat,
97 GLsizei width, GLint border, GLenum format,
98 GLenum type, struct gl_image *teximage );
99
100
101 extern void gl_TexImage2D( GLcontext *ctx,
102 GLenum target, GLint level, GLint internalformat,
103 GLsizei width, GLsizei height, GLint border,
104 GLenum format, GLenum type,
105 struct gl_image *teximage );
106
107
108 extern void gl_TexImage3DEXT( GLcontext *ctx,
109 GLenum target, GLint level, GLint internalformat,
110 GLsizei width, GLsizei height, GLsizei depth,
111 GLint border,
112 GLenum format, GLenum type,
113 struct gl_image *teximage );
114
115
116 extern void gl_GetTexImage( GLcontext *ctx, GLenum target, GLint level,
117 GLenum format, GLenum type, GLvoid *pixels );
118
119
120
121 extern void gl_TexSubImage1D( GLcontext *ctx,
122 GLenum target, GLint level, GLint xoffset,
123 GLsizei width, GLenum format, GLenum type,
124 struct gl_image *image );
125
126
127 extern void gl_TexSubImage2D( GLcontext *ctx,
128 GLenum target, GLint level,
129 GLint xoffset, GLint yoffset,
130 GLsizei width, GLsizei height,
131 GLenum format, GLenum type,
132 struct gl_image *image );
133
134
135 extern void gl_TexSubImage3DEXT( GLcontext *ctx,
136 GLenum target, GLint level,
137 GLint xoffset, GLint yoffset, GLint zoffset,
138 GLsizei width, GLsizei height, GLsizei depth,
139 GLenum format, GLenum type,
140 struct gl_image *image );
141
142
143 extern void gl_CopyTexImage1D( GLcontext *ctx,
144 GLenum target, GLint level,
145 GLenum internalformat,
146 GLint x, GLint y,
147 GLsizei width, GLint border );
148
149
150 extern void gl_CopyTexImage2D( GLcontext *ctx,
151 GLenum target, GLint level,
152 GLenum internalformat, GLint x, GLint y,
153 GLsizei width, GLsizei height,
154 GLint border );
155
156
157 extern void gl_CopyTexSubImage1D( GLcontext *ctx,
158 GLenum target, GLint level,
159 GLint xoffset, GLint x, GLint y,
160 GLsizei width );
161
162
163 extern void gl_CopyTexSubImage2D( GLcontext *ctx,
164 GLenum target, GLint level,
165 GLint xoffset, GLint yoffset,
166 GLint x, GLint y,
167 GLsizei width, GLsizei height );
168
169
170 extern void gl_CopyTexSubImage3DEXT( GLcontext *ctx,
171 GLenum target, GLint level,
172 GLint xoffset, GLint yoffset,
173 GLint zoffset,
174 GLint x, GLint y,
175 GLsizei width, GLsizei height );
176
177 #endif
178