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

  1. /* $Id: light.h,v 1.11 1996/02/26 15:20:01 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  1.2
  6.  * Copyright (C) 1995-1996  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: light.h,v $
  26.  * Revision 1.11  1996/02/26  15:20:01  brianp
  27.  * added gl_compute_spot_exp_table() and gl_compute_material_shine_table()
  28.  *
  29.  * Revision 1.10  1996/02/14  16:56:23  brianp
  30.  * replaced gl_index_shade() with gl_index_shade_vertices()
  31.  *
  32.  * Revision 1.9  1996/02/13  17:52:03  brianp
  33.  * added gl_update_lighting() and gl_color_shade_vertices_fast()
  34.  *
  35.  * Revision 1.8  1996/01/07  22:49:21  brianp
  36.  * removed gl_color_shade(), added gl_init_lighting()
  37.  *
  38.  * Revision 1.7  1995/12/30  00:54:26  brianp
  39.  * return integer colors instead of floats in shading functions
  40.  *
  41.  * Revision 1.6  1995/12/20  15:27:03  brianp
  42.  * gl_index_shade changed to return GLuint color indexes instead of GLfloat
  43.  *
  44.  * Revision 1.5  1995/11/01  21:43:16  brianp
  45.  * added gl_color_shade_vertices()
  46.  *
  47.  * Revision 1.4  1995/07/25  13:27:51  brianp
  48.  * gl_index_shade() returns GLfloats instead of GLuints
  49.  *
  50.  * Revision 1.3  1995/05/22  20:59:34  brianp
  51.  * Release 1.2
  52.  *
  53.  * Revision 1.2  1995/03/04  19:25:29  brianp
  54.  * 1.1 beta revision
  55.  *
  56.  * Revision 1.1  1995/02/24  14:23:06  brianp
  57.  * Initial revision
  58.  *
  59.  */
  60.  
  61.  
  62. #ifndef LIGHT_H
  63. #define LIGHT_H
  64.  
  65. #include "context.h"
  66.  
  67.  
  68. extern void gl_light( GLenum light, GLenum pname, const GLfloat *params );
  69.  
  70.  
  71. extern void gl_material( GLenum face, GLenum pname, const GLfloat *params );
  72.  
  73.  
  74. extern void gl_lightmodel( GLenum pname, const GLfloat *params );
  75.  
  76.  
  77. extern void gl_compute_spot_exp_table( struct gl_light *l );
  78.  
  79. extern void gl_compute_material_shine_table( struct gl_material *m );
  80.  
  81. extern void gl_update_lighting( void );
  82.  
  83.  
  84.  
  85. extern void gl_color_shade_vertices( GLuint n,
  86.                                      GLfloat vertex[][4],
  87.                                      GLfloat normal[][3],
  88.                                      GLuint twoside,
  89.                                      GLfixed frontcolor[][4],
  90.                                      GLfixed backcolor[][4] );
  91.  
  92.  
  93. extern void gl_color_shade_vertices_fast( GLuint n,
  94.                                           GLfloat vertex[][4],
  95.                                           GLfloat normal[][3],
  96.                                           GLuint twoside,
  97.                                           GLfixed frontcolor[][4],
  98.                                           GLfixed backcolor[][4] );
  99.  
  100.  
  101. extern void gl_index_shade_vertices( GLuint n,
  102.                                      GLfloat vertex[][4],
  103.                                      GLfloat normal[][3],
  104.                                      GLuint twoside,
  105.                                      GLuint frontindex[],
  106.                                      GLuint backindex[] );
  107.  
  108. #endif
  109.  
  110.