Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
55 | pj | 1 | /* $Id: texstate.h,v 1.1 2003-02-28 11:42:05 pj Exp $ */ |
2 | |||
3 | /* |
||
4 | * Mesa 3-D graphics library |
||
5 | * Version: 4.1 |
||
6 | * |
||
7 | * Copyright (C) 1999-2002 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 | #ifndef TEXSTATE_H |
||
29 | #define TEXSTATE_H |
||
30 | |||
31 | |||
32 | #include "mtypes.h" |
||
33 | |||
34 | |||
35 | extern void |
||
36 | _mesa_copy_texture_state( const GLcontext *src, GLcontext *dst ); |
||
37 | |||
38 | |||
39 | /*** Called from API ***/ |
||
40 | |||
41 | extern void |
||
42 | _mesa_GetTexEnvfv( GLenum target, GLenum pname, GLfloat *params ); |
||
43 | |||
44 | extern void |
||
45 | _mesa_GetTexEnviv( GLenum target, GLenum pname, GLint *params ); |
||
46 | |||
47 | extern void |
||
48 | _mesa_GetTexGendv( GLenum coord, GLenum pname, GLdouble *params ); |
||
49 | |||
50 | extern void |
||
51 | _mesa_GetTexGenfv( GLenum coord, GLenum pname, GLfloat *params ); |
||
52 | |||
53 | extern void |
||
54 | _mesa_GetTexGeniv( GLenum coord, GLenum pname, GLint *params ); |
||
55 | |||
56 | extern void |
||
57 | _mesa_GetTexLevelParameterfv( GLenum target, GLint level, |
||
58 | GLenum pname, GLfloat *params ); |
||
59 | |||
60 | extern void |
||
61 | _mesa_GetTexLevelParameteriv( GLenum target, GLint level, |
||
62 | GLenum pname, GLint *params ); |
||
63 | |||
64 | extern void |
||
65 | _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params ); |
||
66 | |||
67 | extern void |
||
68 | _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params ); |
||
69 | |||
70 | |||
71 | extern void |
||
72 | _mesa_TexEnvf( GLenum target, GLenum pname, GLfloat param ); |
||
73 | |||
74 | extern void |
||
75 | _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param ); |
||
76 | |||
77 | extern void |
||
78 | _mesa_TexEnvi( GLenum target, GLenum pname, GLint param ); |
||
79 | |||
80 | extern void |
||
81 | _mesa_TexEnviv( GLenum target, GLenum pname, const GLint *param ); |
||
82 | |||
83 | |||
84 | extern void |
||
85 | _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ); |
||
86 | |||
87 | extern void |
||
88 | _mesa_TexParameterf( GLenum target, GLenum pname, GLfloat param ); |
||
89 | |||
90 | |||
91 | extern void |
||
92 | _mesa_TexParameteri( GLenum target, GLenum pname, GLint param ); |
||
93 | |||
94 | extern void |
||
95 | _mesa_TexParameteriv( GLenum target, GLenum pname, const GLint *params ); |
||
96 | |||
97 | |||
98 | extern void |
||
99 | _mesa_TexGend( GLenum coord, GLenum pname, GLdouble param ); |
||
100 | |||
101 | extern void |
||
102 | _mesa_TexGendv( GLenum coord, GLenum pname, const GLdouble *params ); |
||
103 | |||
104 | extern void |
||
105 | _mesa_TexGenf( GLenum coord, GLenum pname, GLfloat param ); |
||
106 | |||
107 | extern void |
||
108 | _mesa_TexGenfv( GLenum coord, GLenum pname, const GLfloat *params ); |
||
109 | |||
110 | extern void |
||
111 | _mesa_TexGeni( GLenum coord, GLenum pname, GLint param ); |
||
112 | |||
113 | extern void |
||
114 | _mesa_TexGeniv( GLenum coord, GLenum pname, const GLint *params ); |
||
115 | |||
116 | |||
117 | |||
118 | |||
119 | /* |
||
120 | * GL_ARB_multitexture |
||
121 | */ |
||
122 | extern void |
||
123 | _mesa_ActiveTextureARB( GLenum target ); |
||
124 | |||
125 | extern void |
||
126 | _mesa_ClientActiveTextureARB( GLenum target ); |
||
127 | |||
128 | |||
129 | /* |
||
130 | * Pixel Texture Extensions |
||
131 | */ |
||
132 | |||
133 | extern void |
||
134 | _mesa_PixelTexGenSGIX(GLenum mode); |
||
135 | |||
136 | extern void |
||
137 | _mesa_PixelTexGenParameterfSGIS(GLenum target, GLfloat value); |
||
138 | |||
139 | #ifdef VMS |
||
140 | #define _mesa_PixelTexGenParameterfvSGIS _mesa_PixelTexGenParameterfv |
||
141 | #endif |
||
142 | extern void |
||
143 | _mesa_PixelTexGenParameterfvSGIS(GLenum target, const GLfloat *value); |
||
144 | |||
145 | extern void |
||
146 | _mesa_PixelTexGenParameteriSGIS(GLenum target, GLint value); |
||
147 | |||
148 | #ifdef VMS |
||
149 | #define _mesa_PixelTexGenParameterivSGIS _mesa_PixelTexGenParameteriv |
||
150 | #endif |
||
151 | extern void |
||
152 | _mesa_PixelTexGenParameterivSGIS(GLenum target, const GLint *value); |
||
153 | |||
154 | #ifdef VMS |
||
155 | #define _mesa_GetPixelTexGenParameterfvSGIS _mesa_GetPixelTexGenParameterfv |
||
156 | #endif |
||
157 | extern void |
||
158 | _mesa_GetPixelTexGenParameterfvSGIS(GLenum target, GLfloat *value); |
||
159 | |||
160 | #ifdef VMS |
||
161 | #define _mesa_GetPixelTexGenParameterivSGIS _mesa_GetPixelTexGenParameteriv |
||
162 | #endif |
||
163 | extern void |
||
164 | _mesa_GetPixelTexGenParameterivSGIS(GLenum target, GLint *value); |
||
165 | |||
166 | |||
167 | #endif |