home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / src / masking.h < prev    next >
C/C++ Source or Header  |  1996-05-27  |  2KB  |  80 lines

  1. /* $Id: masking.h,v 1.2 1995/10/30 15:33:24 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  1.2
  6.  * Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25. $Log: masking.h,v $
  26.  * Revision 1.2  1995/10/30  15:33:24  brianp
  27.  * added mask argument to gl_mask_[color|index]_pixels functions
  28.  *
  29.  * Revision 1.1  1995/10/13  22:40:00  brianp
  30.  * Initial revision
  31.  *
  32.  */
  33.  
  34.  
  35. #ifndef MASKING_H
  36. #define MASKING_H
  37.  
  38.  
  39.  
  40. #include "GL/gl.h"
  41.  
  42.  
  43.  
  44. /*
  45.  * Implement glColorMask for a span of RGBA pixels.
  46.  */
  47. extern void gl_mask_color_span( GLuint n, GLint x, GLint y,
  48.                                 GLubyte red[], GLubyte green[],
  49.                                 GLubyte blue[], GLubyte alpha[] );
  50.  
  51.  
  52.  
  53. /*
  54.  * Implement glColorMask for an array of RGBA pixels.
  55.  */
  56. extern void gl_mask_color_pixels( GLuint n, const GLint x[], const GLint y[],
  57.                                   GLubyte red[], GLubyte green[],
  58.                                   GLubyte blue[], GLubyte alpha[],
  59.                                   const GLubyte mask[] );
  60.  
  61.  
  62.  
  63. /*
  64.  * Implement glIndexMask for a span of CI pixels.
  65.  */
  66. extern void gl_mask_index_span( GLuint n, GLint x, GLint y, GLuint index[] );
  67.  
  68.  
  69.  
  70. /*
  71.  * Implement glIndexMask for an array of CI pixels.
  72.  */
  73. extern void gl_mask_index_pixels( GLuint n, const GLint x[], const GLint y[],
  74.                                   GLuint index[], const GLubyte mask[] );
  75.  
  76.  
  77.  
  78. #endif
  79.  
  80.