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 2020 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(const Context *context, AlphaTestFunc funcPacked, GLfloat ref); 21 bool ValidateAlphaFuncx(const Context *context, AlphaTestFunc funcPacked, GLfixed ref); 22 bool ValidateClearColorx(const Context *context, 23 GLfixed red, 24 GLfixed green, 25 GLfixed blue, 26 GLfixed alpha); 27 bool ValidateClearDepthx(const Context *context, GLfixed depth); 28 bool ValidateClientActiveTexture(const Context *context, GLenum texture); 29 bool ValidateClipPlanef(const Context *context, GLenum p, const GLfloat *eqn); 30 bool ValidateClipPlanex(const Context *context, GLenum plane, const GLfixed *equation); 31 bool ValidateColor4f(const Context *context, 32 GLfloat red, 33 GLfloat green, 34 GLfloat blue, 35 GLfloat alpha); 36 bool ValidateColor4ub(const Context *context, 37 GLubyte red, 38 GLubyte green, 39 GLubyte blue, 40 GLubyte alpha); 41 bool ValidateColor4x(const Context *context, 42 GLfixed red, 43 GLfixed green, 44 GLfixed blue, 45 GLfixed alpha); 46 bool ValidateColorPointer(const Context *context, 47 GLint size, 48 VertexAttribType typePacked, 49 GLsizei stride, 50 const void *pointer); 51 bool ValidateDepthRangex(const Context *context, GLfixed n, GLfixed f); 52 bool ValidateDisableClientState(const Context *context, ClientVertexArrayType arrayPacked); 53 bool ValidateEnableClientState(const Context *context, ClientVertexArrayType arrayPacked); 54 bool ValidateFogf(const Context *context, GLenum pname, GLfloat param); 55 bool ValidateFogfv(const Context *context, GLenum pname, const GLfloat *params); 56 bool ValidateFogx(const Context *context, GLenum pname, GLfixed param); 57 bool ValidateFogxv(const Context *context, GLenum pname, const GLfixed *param); 58 bool ValidateFrustumf(const Context *context, 59 GLfloat l, 60 GLfloat r, 61 GLfloat b, 62 GLfloat t, 63 GLfloat n, 64 GLfloat f); 65 bool ValidateFrustumx(const Context *context, 66 GLfixed l, 67 GLfixed r, 68 GLfixed b, 69 GLfixed t, 70 GLfixed n, 71 GLfixed f); 72 bool ValidateGetClipPlanef(const Context *context, GLenum plane, const GLfloat *equation); 73 bool ValidateGetClipPlanex(const Context *context, GLenum plane, const GLfixed *equation); 74 bool ValidateGetFixedv(const Context *context, GLenum pname, const GLfixed *params); 75 bool ValidateGetLightfv(const Context *context, 76 GLenum light, 77 LightParameter pnamePacked, 78 const GLfloat *params); 79 bool ValidateGetLightxv(const Context *context, 80 GLenum light, 81 LightParameter pnamePacked, 82 const GLfixed *params); 83 bool ValidateGetMaterialfv(const Context *context, 84 GLenum face, 85 MaterialParameter pnamePacked, 86 const GLfloat *params); 87 bool ValidateGetMaterialxv(const Context *context, 88 GLenum face, 89 MaterialParameter pnamePacked, 90 const GLfixed *params); 91 bool ValidateGetTexEnvfv(const Context *context, 92 TextureEnvTarget targetPacked, 93 TextureEnvParameter pnamePacked, 94 const GLfloat *params); 95 bool ValidateGetTexEnviv(const Context *context, 96 TextureEnvTarget targetPacked, 97 TextureEnvParameter pnamePacked, 98 const GLint *params); 99 bool ValidateGetTexEnvxv(const Context *context, 100 TextureEnvTarget targetPacked, 101 TextureEnvParameter pnamePacked, 102 const GLfixed *params); 103 bool ValidateGetTexParameterxv(const Context *context, 104 TextureType targetPacked, 105 GLenum pname, 106 const GLfixed *params); 107 bool ValidateLightModelf(const Context *context, GLenum pname, GLfloat param); 108 bool ValidateLightModelfv(const Context *context, GLenum pname, const GLfloat *params); 109 bool ValidateLightModelx(const Context *context, GLenum pname, GLfixed param); 110 bool ValidateLightModelxv(const Context *context, GLenum pname, const GLfixed *param); 111 bool ValidateLightf(const Context *context, 112 GLenum light, 113 LightParameter pnamePacked, 114 GLfloat param); 115 bool ValidateLightfv(const Context *context, 116 GLenum light, 117 LightParameter pnamePacked, 118 const GLfloat *params); 119 bool ValidateLightx(const Context *context, 120 GLenum light, 121 LightParameter pnamePacked, 122 GLfixed param); 123 bool ValidateLightxv(const Context *context, 124 GLenum light, 125 LightParameter pnamePacked, 126 const GLfixed *params); 127 bool ValidateLineWidthx(const Context *context, GLfixed width); 128 bool ValidateLoadIdentity(const Context *context); 129 bool ValidateLoadMatrixf(const Context *context, const GLfloat *m); 130 bool ValidateLoadMatrixx(const Context *context, const GLfixed *m); 131 bool ValidateLogicOp(const Context *context, LogicalOperation opcodePacked); 132 bool ValidateMaterialf(const Context *context, 133 GLenum face, 134 MaterialParameter pnamePacked, 135 GLfloat param); 136 bool ValidateMaterialfv(const Context *context, 137 GLenum face, 138 MaterialParameter pnamePacked, 139 const GLfloat *params); 140 bool ValidateMaterialx(const Context *context, 141 GLenum face, 142 MaterialParameter pnamePacked, 143 GLfixed param); 144 bool ValidateMaterialxv(const Context *context, 145 GLenum face, 146 MaterialParameter pnamePacked, 147 const GLfixed *param); 148 bool ValidateMatrixMode(const Context *context, MatrixType modePacked); 149 bool ValidateMultMatrixf(const Context *context, const GLfloat *m); 150 bool ValidateMultMatrixx(const Context *context, const GLfixed *m); 151 bool ValidateMultiTexCoord4f(const Context *context, 152 GLenum target, 153 GLfloat s, 154 GLfloat t, 155 GLfloat r, 156 GLfloat q); 157 bool ValidateMultiTexCoord4x(const Context *context, 158 GLenum texture, 159 GLfixed s, 160 GLfixed t, 161 GLfixed r, 162 GLfixed q); 163 bool ValidateNormal3f(const Context *context, GLfloat nx, GLfloat ny, GLfloat nz); 164 bool ValidateNormal3x(const Context *context, GLfixed nx, GLfixed ny, GLfixed nz); 165 bool ValidateNormalPointer(const Context *context, 166 VertexAttribType typePacked, 167 GLsizei stride, 168 const void *pointer); 169 bool ValidateOrthof(const Context *context, 170 GLfloat l, 171 GLfloat r, 172 GLfloat b, 173 GLfloat t, 174 GLfloat n, 175 GLfloat f); 176 bool ValidateOrthox(const Context *context, 177 GLfixed l, 178 GLfixed r, 179 GLfixed b, 180 GLfixed t, 181 GLfixed n, 182 GLfixed f); 183 bool ValidatePointParameterf(const Context *context, PointParameter pnamePacked, GLfloat param); 184 bool ValidatePointParameterfv(const Context *context, 185 PointParameter pnamePacked, 186 const GLfloat *params); 187 bool ValidatePointParameterx(const Context *context, PointParameter pnamePacked, GLfixed param); 188 bool ValidatePointParameterxv(const Context *context, 189 PointParameter pnamePacked, 190 const GLfixed *params); 191 bool ValidatePointSize(const Context *context, GLfloat size); 192 bool ValidatePointSizex(const Context *context, GLfixed size); 193 bool ValidatePolygonOffsetx(const Context *context, GLfixed factor, GLfixed units); 194 bool ValidatePopMatrix(const Context *context); 195 bool ValidatePushMatrix(const Context *context); 196 bool ValidateRotatef(const Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); 197 bool ValidateRotatex(const Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z); 198 bool ValidateSampleCoveragex(const Context *context, GLclampx value, GLboolean invert); 199 bool ValidateScalef(const Context *context, GLfloat x, GLfloat y, GLfloat z); 200 bool ValidateScalex(const Context *context, GLfixed x, GLfixed y, GLfixed z); 201 bool ValidateShadeModel(const Context *context, ShadingModel modePacked); 202 bool ValidateTexCoordPointer(const Context *context, 203 GLint size, 204 VertexAttribType typePacked, 205 GLsizei stride, 206 const void *pointer); 207 bool ValidateTexEnvf(const Context *context, 208 TextureEnvTarget targetPacked, 209 TextureEnvParameter pnamePacked, 210 GLfloat param); 211 bool ValidateTexEnvfv(const Context *context, 212 TextureEnvTarget targetPacked, 213 TextureEnvParameter pnamePacked, 214 const GLfloat *params); 215 bool ValidateTexEnvi(const Context *context, 216 TextureEnvTarget targetPacked, 217 TextureEnvParameter pnamePacked, 218 GLint param); 219 bool ValidateTexEnviv(const Context *context, 220 TextureEnvTarget targetPacked, 221 TextureEnvParameter pnamePacked, 222 const GLint *params); 223 bool ValidateTexEnvx(const Context *context, 224 TextureEnvTarget targetPacked, 225 TextureEnvParameter pnamePacked, 226 GLfixed param); 227 bool ValidateTexEnvxv(const Context *context, 228 TextureEnvTarget targetPacked, 229 TextureEnvParameter pnamePacked, 230 const GLfixed *params); 231 bool ValidateTexParameterx(const Context *context, 232 TextureType targetPacked, 233 GLenum pname, 234 GLfixed param); 235 bool ValidateTexParameterxv(const Context *context, 236 TextureType targetPacked, 237 GLenum pname, 238 const GLfixed *params); 239 bool ValidateTranslatef(const Context *context, GLfloat x, GLfloat y, GLfloat z); 240 bool ValidateTranslatex(const Context *context, GLfixed x, GLfixed y, GLfixed z); 241 bool ValidateVertexPointer(const Context *context, 242 GLint size, 243 VertexAttribType typePacked, 244 GLsizei stride, 245 const void *pointer); 246 } // namespace gl 247 248 #endif // LIBANGLE_VALIDATION_ES1_AUTOGEN_H_ 249