Home | History | Annotate | Download | only in GLES_V2
      1 /*
      2 * Copyright 2011 The Android Open Source Project
      3 *
      4 * Licensed under the Apache License, Version 2.0 (the "License");
      5 * you may not use this file except in compliance with the License.
      6 * You may obtain a copy of the License at
      7 *
      8 * http://www.apache.org/licenses/LICENSE-2.0
      9 *
     10 * Unless required by applicable law or agreed to in writing, software
     11 * distributed under the License is distributed on an "AS IS" BASIS,
     12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 * See the License for the specific language governing permissions and
     14 * limitations under the License.
     15 */
     16 
     17 #ifndef GLES_V2_VALIDATE_H
     18 #define GLES_V2_VALIDATE_H
     19 
     20 #include <GLES2/gl2.h>
     21 #include <GLES2/gl2ext.h>
     22 #include <GLcommon/GLESvalidate.h>
     23 
     24 struct GLESv2Validate:public GLESvalidate{
     25 static bool blendEquationMode(GLenum mode);
     26 static bool blendSrc(GLenum s);
     27 static bool blendDst(GLenum d);
     28 static bool textureParams(GLenum param);
     29 static bool hintTargetMode(GLenum target,GLenum mode);
     30 static bool capability(GLenum cap);
     31 static bool pixelStoreParam(GLenum param);
     32 static bool readPixelFrmt(GLenum format);
     33 static bool shaderType(GLenum type);
     34 static bool precisionType(GLenum type);
     35 static bool arrayIndex(GLEScontext * ctx,GLuint index);
     36 static bool pixelType(GLEScontext * ctx,GLenum type);
     37 static bool pixelFrmt(GLEScontext* ctx,GLenum format);
     38 static bool attribName(const GLchar* name);
     39 static bool attribIndex(int index);
     40 static bool programParam(GLenum pname);
     41 };
     42 
     43 #endif
     44