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

  1. /* fog.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: fog.h,v 1.9 1995/12/30 17:16:17 brianp Exp $
  26.  
  27. $Log: fog.h,v $
  28.  * Revision 1.9  1995/12/30  17:16:17  brianp
  29.  * gl_fog_color_vertices now takes integer colors instead of floats
  30.  *
  31.  * Revision 1.8  1995/12/20  15:26:39  brianp
  32.  * changed color index array arguments to GLuint
  33.  *
  34.  * Revision 1.7  1995/12/18  17:25:35  brianp
  35.  * use new GLdepth datatype, replace MAX_DEPTH with DEPTH_SCALE
  36.  *
  37.  * Revision 1.6  1995/11/03  22:35:35  brianp
  38.  * replaced gl_fog_color_vertex with gl_fog_color_vertices
  39.  * replaced gl_fog_index_vertex with gl_fog_index_vertices
  40.  *
  41.  * Revision 1.5  1995/06/12  15:33:31  brianp
  42.  * changed color arrays to GLubyte
  43.  *
  44.  * Revision 1.4  1995/05/22  20:59:34  brianp
  45.  * Release 1.2
  46.  *
  47.  * Revision 1.3  1995/03/04  19:25:29  brianp
  48.  * 1.1 beta revision
  49.  *
  50.  * Revision 1.2  1995/02/27  22:48:52  brianp
  51.  * modified for PB
  52.  *
  53.  * Revision 1.1  1995/02/24  14:23:03  brianp
  54.  * Initial revision
  55.  *
  56.  */
  57.  
  58.  
  59. #ifndef FOG_H
  60. #define FOG_H
  61.  
  62.  
  63. #include "GL/gl.h"
  64.  
  65.  
  66. extern void gl_fog( GLenum pname, const GLfloat *params );
  67.  
  68.  
  69. extern void
  70. gl_fog_color_vertices( GLuint n, GLfloat v[][4], GLfixed color[][4] );
  71.  
  72. extern void
  73. gl_fog_index_vertices( GLuint n, GLfloat v[][4], GLuint indx[] );
  74.  
  75.  
  76.  
  77. extern void gl_fog_color_pixels( GLuint n, const GLdepth z[],
  78.                  GLubyte red[], GLubyte green[],
  79.                  GLubyte blue[], GLubyte alpha[] );
  80.  
  81. extern void gl_fog_index_pixels( GLuint n, const GLdepth z[], GLuint indx[] );
  82.  
  83.  
  84. #endif
  85.