d876df54d3351d4edf05fa7b1cc32aa7bf4fcba9
[mesa.git] / src / mesa / main / texstore.h
1 /* $Id: texstore.h,v 1.6 2001/04/04 21:54:21 brianp Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.5
6 *
7 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
8 *
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:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
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.
25 */
26
27 /*
28 * Authors:
29 * Brian Paul
30 */
31
32
33 #ifndef TEXSTORE_H
34 #define TEXSTORE_H
35
36
37 #include "mtypes.h"
38
39
40 extern void
41 _mesa_transfer_teximage(GLcontext *ctx, GLuint dimensions,
42 const struct gl_texture_format *texDestFormat,
43 GLvoid *texDestAddr,
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);
50
51
52 extern void
53 _mesa_store_teximage1d(GLcontext *ctx, GLenum target, GLint level,
54 GLint internalFormat,
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);
60
61
62 extern void
63 _mesa_store_teximage2d(GLcontext *ctx, GLenum target, GLint level,
64 GLint internalFormat,
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);
70
71
72 extern void
73 _mesa_store_teximage3d(GLcontext *ctx, GLenum target, GLint level,
74 GLint internalFormat,
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);
80
81
82 extern void
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);
89
90
91 extern void
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);
99
100
101 extern void
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);
109
110
111 extern void
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);
118
119 extern void
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);
126
127 extern void
128 _mesa_store_compressed_teximage3d(GLcontext *ctx, GLenum target, GLint level,
129 GLint internalFormat,
130 GLint width, GLint height, GLint depth,
131 GLint border,
132 GLsizei imageSize, const GLvoid *data,
133 struct gl_texture_object *texObj,
134 struct gl_texture_image *texImage);
135
136
137 extern GLboolean
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);
141
142
143 #endif