/* Id: texstate.h,v 1.2 1999/02/26 08:52:38 martin Exp $ */ /* * Mesa 3-D graphics library * Version: 3.1 * * Copyright (C) 1999 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* * Log: texstate.h,v $ * Revision 1.2 1999/02/26 08:52:38 martin * Updated Mesa to the official version checked into the Mesa cvs archive * Cleaned up the XMesa interface * Fixed support for standalone Mesa * Removed several unused files in the lib/GL/mesa/src subdirectory * Moved glcore.h back to include/GL/internal/glcore.h * * Revision 3.5 1999/02/14 03:46:34 brianp * new copyright * * Revision 3.4 1998/11/03 01:40:37 brianp * implemented GL_ARB_multitexture * * Revision 3.3 1998/08/21 01:50:01 brianp * added gl_max_texture_coord_sets() * * Revision 3.2 1998/06/07 22:18:52 brianp * implemented GL_EXT_multitexture extension * * Revision 3.1 1998/02/20 04:53:37 brianp * implemented GL_SGIS_multitexture * * Revision 3.0 1998/01/31 21:04:38 brianp * initial rev * */ #ifndef TEXSTATE_H #define TEXSTATE_H #include "types.h" /*** Called from API ***/ extern void gl_GetTexEnvfv( GLcontext *ctx, GLenum target, GLenum pname, GLfloat *params ); extern void gl_GetTexEnviv( GLcontext *ctx, GLenum target, GLenum pname, GLint *params ); extern void gl_GetTexGendv( GLcontext *ctx, GLenum coord, GLenum pname, GLdouble *params ); extern void gl_GetTexGenfv( GLcontext *ctx, GLenum coord, GLenum pname, GLfloat *params ); extern void gl_GetTexGeniv( GLcontext *ctx, GLenum coord, GLenum pname, GLint *params ); extern void gl_GetTexLevelParameterfv( GLcontext *ctx, GLenum target, GLint level, GLenum pname, GLfloat *params ); extern void gl_GetTexLevelParameteriv( GLcontext *ctx, GLenum target, GLint level, GLenum pname, GLint *params ); extern void gl_GetTexParameterfv( GLcontext *ctx, GLenum target, GLenum pname, GLfloat *params ); extern void gl_GetTexParameteriv( GLcontext *ctx, GLenum target, GLenum pname, GLint *params ); extern void gl_TexEnvfv( GLcontext *ctx, GLenum target, GLenum pname, const GLfloat *param ); extern void gl_TexParameterfv( GLcontext *ctx, GLenum target, GLenum pname, const GLfloat *params ); extern void gl_TexGenfv( GLcontext *ctx, GLenum coord, GLenum pname, const GLfloat *params ); /* * GL_SGIS_multitexture */ extern void gl_SelectTextureSGIS( GLcontext *ctx, GLenum target ); extern void gl_SelectTexture( GLcontext *ctx, GLenum target ); extern void gl_SelectTextureCoordSet( GLcontext *ctx, GLenum target ); extern void gl_SelectTextureTransform( GLcontext *ctx, GLenum target ); /* * GL_ARB_multitexture */ extern void gl_ActiveTexture( GLcontext *ctx, GLenum target ); extern void gl_ClientActiveTexture( GLcontext *ctx, GLenum target ); /*** Internal functions ***/ extern void gl_update_texture_state( GLcontext *ctx ); extern GLint gl_max_texture_coord_sets( const GLcontext *ctx ); #endif