d876df54d3351d4edf05fa7b1cc32aa7bf4fcba9
1 /* $Id: texstore.h,v 1.6 2001/04/04 21:54:21 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 const struct gl_texture_format
*texDestFormat
,
44 GLint srcWidth
, GLint srcHeight
, GLint srcDepth
,
45 GLint dstXoffset
, GLint dstYoffset
, GLint dstZoffset
,
46 GLint dstRowStride
, GLint dstImageStride
,
47 GLenum srcFormat
, GLenum srcType
,
48 const GLvoid
*srcAddr
,
49 const struct gl_pixelstore_attrib
*srcPacking
);
53 _mesa_store_teximage1d(GLcontext
*ctx
, GLenum target
, GLint level
,
55 GLint width
, GLint border
,
56 GLenum format
, GLenum type
, const GLvoid
*pixels
,
57 const struct gl_pixelstore_attrib
*packing
,
58 struct gl_texture_object
*texObj
,
59 struct gl_texture_image
*texImage
);
63 _mesa_store_teximage2d(GLcontext
*ctx
, GLenum target
, GLint level
,
65 GLint width
, GLint height
, GLint border
,
66 GLenum format
, GLenum type
, const void *pixels
,
67 const struct gl_pixelstore_attrib
*packing
,
68 struct gl_texture_object
*texObj
,
69 struct gl_texture_image
*texImage
);
73 _mesa_store_teximage3d(GLcontext
*ctx
, GLenum target
, GLint level
,
75 GLint width
, GLint height
, GLint depth
, GLint border
,
76 GLenum format
, GLenum type
, const void *pixels
,
77 const struct gl_pixelstore_attrib
*packing
,
78 struct gl_texture_object
*texObj
,
79 struct gl_texture_image
*texImage
);
83 _mesa_store_texsubimage1d(GLcontext
*ctx
, GLenum target
, GLint level
,
84 GLint xoffset
, GLint width
,
85 GLenum format
, GLenum type
, const void *pixels
,
86 const struct gl_pixelstore_attrib
*packing
,
87 struct gl_texture_object
*texObj
,
88 struct gl_texture_image
*texImage
);
92 _mesa_store_texsubimage2d(GLcontext
*ctx
, GLenum target
, GLint level
,
93 GLint xoffset
, GLint yoffset
,
94 GLint width
, GLint height
,
95 GLenum format
, GLenum type
, const void *pixels
,
96 const struct gl_pixelstore_attrib
*packing
,
97 struct gl_texture_object
*texObj
,
98 struct gl_texture_image
*texImage
);
102 _mesa_store_texsubimage3d(GLcontext
*ctx
, GLenum target
, GLint level
,
103 GLint xoffset
, GLint yoffset
, GLint zoffset
,
104 GLint width
, GLint height
, GLint depth
,
105 GLenum format
, GLenum type
, const void *pixels
,
106 const struct gl_pixelstore_attrib
*packing
,
107 struct gl_texture_object
*texObj
,
108 struct gl_texture_image
*texImage
);
112 _mesa_store_compressed_teximage1d(GLcontext
*ctx
, GLenum target
, GLint level
,
113 GLint internalFormat
,
114 GLint width
, GLint border
,
115 GLsizei imageSize
, const GLvoid
*data
,
116 struct gl_texture_object
*texObj
,
117 struct gl_texture_image
*texImage
);
120 _mesa_store_compressed_teximage2d(GLcontext
*ctx
, GLenum target
, GLint level
,
121 GLint internalFormat
,
122 GLint width
, GLint height
, GLint border
,
123 GLsizei imageSize
, const GLvoid
*data
,
124 struct gl_texture_object
*texObj
,
125 struct gl_texture_image
*texImage
);
128 _mesa_store_compressed_teximage3d(GLcontext
*ctx
, GLenum target
, GLint level
,
129 GLint internalFormat
,
130 GLint width
, GLint height
, GLint depth
,
132 GLsizei imageSize
, const GLvoid
*data
,
133 struct gl_texture_object
*texObj
,
134 struct gl_texture_image
*texImage
);
138 _mesa_test_proxy_teximage(GLcontext
*ctx
, GLenum target
, GLint level
,
139 GLint internalFormat
, GLenum format
, GLenum type
,
140 GLint width
, GLint height
, GLint depth
, GLint border
);