1848b8605Smrg/*
2848b8605Smrg * Copyright 2008 VMware, Inc.
3848b8605Smrg * All Rights Reserved.
4848b8605Smrg *
5848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a
6848b8605Smrg * copy of this software and associated documentation files (the "Software"),
7848b8605Smrg * to deal in the Software without restriction, including without limitation
8848b8605Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9848b8605Smrg * and/or sell copies of the Software, and to permit persons to whom the
10848b8605Smrg * Software is furnished to do so, subject to the following conditions:
11848b8605Smrg *
12848b8605Smrg * The above copyright notice and this permission notice shall be included
13848b8605Smrg * in all copies or substantial portions of the Software.
14848b8605Smrg *
15848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16848b8605Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17848b8605Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18848b8605Smrg * VMWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19848b8605Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
20848b8605Smrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21848b8605Smrg * SOFTWARE.
22848b8605Smrg */
23848b8605Smrg
24848b8605Smrg#ifndef ES1_CONVERSION_H
25848b8605Smrg#define ES1_CONVERSION_H
26848b8605Smrg
27848b8605Smrg#ifndef GL_APIENTRY
28848b8605Smrg#define GL_APIENTRY GLAPIENTRY
29848b8605Smrg#endif
30848b8605Smrg
31848b8605Smrgvoid GL_APIENTRY
32848b8605Smrg_mesa_AlphaFuncx(GLenum func, GLclampx ref);
33848b8605Smrg
34848b8605Smrgvoid GL_APIENTRY
35848b8605Smrg_mesa_ClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
36848b8605Smrg
37848b8605Smrgvoid GL_APIENTRY
38848b8605Smrg_mesa_ClearDepthx(GLclampx depth);
39848b8605Smrg
40848b8605Smrgvoid GL_APIENTRY
41848b8605Smrg_mesa_ClipPlanef(GLenum plane, const GLfloat *equation);
42848b8605Smrg
43848b8605Smrgvoid GL_APIENTRY
44848b8605Smrg_mesa_ClipPlanex(GLenum plane, const GLfixed *equation);
45848b8605Smrg
46848b8605Smrgvoid GL_APIENTRY
47848b8605Smrg_es_Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
48848b8605Smrg
49848b8605Smrgvoid GL_APIENTRY
50848b8605Smrg_mesa_Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
51848b8605Smrg
52848b8605Smrgvoid GL_APIENTRY
53848b8605Smrg_mesa_DepthRangex(GLclampx zNear, GLclampx zFar);
54848b8605Smrg
55848b8605Smrgvoid GL_APIENTRY
56848b8605Smrg_mesa_DrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed w, GLfixed h);
57848b8605Smrg
58848b8605Smrgvoid GL_APIENTRY
59848b8605Smrg_mesa_DrawTexxvOES(const GLfixed *coords);
60848b8605Smrg
61848b8605Smrgvoid GL_APIENTRY
62848b8605Smrg_mesa_Fogx(GLenum pname, GLfixed param);
63848b8605Smrg
64848b8605Smrgvoid GL_APIENTRY
65848b8605Smrg_mesa_Fogxv(GLenum pname, const GLfixed *params);
66848b8605Smrg
67848b8605Smrgvoid GL_APIENTRY
68848b8605Smrg_mesa_Frustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
69848b8605Smrg             GLfloat zNear, GLfloat zFar);
70848b8605Smrg
71848b8605Smrgvoid GL_APIENTRY
72848b8605Smrg_mesa_Frustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
73848b8605Smrg             GLfixed zNear, GLfixed zFar);
74848b8605Smrg
75848b8605Smrgvoid GL_APIENTRY
76848b8605Smrg_mesa_GetClipPlanef(GLenum plane, GLfloat *equation);
77848b8605Smrg
78848b8605Smrgvoid GL_APIENTRY
79848b8605Smrg_mesa_GetClipPlanex(GLenum plane, GLfixed *equation);
80848b8605Smrg
81848b8605Smrgvoid GL_APIENTRY
82848b8605Smrg_mesa_GetLightxv(GLenum light, GLenum pname, GLfixed *params);
83848b8605Smrg
84848b8605Smrgvoid GL_APIENTRY
85848b8605Smrg_mesa_GetMaterialxv(GLenum face, GLenum pname, GLfixed *params);
86848b8605Smrg
87848b8605Smrgvoid GL_APIENTRY
88848b8605Smrg_check_GetTexGenivOES(GLenum coord, GLenum pname, GLint *params);
89848b8605Smrg
90848b8605Smrgvoid GL_APIENTRY
91848b8605Smrg_mesa_GetTexEnvxv(GLenum target, GLenum pname, GLfixed *params);
92848b8605Smrg
93848b8605Smrgvoid GL_APIENTRY
94848b8605Smrg_mesa_GetTexGenxvOES(GLenum coord, GLenum pname, GLfixed *params);
95848b8605Smrg
96848b8605Smrgvoid GL_APIENTRY
97848b8605Smrg_mesa_GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params);
98848b8605Smrg
99848b8605Smrgvoid GL_APIENTRY
100848b8605Smrg_mesa_LightModelx(GLenum pname, GLfixed param);
101848b8605Smrg
102848b8605Smrgvoid GL_APIENTRY
103848b8605Smrg_mesa_LightModelxv(GLenum pname, const GLfixed *params);
104848b8605Smrg
105848b8605Smrgvoid GL_APIENTRY
106848b8605Smrg_mesa_Lightx(GLenum light, GLenum pname, GLfixed param);
107848b8605Smrg
108848b8605Smrgvoid GL_APIENTRY
109848b8605Smrg_mesa_Lightxv(GLenum light, GLenum pname, const GLfixed *params);
110848b8605Smrg
111848b8605Smrgvoid GL_APIENTRY
112848b8605Smrg_mesa_LineWidthx(GLfixed width);
113848b8605Smrg
114848b8605Smrgvoid GL_APIENTRY
115848b8605Smrg_mesa_LoadMatrixx(const GLfixed *m);
116848b8605Smrg
117848b8605Smrgvoid GL_APIENTRY
118848b8605Smrg_mesa_Materialx(GLenum face, GLenum pname, GLfixed param);
119848b8605Smrg
120848b8605Smrgvoid GL_APIENTRY
121848b8605Smrg_mesa_Materialxv(GLenum face, GLenum pname, const GLfixed *params);
122848b8605Smrg
123848b8605Smrgvoid GL_APIENTRY
124848b8605Smrg_mesa_MultMatrixx(const GLfixed *m);
125848b8605Smrg
126848b8605Smrgvoid GL_APIENTRY
127848b8605Smrg_mesa_MultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
128848b8605Smrg
129848b8605Smrgvoid GL_APIENTRY
130848b8605Smrg_mesa_Normal3x(GLfixed nx, GLfixed ny, GLfixed nz);
131848b8605Smrg
132848b8605Smrgvoid GL_APIENTRY
133848b8605Smrg_mesa_Orthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
134848b8605Smrg           GLfloat zNear, GLfloat zFar);
135848b8605Smrg
136848b8605Smrgvoid GL_APIENTRY
137848b8605Smrg_mesa_Orthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
138848b8605Smrg           GLfixed zNear, GLfixed zFar);
139848b8605Smrg
140848b8605Smrgvoid GL_APIENTRY
141848b8605Smrg_mesa_PointParameterx(GLenum pname, GLfixed param);
142848b8605Smrg
143848b8605Smrgvoid GL_APIENTRY
144848b8605Smrg_mesa_PointParameterxv(GLenum pname, const GLfixed *params);
145848b8605Smrg
146848b8605Smrgvoid GL_APIENTRY
147848b8605Smrg_mesa_PointSizex(GLfixed size);
148848b8605Smrg
149848b8605Smrgvoid GL_APIENTRY
150848b8605Smrg_mesa_PolygonOffsetx(GLfixed factor, GLfixed units);
151848b8605Smrg
152848b8605Smrgvoid GL_APIENTRY
153848b8605Smrg_mesa_Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
154848b8605Smrg
155848b8605Smrgvoid GL_APIENTRY
156848b8605Smrg_mesa_SampleCoveragex(GLclampx value, GLboolean invert);
157848b8605Smrg
158848b8605Smrgvoid GL_APIENTRY
159848b8605Smrg_mesa_Scalex(GLfixed x, GLfixed y, GLfixed z);
160848b8605Smrg
161848b8605Smrgvoid GL_APIENTRY
162848b8605Smrg_mesa_TexEnvx(GLenum target, GLenum pname, GLfixed param);
163848b8605Smrg
164848b8605Smrgvoid GL_APIENTRY
165848b8605Smrg_mesa_TexEnvxv(GLenum target, GLenum pname, const GLfixed *params);
166848b8605Smrg
167848b8605Smrgvoid GL_APIENTRY
168848b8605Smrg_check_TexGeniOES(GLenum coord, GLenum pname, GLint param);
169848b8605Smrg
170848b8605Smrgvoid GL_APIENTRY
171848b8605Smrg_check_TexGenivOES(GLenum coord, GLenum pname, const GLint *params);
172848b8605Smrg
173848b8605Smrgvoid GL_APIENTRY
174848b8605Smrg_mesa_TexGenxOES(GLenum coord, GLenum pname, GLfixed param);
175848b8605Smrg
176848b8605Smrgvoid GL_APIENTRY
177848b8605Smrg_mesa_TexGenxvOES(GLenum coord, GLenum pname, const GLfixed *params);
178848b8605Smrg
179848b8605Smrgvoid GL_APIENTRY
180848b8605Smrg_mesa_TexParameterx(GLenum target, GLenum pname, GLfixed param);
181848b8605Smrg
182848b8605Smrgvoid GL_APIENTRY
183848b8605Smrg_mesa_TexParameterxv(GLenum target, GLenum pname, const GLfixed *params);
184848b8605Smrg
185848b8605Smrgvoid GL_APIENTRY
186848b8605Smrg_mesa_Translatex(GLfixed x, GLfixed y, GLfixed z);
187848b8605Smrg
188848b8605Smrg#endif /* ES1_CONVERSION_H */
189