1 /* $Id: teximage.h,v 1.3 1999/11/11 01:22:28 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
*
39 gl_alloc_texture_image( void );
43 gl_free_texture_image( struct gl_texture_image
*teximage
);
47 /*** API entry point functions ***/
51 _mesa_TexImage1D( GLenum target
, GLint level
, GLint internalformat
,
52 GLsizei width
, GLint border
,
53 GLenum format
, GLenum type
, const GLvoid
*pixels
);
57 _mesa_TexImage2D( GLenum target
, GLint level
, GLint internalformat
,
58 GLsizei width
, GLsizei height
, GLint border
,
59 GLenum format
, GLenum type
, const GLvoid
*pixels
);
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
);
69 _mesa_GetTexImage( GLenum target
, GLint level
,
70 GLenum format
, GLenum type
, GLvoid
*pixels
);
74 _mesa_TexSubImage1D( GLenum target
, GLint level
, GLint xoffset
,
76 GLenum format
, GLenum type
,
77 const GLvoid
*pixels
);
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
);
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
);
97 _mesa_CopyTexImage1D( GLenum target
, GLint level
, GLenum internalformat
,
98 GLint x
, GLint y
, GLsizei width
, GLint border
);
102 _mesa_CopyTexImage2D( GLenum target
, GLint level
,
103 GLenum internalformat
, GLint x
, GLint y
,
104 GLsizei width
, GLsizei height
, GLint border
);
108 _mesa_CopyTexSubImage1D( GLenum target
, GLint level
, GLint xoffset
,
109 GLint x
, GLint y
, GLsizei width
);
113 _mesa_CopyTexSubImage2D( GLenum target
, GLint level
,
114 GLint xoffset
, GLint yoffset
,
115 GLint x
, GLint y
, GLsizei width
, GLsizei height
);
119 _mesa_CopyTexSubImage3D( GLenum target
, GLint level
,
120 GLint xoffset
, GLint yoffset
, GLint zoffset
,
121 GLint x
, GLint y
, GLsizei width
, GLsizei height
);