mesa: refactor: move glTexParameter-related functions into new texparam.c file

This commit is contained in:
Brian Paul 2008-06-11 20:05:53 -06:00 committed by Keith Whitwell
parent 11ebfd22bb
commit ae1fdc1523
8 changed files with 1107 additions and 1029 deletions

View file

@ -112,6 +112,7 @@
#include "texgen.h"
#endif
#include "texobj.h"
#include "texparam.h"
#include "texstate.h"
#include "mtypes.h"
#include "varray.h"

View file

@ -51,6 +51,7 @@
#include "texenv.h"
#include "texgen.h"
#include "texobj.h"
#include "texparam.h"
#include "texstate.h"
#include "varray.h"
#include "mtypes.h"

View file

@ -64,6 +64,7 @@ texformat.c \
texgen.c \
teximage.c \
texobj.c \
texparam.c \
texrender.c \
texstate.c \
texstore.c \
@ -145,6 +146,7 @@ texformat_tmp.h \
texgen.h \
teximage.h \
texobj.h \
texparam.h \
texrender.h \
texstate.h \
texstore.h \

1039
src/mesa/main/texparam.c Normal file

File diff suppressed because it is too large Load diff

63
src/mesa/main/texparam.h Normal file
View file

@ -0,0 +1,63 @@
/*
* Mesa 3-D graphics library
* Version: 7.1
*
* Copyright (C) 1999-2008 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.
*/
#ifndef TEXPARAM_H
#define TEXPARAM_H
#include "main/glheader.h"
extern void GLAPIENTRY
_mesa_GetTexLevelParameterfv( GLenum target, GLint level,
GLenum pname, GLfloat *params );
extern void GLAPIENTRY
_mesa_GetTexLevelParameteriv( GLenum target, GLint level,
GLenum pname, GLint *params );
extern void GLAPIENTRY
_mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params );
extern void GLAPIENTRY
_mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params );
extern void GLAPIENTRY
_mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params );
extern void GLAPIENTRY
_mesa_TexParameterf( GLenum target, GLenum pname, GLfloat param );
extern void GLAPIENTRY
_mesa_TexParameteri( GLenum target, GLenum pname, GLint param );
extern void GLAPIENTRY
_mesa_TexParameteriv( GLenum target, GLenum pname, const GLint *params );
#endif /* TEXPARAM_H */

File diff suppressed because it is too large Load diff

View file

@ -48,35 +48,6 @@ _mesa_print_texunit_state( GLcontext *ctx, GLuint unit );
*/
/*@{*/
extern void GLAPIENTRY
_mesa_GetTexLevelParameterfv( GLenum target, GLint level,
GLenum pname, GLfloat *params );
extern void GLAPIENTRY
_mesa_GetTexLevelParameteriv( GLenum target, GLint level,
GLenum pname, GLint *params );
extern void GLAPIENTRY
_mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params );
extern void GLAPIENTRY
_mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params );
extern void GLAPIENTRY
_mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params );
extern void GLAPIENTRY
_mesa_TexParameterf( GLenum target, GLenum pname, GLfloat param );
extern void GLAPIENTRY
_mesa_TexParameteri( GLenum target, GLenum pname, GLint param );
extern void GLAPIENTRY
_mesa_TexParameteriv( GLenum target, GLenum pname, const GLint *params );
/*
* GL_ARB_multitexture

View file

@ -67,6 +67,7 @@ MAIN_SOURCES = \
main/texgen.c \
main/teximage.c \
main/texobj.c \
main/texparam.c \
main/texrender.c \
main/texstate.c \
main/texstore.c \