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 _es_AlphaFuncx(GLenum func
, GLclampx ref
);
35 _es_ClearColorx(GLclampx red
, GLclampx green
, GLclampx blue
, GLclampx alpha
);
38 _es_ClearDepthx(GLclampx depth
);
41 _es_ClipPlanef(GLenum plane
, const GLfloat
*equation
);
44 _es_ClipPlanex(GLenum plane
, const GLfixed
*equation
);
47 _es_Color4ub(GLubyte red
, GLubyte green
, GLubyte blue
, GLubyte alpha
);
50 _es_Color4x(GLfixed red
, GLfixed green
, GLfixed blue
, GLfixed alpha
);
53 _es_DepthRangex(GLclampx zNear
, GLclampx zFar
);
56 _es_DrawTexxOES(GLfixed x
, GLfixed y
, GLfixed z
, GLfixed w
, GLfixed h
);
59 _es_DrawTexxvOES(const GLfixed
*coords
);
62 _es_Fogx(GLenum pname
, GLfixed param
);
65 _es_Fogxv(GLenum pname
, const GLfixed
*params
);
68 _es_Frustumf(GLfloat left
, GLfloat right
, GLfloat bottom
, GLfloat top
,
69 GLfloat zNear
, GLfloat zFar
);
72 _es_Frustumx(GLfixed left
, GLfixed right
, GLfixed bottom
, GLfixed top
,
73 GLfixed zNear
, GLfixed zFar
);
76 _es_GetClipPlanef(GLenum plane
, GLfloat
*equation
);
79 _es_GetClipPlanex(GLenum plane
, GLfixed
*equation
);
82 _es_GetLightxv(GLenum light
, GLenum pname
, GLfixed
*params
);
85 _es_GetMaterialxv(GLenum face
, GLenum pname
, GLfixed
*params
);
88 _check_GetTexGenivOES(GLenum coord
, GLenum pname
, GLint
*params
);
91 _es_GetTexEnvxv(GLenum target
, GLenum pname
, GLfixed
*params
);
94 _check_GetTexGenxvOES(GLenum coord
, GLenum pname
, GLfixed
*params
);
97 _es_GetTexParameterxv(GLenum target
, GLenum pname
, GLfixed
*params
);
100 _es_LightModelx(GLenum pname
, GLfixed param
);
103 _es_LightModelxv(GLenum pname
, const GLfixed
*params
);
106 _es_Lightx(GLenum light
, GLenum pname
, GLfixed param
);
109 _es_Lightxv(GLenum light
, GLenum pname
, const GLfixed
*params
);
112 _es_LineWidthx(GLfixed width
);
115 _es_LoadMatrixx(const GLfixed
*m
);
118 _es_Materialx(GLenum face
, GLenum pname
, GLfixed param
);
121 _es_Materialxv(GLenum face
, GLenum pname
, const GLfixed
*params
);
124 _es_MultMatrixx(const GLfixed
*m
);
127 _es_MultiTexCoord4x(GLenum texture
, GLfixed s
, GLfixed t
, GLfixed r
, GLfixed q
);
130 _es_Normal3x(GLfixed nx
, GLfixed ny
, GLfixed nz
);
133 _es_Orthof(GLfloat left
, GLfloat right
, GLfloat bottom
, GLfloat top
,
134 GLfloat zNear
, GLfloat zFar
);
137 _es_Orthox(GLfixed left
, GLfixed right
, GLfixed bottom
, GLfixed top
,
138 GLfixed zNear
, GLfixed zFar
);
141 _es_PointParameterx(GLenum pname
, GLfixed param
);
144 _es_PointParameterxv(GLenum pname
, const GLfixed
*params
);
147 _es_PointSizex(GLfixed size
);
150 _es_PolygonOffsetx(GLfixed factor
, GLfixed units
);
153 _es_Rotatex(GLfixed angle
, GLfixed x
, GLfixed y
, GLfixed z
);
156 _es_SampleCoveragex(GLclampx value
, GLboolean invert
);
159 _es_Scalex(GLfixed x
, GLfixed y
, GLfixed z
);
162 _es_TexEnvx(GLenum target
, GLenum pname
, GLfixed param
);
165 _es_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 _check_TexGenxOES(GLenum coord
, GLenum pname
, GLfixed param
);
177 _check_TexGenxvOES(GLenum coord
, GLenum pname
, const GLfixed
*params
);
180 _es_TexParameterx(GLenum target
, GLenum pname
, GLfixed param
);
183 _es_TexParameterxv(GLenum target
, GLenum pname
, const GLfixed
*params
);
186 _es_Translatex(GLfixed x
, GLfixed y
, GLfixed z
);
188 #endif /* ES1_CONVERSION_H */