2 * Mesa 3-D graphics library
5 * Copyright (C) 2009 VMware, Inc. All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 _mesa_meta_init(GLcontext
*ctx
);
34 _mesa_meta_free(GLcontext
*ctx
);
37 _mesa_meta_BlitFramebuffer(GLcontext
*ctx
,
38 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
39 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
40 GLbitfield mask
, GLenum filter
);
43 _mesa_meta_Clear(GLcontext
*ctx
, GLbitfield buffers
);
46 _mesa_meta_CopyPixels(GLcontext
*ctx
, GLint srcx
, GLint srcy
,
47 GLsizei width
, GLsizei height
,
48 GLint dstx
, GLint dsty
, GLenum type
);
51 _mesa_meta_DrawPixels(GLcontext
*ctx
,
52 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
53 GLenum format
, GLenum type
,
54 const struct gl_pixelstore_attrib
*unpack
,
55 const GLvoid
*pixels
);
58 _mesa_meta_Bitmap(GLcontext
*ctx
,
59 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
60 const struct gl_pixelstore_attrib
*unpack
,
61 const GLubyte
*bitmap
);
64 _mesa_meta_GenerateMipmap(GLcontext
*ctx
, GLenum target
,
65 struct gl_texture_object
*texObj
);
68 _mesa_meta_CopyTexImage1D(GLcontext
*ctx
, GLenum target
, GLint level
,
69 GLenum internalFormat
, GLint x
, GLint y
,
70 GLsizei width
, GLint border
);
73 _mesa_meta_CopyTexImage2D(GLcontext
*ctx
, GLenum target
, GLint level
,
74 GLenum internalFormat
, GLint x
, GLint y
,
75 GLsizei width
, GLsizei height
, GLint border
);
78 _mesa_meta_CopyTexSubImage1D(GLcontext
*ctx
, GLenum target
, GLint level
,
80 GLint x
, GLint y
, GLsizei width
);
83 _mesa_meta_CopyTexSubImage2D(GLcontext
*ctx
, GLenum target
, GLint level
,
84 GLint xoffset
, GLint yoffset
,
86 GLsizei width
, GLsizei height
);
89 _mesa_meta_CopyTexSubImage3D(GLcontext
*ctx
, GLenum target
, GLint level
,
90 GLint xoffset
, GLint yoffset
, GLint zoffset
,
92 GLsizei width
, GLsizei height
);
95 _mesa_meta_CopyColorTable(GLcontext
*ctx
,
96 GLenum target
, GLenum internalformat
,
97 GLint x
, GLint y
, GLsizei width
);
100 _mesa_meta_CopyColorSubTable(GLcontext
*ctx
,GLenum target
, GLsizei start
,
101 GLint x
, GLint y
, GLsizei width
);
104 _mesa_meta_CopyConvolutionFilter1D(GLcontext
*ctx
, GLenum target
,
105 GLenum internalFormat
,
106 GLint x
, GLint y
, GLsizei width
);
109 _mesa_meta_CopyConvolutionFilter2D(GLcontext
*ctx
, GLenum target
,
110 GLenum internalFormat
, GLint x
, GLint y
,
111 GLsizei width
, GLsizei height
);