chromium/third_party/angle/third_party/glmark2/src/src/gl-headers.h

/*
 * Copyright © 2010-2011 Linaro Limited
 *
 * This file is part of the glmark2 OpenGL (ES) 2.0 benchmark.
 *
 * glmark2 is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * glmark2 is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * glmark2.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *  Alexandros Frantzis (glmark2)
 */
#ifndef GLMARK2_GL_HEADERS_H_
#define GLMARK2_GL_HEADERS_H_

#define GL_GLEXT_PROTOTYPES

#if GLMARK2_USE_GL
#include <glad/gl.h>
#ifndef GL_RGB565
#define GL_RGB565
#endif
#ifndef GL_FRAMEBUFFER
#define GL_FRAMEBUFFER
#endif
#ifndef GL_RENDERBUFFER
#define GL_RENDERBUFFER
#endif
#ifndef GL_COLOR_ATTACHMENT0
#define GL_COLOR_ATTACHMENT0
#endif
#ifndef GL_DEPTH_ATTACHMENT
#define GL_DEPTH_ATTACHMENT
#endif
#ifndef GL_FRAMEBUFFER_BINDING
#define GL_FRAMEBUFFER_BINDING
#endif
#ifndef GL_FRAMEBUFFER_COMPLETE
#define GL_FRAMEBUFFER_COMPLETE
#endif
#elif GLMARK2_USE_GLESv2
#include <glad/gles2.h>
#ifndef GL_WRITE_ONLY
#define GL_WRITE_ONLY
#endif
#ifndef GL_DEPTH_COMPONENT24
#define GL_DEPTH_COMPONENT24
#endif
#ifndef GL_DEPTH_COMPONENT32
#define GL_DEPTH_COMPONENT32
#endif
#ifndef GL_RGBA8
#define GL_RGBA8
#endif
#ifndef GL_RGB8
#define GL_RGB8
#endif
#ifndef GL_GENERATE_MIPMAP
#define GL_GENERATE_MIPMAP
#endif
#endif

#include <string>

/**
 * Struct that holds pointers to functions that belong to extensions
 * in either GL2.0 or GLES2.0.
 */
struct GLExtensions {};

#endif