1 /* $Id: texstore.h,v 1.5 2001/03/21 16:44:08 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2001 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.
41 _mesa_transfer_teximage(GLcontext
*ctx
, GLuint dimensions
,
42 GLenum texDestFormat
, GLvoid
*texDestAddr
,
43 GLint srcWidth
, GLint srcHeight
, GLint srcDepth
,
44 GLint dstXoffset
, GLint dstYoffset
, GLint dstZoffset
,
45 GLint dstRowStride
, GLint dstImageStride
,
46 GLenum srcFormat
, GLenum srcType
,
47 const GLvoid
*srcAddr
,
48 const struct gl_pixelstore_attrib
*srcPacking
);
52 _mesa_store_teximage1d(GLcontext
*ctx
, GLenum target
, GLint level
,
54 GLint width
, GLint border
,
55 GLenum format
, GLenum type
, const GLvoid
*pixels
,
56 const struct gl_pixelstore_attrib
*packing
,
57 struct gl_texture_object
*texObj
,
58 struct gl_texture_image
*texImage
);
62 _mesa_store_teximage2d(GLcontext
*ctx
, GLenum target
, GLint level
,
64 GLint width
, GLint height
, GLint border
,
65 GLenum format
, GLenum type
, const void *pixels
,
66 const struct gl_pixelstore_attrib
*packing
,
67 struct gl_texture_object
*texObj
,
68 struct gl_texture_image
*texImage
);
72 _mesa_store_teximage3d(GLcontext
*ctx
, GLenum target
, GLint level
,
74 GLint width
, GLint height
, GLint depth
, GLint border
,
75 GLenum format
, GLenum type
, const void *pixels
,
76 const struct gl_pixelstore_attrib
*packing
,
77 struct gl_texture_object
*texObj
,
78 struct gl_texture_image
*texImage
);
82 _mesa_store_texsubimage1d(GLcontext
*ctx
, GLenum target
, GLint level
,
83 GLint xoffset
, GLint width
,
84 GLenum format
, GLenum type
, const void *pixels
,
85 const struct gl_pixelstore_attrib
*packing
,
86 struct gl_texture_object
*texObj
,
87 struct gl_texture_image
*texImage
);
91 _mesa_store_texsubimage2d(GLcontext
*ctx
, GLenum target
, GLint level
,
92 GLint xoffset
, GLint yoffset
,
93 GLint width
, GLint height
,
94 GLenum format
, GLenum type
, const void *pixels
,
95 const struct gl_pixelstore_attrib
*packing
,
96 struct gl_texture_object
*texObj
,
97 struct gl_texture_image
*texImage
);
101 _mesa_store_texsubimage3d(GLcontext
*ctx
, GLenum target
, GLint level
,
102 GLint xoffset
, GLint yoffset
, GLint zoffset
,
103 GLint width
, GLint height
, GLint depth
,
104 GLenum format
, GLenum type
, const void *pixels
,
105 const struct gl_pixelstore_attrib
*packing
,
106 struct gl_texture_object
*texObj
,
107 struct gl_texture_image
*texImage
);
111 _mesa_store_compressed_teximage1d(GLcontext
*ctx
, GLenum target
, GLint level
,
112 GLint internalFormat
,
113 GLint width
, GLint border
,
114 GLsizei imageSize
, const GLvoid
*data
,
115 struct gl_texture_object
*texObj
,
116 struct gl_texture_image
*texImage
);
119 _mesa_store_compressed_teximage2d(GLcontext
*ctx
, GLenum target
, GLint level
,
120 GLint internalFormat
,
121 GLint width
, GLint height
, GLint border
,
122 GLsizei imageSize
, const GLvoid
*data
,
123 struct gl_texture_object
*texObj
,
124 struct gl_texture_image
*texImage
);
127 _mesa_store_compressed_teximage3d(GLcontext
*ctx
, GLenum target
, GLint level
,
128 GLint internalFormat
,
129 GLint width
, GLint height
, GLint depth
,
131 GLsizei imageSize
, const GLvoid
*data
,
132 struct gl_texture_object
*texObj
,
133 struct gl_texture_image
*texImage
);
137 _mesa_test_proxy_teximage(GLcontext
*ctx
, GLenum target
, GLint level
,
138 GLint internalFormat
, GLenum format
, GLenum type
,
139 GLint width
, GLint height
, GLint depth
, GLint border
);