• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_entry_points.py using data from gl.xml and gl_angle_ext.xml.
3 //
4 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // validationES1_autogen.h:
9 //   Validation functions for the OpenGL ES 1.0 entry points.
10 
11 #ifndef LIBANGLE_VALIDATION_ES1_AUTOGEN_H_
12 #define LIBANGLE_VALIDATION_ES1_AUTOGEN_H_
13 
14 #include "common/PackedEnums.h"
15 
16 namespace gl
17 {
18 class Context;
19 
20 bool ValidateAlphaFunc(Context *context, AlphaTestFunc funcPacked, GLfloat ref);
21 bool ValidateAlphaFuncx(Context *context, AlphaTestFunc funcPacked, GLfixed ref);
22 bool ValidateClearColorx(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
23 bool ValidateClearDepthx(Context *context, GLfixed depth);
24 bool ValidateClientActiveTexture(Context *context, GLenum texture);
25 bool ValidateClipPlanef(Context *context, GLenum p, const GLfloat *eqn);
26 bool ValidateClipPlanex(Context *context, GLenum plane, const GLfixed *equation);
27 bool ValidateColor4f(Context *context, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
28 bool ValidateColor4ub(Context *context, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
29 bool ValidateColor4x(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
30 bool ValidateColorPointer(Context *context,
31                           GLint size,
32                           VertexAttribType typePacked,
33                           GLsizei stride,
34                           const void *pointer);
35 bool ValidateDepthRangex(Context *context, GLfixed n, GLfixed f);
36 bool ValidateDisableClientState(Context *context, ClientVertexArrayType arrayPacked);
37 bool ValidateEnableClientState(Context *context, ClientVertexArrayType arrayPacked);
38 bool ValidateFogf(Context *context, GLenum pname, GLfloat param);
39 bool ValidateFogfv(Context *context, GLenum pname, const GLfloat *params);
40 bool ValidateFogx(Context *context, GLenum pname, GLfixed param);
41 bool ValidateFogxv(Context *context, GLenum pname, const GLfixed *param);
42 bool ValidateFrustumf(Context *context,
43                       GLfloat l,
44                       GLfloat r,
45                       GLfloat b,
46                       GLfloat t,
47                       GLfloat n,
48                       GLfloat f);
49 bool ValidateFrustumx(Context *context,
50                       GLfixed l,
51                       GLfixed r,
52                       GLfixed b,
53                       GLfixed t,
54                       GLfixed n,
55                       GLfixed f);
56 bool ValidateGetClipPlanef(Context *context, GLenum plane, GLfloat *equation);
57 bool ValidateGetClipPlanex(Context *context, GLenum plane, GLfixed *equation);
58 bool ValidateGetFixedv(Context *context, GLenum pname, GLfixed *params);
59 bool ValidateGetLightfv(Context *context,
60                         GLenum light,
61                         LightParameter pnamePacked,
62                         GLfloat *params);
63 bool ValidateGetLightxv(Context *context,
64                         GLenum light,
65                         LightParameter pnamePacked,
66                         GLfixed *params);
67 bool ValidateGetMaterialfv(Context *context,
68                            GLenum face,
69                            MaterialParameter pnamePacked,
70                            GLfloat *params);
71 bool ValidateGetMaterialxv(Context *context,
72                            GLenum face,
73                            MaterialParameter pnamePacked,
74                            GLfixed *params);
75 bool ValidateGetPointerv(Context *context, GLenum pname, void **params);
76 bool ValidateGetTexEnvfv(Context *context,
77                          TextureEnvTarget targetPacked,
78                          TextureEnvParameter pnamePacked,
79                          GLfloat *params);
80 bool ValidateGetTexEnviv(Context *context,
81                          TextureEnvTarget targetPacked,
82                          TextureEnvParameter pnamePacked,
83                          GLint *params);
84 bool ValidateGetTexEnvxv(Context *context,
85                          TextureEnvTarget targetPacked,
86                          TextureEnvParameter pnamePacked,
87                          GLfixed *params);
88 bool ValidateGetTexParameterxv(Context *context,
89                                TextureType targetPacked,
90                                GLenum pname,
91                                GLfixed *params);
92 bool ValidateLightModelf(Context *context, GLenum pname, GLfloat param);
93 bool ValidateLightModelfv(Context *context, GLenum pname, const GLfloat *params);
94 bool ValidateLightModelx(Context *context, GLenum pname, GLfixed param);
95 bool ValidateLightModelxv(Context *context, GLenum pname, const GLfixed *param);
96 bool ValidateLightf(Context *context, GLenum light, LightParameter pnamePacked, GLfloat param);
97 bool ValidateLightfv(Context *context,
98                      GLenum light,
99                      LightParameter pnamePacked,
100                      const GLfloat *params);
101 bool ValidateLightx(Context *context, GLenum light, LightParameter pnamePacked, GLfixed param);
102 bool ValidateLightxv(Context *context,
103                      GLenum light,
104                      LightParameter pnamePacked,
105                      const GLfixed *params);
106 bool ValidateLineWidthx(Context *context, GLfixed width);
107 bool ValidateLoadIdentity(Context *context);
108 bool ValidateLoadMatrixf(Context *context, const GLfloat *m);
109 bool ValidateLoadMatrixx(Context *context, const GLfixed *m);
110 bool ValidateLogicOp(Context *context, LogicalOperation opcodePacked);
111 bool ValidateMaterialf(Context *context, GLenum face, MaterialParameter pnamePacked, GLfloat param);
112 bool ValidateMaterialfv(Context *context,
113                         GLenum face,
114                         MaterialParameter pnamePacked,
115                         const GLfloat *params);
116 bool ValidateMaterialx(Context *context, GLenum face, MaterialParameter pnamePacked, GLfixed param);
117 bool ValidateMaterialxv(Context *context,
118                         GLenum face,
119                         MaterialParameter pnamePacked,
120                         const GLfixed *param);
121 bool ValidateMatrixMode(Context *context, MatrixType modePacked);
122 bool ValidateMultMatrixf(Context *context, const GLfloat *m);
123 bool ValidateMultMatrixx(Context *context, const GLfixed *m);
124 bool ValidateMultiTexCoord4f(Context *context,
125                              GLenum target,
126                              GLfloat s,
127                              GLfloat t,
128                              GLfloat r,
129                              GLfloat q);
130 bool ValidateMultiTexCoord4x(Context *context,
131                              GLenum texture,
132                              GLfixed s,
133                              GLfixed t,
134                              GLfixed r,
135                              GLfixed q);
136 bool ValidateNormal3f(Context *context, GLfloat nx, GLfloat ny, GLfloat nz);
137 bool ValidateNormal3x(Context *context, GLfixed nx, GLfixed ny, GLfixed nz);
138 bool ValidateNormalPointer(Context *context,
139                            VertexAttribType typePacked,
140                            GLsizei stride,
141                            const void *pointer);
142 bool ValidateOrthof(Context *context,
143                     GLfloat l,
144                     GLfloat r,
145                     GLfloat b,
146                     GLfloat t,
147                     GLfloat n,
148                     GLfloat f);
149 bool ValidateOrthox(Context *context,
150                     GLfixed l,
151                     GLfixed r,
152                     GLfixed b,
153                     GLfixed t,
154                     GLfixed n,
155                     GLfixed f);
156 bool ValidatePointParameterf(Context *context, PointParameter pnamePacked, GLfloat param);
157 bool ValidatePointParameterfv(Context *context, PointParameter pnamePacked, const GLfloat *params);
158 bool ValidatePointParameterx(Context *context, PointParameter pnamePacked, GLfixed param);
159 bool ValidatePointParameterxv(Context *context, PointParameter pnamePacked, const GLfixed *params);
160 bool ValidatePointSize(Context *context, GLfloat size);
161 bool ValidatePointSizex(Context *context, GLfixed size);
162 bool ValidatePolygonOffsetx(Context *context, GLfixed factor, GLfixed units);
163 bool ValidatePopMatrix(Context *context);
164 bool ValidatePushMatrix(Context *context);
165 bool ValidateRotatef(Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
166 bool ValidateRotatex(Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
167 bool ValidateSampleCoveragex(Context *context, GLclampx value, GLboolean invert);
168 bool ValidateScalef(Context *context, GLfloat x, GLfloat y, GLfloat z);
169 bool ValidateScalex(Context *context, GLfixed x, GLfixed y, GLfixed z);
170 bool ValidateShadeModel(Context *context, ShadingModel modePacked);
171 bool ValidateTexCoordPointer(Context *context,
172                              GLint size,
173                              VertexAttribType typePacked,
174                              GLsizei stride,
175                              const void *pointer);
176 bool ValidateTexEnvf(Context *context,
177                      TextureEnvTarget targetPacked,
178                      TextureEnvParameter pnamePacked,
179                      GLfloat param);
180 bool ValidateTexEnvfv(Context *context,
181                       TextureEnvTarget targetPacked,
182                       TextureEnvParameter pnamePacked,
183                       const GLfloat *params);
184 bool ValidateTexEnvi(Context *context,
185                      TextureEnvTarget targetPacked,
186                      TextureEnvParameter pnamePacked,
187                      GLint param);
188 bool ValidateTexEnviv(Context *context,
189                       TextureEnvTarget targetPacked,
190                       TextureEnvParameter pnamePacked,
191                       const GLint *params);
192 bool ValidateTexEnvx(Context *context,
193                      TextureEnvTarget targetPacked,
194                      TextureEnvParameter pnamePacked,
195                      GLfixed param);
196 bool ValidateTexEnvxv(Context *context,
197                       TextureEnvTarget targetPacked,
198                       TextureEnvParameter pnamePacked,
199                       const GLfixed *params);
200 bool ValidateTexParameterx(Context *context, TextureType targetPacked, GLenum pname, GLfixed param);
201 bool ValidateTexParameterxv(Context *context,
202                             TextureType targetPacked,
203                             GLenum pname,
204                             const GLfixed *params);
205 bool ValidateTranslatef(Context *context, GLfloat x, GLfloat y, GLfloat z);
206 bool ValidateTranslatex(Context *context, GLfixed x, GLfixed y, GLfixed z);
207 bool ValidateVertexPointer(Context *context,
208                            GLint size,
209                            VertexAttribType typePacked,
210                            GLsizei stride,
211                            const void *pointer);
212 }  // namespace gl
213 
214 #endif  // LIBANGLE_VALIDATION_ES1_AUTOGEN_H_
215