2 * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * TUNGSTEN GRAPHICS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
20 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 #ifndef ES1_CONVERSION_H
25 #define ES1_CONVERSION_H
28 #define GL_APIENTRY GLAPIENTRY
32 _mesa_AlphaFuncx(GLenum func
, GLclampx ref
);
35 _mesa_ClearColorx(GLclampx red
, GLclampx green
, GLclampx blue
, GLclampx alpha
);
38 _mesa_ClearDepthx(GLclampx depth
);
41 _mesa_ClipPlanef(GLenum plane
, const GLfloat
*equation
);
44 _mesa_ClipPlanex(GLenum plane
, const GLfixed
*equation
);
47 _es_Color4ub(GLubyte red
, GLubyte green
, GLubyte blue
, GLubyte alpha
);
50 _mesa_Color4x(GLfixed red
, GLfixed green
, GLfixed blue
, GLfixed alpha
);
53 _mesa_DepthRangex(GLclampx zNear
, GLclampx zFar
);
56 _mesa_DrawTexxOES(GLfixed x
, GLfixed y
, GLfixed z
, GLfixed w
, GLfixed h
);
59 _mesa_DrawTexxvOES(const GLfixed
*coords
);
62 _mesa_Fogx(GLenum pname
, GLfixed param
);
65 _mesa_Fogxv(GLenum pname
, const GLfixed
*params
);
68 _mesa_Frustumf(GLfloat left
, GLfloat right
, GLfloat bottom
, GLfloat top
,
69 GLfloat zNear
, GLfloat zFar
);
72 _mesa_Frustumx(GLfixed left
, GLfixed right
, GLfixed bottom
, GLfixed top
,
73 GLfixed zNear
, GLfixed zFar
);
76 _mesa_GetClipPlanef(GLenum plane
, GLfloat
*equation
);
79 _mesa_GetClipPlanex(GLenum plane
, GLfixed
*equation
);
82 _mesa_GetLightxv(GLenum light
, GLenum pname
, GLfixed
*params
);
85 _mesa_GetMaterialxv(GLenum face
, GLenum pname
, GLfixed
*params
);
88 _check_GetTexGenivOES(GLenum coord
, GLenum pname
, GLint
*params
);
91 _mesa_GetTexEnvxv(GLenum target
, GLenum pname
, GLfixed
*params
);
94 _mesa_GetTexGenxvOES(GLenum coord
, GLenum pname
, GLfixed
*params
);
97 _mesa_GetTexParameterxv(GLenum target
, GLenum pname
, GLfixed
*params
);
100 _mesa_LightModelx(GLenum pname
, GLfixed param
);
103 _mesa_LightModelxv(GLenum pname
, const GLfixed
*params
);
106 _mesa_Lightx(GLenum light
, GLenum pname
, GLfixed param
);
109 _mesa_Lightxv(GLenum light
, GLenum pname
, const GLfixed
*params
);
112 _mesa_LineWidthx(GLfixed width
);
115 _mesa_LoadMatrixx(const GLfixed
*m
);
118 _mesa_Materialx(GLenum face
, GLenum pname
, GLfixed param
);
121 _mesa_Materialxv(GLenum face
, GLenum pname
, const GLfixed
*params
);
124 _mesa_MultMatrixx(const GLfixed
*m
);
127 _mesa_MultiTexCoord4x(GLenum texture
, GLfixed s
, GLfixed t
, GLfixed r
, GLfixed q
);
130 _mesa_Normal3x(GLfixed nx
, GLfixed ny
, GLfixed nz
);
133 _mesa_Orthof(GLfloat left
, GLfloat right
, GLfloat bottom
, GLfloat top
,
134 GLfloat zNear
, GLfloat zFar
);
137 _mesa_Orthox(GLfixed left
, GLfixed right
, GLfixed bottom
, GLfixed top
,
138 GLfixed zNear
, GLfixed zFar
);
141 _mesa_PointParameterx(GLenum pname
, GLfixed param
);
144 _mesa_PointParameterxv(GLenum pname
, const GLfixed
*params
);
147 _mesa_PointSizex(GLfixed size
);
150 _mesa_PolygonOffsetx(GLfixed factor
, GLfixed units
);
153 _mesa_Rotatex(GLfixed angle
, GLfixed x
, GLfixed y
, GLfixed z
);
156 _mesa_SampleCoveragex(GLclampx value
, GLboolean invert
);
159 _mesa_Scalex(GLfixed x
, GLfixed y
, GLfixed z
);
162 _mesa_TexEnvx(GLenum target
, GLenum pname
, GLfixed param
);
165 _mesa_TexEnvxv(GLenum target
, GLenum pname
, const GLfixed
*params
);
168 _check_TexGeniOES(GLenum coord
, GLenum pname
, GLint param
);
171 _check_TexGenivOES(GLenum coord
, GLenum pname
, const GLint
*params
);
174 _mesa_TexGenxOES(GLenum coord
, GLenum pname
, GLfixed param
);
177 _mesa_TexGenxvOES(GLenum coord
, GLenum pname
, const GLfixed
*params
);
180 _mesa_TexParameterx(GLenum target
, GLenum pname
, GLfixed param
);
183 _mesa_TexParameterxv(GLenum target
, GLenum pname
, const GLfixed
*params
);
186 _mesa_Translatex(GLfixed x
, GLfixed y
, GLfixed z
);
188 #endif /* ES1_CONVERSION_H */