Home | History | Annotate | Download | only in main
      1 /*
      2  * Mesa 3-D graphics library
      3  *
      4  * Copyright (C) 1999-2008  Brian Paul   All Rights Reserved.
      5  *
      6  * Permission is hereby granted, free of charge, to any person obtaining a
      7  * copy of this software and associated documentation files (the "Software"),
      8  * to deal in the Software without restriction, including without limitation
      9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     10  * and/or sell copies of the Software, and to permit persons to whom the
     11  * Software is furnished to do so, subject to the following conditions:
     12  *
     13  * The above copyright notice and this permission notice shall be included
     14  * in all copies or substantial portions of the Software.
     15  *
     16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
     17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
     20  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     21  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     22  * OTHER DEALINGS IN THE SOFTWARE.
     23  */
     24 
     25 
     26 #ifndef BLIT_H
     27 #define BLIT_H
     28 
     29 #include "glheader.h"
     30 
     31 extern bool
     32 _mesa_regions_overlap(int srcX0, int srcY0,
     33                       int srcX1, int srcY1,
     34                       int dstX0, int dstY0,
     35                       int dstX1, int dstY1);
     36 
     37 void GLAPIENTRY
     38 _mesa_BlitFramebuffer_no_error(GLint srcX0, GLint srcY0, GLint srcX1,
     39                                GLint srcY1, GLint dstX0, GLint dstY0,
     40                                GLint dstX1, GLint dstY1,
     41                                GLbitfield mask, GLenum filter);
     42 
     43 extern void GLAPIENTRY
     44 _mesa_BlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
     45                          GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
     46                          GLbitfield mask, GLenum filter);
     47 
     48 void GLAPIENTRY
     49 _mesa_BlitNamedFramebuffer_no_error(GLuint readFramebuffer,
     50                                     GLuint drawFramebuffer,
     51                                     GLint srcX0, GLint srcY0,
     52                                     GLint srcX1, GLint srcY1,
     53                                     GLint dstX0, GLint dstY0,
     54                                     GLint dstX1, GLint dstY1,
     55                                     GLbitfield mask, GLenum filter);
     56 
     57 extern void GLAPIENTRY
     58 _mesa_BlitNamedFramebuffer(GLuint readFramebuffer, GLuint drawFramebuffer,
     59                            GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
     60                            GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
     61                            GLbitfield mask, GLenum filter);
     62 
     63 
     64 #endif /* BLIT_H */
     65