meta.h revision 3464ebd5
1/* 2 * Mesa 3-D graphics library 3 * Version: 7.6 4 * 5 * Copyright (C) 2009 VMware, Inc. All Rights Reserved. 6 * 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: 13 * 14 * The above copyright notice and this permission notice shall be included 15 * in all copies or substantial portions of the Software. 16 * 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. 23 */ 24 25 26#ifndef META_H 27#define META_H 28 29 30extern void 31_mesa_meta_init(struct gl_context *ctx); 32 33extern void 34_mesa_meta_free(struct gl_context *ctx); 35 36extern void 37_mesa_meta_BlitFramebuffer(struct gl_context *ctx, 38 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, 39 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, 40 GLbitfield mask, GLenum filter); 41 42extern void 43_mesa_meta_Clear(struct gl_context *ctx, GLbitfield buffers); 44 45extern void 46_mesa_meta_CopyPixels(struct gl_context *ctx, GLint srcx, GLint srcy, 47 GLsizei width, GLsizei height, 48 GLint dstx, GLint dsty, GLenum type); 49 50extern void 51_mesa_meta_DrawPixels(struct gl_context *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); 56 57extern void 58_mesa_meta_Bitmap(struct gl_context *ctx, 59 GLint x, GLint y, GLsizei width, GLsizei height, 60 const struct gl_pixelstore_attrib *unpack, 61 const GLubyte *bitmap); 62 63extern GLboolean 64_mesa_meta_check_generate_mipmap_fallback(struct gl_context *ctx, GLenum target, 65 struct gl_texture_object *texObj); 66 67extern void 68_mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target, 69 struct gl_texture_object *texObj); 70 71extern void 72_mesa_meta_CopyTexImage1D(struct gl_context *ctx, GLenum target, GLint level, 73 GLenum internalFormat, GLint x, GLint y, 74 GLsizei width, GLint border); 75 76extern void 77_mesa_meta_CopyTexImage2D(struct gl_context *ctx, GLenum target, GLint level, 78 GLenum internalFormat, GLint x, GLint y, 79 GLsizei width, GLsizei height, GLint border); 80 81extern void 82_mesa_meta_CopyTexSubImage1D(struct gl_context *ctx, GLenum target, GLint level, 83 GLint xoffset, 84 GLint x, GLint y, GLsizei width); 85 86extern void 87_mesa_meta_CopyTexSubImage2D(struct gl_context *ctx, GLenum target, GLint level, 88 GLint xoffset, GLint yoffset, 89 GLint x, GLint y, 90 GLsizei width, GLsizei height); 91 92extern void 93_mesa_meta_CopyTexSubImage3D(struct gl_context *ctx, GLenum target, GLint level, 94 GLint xoffset, GLint yoffset, GLint zoffset, 95 GLint x, GLint y, 96 GLsizei width, GLsizei height); 97 98extern void 99_mesa_meta_CopyColorTable(struct gl_context *ctx, 100 GLenum target, GLenum internalformat, 101 GLint x, GLint y, GLsizei width); 102 103extern void 104_mesa_meta_CopyColorSubTable(struct gl_context *ctx,GLenum target, GLsizei start, 105 GLint x, GLint y, GLsizei width); 106 107extern void 108_mesa_meta_CopyConvolutionFilter1D(struct gl_context *ctx, GLenum target, 109 GLenum internalFormat, 110 GLint x, GLint y, GLsizei width); 111 112extern void 113_mesa_meta_CopyConvolutionFilter2D(struct gl_context *ctx, GLenum target, 114 GLenum internalFormat, GLint x, GLint y, 115 GLsizei width, GLsizei height); 116 117 118#endif /* META_H */ 119