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

  1. /* texture.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: texture.h,v 1.7 1995/10/14 17:42:45 brianp Exp $
  26.  
  27. $Log: texture.h,v $
  28.  * Revision 1.7  1995/10/14  17:42:45  brianp
  29.  * compile glTexEnv, glTexParameter, and glTexGen into display lists
  30.  *
  31.  * Revision 1.6  1995/06/12  15:43:06  brianp
  32.  * changed color arrays to GLubyte
  33.  *
  34.  * Revision 1.5  1995/05/22  20:59:34  brianp
  35.  * Release 1.2
  36.  *
  37.  * Revision 1.4  1995/05/15  16:08:07  brianp
  38.  * renamed texturing functions, added new ones
  39.  *
  40.  * Revision 1.3  1995/03/04  19:25:29  brianp
  41.  * 1.1 beta revision
  42.  *
  43.  * Revision 1.2  1995/03/02  19:10:55  brianp
  44.  * changed gl_texgen arguments
  45.  *
  46.  * Revision 1.1  1995/02/24  14:28:31  brianp
  47.  * Initial revision
  48.  *
  49.  */
  50.  
  51.  
  52. #ifndef TEXTURE_H
  53. #define TEXTURE_H
  54.  
  55.  
  56.  
  57. extern void
  58. gl_texenv( GLenum target, GLenum pname, const GLfloat *param );
  59.  
  60.  
  61. extern void
  62. gl_texparameter( GLenum target, GLenum pname, const GLfloat *params );
  63.  
  64.  
  65. extern void
  66. gl_texgen( GLenum coord, GLenum pname, const GLfloat *params );
  67.  
  68.  
  69. extern void gl_do_texgen( const GLfloat obj[4], const GLfloat eye[4],
  70.                           const GLfloat normal[3], GLfloat texcoord[4] );
  71.  
  72.  
  73. extern void gl_teximage1d( GLint level, GLint components,
  74.                GLsizei width, GLint border,
  75.                const GLubyte *pixels );
  76.  
  77.  
  78. extern void gl_teximage2d( GLint level, GLint components,
  79.                GLsizei width, GLsizei height, GLint border,
  80.                const GLubyte *pixels );
  81.  
  82.  
  83. extern void gl_texture_pixels_1d( GLuint n, GLfloat s[],
  84.                   GLubyte red[], GLubyte green[],
  85.                   GLubyte blue[], GLubyte alpha[] );
  86.  
  87.  
  88. extern void gl_texture_pixels_2d( GLuint n, GLfloat s[], GLfloat t[],
  89.                   GLubyte red[], GLubyte green[],
  90.                   GLubyte blue[], GLubyte alpha[] );
  91.  
  92.  
  93. #endif
  94.  
  95.