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

  1. /* stencil.h */
  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. $Id: stencil.h,v 1.5 1995/12/18 17:28:08 brianp Exp $
  26.  
  27. $Log: stencil.h,v $
  28.  * Revision 1.5  1995/12/18  17:28:08  brianp
  29.  * use new GLdepth datatype
  30.  *
  31.  * Revision 1.4  1995/05/22  20:59:34  brianp
  32.  * Release 1.2
  33.  *
  34.  * Revision 1.3  1995/03/04  19:25:29  brianp
  35.  * 1.1 beta revision
  36.  *
  37.  * Revision 1.2  1995/03/01  17:44:38  brianp
  38.  * added stenciling for PB
  39.  *
  40.  * Revision 1.1  1995/02/24  14:28:31  brianp
  41.  * Initial revision
  42.  *
  43.  */
  44.  
  45.  
  46. #ifndef STENCIL_H
  47. #define STENCIL_H
  48.  
  49.  
  50. #include "GL/gl.h"
  51.  
  52.  
  53. extern GLint gl_stencil_span( GLuint n, GLint x, GLint y, GLubyte mask[] );
  54.  
  55.  
  56. extern void gl_depth_stencil_span( GLuint n, GLint x, GLint y,
  57.                    const GLdepth z[], GLubyte mask[] );
  58.  
  59.  
  60. extern GLint gl_stencil_pixels( GLuint n, const GLint x[], const GLint y[],
  61.                     GLubyte mask[] );
  62.  
  63.  
  64. extern void gl_depth_stencil_pixels( GLuint n, const GLint x[],
  65.                      const GLint y[], const GLdepth z[],
  66.                      GLubyte mask[] );
  67.  
  68.  
  69. extern void gl_read_stencil_span( GLuint n, GLint x, GLint y,
  70.                   GLubyte stencil[] );
  71.  
  72.  
  73. extern void gl_write_stencil_span( GLuint n, GLint x, GLint y,
  74.                    const GLubyte stencil[] );
  75.  
  76.  
  77. extern void gl_alloc_stencil_buffer( void );
  78.  
  79.  
  80. extern void gl_clear_stencil_buffer( void );
  81.  
  82.  
  83. #endif
  84.