1 /* $Id: teximage.h,v 1.2 1999/11/03 17:27:05 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
35 /*** Internal functions ***/
38 extern struct gl_texture_image
*gl_alloc_texture_image( void );
41 extern void gl_free_texture_image( struct gl_texture_image
*teximage
);
46 /*** API entry points ***/
49 extern void gl_TexImage1D( GLcontext
*ctx
,
50 GLenum target
, GLint level
, GLint internalformat
,
51 GLsizei width
, GLint border
, GLenum format
,
52 GLenum type
, const GLvoid
*pixels
);
55 extern void gl_TexImage2D( GLcontext
*ctx
,
56 GLenum target
, GLint level
, GLint internalformat
,
57 GLsizei width
, GLsizei height
, GLint border
,
58 GLenum format
, GLenum type
,
59 const GLvoid
*pixels
);
62 extern void gl_TexImage3D( GLcontext
*ctx
,
63 GLenum target
, GLint level
, GLint internalformat
,
64 GLsizei width
, GLsizei height
, GLsizei depth
,
65 GLint border
, GLenum format
, GLenum type
,
66 const GLvoid
*pixels
);
69 extern void gl_GetTexImage( GLcontext
*ctx
, GLenum target
, GLint level
,
70 GLenum format
, GLenum type
, GLvoid
*pixels
);
74 extern void gl_TexSubImage1D( GLcontext
*ctx
,
75 GLenum target
, GLint level
, GLint xoffset
,
76 GLsizei width
, GLenum format
, GLenum type
,
77 const GLvoid
*pixels
);
80 extern void gl_TexSubImage2D( GLcontext
*ctx
,
81 GLenum target
, GLint level
,
82 GLint xoffset
, GLint yoffset
,
83 GLsizei width
, GLsizei height
,
84 GLenum format
, GLenum type
,
85 const GLvoid
*pixels
);
88 extern void gl_TexSubImage3D( GLcontext
*ctx
,
89 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
);
96 extern void gl_CopyTexImage1D( GLcontext
*ctx
,
97 GLenum target
, GLint level
,
98 GLenum internalformat
,
100 GLsizei width
, GLint border
);
103 extern void gl_CopyTexImage2D( GLcontext
*ctx
,
104 GLenum target
, GLint level
,
105 GLenum internalformat
, GLint x
, GLint y
,
106 GLsizei width
, GLsizei height
,
110 extern void gl_CopyTexSubImage1D( GLcontext
*ctx
,
111 GLenum target
, GLint level
,
112 GLint xoffset
, GLint x
, GLint y
,
116 extern void gl_CopyTexSubImage2D( GLcontext
*ctx
,
117 GLenum target
, GLint level
,
118 GLint xoffset
, GLint yoffset
,
120 GLsizei width
, GLsizei height
);
123 extern void gl_CopyTexSubImage3D( GLcontext
*ctx
,
124 GLenum target
, GLint level
,
125 GLint xoffset
, GLint yoffset
,
128 GLsizei width
, GLsizei height
);