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 24struct GLESv2Validate:public GLESvalidate{ 25static bool blendEquationMode(GLenum mode); 26static bool blendSrc(GLenum s); 27static bool blendDst(GLenum d); 28static bool textureParams(GLenum param); 29static bool hintTargetMode(GLenum target,GLenum mode); 30static bool capability(GLenum cap); 31static bool pixelStoreParam(GLenum param); 32static bool readPixelFrmt(GLenum format); 33static bool shaderType(GLenum type); 34static bool precisionType(GLenum type); 35static bool arrayIndex(GLEScontext * ctx,GLuint index); 36static bool pixelType(GLEScontext * ctx,GLenum type); 37static bool pixelFrmt(GLEScontext* ctx,GLenum format); 38static bool attribName(const GLchar* name); 39static bool attribIndex(int index); 40static bool programParam(GLenum pname); 41}; 42 43#endif 44