1//
2// Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// validationES2.h: Validation functions for OpenGL ES 2.0 entry point parameters
8
9#ifndef LIBGLESV2_VALIDATION_ES2_H
10#define LIBGLESV2_VALIDATION_ES2_H
11
12#include <GLES2/gl2.h>
13
14namespace gl
15{
16
17class Context;
18
19bool ValidateES2TexImageParameters(Context *context, GLenum target, GLint level, GLenum internalformat, bool isCompressed, bool isSubImage,
20                                   GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
21                                   GLint border, GLenum format, GLenum type, const GLvoid *pixels);
22
23bool ValidateES2CopyTexImageParameters(Context* context, GLenum target, GLint level, GLenum internalformat, bool isSubImage,
24                                       GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height,
25                                       GLint border);
26
27bool ValidateES2TexStorageParameters(Context *context, GLenum target, GLsizei levels, GLenum internalformat,
28                                     GLsizei width, GLsizei height);
29
30bool ValidES2ReadFormatType(Context *context, GLenum format, GLenum type);
31
32}
33
34#endif // LIBGLESV2_VALIDATION_ES2_H
35