source: trunk/src/opengl/mesa/texstate.h@ 3721

Last change on this file since 3721 was 3597, checked in by jeroen, 25 years ago

* empty log message *

File size: 3.8 KB
Line 
1/* $Id: texstate.h,v 1.2 2000-05-23 20:34:58 jeroen Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28
29
30
31#ifndef TEXSTATE_H
32#define TEXSTATE_H
33
34
35#include "types.h"
36
37
38/*** Called from API ***/
39
40extern void
41_mesa_GetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
42
43extern void
44_mesa_GetTexEnviv( GLenum target, GLenum pname, GLint *params );
45
46extern void
47_mesa_GetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
48
49extern void
50_mesa_GetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
51
52extern void
53_mesa_GetTexGeniv( GLenum coord, GLenum pname, GLint *params );
54
55extern void
56_mesa_GetTexLevelParameterfv( GLenum target, GLint level,
57 GLenum pname, GLfloat *params );
58
59extern void
60_mesa_GetTexLevelParameteriv( GLenum target, GLint level,
61 GLenum pname, GLint *params );
62
63extern void
64_mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params );
65
66extern void
67_mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params );
68
69
70extern void
71_mesa_TexEnvf( GLenum target, GLenum pname, GLfloat param );
72
73extern void
74_mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param );
75
76extern void
77_mesa_TexEnvi( GLenum target, GLenum pname, GLint param );
78
79extern void
80_mesa_TexEnviv( GLenum target, GLenum pname, const GLint *param );
81
82
83extern void
84_mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params );
85
86extern void
87_mesa_TexParameterf( GLenum target, GLenum pname, GLfloat param );
88
89
90extern void
91_mesa_TexParameteri( GLenum target, GLenum pname, const GLint param );
92
93extern void
94_mesa_TexParameteriv( GLenum target, GLenum pname, const GLint *params );
95
96
97extern void
98_mesa_TexGend( GLenum coord, GLenum pname, GLdouble param );
99
100extern void
101_mesa_TexGendv( GLenum coord, GLenum pname, const GLdouble *params );
102
103extern void
104_mesa_TexGenf( GLenum coord, GLenum pname, GLfloat param );
105
106extern void
107_mesa_TexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
108
109extern void
110_mesa_TexGeni( GLenum coord, GLenum pname, GLint param );
111
112extern void
113_mesa_TexGeniv( GLenum coord, GLenum pname, const GLint *params );
114
115
116
117extern void gl_SelectTextureTransform( GLcontext *ctx, GLenum target );
118
119
120/*
121 * GL_ARB_multitexture
122 */
123extern void
124_mesa_ActiveTextureARB( GLenum target );
125
126extern void
127_mesa_ClientActiveTextureARB( GLenum target );
128
129
130
131/*** Internal functions ***/
132
133extern void
134gl_put_texobj_on_dirty_list( GLcontext *ctx, struct gl_texture_object *t );
135
136#ifdef VMS
137#define gl_remove_texobj_from_dirty_list gl_remove_texobj_from_dirty_lis
138#endif
139extern void
140gl_remove_texobj_from_dirty_list( struct gl_shared_state *shared,
141 struct gl_texture_object *tObj );
142
143extern void
144gl_update_dirty_texobjs( GLcontext *ctx );
145
146
147#endif
148
Note: See TracBrowser for help on using the repository browser.